Skip to content

Commit 0229d63

Browse files
committed
arm64: dts: nx4-orin-c200: enable PWM2_CH2 fan and adjust thermal maps
Signed-off-by: Mitchell Ma <[email protected]>
1 parent e16330c commit 0229d63

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

arch/arm64/boot/dts/rockchip/rk3576-radxa-nx4-orin-c200.dts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
compatible = "pwm-fan";
7171
#cooling-cells = <2>;
7272
cooling-levels = <0 64 128 192 255>;
73-
pwms = <&pwm2_8ch_0 0 60000 0>;
73+
pwms = <&pwm2_8ch_2 0 60000 0>;
7474
};
7575

7676
vcc_sys: vcc5v0-sys {
@@ -186,6 +186,33 @@
186186
status = "okay";
187187
};
188188

189+
&pwm2_8ch_2{
190+
pinctrl-0 = <&pwm2m3_ch2>;
191+
status = "okay";
192+
};
193+
194+
&threshold {
195+
temperature = <60000>;
196+
};
197+
198+
&little_core_thermal {
199+
sustainable-power = <5000>; /* milliwatts */
200+
cooling-maps {
201+
map3 {
202+
trip = <&target>;
203+
cooling-device =
204+
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
205+
contribution = <8192>;
206+
};
207+
map4 {
208+
trip = <&threshold>;
209+
cooling-device =
210+
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
211+
contribution = <8192>;
212+
};
213+
};
214+
};
215+
189216
&pinctrl {
190217
shutdown {
191218
shutdown_en: shutdown-en {

0 commit comments

Comments
 (0)