ARM: dts: marvell: armada-388: use onnn,pca9655 compatible
Subsystems (3)
PATCH v2 1/1 ARM: dts: marvell: armada-388: use onnn,pca9655 compatible
The PCA9655s on the ClearFog and Helios4 boards are register-compatible with the pca9555, and the gpio-pca953x driver has matched "onnn,pca9655" in its OF match table since
commit 6d49b3a0f351 ("gpio: pca953x: Add support for the On Semi pca9655"). OF matching is tried before the legacy I2C ID-table matching that the old comment alluded to, so the restriction no longer applies. List the real part and drop the stale comment.
The I2C client is now named "pca9655" instead of "pca9555", but the expander is otherwise identical.
---
v2: rebase so it applies
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi | 7 +------ arch/arm/boot/dts/marvell/armada-388-helios4.dts | 9 +-------- 2 files changed, 2 insertions(+), 14 deletions(-)
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +1 -6
@@ -131,12 +131,7 @@ &i2c0 { * 15-SFP_MOD_DEF0 */ expander0: gpio-expander@20 { - /* - * This is how it should be: - * compatible = "onnn,pca9655", "nxp,pca9555"; - * but you can't do this because of the way I2C works. - */ - compatible = "nxp,pca9555"; + compatible = "onnn,pca9655"; gpio-controller; #gpio-cells = <2>; reg = <0x20>;
arch/arm/boot/dts/marvell/armada-388-helios4.dts +1 -8
@@ -160,14 +160,7 @@ i2c@11000 { * 6-USB3 power */ expander0: gpio-expander@20 { - /* - * This is how it should be: - * compatible = "onnn,pca9655", - * "nxp,pca9555"; - * but you can't do this because of - * the way I2C works. - */ - compatible = "nxp,pca9555"; + compatible = "onnn,pca9655"; gpio-controller; #gpio-cells = <2>; reg = <0x20>;
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] Replacing 'nxp,pca9555' entirely with 'onnn,pca9655' removes the fallback string, breaking device…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Replacing 'nxp,pca9555' entirely with 'onnn,pca9655' removes the fallback string, breaking device tree ABI backward compatibility.
- [Low] The newly introduced compatible string 'onnn,pca9655' is not documented in the device tree bindings, which will cause a schema validation failure. --
commit c8f9a287a2365f46a814726f590cf6561513d0de
Author: Rosen Penev <[email protected]>
ARM: dts: marvell: armada-388: use onnn,pca9655 compatible
This patch updates the GPIO expander compatible string in the Armada 388 ClearFog and Helios4 device trees from nxp,pca9555 to onnn,pca9655, and removes a stale comment about I2C matching limitations.
Quoted 5 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +0
-0
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi &i2c0 { · line 134
Quoted 10 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +1
-6@@ -131,12 +131,7 @@ &i2c0 { * 15-SFP_MOD_DEF0 */ expander0: gpio-expander@20 { - /* - * This is how it should be: - * compatible = "onnn,pca9655", "nxp,pca9555"; - * but you can't do this because of the way I2C works. - */ - compatible = "nxp,pca9555"; + compatible = "onnn,pca9655";
[Severity: High]
Does replacing nxp,pca9555 entirely with onnn,pca9655 break backward compatibility for older kernels booting with this new device tree blob?
Older kernels lacking onnn,pca9655 in their OF match table might fail to probe the expander0 GPIO expander, breaking features like USB3 power and SFP modules.
Would it be safer to provide a fallback list to maintain the device tree ABI, such as: compatible = "onnn,pca9655", "nxp,pca9555"; ?
[Severity: Low]
Is the onnn,pca9655 compatible string documented in the device tree bindings?
Running make dtbs_check with schema validation enabled might fail if this string is not listed in the gpio-pca95xx bindings.
Quoted 3 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +0
-0gpio-controller; #gpio-cells = <2>; reg = <0x20>;
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 35 lines · On Sun, Sep 6, 2026 at 6:12 PM <[email protected]> wrote:
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Replacing 'nxp,pca9555' entirely with 'onnn,pca9655' removes the fallback string, breaking device tree ABI backward compatibility.
- [Low] The newly introduced compatible string 'onnn,pca9655' is not documented in the device tree bindings, which will cause a schema validation failure. --commit
c8f9a287a2365f46a814726f590cf6561513d0de
Author: Rosen Penev <[email protected]>ARM: dts: marvell: armada-388: use onnn,pca9655 compatible
This patch updates the GPIO expander compatible string in the Armada 388 ClearFog and Helios4 device trees from nxp,pca9555 to onnn,pca9655, and removes a stale comment about I2C matching limitations.
Quoted 5 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +0
-0arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi &i2c0 { · line 134
Quoted 10 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +1
-6@@ -131,12 +131,7 @@ &i2c0 { * 15-SFP_MOD_DEF0 */ expander0: gpio-expander@20 { - /* - * This is how it should be: - * compatible = "onnn,pca9655", "nxp,pca9555"; - * but you can't do this because of the way I2C works. - */ - compatible = "nxp,pca9555"; + compatible = "onnn,pca9655";[Severity: High]
Does replacing nxp,pca9555 entirely with onnn,pca9655 break backward compatibility for older kernels booting with this new device tree blob?
Quoted 6 lines
Older kernels lacking onnn,pca9655 in their OF match table might fail to probe the expander0 GPIO expander, breaking features like USB3 power and SFP modules.
Would it be safer to provide a fallback list to maintain the device tree ABI, such as: compatible = "onnn,pca9655", "nxp,pca9555"; ?
Not relevant.
Quoted 7 lines
[Severity: Low]
Is the onnn,pca9655 compatible string documented in the device tree bindings?Running make
dtbs_checkwith schema validation enabled might fail if this string is not listed in the gpio-pca95xx bindings.
I will send such a patch once this gets merged.
Quoted 9 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi &i2c0 { · line 137
Quoted 4 lines
arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +0
-0gpio-controller; #gpio-cells = <2>; reg = <0x20>;[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1