1/*
2 * Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org>
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/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	i2c0_default: i2c0_default {
24		group1 {
25			pinmux = <I2C0_SDA_GPIO13>,
26				 <I2C0_SCL_GPIO15>;
27			bias-pull-up;
28			drive-open-drain;
29			output-high;
30		};
31	};
32
33	i2c1_default: i2c1_default {
34		group1 {
35			pinmux = <I2C1_SDA_GPIO11>,
36				 <I2C1_SCL_GPIO12>;
37			bias-pull-up;
38			drive-open-drain;
39			output-high;
40		};
41	};
42
43	spim2_default: spim2_default {
44		group1 {
45			pinmux = <SPIM2_SCLK_GPIO6>,
46				 <SPIM2_CSEL_GPIO7>;
47		};
48		group2 {
49			pinmux = <SPIM2_MOSI_GPIO5>;
50			output-low;
51		};
52
53	};
54
55	spim3_default: spim3_default {
56		group1 {
57			pinmux = <SPIM3_MOSI_GPIO21>;
58			output-low;
59		};
60
61	};
62
63	ledc0_default: ledc0_default {
64		group1 {
65			pinmux = <LEDC_CH0_GPIO9>; /* lcd backlight */
66			output-enable;
67		};
68		group2 {
69			pinmux = <LEDC_CH1_GPIO3>; /* beeper */
70			output-enable;
71		};
72	};
73
74	mcpwm0_default: mcpwm0_default {
75		group1 {
76			pinmux = <MCPWM0_OUT0A_GPIO9>; /* lcd backlight */
77			output-enable;
78		};
79		group2 {
80			pinmux = <MCPWM0_OUT1A_GPIO3>;
81			output-enable;
82		};
83	};
84};
85