[PATCH 4/7] ARM: dts: helios4: describe the fan tachometer inputs

Rosen Penev rosenp at gmail.com
Wed Nov 25 18:38:53 PST 2026


Each 4-pin fan header has its SENSE line divided down and buffered by
an open-drain NLX2G07 (U5 for J10, U6 for J17), pulled up to 3V3 and
fed to an MPP: MPP43 for J10 and MPP48 for J17. The pinctrl groups of
both fans already mux these pins as GPIOs, but the pwm-fan nodes never
reference them, so fan speed cannot be read back.

Add the tachometer interrupts so pwm-fan exposes fanN_input. The
default of two pulses per revolution matches standard PC fans.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 arch/arm/boot/dts/marvell/armada-388-helios4.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index b86b85e9d0ab..f8ac74d7935e 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -127,6 +127,7 @@ usb-led {
 	fan1: j10-pwm {
 		compatible = "pwm-fan";
 		pwms = <&gpio1 9 40000>;	/* Target freq:25 kHz */
+		interrupts-extended = <&gpio1 11 IRQ_TYPE_EDGE_FALLING>; /* MPP43 */
 		pinctrl-names = "default";
 		pinctrl-0 = <&helios_fan1_pins>;
 	};
@@ -134,6 +135,7 @@ fan1: j10-pwm {
 	fan2: j17-pwm {
 		compatible = "pwm-fan";
 		pwms = <&gpio1 23 40000>;	/* Target freq:25 kHz */
+		interrupts-extended = <&gpio1 16 IRQ_TYPE_EDGE_FALLING>; /* MPP48 */
 		pinctrl-names = "default";
 		pinctrl-0 = <&helios_fan2_pins>;
 	};
-- 
2.56.1




More information about the linux-arm-kernel mailing list