Devicetree
 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 1/7] ARM: dts: helios4: fix board revision GPIO polarity
Date: Wed, 25 Nov 2026 18:38:50 -0800	[thread overview]
Message-ID: <20261126023856.767961-2-rosenp@gmail.com> (raw)
In-Reply-To: <20261126023856.767961-1-rosenp@gmail.com>

The board revision is strapped on PCA9655 I/O0_0 and I/O0_1 with plain
resistors, so a strap pulled to 3V3 reads as 1:

  R1.1: I/O0_0 = 0 (R67 pull-down), I/O0_1 = 0 (R66 pull-down)
  R1.2: I/O0_0 = 1 (R110 pull-up, R67 not fitted), I/O0_1 = 0 (R66)

The hogs describe both lines as GPIO_ACTIVE_LOW, so the logical values
are inverted: R1.1 reports 3 and R1.2 reports 2. Describe them as
active high so the logical value matches the strap.

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

diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index 9c106633b2b9..965e9972c9d6 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -181,13 +181,13 @@ expander0: gpio-expander@20 {
 
 					board-rev-bit-0-hog {
 						gpio-hog;
-						gpios = <0 GPIO_ACTIVE_LOW>;
+						gpios = <0 GPIO_ACTIVE_HIGH>;
 						input;
 						line-name = "board-rev-0";
 					};
 					board-rev-bit-1-hog {
 						gpio-hog;
-						gpios = <1 GPIO_ACTIVE_LOW>;
+						gpios = <1 GPIO_ACTIVE_HIGH>;
 						input;
 						line-name = "board-rev-1";
 					};
-- 
2.56.1


  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 ` Rosen Penev [this message]
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 ` [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-2-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