1/*
2 * Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
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	uart0_default: uart0_default {
13		group1 {
14			pinmux = <UART0_TX_GPIO1>;
15			output-high;
16		};
17		group2 {
18			pinmux = <UART0_RX_GPIO3>;
19		};
20	};
21
22	uart1_default: uart1_default {
23		group1 {
24			pinmux = <UART1_TX_GPIO4>,
25				 <UART1_RX_GPIO36>;
26		};
27	};
28
29	i2c0_default: i2c0_default {
30		group1 {
31			pinmux = <I2C0_SCL_GPIO16>,
32				 <I2C0_SDA_GPIO13>;
33			drive-open-drain;
34			output-high;
35		};
36	};
37
38	spim2_default: spim2_default {
39		group1 {
40			pinmux = <SPIM2_MISO_GPIO15>,
41				 <SPIM2_SCLK_GPIO14>,
42				 <SPIM2_CSEL_GPIO17>;
43		};
44		group2 {
45			pinmux = <SPIM2_MOSI_GPIO2>;
46			output-low;
47		};
48	};
49
50	twai_default: twai_default {
51		group1 {
52			pinmux = <TWAI_TX_GPIO5>,
53				 <TWAI_RX_GPIO35>;
54		};
55	};
56};
57