Skip to content

Commit 0e8af7e

Browse files
committed
devicetree: Enable GPIO bus recovery for i2c2
1 parent ce8864f commit 0e8af7e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi

+10-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@
122122
vcc-pf-supply = <&reg_3v3>;
123123
vcc-pg-supply = <&reg_3v3>;
124124

125+
gpio_pe12_pins: gpio-pe12-pins {
126+
pins = "PE12", "PE13";
127+
function = "gpio";
128+
drive-strength = <10>;
129+
};
130+
125131
i2c2_pe12_pins: i2c2-pe12-pins {
126132
pins = "PE12", "PE13";
127133
function = "i2c2";
@@ -205,8 +211,11 @@
205211
&i2c2 {
206212
status = "okay";
207213

208-
pinctrl-names = "default";
214+
pinctrl-names = "default", "gpio";
209215
pinctrl-0 = <&i2c2_pe12_pins>;
216+
pinctrl-1 = <&gpio_pe12_pins>;
217+
scl-gpios = <&pio 4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE12 */
218+
sda-gpios = <&pio 4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PE13 */
210219

211220
clock-frequency = <100000>;
212221

0 commit comments

Comments
 (0)