Skip to content

Commit

Permalink
ayufan: dts: rockpro64: enable pwm-fan
Browse files Browse the repository at this point in the history
Change-Id: I465f3744c0a214bb280d4d6d966c427f0a529778
  • Loading branch information
ayufan committed Jul 30, 2018
1 parent 273edf5 commit de15d3a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
};

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

leds {
status = "okay";
compatible = "gpio-leds";
Expand Down Expand Up @@ -275,6 +284,21 @@
temperature = <100000>;
};

&cooling_maps {
map2 {
trip = <&cpu_alert0>;
cooling-device = <&fan0 0 1>;
};
map3 {
trip = <&cpu_alert1>;
cooling-device = <&fan0 1 2>;
};
map4 {
trip = <&cpu_crit>;
cooling-device = <&fan0 2 3>;
};
};

&emmc_phy {
status = "okay";
};
Expand Down Expand Up @@ -665,6 +689,10 @@
status = "okay";
};

&pwm1 {
status = "okay";
};

&pwm2 {
status = "okay";
};
Expand Down

0 comments on commit de15d3a

Please sign in to comment.