Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2020 Dongjin Kim <[email protected]>
4 */
5
6 /dts-v1/;
7
8 #include "meson-sm1-odroid.dtsi"
9
10 / {
11 compatible = "hardkernel,odroid-hc4", "amlogic,sm1";
12 model = "Hardkernel ODROID-HC4";
13
14 aliases {
15 rtc0 = &rtc;
16 rtc1 = &vrtc;
17 };
18
19 fan0: pwm-fan {
20 compatible = "pwm-fan";
21 #cooling-cells = <2>;
22 cooling-levels = <0 120 170 220>;
23 pwms = <&pwm_cd 1 40000 0>;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led-blue {
30 color = <LED_COLOR_ID_BLUE>;
31 function = LED_FUNCTION_STATUS;
32 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
33 linux,default-trigger = "heartbeat";
34 panic-indicator;
35 };
36
37 led-red {
38 color = <LED_COLOR_ID_RED>;
39 function = LED_FUNCTION_POWER;
40 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
41 default-state = "on";
42 };
43 };
44
45 /* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */
46 p12v_0: regulator-p12v-0 {
47 compatible = "regulator-fixed";
48 regulator-name = "P12V_0";
49 regulator-min-microvolt = <12000000>;
50 regulator-max-microvolt = <12000000>;
51 vin-supply = <&main_12v>;
52
53 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
54 enable-active-high;
55 regulator-boot-on;
56 regulator-always-on;
57 };
58
59 /* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */
60 p12v_1: regulator-p12v-1 {
61 compatible = "regulator-fixed";
62 regulator-name = "P12V_1";
63 regulator-min-microvolt = <12000000>;
64 regulator-max-microvolt = <12000000>;
65 vin-supply = <&main_12v>;
66
67 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
68 enable-active-high;
69 regulator-boot-on;
70 regulator-always-on;
71 };
72
73 sound {
74 model = "ODROID-HC4";
75 };
76 };
77
78 &cpu_thermal {
79 trips {
80 cpu_active: cpu-active {
81 temperature = <60000>; /* millicelsius */
82 hysteresis = <2000>; /* millicelsius */
83 type = "active";
84 };
85 };
86
87 cooling-maps {
88 map {
89 trip = <&cpu_active>;
90 cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
91 };
92 };
93 };
94
95 &ir {
96 linux,rc-map-name = "rc-odroid";
97 };
98
99 &i2c2 {
100 status = "okay";
101 pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>;
102 pinctrl-names = "default";
103
104 rtc: rtc@51 {
105 status = "okay";
106 compatible = "nxp,pcf8563";
107 reg = <0x51>;
108 wakeup-source;
109 };
110 };
111
112 &pcie {
113 status = "okay";
114 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
115 };
116
117 &pwm_cd {
118 status = "okay";
119 pinctrl-names = "default";
120 pinctrl-0 = <&pwm_d_x6_pins>;
121 };
122
123 &sd_emmc_c {
124 status = "disabled";
125 };
126
127 &spifc {
128 status = "okay";
129 pinctrl-0 = <&nor_pins>;
130 pinctrl-names = "default";
131
132 flash@0 {
133 #address-cells = <1>;
134 #size-cells = <1>;
135 compatible = "jedec,spi-nor";
136 reg = <0>;
137 spi-max-frequency = <104000000>;
138 };
139 };
140
141 &usb {
142 phys = <&usb2_phy0>, <&usb2_phy1>;
143 phy-names = "usb2-phy0", "usb2-phy1";
144 };