From: Ryan Leung Date: Sat, 25 Jul 2026 16:35:43 +0000 (+0800) Subject: mediatek: filogic: comfast cf-wr632ax: add fan tachometer & increase PWM period X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24314%2Fhead;p=thirdparty%2Fopenwrt.git mediatek: filogic: comfast cf-wr632ax: add fan tachometer & increase PWM period Add fan tachometer reading - 2 pulses per revolution, open drain, GPIO pin 4. Increase PWM period from 10000 ns to 40000 ns (reduce PWM frequency from 100 kHz to 25 kHz) to reduce audible friction noise. Signed-off-by: Ryan Leung Link: https://github.com/openwrt/openwrt/pull/24314 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/mediatek/dts/mt7981b-comfast-cf-wr632ax-common.dtsi b/target/linux/mediatek/dts/mt7981b-comfast-cf-wr632ax-common.dtsi index b418c15e7eb..7a926d90f62 100644 --- a/target/linux/mediatek/dts/mt7981b-comfast-cf-wr632ax-common.dtsi +++ b/target/linux/mediatek/dts/mt7981b-comfast-cf-wr632ax-common.dtsi @@ -80,7 +80,9 @@ }; &fan { - pwms = <&pwm 0 10000>; + interrupts-extended = <&pio 4 IRQ_TYPE_EDGE_FALLING>; + pulses-per-revolution = <2>; + pwms = <&pwm 0 40000>; status = "okay"; };