2023-11-19 05:33:59 +00:00
|
|
|
#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;
|
|
|
|
};
|
|
|
|
};
|
2023-11-21 03:31:26 +00:00
|
|
|
|
|
|
|
i2c0_default: i2c0_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <I2C0_SDA_GPIO32>,
|
|
|
|
<I2C0_SDA_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>;
|
|
|
|
};
|
|
|
|
};
|
2023-11-19 05:33:59 +00:00
|
|
|
};
|