From 88eae0f0366d483dad77e5e4e9cdb02c99523e69 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 9 Oct 2022 16:34:35 +0100 Subject: mediatek: filogic: set correct PWM clock and clean thermal zone * set correct clocks for PWM to work. * MT7986 PWM does have the 26MHz-clock-select, set that in patch * drop useless 'passive' trip point in thermal zone * extend pwm-fan to have 3 active operating points * set reasonable trip points in thermal zone * invert pwm-fan operating points and set shorter period to allow less noisy operation of the PWM fan of the BPi-R3. Signed-off-by: Daniel Golle --- target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target/linux/mediatek/dts') diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts index 37588e2ac40..8e47cb85790 100644 --- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts +++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts @@ -447,7 +447,8 @@ }; &fan { - pwms = <&pwm 0 500000 0>; + pwms = <&pwm 0 10000 0>; + cooling-levels = <255 96 52 0>; status = "okay"; }; -- cgit v1.2.3