[PATCH 1/7] ARM: dts: helios4: fix board revision GPIO polarity

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


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




More information about the linux-arm-kernel mailing list