Skip to content

Commit

Permalink
arm64: dts: make pwm-fan work on r4
Browse files Browse the repository at this point in the history
fix bind error because of zero-index cooling-points add new fan speed setting

[    5.080681] thermal_sys: Failed to bind 'cpu-thermal' with 'pwm-fan': -22
  • Loading branch information
frank-w committed Apr 27, 2024
1 parent da243a6 commit 240c11c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@
status = "okay";
};

&pwm {
status = "okay";
};

&fan {
pwms = <&pwm 0 50000>;
status = "okay";
};

&ssusb1 {
status = "okay";
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/mediatek/mt7988a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,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";
Expand Down

0 comments on commit 240c11c

Please sign in to comment.