Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp@gmail.com>
To: devicetree@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
	Gregory Clement <gregory.clement@bootlin.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dennis Gilmore <dennis@ausil.us>,
	linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell
	Kirkwood and Armada 370, 375, 38x,...)
Subject: [PATCH 4/7] ARM: dts: helios4: describe the fan tachometer inputs
Date: Wed, 25 Nov 2026 18:38:53 -0800	[thread overview]
Message-ID: <20261126023856.767961-5-rosenp@gmail.com> (raw)
In-Reply-To: <20261126023856.767961-1-rosenp@gmail.com>

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@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



  parent reply	other threads:[~2026-11-26  2:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  2:38 [PATCH 0/7] ARM: dts: helios4: fixes and cleanups Rosen Penev
2026-11-26  2:38 ` [PATCH 1/7] ARM: dts: helios4: fix board revision GPIO polarity Rosen Penev
2026-11-26  2:38 ` [PATCH 2/7] ARM: dts: helios4: use a level interrupt for the GPIO expander Rosen Penev
2026-11-26  2:38 ` [PATCH 3/7] ARM: dts: helios4: drop the unconnected EHCI controller Rosen Penev
2026-11-26  2:38 ` Rosen Penev [this message]
2026-11-26  2:38 ` [PATCH 5/7] ARM: dts: helios4: use disable-wp for the microSD slot Rosen Penev
2026-11-26  2:38 ` [PATCH 6/7] ARM: dts: helios4: use hyphens in fan pinctrl node names Rosen Penev
2026-11-26  2:38 ` [PATCH 7/7] ARM: dts: helios4: describe LED color and function Rosen Penev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126023856.767961-5-rosenp@gmail.com \
    --to=rosenp@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=dennis@ausil.us \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox