diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 32d6b3018ccc23..1da13900fb6757 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -18,6 +18,13 @@ model = "Radxa ROCK3 Model A"; compatible = "radxa,rock-3a", "rockchip,rk3568"; + fan0: pwm-fan { + compatible = "pwm-fan"; + #cooling-cells = <2>; + cooling-levels = <0 64 128 192 255>; + pwms = <&pwm8 0 10000 0>; + }; + fiq_debugger: fiq-debugger { compatible = "rockchip,fiq-debugger"; rockchip,serial-id = <2>; @@ -597,6 +604,12 @@ vccio7-supply = <&vcc_3v3>; }; +&pwm8 { + pinctrl-names = "active"; + pinctrl-0 = <&pwm8m0_pins>; + status = "okay"; +}; + &rk_rga { status = "okay"; }; @@ -671,6 +684,28 @@ status = "okay"; }; +&soc_thermal { + sustainable-power = <5000>; /* milliwatts */ + cooling-maps { + map3 { + trip = <&target>; + cooling-device = + <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <8192>; + }; + map4 { + trip = <&threshold>; + cooling-device = + <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <8192>; + }; + }; +}; + +&threshold { + temperature = <60000>; +}; + &tsadc { status = "okay"; };