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:
parent
4986747156
commit
47662b1c59
2 changed files with 16 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue