1/*
2 * Copyright (c) 2024 Würth Elektronik GmbH & Co. KG
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include <espressif/esp32c3/esp32c3.dtsi>
10#include "we_orthosie1ev-pinctrl.dtsi"
11#include <zephyr/dt-bindings/input/input-event-codes.h>
12#include <espressif/partitions_0x0_default.dtsi>
13
14/ {
15	model = "we_orthosie1ev";
16	compatible = "we,we-orthosie1ev";
17
18	chosen {
19		zephyr,sram = &sram0;
20		zephyr,console = &uart0;
21		zephyr,shell-uart = &uart0;
22		zephyr,flash = &flash0;
23		zephyr,code-partition = &slot0_partition;
24		zephyr,bt-hci = &esp32_bt_hci;
25	};
26
27	aliases {
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 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
38			zephyr,code = <INPUT_KEY_0>;
39		};
40	};
41};
42
43&flash0 {
44	reg = <0x0 DT_SIZE_M(4)>;
45};
46
47&uart0 {
48	status = "okay";
49	current-speed = <115200>;
50	pinctrl-0 = <&uart0_default>;
51	pinctrl-names = "default";
52};
53
54&usb_serial {
55	/* requires resoldering of resistors on the board */
56	status = "okay";
57};
58
59&i2c0 {
60	status = "okay";
61	clock-frequency = <I2C_BITRATE_STANDARD>;
62	pinctrl-0 = <&i2c0_default>;
63	pinctrl-names = "default";
64};
65
66&i2s {
67	pinctrl-0 = <&i2s_default>;
68	pinctrl-names = "default";
69	status = "disabled";
70};
71
72&trng0 {
73	status = "okay";
74};
75
76&spi2 {
77	#address-cells = <1>;
78	#size-cells = <0>;
79	status = "okay";
80	pinctrl-0 = <&spim2_default>;
81	pinctrl-names = "default";
82};
83
84&gpio0 {
85	status = "okay";
86};
87
88&wdt0 {
89	status = "okay";
90};
91
92&timer0 {
93	status = "disabled";
94};
95
96&timer1 {
97	status = "disabled";
98};
99
100&twai {
101	/* requires external CAN transceiver or jumper on RX and TX pins for loopback testing */
102	status = "disabled";
103	pinctrl-0 = <&twai_default>;
104	pinctrl-names = "default";
105};
106
107&esp32_bt_hci {
108	status = "okay";
109};
110