Skip to content

Commit

Permalink
devicetree: Enable GPIO bus recovery for i2c2
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSworks committed Aug 19, 2024
1 parent ce8864f commit 234926b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@
vcc-pf-supply = <&reg_3v3>;
vcc-pg-supply = <&reg_3v3>;

gpio_pe12_pins: gpio-pe12-pins {
pins = "PE12", "PE13";
function = "gpio_out";
drive-strength = <10>;
};

i2c2_pe12_pins: i2c2-pe12-pins {
pins = "PE12", "PE13";
function = "i2c2";
Expand Down Expand Up @@ -205,8 +211,11 @@
&i2c2 {
status = "okay";

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

clock-frequency = <100000>;

Expand Down

0 comments on commit 234926b

Please sign in to comment.