mediatek: fix PWM fan on BPi-R4 for 6.1 kernel

This commit is contained in:
coolsnowwolf 2024-07-04 02:51:44 +08:00
parent c672c2da4e
commit df4e307b30
2 changed files with 11 additions and 2 deletions

View File

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

View File

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