1/*
2 * Copyright (c) 2024 Arrel Neumiller
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/dts-v1/;
7
8#include <espressif/esp32c3/esp32c3_fx4.dtsi>
9#include "esp32c3_supermini-pinctrl.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11#include <zephyr/dt-bindings/led/led.h>
12#include <espressif/partitions_0x0_default.dtsi>
13
14/ {
15	model = "ESP32C3-SUPERMINI";
16	compatible = "espressif,esp32c3_supermini";
17
18	chosen {
19		zephyr,sram = &sram1;
20		zephyr,console = &usb_serial;
21		zephyr,shell-uart = &usb_serial;
22		zephyr,flash = &flash0;
23		zephyr,code-partition = &slot0_partition;
24	};
25
26	aliases {
27		led0 = &blue_led_0;
28		sw0 = &user_button1;
29		i2c-0 = &i2c0;
30		watchdog0 = &wdt0;
31	};
32
33	gpio_keys {
34		compatible = "gpio-keys";
35		user_button1: button_1 {
36			label = "User SW1";
37			gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
38			zephyr,code = <INPUT_KEY_0>;
39		};
40	};
41
42	leds {
43		compatible = "gpio-leds";
44		blue_led_0: led_0 {
45			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
46			label = "Blue LED 0";
47		};
48	};
49
50};
51
52&spi2 {
53	#address-cells = <1>;
54	#size-cells = <0>;
55	status = "okay";
56	pinctrl-0 = <&spim2_default>;
57	pinctrl-names = "default";
58
59};
60
61&usb_serial {
62	status = "okay";
63};
64
65
66&i2c0 {
67	status = "okay";
68	clock-frequency = <I2C_BITRATE_STANDARD>;
69	pinctrl-0 = <&i2c0_default>;
70	pinctrl-names = "default";
71};
72
73&trng0 {
74	status = "okay";
75};
76
77&gpio0 {
78	status = "okay";
79};
80
81&wdt0 {
82	status = "okay";
83};
84
85&uart0 {
86	status = "disabled";
87};
88
89&esp32_bt_hci {
90	status = "okay";
91};
92
93&wifi {
94	status = "okay";
95};
96