-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesp32_dev_procpu.dts
More file actions
163 lines (138 loc) · 3.09 KB
/
Copy pathesp32_dev_procpu.dts
File metadata and controls
163 lines (138 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*
* Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2025 Muhammad Waleed Badar
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <espressif/esp32/esp32_wroom_32ue_n4.dtsi>
#include <espressif/partitions_0x1000_amp_4M.dtsi>
#include "esp32_dev-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lvgl/lvgl.h>
/ {
model = "Espressif ESP32-Dev-Board PROCPU";
compatible = "espressif,esp32";
chosen {
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &mbox0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,bt-hci = &esp32_bt_hci;
zephyr,display = &oled;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
label = "User LED";
};
};
keys: keys {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "BOOT Button";
zephyr,code = <INPUT_KEY_ENTER>;
};
button1: button_1 {
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "User Button 1";
zephyr,code = <INPUT_KEY_UP>;
};
button2: button_2 {
gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "User Button 2";
zephyr,code = <INPUT_KEY_DOWN>;
};
};
lvgl_keypad_input {
compatible = "zephyr,lvgl-keypad-input";
input = <&keys>;
input-codes = <INPUT_KEY_UP INPUT_KEY_DOWN INPUT_KEY_ENTER INPUT_KEY_BACKSPACE>;
lvgl-codes = <LV_KEY_UP LV_KEY_DOWN LV_KEY_ENTER LV_KEY_BACKSPACE>;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox0 1>, <&mbox0 0>;
mbox-names = "tx", "rx";
};
wlan1: wlan1 {
compatible = "espressif,esp32-wifi";
status = "okay";
};
aliases {
uart0 = &uart0;
led0 = &led0;
sw0 = &button0;
sw1 = &button1;
sw2 = &button2;
watchdog0 = &wdt0;
};
};
&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;
pinctrl-names = "default";
};
&uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_default>;
pinctrl-names = "default";
};
&uart2 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart2_default>;
pinctrl-names = "default";
modbus0 {
compatible = "zephyr,modbus-serial";
de-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
sda-gpios = <&gpio0 21 (GPIO_PULL_UP | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio0 22 (GPIO_PULL_UP | GPIO_OPEN_DRAIN)>;
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
oled: ssd1306@3c {
compatible = "solomon,ssd1306fb";
reg = <0x3c>;
width = <128>;
height = <64>;
segment-offset = <0>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <63>;
segment-remap;
com-invdir;
inversion-on;
prechargep = <0x22>;
};
};
&mbox0 {
status = "okay";
};
&trng0 {
status = "okay";
};
&esp32_bt_hci {
status = "okay";
};
&wifi {
status = "okay";
};