Skip to content

Commit 2b14d38

Browse files
cpackham-atlnzgclement
authored andcommitted
arm64: dts: marvell: 98dx25xx: use correct property for i2c gpios
Use the correct names for scl-gpios and sda-gpios so that the generic i2c recovery code will find them. While we're here set the GPIO_OPEN_DRAIN flag on the gpios. Fixes: b795fad ("arm64: dts: marvell: Add Armada 98DX2530 SoC and RD-AC5X board") Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
1 parent 1a9f978 commit 2b14d38

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
pinctrl-names = "default", "gpio";
148148
pinctrl-0 = <&i2c0_pins>;
149149
pinctrl-1 = <&i2c0_gpio>;
150-
scl_gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
151-
sda_gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
150+
scl-gpios = <&gpio0 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
151+
sda-gpios = <&gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
152152
status = "disabled";
153153
};
154154

@@ -166,8 +166,8 @@
166166
pinctrl-names = "default", "gpio";
167167
pinctrl-0 = <&i2c1_pins>;
168168
pinctrl-1 = <&i2c1_gpio>;
169-
scl_gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>;
170-
sda_gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
169+
scl-gpios = <&gpio0 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
170+
sda-gpios = <&gpio0 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
171171
status = "disabled";
172172
};
173173

0 commit comments

Comments
 (0)