Skip to content

Commit 8de91c6

Browse files
committed
ayufan: dts: rockpro64: enable pwm-fan
Change-Id: I4cfcf71ed9e03c6cb35edecaef87608790629e51
1 parent 899bd96 commit 8de91c6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,15 @@
276276
};
277277
};
278278

279+
fan0: pwm-fan {
280+
compatible = "pwm-fan";
281+
pwms = <&pwm1 0 10000 0>;
282+
cooling-min-state = <0>;
283+
cooling-max-state = <3>;
284+
#cooling-cells = <2>;
285+
cooling-levels = <0 102 170 230>;
286+
};
287+
279288
rk_key: rockchip-key {
280289
compatible = "rockchip,key";
281290
status = "okay";
@@ -645,6 +654,24 @@
645654
temperature = <105000>;
646655
};
647656

657+
&cooling_maps {
658+
map3 {
659+
trip = <&threshold>;
660+
cooling-device = <&fan0 0 1>;
661+
contribution = <4096>;
662+
};
663+
map4 {
664+
trip = <&target>;
665+
cooling-device = <&fan0 1 2>;
666+
contribution = <4096>;
667+
};
668+
map5 {
669+
trip = <&soc_crit>;
670+
cooling-device = <&fan0 2 3>;
671+
contribution = <4096>;
672+
};
673+
};
674+
648675
&tcphy0 {
649676
extcon = <&fusb0>;
650677
status = "okay";
@@ -735,6 +762,11 @@
735762
status = "okay";
736763
};
737764

765+
&pwm1 {
766+
status = "okay";
767+
pinctrl-names = "active";
768+
};
769+
738770
&pwm2 {
739771
status = "okay";
740772
pinctrl-names = "active";

0 commit comments

Comments
 (0)