1/* 2 * Copyright 2022 Google LLC 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/esp32c3-pinctrl.h> 9#include <zephyr/dt-bindings/pinctrl/esp32c3-gpio-sigmap.h> 10 11&pinctrl { 12 uart0_default: uart0_default { 13 group1 { 14 pinmux = <UART0_TX_GPIO21>; 15 output-high; 16 }; 17 group2 { 18 pinmux = <UART0_RX_GPIO20>; 19 bias-pull-up; 20 }; 21 }; 22 23 spim2_default: spim2_default { 24 group1 { 25 pinmux = <SPIM2_MISO_GPIO9>, 26 <SPIM2_SCLK_GPIO8>; 27 }; 28 group2 { 29 pinmux = <SPIM2_MOSI_GPIO10>; 30 output-low; 31 }; 32 }; 33 34 i2c0_default: i2c0_default { 35 group1 { 36 pinmux = <I2C0_SDA_GPIO6>, 37 <I2C0_SCL_GPIO7>; 38 bias-pull-up; 39 drive-open-drain; 40 output-high; 41 }; 42 }; 43 44 twai_default: twai_default { 45 group1 { 46 pinmux = <TWAI_TX_GPIO2>, 47 <TWAI_RX_GPIO3>; 48 }; 49 }; 50}; 51