Skip to content

Commit

Permalink
mediatek: filogic: bpi-r3-mini: Fix pwm-fan config
Browse files Browse the repository at this point in the history
This patch did multiple modifications on pwm-fan related config for
Banana Pi R3-Mini.
1. Remove suffix zero on pwm-fan's pwms. [1]
2. Add "map-" prefix for cooling-maps. [2]
3. Change cooling-levels for pwm-fan to make sure the fan would start
spining when using Sinovoip's official case.
4. Change cooling-device level config to follow common implementation.

Signed-off-by: Shengyu Qu <[email protected]>
  • Loading branch information
Headcrabed authored and rsalvaterra committed Sep 27, 2024
1 parent 998f56b commit 51f4c4b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
fan: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
cooling-levels = <255 128 80 0>;
pwms = <&pwm 0 10000 0>;
cooling-levels = <255 175 80 0>;
pwms = <&pwm 0 10000>;
status = "okay";
};

Expand Down Expand Up @@ -121,18 +121,18 @@

&cpu_thermal {
cooling-maps {
cpu-active-low {
cooling-device = <&fan 1 1>;
map-cpu-active-low {
cooling-device = <&fan 0 1>;
trip = <&cpu_trip_active_low>;
};

cpu-active-med {
cooling-device = <&fan 2 2>;
map-cpu-active-med {
cooling-device = <&fan 1 2>;
trip = <&cpu_trip_active_med>;
};

cpu-active-high {
cooling-device = <&fan 3 3>;
map-cpu-active-high {
cooling-device = <&fan 2 3>;
trip = <&cpu_trip_active_high>;
};
};
Expand Down

0 comments on commit 51f4c4b

Please sign in to comment.