2022-09-20 15:42:54 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 Grant Ramsay <grant.ramsay@hotmail.com>
|
|
|
|
*
|
|
|
|
* 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_default: uart0_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <UART0_TX_GPIO1>;
|
2023-05-11 10:19:02 +08:00
|
|
|
output-high;
|
2022-09-20 15:42:54 +08:00
|
|
|
};
|
|
|
|
group2 {
|
|
|
|
pinmux = <UART0_RX_GPIO3>;
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
spim2_default: spim2_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <SPIM2_MISO_GPIO12>,
|
|
|
|
<SPIM2_SCLK_GPIO14>,
|
|
|
|
<SPIM2_CSEL_GPIO15>;
|
|
|
|
};
|
|
|
|
group2 {
|
|
|
|
pinmux = <SPIM2_MOSI_GPIO13>;
|
|
|
|
output-low;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-20 15:53:10 +08:00
|
|
|
mdio_default: mdio_default {
|
|
|
|
group1 {
|
|
|
|
pinmux = <SMI_MDC_GPIO23>,
|
|
|
|
<SMI_MDIO_GPIO18>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-20 15:42:54 +08:00
|
|
|
};
|