mediatek: fix PWM fan on BPi-R4

Add additional PWM fan cooling step and enable fan on BPi-R4.

Suggested-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2024-05-09 22:35:47 +01:00
parent 140b48a9e9
commit 8113169cad
2 changed files with 11 additions and 2 deletions

View File

@ -297,6 +297,15 @@
status = "okay";
};
&pwm {
status = "okay";
};
&fan {
pwms = <&pwm 0 50000>;
status = "okay";
};
&ssusb1 {
status = "okay";
};

View File

@ -149,8 +149,8 @@
fan: pwm-fan {
compatible = "pwm-fan";
/* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */
cooling-levels = <0 128 255>;
/* cooling level (0, 1, 2, 3) : (0% duty, 30% duty, 50% duty, 100% duty) */
cooling-levels = <0 80 128 255>;
#cooling-cells = <2>;
#thermal-sensor-cells = <1>;
status = "disabled";