Skip to contentSkip to conversation

ARM: dts: at91: Configure SCL gpio of i2c2 node as open drain

PATCH In review Codrin Ciubotariu 2 participants 2 messages May 15, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: at91: Configure SCL gpio of i2c2 node as open drain

The SCL gpio pin of i2c2 node used for recovery needs to be configured as open drain.

Fixes 455fec938bbb ("ARM: dts: at91: sama5d2: add i2c gpio pinctrl")
---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -1
index 5846720fc9dc..851b8587068b 100644
@@ -344,7 +344,7 @@ i2c2: i2c@600 {
 					pinctrl-0 = <&pinctrl_flx0_default>;
 					pinctrl-1 = <&pinctrl_i2c2_gpio>;
 					sda-gpios = <&pioA PIN_PB28 GPIO_ACTIVE_HIGH>;
-					scl-gpios = <&pioA PIN_PB29 GPIO_ACTIVE_HIGH>;
+					scl-gpios = <&pioA PIN_PB29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 					i2c-sda-hold-time-ns = <350>;
 					i2c-analog-filter;
 					i2c-digital-filter;
Signature · 1 line
2.25.1
#1 lore raw
Quoted 9 lines · Codrin Ciubotariu

The SCL gpio pin of i2c2 node used for recovery needs to be configured as open drain.

Fixes 455fec938bbb ("ARM: dts: at91: sama5d2: add i2c gpio pinctrl")
---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Squashed in the previous one, thanks.

Quoted 16 lines
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -1
index 5846720fc9dc..851b8587068b 100644
@@ -344,7 +344,7 @@ i2c2: i2c@600 {
 					pinctrl-0 = <&pinctrl_flx0_default>;
 					pinctrl-1 = <&pinctrl_i2c2_gpio>;
 					sda-gpios = <&pioA PIN_PB28 GPIO_ACTIVE_HIGH>;
-					scl-gpios = <&pioA PIN_PB29 GPIO_ACTIVE_HIGH>;
+					scl-gpios = <&pioA PIN_PB29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 					i2c-sda-hold-time-ns = <350>;
 					i2c-analog-filter;
 					i2c-digital-filter;
Signature · 1 line
2.25.1
Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com