Skip to content

Commit cabb1f3

Browse files
superna9999khilman
authored andcommitted
arm64: dts: meson-khadas-vim3: add Khadas MCU nodes
Add the Khadas MCU node with active FAN thermal nodes for all the Khadas VIM3 variants. Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b3a9e3b commit cabb1f3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,23 @@
183183
hdmi-phandle = <&hdmi_tx>;
184184
};
185185

186+
&cpu_thermal {
187+
trips {
188+
cpu_active: cpu-active {
189+
temperature = <80000>; /* millicelsius */
190+
hysteresis = <2000>; /* millicelsius */
191+
type = "active";
192+
};
193+
};
194+
195+
cooling-maps {
196+
map {
197+
trip = <&cpu_active>;
198+
cooling-device = <&khadas_mcu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
199+
};
200+
};
201+
};
202+
186203
&ext_mdio {
187204
external_phy: ethernet-phy@0 {
188205
/* Realtek RTL8211F (0x001cc916) */
@@ -222,6 +239,12 @@
222239
pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
223240
pinctrl-names = "default";
224241

242+
khadas_mcu: system-controller@18 {
243+
compatible = "khadas,mcu";
244+
reg = <0x18>;
245+
#cooling-cells = <2>;
246+
};
247+
225248
gpio_expander: gpio-controller@20 {
226249
compatible = "ti,tca6408";
227250
reg = <0x20>;

0 commit comments

Comments
 (0)