commit | 209e52d3cdb2b6692002a04f6210f8a48c72d0b9 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Thu Jun 30 11:32:57 2022 +0800 |
committer | developer <developer@mediatek.com> | Mon Jul 04 14:48:25 2022 +0800 |
tree | 5be148eb8be246c5dd0a169864992286bee603c0 | |
parent | b3ce86f3fd3e2705c1bab0c91e2a19b2ece92708 [diff] [blame] |
[][MT7986a: Fix pwm fan support and update example cooling strategies] [Description] Add pwm fan support to mt7986a example cooling strategies: over 125 : reboot 120~125 : notify to driver callback (if callback function is set) 115~120 : FAN 100% 85~115 : FAN 50% bellow 85 : FAN 0% You need to connect the 'pwm' pin of PWM FAN to 'PWM1' (GPIO22) pin on mt7986, and set 'status' properties of 'fan' node in the device tree to enable this. [Release-log] N/A Change-Id: I220756e5ac8e154251943ca5d6a0303846b40195 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6183410
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts index d22b90c..5163536 100644 --- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts +++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts
@@ -35,6 +35,11 @@ }; }; +&fan { + pwms = <&pwm 1 50000 0>; + status = "disabled"; +}; + &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm0_pin &pwm1_pin_g1>;