37 lines
658 B
Plaintext
37 lines
658 B
Plaintext
#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
|
|
#include <dt-bindings/pinctrl/esp32-pinctrl.h>
|
|
#include <zephyr/dt-bindings/pinctrl/esp32-gpio-sigmap.h>
|
|
|
|
&pinctrl {
|
|
uart0_default: uart0_default {
|
|
group1 {
|
|
pinmux = <UART0_TX_GPIO1>;
|
|
output-high;
|
|
};
|
|
group2 {
|
|
pinmux = <UART0_RX_GPIO3>;
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
|
|
i2c0_default: i2c0_default {
|
|
group1 {
|
|
pinmux = <I2C0_SDA_GPIO32>,
|
|
<I2C0_SCL_GPIO33>;
|
|
bias-pull-up;
|
|
drive-open-drain;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
spi2_default: spi2_default {
|
|
group1 {
|
|
pinmux = <SPIM2_SCLK_GPIO16>,
|
|
<SPIM2_CSEL_GPIO17>;
|
|
};
|
|
group2 {
|
|
pinmux = <SPIM2_MOSI_GPIO4>;
|
|
};
|
|
};
|
|
};
|