1/* 2 * Copyright (c) 2024 Arrel Neumiller 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h> 7#include <dt-bindings/pinctrl/esp32c3-pinctrl.h> 8#include <zephyr/dt-bindings/pinctrl/esp32c3-gpio-sigmap.h> 9 10&pinctrl { 11 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_GPIO5>, 26 <SPIM2_SCLK_GPIO4>, 27 <SPIM2_CSEL_GPIO7>; 28 }; 29 group2 { 30 pinmux = <SPIM2_MOSI_GPIO6>; 31 output-low; 32 }; 33 }; 34 35 i2c0_default: i2c0_default { 36 group1 { 37 pinmux = <I2C0_SDA_GPIO9>, 38 <I2C0_SCL_GPIO10>; 39 bias-pull-up; 40 drive-open-drain; 41 output-high; 42 }; 43 }; 44}; 45