arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts

Source file repositories/reference/linux-study-clean/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts

File Facts

System
Linux kernel
Corpus path
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
Extension
.dts
Size
2737 bytes
Lines
145
Domain
Architecture Layer
Bucket
arch/arm64
Inferred role
Architecture Layer: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
 */

/dts-v1/;

#include "meson-sm1-odroid.dtsi"

/ {
	compatible = "hardkernel,odroid-hc4", "amlogic,sm1";
	model = "Hardkernel ODROID-HC4";

	aliases {
		rtc0 = &rtc;
		rtc1 = &vrtc;
	};

	fan0: pwm-fan {
		compatible = "pwm-fan";
		#cooling-cells = <2>;
		cooling-levels = <0 120 170 220>;
		pwms = <&pwm_cd 1 40000 0>;
	};

	leds {
		compatible = "gpio-leds";

		led-blue {
			color = <LED_COLOR_ID_BLUE>;
			function = LED_FUNCTION_STATUS;
			gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
			panic-indicator;
		};

		led-red {
			color = <LED_COLOR_ID_RED>;
			function = LED_FUNCTION_POWER;
			gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
			default-state = "on";
		};
	};

	/* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */
	p12v_0: regulator-p12v-0 {
		compatible = "regulator-fixed";
		regulator-name = "P12V_0";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		vin-supply = <&main_12v>;

		gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
		enable-active-high;
		regulator-boot-on;
		regulator-always-on;
	};

	/* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */
	p12v_1: regulator-p12v-1 {
		compatible = "regulator-fixed";
		regulator-name = "P12V_1";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		vin-supply = <&main_12v>;

		gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
		enable-active-high;
		regulator-boot-on;
		regulator-always-on;

Annotation

Implementation Notes