1/* 2 * Copyright (c) 2024 Zhang Xingtao <zhxt@live.cn> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h> 8#include <zephyr/dt-bindings/pinctrl/esp32s3-pinctrl.h> 9#include <zephyr/dt-bindings/pinctrl/esp32s3-gpio-sigmap.h> 10 11&pinctrl { 12 uart0_default: uart0_default { 13 group1 { 14 pinmux = <UART0_TX_GPIO43>; 15 output-high; 16 }; 17 group2 { 18 pinmux = <UART0_RX_GPIO44>; 19 bias-pull-up; 20 }; 21 }; 22 23 uart1_default: uart1_default { 24 group1 { 25 pinmux = <UART1_TX_GPIO17>; 26 output-high; 27 }; 28 group2 { 29 pinmux = <UART1_RX_GPIO18>; 30 bias-pull-up; 31 }; 32 }; 33 34 uart2_default: uart2_default { 35 group1 { 36 pinmux = <UART2_TX_GPIO2>; 37 output-high; 38 }; 39 group2 { 40 pinmux = <UART2_RX_GPIO1>; 41 bias-pull-up; 42 }; 43 }; 44 45 spim2_default: spim2_default { 46 group1 { 47 pinmux = <SPIM2_MISO_GPIO35>, 48 <SPIM2_SCLK_GPIO36>; 49 }; 50 group2 { 51 pinmux = <SPIM2_MOSI_GPIO37>; 52 output-low; 53 }; 54 }; 55 56 i2c0_default: i2c0_default { 57 group1 { 58 pinmux = <I2C0_SDA_GPIO12>, 59 <I2C0_SCL_GPIO11>; 60 bias-pull-up; 61 drive-open-drain; 62 output-high; 63 }; 64 }; 65 66 i2c1_default: i2c1_default { 67 group1 { 68 pinmux = <I2C1_SCL_GPIO1>, 69 <I2C1_SDA_GPIO2>; 70 bias-pull-up; 71 drive-open-drain; 72 output-high; 73 }; 74 }; 75 76 twai_default: twai_default { 77 group1 { 78 pinmux = <TWAI_TX_GPIO7>, 79 <TWAI_RX_GPIO6>; 80 }; 81 }; 82}; 83