1/* 2 * Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h> 8#include <dt-bindings/pinctrl/esp32-pinctrl.h> 9#include <zephyr/dt-bindings/pinctrl/esp32-gpio-sigmap.h> 10 11&pinctrl { 12 13 uart0_default: uart0_default { 14 group1 { 15 pinmux = <UART0_TX_GPIO1>; 16 output-high; 17 }; 18 group2 { 19 pinmux = <UART0_RX_GPIO3>; 20 bias-pull-up; 21 }; 22 }; 23 24 uart1_default: uart1_default { 25 group1 { 26 pinmux = <UART1_TX_GPIO10>; 27 }; 28 group2 { 29 pinmux = <UART1_RX_GPIO9>; 30 bias-pull-up; 31 }; 32 }; 33 34 uart2_default: uart2_default { 35 group1 { 36 pinmux = <UART2_TX_GPIO17>; 37 }; 38 group2 { 39 pinmux = <UART2_RX_GPIO16>; 40 bias-pull-up; 41 }; 42 }; 43 44 spim2_default: spim2_default { 45 group1 { 46 pinmux = <SPIM2_MISO_GPIO12>, 47 <SPIM2_SCLK_GPIO14>, 48 <SPIM2_CSEL_GPIO15>; 49 }; 50 group2 { 51 pinmux = <SPIM2_MOSI_GPIO13>; 52 output-low; 53 }; 54 }; 55 56 spim3_default: spim3_default { 57 group1 { 58 pinmux = <SPIM3_MISO_GPIO19>, 59 <SPIM3_SCLK_GPIO18>, 60 <SPIM3_CSEL_GPIO5>; 61 }; 62 group2 { 63 pinmux = <SPIM3_MOSI_GPIO23>; 64 output-low; 65 }; 66 }; 67 68 i2c0_default: i2c0_default { 69 group1 { 70 pinmux = <I2C0_SDA_GPIO21>, 71 <I2C0_SCL_GPIO22>; 72 bias-pull-up; 73 drive-open-drain; 74 output-high; 75 }; 76 }; 77}; 78 79