arm64: dts: rockchip: Add pwm-fan to rk3588-rock-5b
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 4 Apr 2023 17:38:07 +0000 (20:38 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 5 Apr 2023 17:14:28 +0000 (19:14 +0200)
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 <cristian.ciocaltea@collabora.com>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Link: https://lore.kernel.org/r/20230404173807.490520-3-cristian.ciocaltea@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

index e63138eb7e8dfc8bfd78d08c9fb21ed3c85c38a1..24fb5340e981e346f04bbab38c7a9d252fea81b2 100644 (file)
                stdout-path = "serial2:1500000n8";
        };
 
+       fan: pwm-fan {
+               compatible = "pwm-fan";
+               cooling-levels = <0 95 145 195 255>;
+               fan-supply = <&vcc5v0_sys>;
+               pwms = <&pwm1 0 50000 0>;
+               #cooling-cells = <2>;
+       };
+
        vcc5v0_sys: vcc5v0-sys-regulator {
                compatible = "regulator-fixed";
                regulator-name = "vcc5v0_sys";
        };
 };
 
+&pwm1 {
+       status = "okay";
+};
+
 &sdhci {
        bus-width = <8>;
        no-sdio;