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 2/7] ARM: dts: helios4: use a level interrupt for the GPIO expander
Date: Wed, 25 Nov 2026 18:38:51 -0800	[thread overview]
Message-ID: <20261126023856.767961-3-rosenp@gmail.com> (raw)
In-Reply-To: <20261126023856.767961-1-rosenp@gmail.com>

The PCA9655 INT output is open-drain and active low (pulled up by R60
on MPP23). It stays asserted until the input port registers are read,
and stays low as long as any input differs from its last read value.

With a falling-edge trigger, an input that changes while INT is
already asserted produces no new edge. If the handler's read races
with such a change, INT never deasserts and no further interrupts are
delivered from the expander. Use a level-low trigger, as the chip's
INT semantics require.

Fixes: ced8025b569e ("ARM: dts: armada388-helios4")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 arch/arm/boot/dts/marvell/armada-388-helios4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index 965e9972c9d6..b87e3f8fd12d 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -175,7 +175,7 @@ expander0: gpio-expander@20 {
 					pinctrl-names = "default";
 					pinctrl-0 = <&pca0_pins>;
 					interrupt-parent = <&gpio0>;
-					interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
+					interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
 
-- 
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 ` Rosen Penev [this message]
2026-11-26  2:38 ` [PATCH 3/7] ARM: dts: helios4: drop the unconnected EHCI controller Rosen Penev
2026-11-26  2:38 ` [PATCH 4/7] ARM: dts: helios4: describe the fan tachometer inputs Rosen Penev
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-3-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