Skip to content

Commit

Permalink
ayufan: dts: rockpro64: enable pwm-fan
Browse files Browse the repository at this point in the history
Change-Id: I4cfcf71ed9e03c6cb35edecaef87608790629e51
  • Loading branch information
ayufan committed Jul 30, 2018
1 parent a1e4c5b commit d9bc736
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,15 @@
};
};

fan0: pwm-fan {
compatible = "pwm-fan";
pwms = <&pwm1 0 10000 0>;
cooling-min-state = <0>;
cooling-max-state = <3>;
#cooling-cells = <2>;
cooling-levels = <0 102 170 230>;
};

rk_key: rockchip-key {
compatible = "rockchip,key";
status = "okay";
Expand Down Expand Up @@ -645,6 +654,24 @@
temperature = <105000>;
};

&cooling_maps {
map3 {
trip = <&threshold>;
cooling-device = <&fan0 0 1>;
contribution = <4096>;
};
map4 {
trip = <&target>;
cooling-device = <&fan0 1 2>;
contribution = <4096>;
};
map5 {
trip = <&soc_crit>;
cooling-device = <&fan0 2 3>;
contribution = <4096>;
};
};

&tcphy0 {
extcon = <&fusb0>;
status = "okay";
Expand Down Expand Up @@ -735,6 +762,11 @@
status = "okay";
};

&pwm1 {
status = "okay";
pinctrl-names = "active";
};

&pwm2 {
status = "okay";
pinctrl-names = "active";
Expand Down

0 comments on commit d9bc736

Please sign in to comment.