From: Sebastian Reichel Date: Mon, 10 Jul 2023 16:52:28 +0000 (+0200) Subject: arm64: dts: rockchip: add fan support to rock-5a X-Git-Tag: v6.6.17~4066^2~9^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd4464ecced6f07b0e62f67752928d1424883dee;p=platform%2Fkernel%2Flinux-rpi.git arm64: dts: rockchip: add fan support to rock-5a Add the necessary DT changes for the Rock 5A board to enable support for the PWM controlled heat sink fan. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20230710165228.105983-14-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner --- diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index deb87b9..6389cc4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -47,6 +47,14 @@ }; }; + fan: pwm-fan { + compatible = "pwm-fan"; + cooling-levels = <0 95 145 195 255>; + fan-supply = <&vcc_5v0>; + pwms = <&pwm3 0 50000 0>; + #cooling-cells = <2>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -286,6 +294,12 @@ }; }; +&pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm3m1_pins>; + status = "okay"; +}; + &saradc { vref-supply = <&avcc_1v8_s0>; status = "okay";