1/*
2 * Copyright (c) 2022 Felipe Neves.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include <espressif/esp32s2/esp32s2_wroom.dtsi>
10#include "esp32s2_franzininho-pinctrl.dtsi"
11#include <espressif/partitions_0x1000_default.dtsi>
12
13/ {
14	model = "ESP32S2 Franzininho";
15	compatible = "espressif,esp32s2";
16
17	aliases {
18		led0 = &user_led_0;
19		led1 = &user_led_1;
20		i2c-0 = &i2c0;
21		watchdog0 = &wdt0;
22	};
23
24	chosen {
25		zephyr,sram = &sram0;
26		zephyr,console = &uart0;
27		zephyr,shell-uart = &uart0;
28		zephyr,flash = &flash0;
29		zephyr,code-partition = &slot0_partition;
30	};
31
32	leds {
33		compatible = "gpio-leds";
34
35		user_led_0: led_0 {
36			gpios =  <&gpio0 21 GPIO_ACTIVE_HIGH>;
37			label = "User - LED0";
38		};
39
40		user_led_1: led_1 {
41			gpios =  <&gpio0 22 GPIO_ACTIVE_HIGH>;
42			label = "User - LED1";
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&timer0 {
63	status = "okay";
64};
65
66&timer1 {
67	status = "okay";
68};
69
70&timer2 {
71	status = "okay";
72};
73
74&timer3 {
75	status = "okay";
76};
77
78&i2c0 {
79	status = "okay";
80	clock-frequency = <I2C_BITRATE_STANDARD>;
81	pinctrl-0 = <&i2c0_default>;
82	pinctrl-names = "default";
83};
84
85&i2c1 {
86	clock-frequency = <I2C_BITRATE_STANDARD>;
87	pinctrl-0 = <&i2c1_default>;
88	pinctrl-names = "default";
89};
90
91&trng0 {
92	status = "okay";
93};
94
95&spi2 {
96	#address-cells = <1>;
97	#size-cells = <0>;
98	status = "okay";
99	pinctrl-0 = <&spim2_default>;
100	pinctrl-names = "default";
101};
102
103&spi3 {
104	#address-cells = <1>;
105	#size-cells = <0>;
106	status = "okay";
107	pinctrl-0 = <&spim3_default>;
108	pinctrl-names = "default";
109};
110
111&wdt0 {
112	status = "okay";
113};
114