2022-09-05 18:12:52 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 AVSystem Sławomir Wolf Sp.j. (AVSystem)
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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_tx_gpio1: uart0_tx_gpio1 {
|
|
|
|
pinmux = <UART0_TX_GPIO1>;
|
2023-05-11 10:19:02 +08:00
|
|
|
output-high;
|
2022-09-05 18:12:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart0_rx_gpio3: uart0_rx_gpio3 {
|
|
|
|
pinmux = <UART0_RX_GPIO3>;
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
|
|
|
|
spim2_miso_gpio12: spim2_miso_gpio12 {
|
|
|
|
pinmux = <SPIM2_MISO_GPIO12>;
|
|
|
|
};
|
|
|
|
|
|
|
|
spim2_mosi_gpio11: spim2_mosi_gpio11 {
|
|
|
|
pinmux = <SPIM2_MOSI_GPIO11>;
|
|
|
|
output-low;
|
|
|
|
};
|
|
|
|
|
|
|
|
spim2_sclk_gpio14: spim2_sclk_gpio14 {
|
|
|
|
pinmux = <SPIM2_SCLK_GPIO14>;
|
|
|
|
};
|
|
|
|
|
|
|
|
spim2_csel_gpio16: spim2_csel_gpio16 {
|
|
|
|
pinmux = <SPIM2_CSEL_GPIO16>;
|
|
|
|
};
|
|
|
|
|
2024-04-25 05:59:45 +08:00
|
|
|
spim3_default: spim3_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <SPIM3_MISO_GPIO36>,
|
|
|
|
<SPIM3_SCLK_GPIO13>,
|
|
|
|
<SPIM3_CSEL_GPIO5>;
|
|
|
|
};
|
|
|
|
group2 {
|
|
|
|
pinmux = <SPIM3_MOSI_GPIO15>;
|
|
|
|
output-low;
|
|
|
|
};
|
2022-09-05 18:12:52 +08:00
|
|
|
};
|
|
|
|
|
2024-04-20 22:45:55 +08:00
|
|
|
i2c0_default: i2c0_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <I2C0_SDA_GPIO21>,
|
|
|
|
<I2C0_SCL_GPIO22>;
|
|
|
|
bias-pull-up;
|
|
|
|
drive-open-drain;
|
|
|
|
output-high;
|
|
|
|
};
|
2022-09-05 18:12:52 +08:00
|
|
|
};
|
|
|
|
};
|