Skip to content

Commit

Permalink
arm64: dts: rock 5b: add pwm fan support
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Wang <[email protected]>
  • Loading branch information
Ken-Vamrs authored and RadxaStephen committed Jul 3, 2023
1 parent bd64a19 commit 7a18a8a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@

/delete-node/ chosen;

fan0: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
cooling-levels = <0 64 128 192 255>;
pwms = <&pwm1 0 10000 0>;
};

vcc12v_dcin: vcc12v-dcin {
compatible = "regulator-fixed";
regulator-name = "vcc12v_dcin";
Expand Down Expand Up @@ -949,6 +956,28 @@
status = "okay";
};

&threshold {
temperature = <60000>;
};

&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>;
};
};
};

&i2c6 {
status = "okay";

Expand Down

0 comments on commit 7a18a8a

Please sign in to comment.