diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts index 7a0d00e1da1037..9aa2672368f5ba 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts @@ -82,6 +82,13 @@ press-threshold-microvolt = <2000>; }; }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + #cooling-cells = <2>; + cooling-levels = <0 64 128 192 255>; + pwms = <&pwm0 0 10000 0>; + }; }; &gpio_leds { @@ -172,6 +179,45 @@ status = "okay"; }; +&pwm0 { + pinctrl-0 = <&pwm0m1_pins>; + status = "okay"; +}; + +&i2c2 { + status = "okay"; + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + status = "okay"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + }; +}; + +&soc_thermal { + sustainable-power = <5000>; /* milliwatts */ + cooling-maps { + map2 { + trip = <&target>; + cooling-device = + <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <8192>; + }; + map3 { + trip = <&threshold>; + cooling-device = + <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <8192>; + }; + }; +}; + +&threshold { + temperature = <60000>; +}; + &pinctrl { headphone { hp_det: hp-det {