mediatek: filogic: set correct PWM clock and clean thermal zone
authorDaniel Golle <daniel@makrotopia.org>
Sun, 9 Oct 2022 15:34:35 +0000 (16:34 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 9 Oct 2022 15:41:16 +0000 (16:41 +0100)
commit88eae0f0366d483dad77e5e4e9cdb02c99523e69
treeb5c9a92d7b2e05255237d59facfa08a517ec3d9b
parent629f2de1a772bbfc6bbc37a3aacb67805dc9fb39
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 <daniel@makrotopia.org>
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
target/linux/mediatek/patches-5.15/804-pwm-add-mt7986-support.patch