1/*
2 * Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6/dts-v1/;
7
8#include <espressif/esp32s3/esp32s3_mini_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_devkitm-pinctrl.dtsi"
13
14/ {
15	model = "Espressif ESP32S3-DevkitM 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&uart0 {
48	status = "okay";
49	current-speed = <115200>;
50	pinctrl-0 = <&uart0_default>;
51	pinctrl-names = "default";
52};
53
54&gpio0 {
55	status = "okay";
56};
57
58&gpio1 {
59	status = "okay";
60};
61
62&touch {
63	debounce-interval-ms = <30>;
64	href-microvolt = <2700000>;
65	lref-microvolt = <500000>;
66	href-atten-microvolt = <1000000>;
67	filter-mode = <ESP32_TOUCH_FILTER_MODE_IIR_16>;
68	filter-debounce-cnt = <1>;
69	filter-noise-thr = <ESP32_TOUCH_FILTER_NOISE_THR_4_8TH>;
70	filter-jitter-step = <4>;
71	filter-smooth-level = <ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2>;
72};
73
74&i2c0 {
75	clock-frequency = <I2C_BITRATE_STANDARD>;
76	pinctrl-0 = <&i2c0_default>;
77	pinctrl-names = "default";
78};
79
80&i2c1 {
81	clock-frequency = <I2C_BITRATE_STANDARD>;
82	pinctrl-0 = <&i2c1_default>;
83	pinctrl-names = "default";
84};
85
86&i2s0 {
87	pinctrl-0 = <&i2s0_default>;
88	pinctrl-names = "default";
89	status = "disabled";
90};
91
92&i2s1 {
93	pinctrl-0 = <&i2s1_default>;
94	pinctrl-names = "default";
95	status = "disabled";
96};
97
98&spi2 {
99	#address-cells = <1>;
100	#size-cells = <0>;
101	status = "okay";
102	pinctrl-0 = <&spim2_default>;
103	pinctrl-names = "default";
104};
105
106&spi3 {
107	#address-cells = <1>;
108	#size-cells = <0>;
109	status = "okay";
110	pinctrl-0 = <&spim3_default>;
111	pinctrl-names = "default";
112};
113
114&twai {
115	pinctrl-0 = <&twai_default>;
116	pinctrl-names = "default";
117};
118
119&timer0 {
120	status = "disabled";
121};
122
123&timer1 {
124	status = "disabled";
125};
126
127&timer2 {
128	status = "disabled";
129};
130
131&timer3 {
132	status = "disabled";
133};
134
135&wdt0 {
136	status = "okay";
137};
138
139&trng0 {
140	status = "okay";
141};
142
143&usb_serial {
144	status = "disabled";
145};
146
147&esp32_bt_hci {
148	status = "okay";
149};
150