1/*
2 * Copyright (c) 2024 Nikola Trifunovic <nikola@trifunovic.at>
3 * Copyright (c) 2023 Benjamin Cabé <benjamin@zephyrproject.org>
4 * Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org>
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
9#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
10#include <dt-bindings/pinctrl/esp32-pinctrl.h>
11#include <zephyr/dt-bindings/pinctrl/esp32-gpio-sigmap.h>
12
13&pinctrl {
14	uart0_default: uart0_default {
15		 group1 {
16			 pinmux = <UART0_TX_GPIO1>;
17			 output-high;
18		 };
19		 group2 {
20			 pinmux = <UART0_RX_GPIO3>;
21			 bias-pull-up;
22		 };
23	 };
24
25	i2c0_default: i2c0_default {
26		group1 {
27			pinmux = <I2C0_SDA_GPIO25>,
28				 <I2C0_SCL_GPIO21>;
29			bias-pull-up;
30			drive-open-drain;
31			output-high;
32		};
33	};
34
35	i2c1_default: i2c1_default {
36		group1 {
37			pinmux = <I2C0_SDA_GPIO26>,
38				 <I2C0_SCL_GPIO32>;
39			bias-pull-up;
40			drive-open-drain;
41			output-high;
42		};
43	};
44
45	spim2_default: spim2_default {
46		group1 {
47			pinmux = <SPIM2_MISO_GPIO33>,
48				 <SPIM2_SCLK_GPIO23>,
49				 <SPIM2_CSEL_GPIO22>;
50		};
51		group2 {
52			pinmux = <SPIM2_MOSI_GPIO19>;
53			output-low;
54		};
55
56	};
57
58	/* used for SK6812 */
59	spim3_ws2812_led: spim3_ws2812_led {
60		group1 {
61			pinmux = <SPIM3_MOSI_GPIO27>;
62			output-low;
63		};
64	};
65};
66