boards: esp32: dts: i2c: add default I2C pinctrl states

Through the inclusion of pinctrl-[0/name] properties to
ESP32's board I2C nodes.

Also removes the i2c1 node, which currently is not being
used by any sample code or test case.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2022-02-10 11:13:36 -03:00 committed by Carles Cufí
commit 47662b1c59
2 changed files with 16 additions and 6 deletions

View file

@ -71,4 +71,18 @@
pinmux = <SPIM3_CSEL_GPIO5>;
};
i2c0_sda_gpio21: i2c0_sda_gpio21 {
pinmux = <I2C0_SDA_GPIO21>;
bias-pull-up;
drive-open-drain;
output-high;
};
i2c0_scl_gpio22: i2c0_scl_gpio22 {
pinmux = <I2C0_SCL_GPIO22>;
bias-pull-up;
drive-open-drain;
output-high;
};
};

View file

@ -65,12 +65,8 @@
clock-frequency = <I2C_BITRATE_STANDARD>;
sda-pin = <21>;
scl-pin = <22>;
};
&i2c1 {
clock-frequency = <I2C_BITRATE_STANDARD>;
sda-pin = <18>;
scl-pin = <5>;
pinctrl-0 = <&i2c0_sda_gpio21 &i2c0_scl_gpio22>;
pinctrl-names = "default";
};
&spi2 {