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_GPIO32>; 27 output-high; 28 }; 29 group2 { 30 pinmux = <UART1_RX_GPIO33>; 31 bias-pull-up; 32 }; 33 }; 34 35 spim2_default: spim2_default { 36 group1 { 37 pinmux = <SPIM2_MISO_GPIO12>, 38 <SPIM2_SCLK_GPIO14>, 39 <SPIM2_CSEL_GPIO15>; 40 }; 41 group2 { 42 pinmux = <SPIM2_MOSI_GPIO13>; 43 output-low; 44 }; 45 }; 46 47 spim3_default: spim3_default { 48 group1 { 49 pinmux = <SPIM3_MISO_GPIO25>, 50 <SPIM3_SCLK_GPIO19>, 51 <SPIM3_CSEL_GPIO22>; 52 }; 53 group2 { 54 pinmux = <SPIM3_MOSI_GPIO23>; 55 output-low; 56 }; 57 }; 58 59 i2c0_default: i2c0_default { 60 group1 { 61 pinmux = <I2C0_SDA_GPIO21>, 62 <I2C0_SCL_GPIO22>; 63 bias-pull-up; 64 drive-open-drain; 65 output-high; 66 }; 67 }; 68 69 ledc0_default: ledc0_default { 70 group1 { 71 pinmux = <LEDC_CH0_GPIO0>, 72 <LEDC_CH1_GPIO2>, 73 <LEDC_CH2_GPIO4>; 74 output-enable; 75 }; 76 }; 77 78 sdhc0_default: sdhc0_default { 79 group1 { 80 pinmux = <SDHC0_CD_GPIO21>; 81 bias-pull-up; 82 output-high; 83 }; 84 }; 85}; 86