From ec8f8db38e926d0c81790b8594d11bf74d8769c9 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Sun, 26 Jul 2026 00:35:43 +0800 Subject: [PATCH] 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 --- .../linux/mediatek/dts/mt7981b-comfast-cf-wr632ax-common.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; }; -- 2.47.3