1/* 2 * Copyright (c) 2024 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/esp32s2-pinctrl.h> 9#include <zephyr/dt-bindings/pinctrl/esp32s2-gpio-sigmap.h> 10 11&pinctrl { 12 13 uart0_default: uart0_default { 14 group1 { 15 pinmux = <UART0_TX_GPIO43>; 16 output-high; 17 }; 18 group2 { 19 pinmux = <UART0_RX_GPIO44>; 20 bias-pull-up; 21 }; 22 }; 23 24 spim2_default: spim2_default { 25 group1 { 26 pinmux = <SPIM2_MISO_GPIO13>, 27 <SPIM2_SCLK_GPIO12>, 28 <SPIM2_CSEL_GPIO10>; 29 }; 30 group2 { 31 pinmux = <SPIM2_MOSI_GPIO11>; 32 output-low; 33 }; 34 }; 35 36 spim3_default: spim3_default { 37 group1 { 38 pinmux = <SPIM3_MISO_GPIO37>, 39 <SPIM3_SCLK_GPIO36>, 40 <SPIM3_CSEL_GPIO34>; 41 }; 42 group2 { 43 pinmux = <SPIM3_MOSI_GPIO35>; 44 output-low; 45 }; 46 }; 47 48 i2c0_default: i2c0_default { 49 group1 { 50 pinmux = <I2C0_SDA_GPIO8>, 51 <I2C0_SCL_GPIO9>; 52 bias-pull-up; 53 drive-open-drain; 54 output-high; 55 }; 56 }; 57 58 i2c1_default: i2c1_default { 59 group1 { 60 pinmux = <I2C1_SDA_GPIO3>, 61 <I2C1_SCL_GPIO4>; 62 bias-pull-up; 63 drive-open-drain; 64 output-high; 65 }; 66 }; 67 68}; 69