Skip to content

Commit

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

[    5.080681] thermal_sys: Failed to bind 'cpu-thermal' with 'pwm-fan': -22

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
  • Loading branch information
frank-w committed Sep 23, 2024
1 parent f809c5b commit 4c45582
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 @@ -318,6 +318,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 @@ -121,8 +121,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 4c45582

Please sign in to comment.