Skip to content

Commit f36bb17

Browse files
cristiccmmind
authored andcommitted
arm64: dts: rockchip: Add pwm-fan to rk3588-rock-5b
Add the necessary DT changes for the Rock 5B board to enable support for the PWM controlled heat sink fan. Signed-off-by: Cristian Ciocaltea <[email protected]> Reviewed-by: Christopher Obbard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 1e9c240 commit f36bb17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
stdout-path = "serial2:1500000n8";
1818
};
1919

20+
fan: pwm-fan {
21+
compatible = "pwm-fan";
22+
cooling-levels = <0 95 145 195 255>;
23+
fan-supply = <&vcc5v0_sys>;
24+
pwms = <&pwm1 0 50000 0>;
25+
#cooling-cells = <2>;
26+
};
27+
2028
vcc5v0_sys: vcc5v0-sys-regulator {
2129
compatible = "regulator-fixed";
2230
regulator-name = "vcc5v0_sys";
@@ -52,6 +60,10 @@
5260
};
5361
};
5462

63+
&pwm1 {
64+
status = "okay";
65+
};
66+
5567
&sdhci {
5668
bus-width = <8>;
5769
no-sdio;

0 commit comments

Comments
 (0)