[PATCH 07/15] arm64: dts: rockchip: add fan support to opi5max
Jimmy Hon
honyuenkwun at gmail.com
Sat Oct 26 02:48:23 PDT 2024
Add changes for the Orange Pi 5 Max board to enable support for the PWM
controlled heat sink fan.
Signed-off-by: Jimmy Hon <honyuenkwun at gmail.com>
---
.../boot/dts/rockchip/rk3588-orangepi-5-max.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
index 5c4390ac3f8e..03ae3564b8f4 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
@@ -20,6 +20,15 @@ chosen {
stdout-path = "serial2:1500000n8";
};
+ fan: pwm-fan {
+ compatible = "pwm-fan";
+ cooling-levels = <0 70 75 80 100>;
+ fan-supply = <&vcc5v0_sys>;
+ /* FAN_CTL_H */
+ pwms = <&pwm9 0 50000 0>;
+ #cooling-cells = <2>;
+ };
+
pwm-leds {
compatible = "pwm-leds";
@@ -233,6 +242,12 @@ &pwm5 {
status = "okay";
};
+&pwm9 {
+ pinctrl-names = "active";
+ pinctrl-0 = <&pwm9m2_pins>;
+ status = "okay";
+};
+
&saradc {
vref-supply = <&vcca_1v8_s0>;
status = "okay";
--
2.47.0
More information about the Linux-rockchip
mailing list