Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
arm64: dts: rock 3a: add pwm-fan
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Wang <[email protected]>
  • Loading branch information
Ken Wang authored and Ken-Vamrs committed Jul 20, 2023
1 parent 1eaf884 commit bec78cb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -597,6 +604,12 @@
vccio7-supply = <&vcc_3v3>;
};

&pwm8 {
pinctrl-names = "active";
pinctrl-0 = <&pwm8m0_pins>;
status = "okay";
};

&rk_rga {
status = "okay";
};
Expand Down Expand Up @@ -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";
};
Expand Down

0 comments on commit bec78cb

Please sign in to comment.