1/*
2 * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6/dts-v1/;
7
8#include <espressif/esp32s3/esp32s3_wroom_n8.dtsi>
9#include <zephyr/dt-bindings/input/input-event-codes.h>
10#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
11#include <espressif/partitions_0x0_amp.dtsi>
12#include "esp32s3_devkitc-pinctrl.dtsi"
13
14/ {
15	model = "Espressif ESP32S3-DevkitC PROCPU";
16	compatible = "espressif,esp32s3";
17
18	aliases {
19		i2c-0 = &i2c0;
20		watchdog0 = &wdt0;
21	};
22
23	chosen {
24		zephyr,sram = &sram1;
25		zephyr,console = &uart0;
26		zephyr,shell-uart = &uart0;
27		zephyr,flash = &flash0;
28		zephyr,code-partition = &slot0_partition;
29		zephyr,bt-hci = &esp32_bt_hci;
30	};
31
32	aliases {
33		uart-0 = &uart0;
34		sw0 = &button0;
35	};
36
37	buttons {
38		compatible = "gpio-keys";
39		button0: button_0 {
40			gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
41			label = "BOOT Button";
42			zephyr,code = <INPUT_KEY_0>;
43		};
44	};
45};
46
47&usb_serial {
48	status = "disabled";
49};
50
51&uart0 {
52	status = "okay";
53	current-speed = <115200>;
54	pinctrl-0 = <&uart0_default>;
55	pinctrl-names = "default";
56};
57
58&gpio0 {
59	status = "okay";
60};
61
62&gpio1 {
63	status = "okay";
64};
65
66&touch {
67	debounce-interval-ms = <30>;
68	href-microvolt = <2700000>;
69	lref-microvolt = <500000>;
70	href-atten-microvolt = <1000000>;
71	filter-mode = <ESP32_TOUCH_FILTER_MODE_IIR_16>;
72	filter-debounce-cnt = <1>;
73	filter-noise-thr = <ESP32_TOUCH_FILTER_NOISE_THR_4_8TH>;
74	filter-jitter-step = <4>;
75	filter-smooth-level = <ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2>;
76};
77
78&i2c0 {
79	clock-frequency = <I2C_BITRATE_STANDARD>;
80	pinctrl-0 = <&i2c0_default>;
81	pinctrl-names = "default";
82};
83
84&i2c1 {
85	clock-frequency = <I2C_BITRATE_STANDARD>;
86	pinctrl-0 = <&i2c1_default>;
87	pinctrl-names = "default";
88};
89
90&i2s0 {
91	pinctrl-0 = <&i2s0_default>;
92	pinctrl-names = "default";
93	status = "disabled";
94};
95
96&i2s1 {
97	pinctrl-0 = <&i2s1_default>;
98	pinctrl-names = "default";
99	status = "disabled";
100};
101
102&spi2 {
103	#address-cells = <1>;
104	#size-cells = <0>;
105	status = "okay";
106	pinctrl-0 = <&spim2_default>;
107	pinctrl-names = "default";
108};
109
110&spi3 {
111	#address-cells = <1>;
112	#size-cells = <0>;
113	status = "okay";
114	pinctrl-0 = <&spim3_default>;
115	pinctrl-names = "default";
116};
117
118&twai {
119	pinctrl-0 = <&twai_default>;
120	pinctrl-names = "default";
121};
122
123&timer0 {
124	status = "disabled";
125};
126
127&timer1 {
128	status = "disabled";
129};
130
131&timer2 {
132	status = "disabled";
133};
134
135&timer3 {
136	status = "disabled";
137};
138
139&wdt0 {
140	status = "okay";
141};
142
143&trng0 {
144	status = "okay";
145};
146
147&esp32_bt_hci {
148	status = "okay";
149};
150