From 51f4c4b5c80928c42f808c2df8222b3ad694c7fe Mon Sep 17 00:00:00 2001 From: Shengyu Qu Date: Sat, 13 Jul 2024 03:39:16 +0800 Subject: [PATCH] mediatek: filogic: bpi-r3-mini: Fix pwm-fan config 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 --- .../dts/mt7986a-bananapi-bpi-r3-mini.dts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts index 09a557c0cb8122..69d4ed44915a13 100644 --- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts +++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts @@ -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"; }; @@ -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>; }; };