Skip to content

Commit 7a397e7

Browse files
Updated dts files for uart and removed old configs
1 parent 452f305 commit 7a397e7

File tree

48 files changed

+269
-692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+269
-692
lines changed

Devices/cyd-2432s028r/Source/Configuration.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,5 @@ extern const Configuration hardwareConfiguration = {
8080
.isMutable = false,
8181
.lock = tt::lvgl::getSyncLock() // esp_lvgl_port owns the lock for the display
8282
},
83-
},
84-
85-
.uart {
86-
uart::Configuration {
87-
.name = "P1",
88-
.port = UART_NUM_1,
89-
.rxPin = GPIO_NUM_1,
90-
.txPin = GPIO_NUM_3,
91-
.rtsPin = GPIO_NUM_NC,
92-
.ctsPin = GPIO_NUM_NC,
93-
.rxBufferSize = 1024,
94-
.txBufferSize = 1024,
95-
.config = {
96-
.baud_rate = 115200,
97-
.data_bits = UART_DATA_8_BITS,
98-
.parity = UART_PARITY_DISABLE,
99-
.stop_bits = UART_STOP_BITS_1,
100-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
101-
.rx_flow_ctrl_thresh = 0,
102-
.source_clk = UART_SCLK_DEFAULT,
103-
.flags = {
104-
.allow_pd = 0,
105-
.backup_before_sleep = 0,
106-
}
107-
}
108-
}
10983
}
11084
};

Devices/cyd-2432s028r/cyd,2432s028r.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <tactility/bindings/root.h>
44
#include <tactility/bindings/esp32_gpio.h>
55
#include <tactility/bindings/esp32_i2c.h>
6+
#include <tactility/bindings/esp32_uart.h>
67

78
/ {
89
compatible = "root";
@@ -20,4 +21,13 @@
2021
pin-sda = <27>;
2122
pin-scl = <22>;
2223
};
24+
25+
uart1 {
26+
compatible = "espressif,esp32-uart";
27+
port = <UART_NUM_1>;
28+
pin-tx = <3>;
29+
pin-rx = <1>;
30+
pin-cts = <GPIO_PIN_NONE>;
31+
pin-rtx = <GPIO_PIN_NONE>;
32+
};
2333
};

Devices/cyd-2432s028rv3/Source/Configuration.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -80,30 +80,5 @@ extern const Configuration hardwareConfiguration = {
8080
.isMutable = false,
8181
.lock = tt::lvgl::getSyncLock() // esp_lvgl_port owns the lock for the display
8282
},
83-
},
84-
.uart {
85-
uart::Configuration {
86-
.name = "P1",
87-
.port = UART_NUM_1,
88-
.rxPin = GPIO_NUM_1,
89-
.txPin = GPIO_NUM_3,
90-
.rtsPin = GPIO_NUM_NC,
91-
.ctsPin = GPIO_NUM_NC,
92-
.rxBufferSize = 1024,
93-
.txBufferSize = 1024,
94-
.config = {
95-
.baud_rate = 115200,
96-
.data_bits = UART_DATA_8_BITS,
97-
.parity = UART_PARITY_DISABLE,
98-
.stop_bits = UART_STOP_BITS_1,
99-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
100-
.rx_flow_ctrl_thresh = 0,
101-
.source_clk = UART_SCLK_DEFAULT,
102-
.flags = {
103-
.allow_pd = 0,
104-
.backup_before_sleep = 0,
105-
}
106-
}
107-
}
10883
}
10984
};

Devices/cyd-2432s028rv3/cyd,2432s028rv3.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <tactility/bindings/root.h>
44
#include <tactility/bindings/esp32_gpio.h>
55
#include <tactility/bindings/esp32_i2c.h>
6+
#include <tactility/bindings/esp32_uart.h>
67

78
/ {
89
compatible = "root";
@@ -20,4 +21,13 @@
2021
pin-sda = <27>;
2122
pin-scl = <22>;
2223
};
24+
25+
uart1 {
26+
compatible = "espressif,esp32-uart";
27+
port = <UART_NUM_1>;
28+
pin-tx = <3>;
29+
pin-rx = <1>;
30+
pin-cts = <GPIO_PIN_NONE>;
31+
pin-rtx = <GPIO_PIN_NONE>;
32+
};
2333
};

Devices/cyd-8048s043c/Source/Configuration.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,31 +46,5 @@ extern const Configuration hardwareConfiguration = {
4646
.isMutable = false,
4747
.lock = nullptr
4848
}
49-
},
50-
.uart {
51-
// P4 header, JST SH 1.0, GND / 3.3V / IO17 / IO18
52-
uart::Configuration {
53-
.name = "UART1",
54-
.port = UART_NUM_1,
55-
.rxPin = GPIO_NUM_17,
56-
.txPin = GPIO_NUM_18,
57-
.rtsPin = GPIO_NUM_NC,
58-
.ctsPin = GPIO_NUM_NC,
59-
.rxBufferSize = 1024,
60-
.txBufferSize = 1024,
61-
.config = {
62-
.baud_rate = 9600,
63-
.data_bits = UART_DATA_8_BITS,
64-
.parity = UART_PARITY_DISABLE,
65-
.stop_bits = UART_STOP_BITS_1,
66-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
67-
.rx_flow_ctrl_thresh = 0,
68-
.source_clk = UART_SCLK_DEFAULT,
69-
.flags = {
70-
.allow_pd = 0,
71-
.backup_before_sleep = 0,
72-
}
73-
}
74-
}
7549
}
7650
};

Devices/cyd-8048s043c/cyd,8048s043c.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <tactility/bindings/root.h>
44
#include <tactility/bindings/esp32_gpio.h>
55
#include <tactility/bindings/esp32_i2c.h>
6+
#include <tactility/bindings/esp32_uart.h>
67

78
/ {
89
compatible = "root";
@@ -30,4 +31,13 @@
3031
pin-sda = <17>;
3132
pin-scl = <18>;
3233
};
34+
35+
uart1 {
36+
compatible = "espressif,esp32-uart";
37+
port = <UART_NUM_1>;
38+
pin-tx = <18>;
39+
pin-rx = <17>;
40+
pin-cts = <GPIO_PIN_NONE>;
41+
pin-rtx = <GPIO_PIN_NONE>;
42+
};
3343
};

Devices/elecrow-crowpanel-advance-28/Source/Configuration.cpp

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -70,55 +70,5 @@ extern const Configuration hardwareConfiguration = {
7070
.isMutable = false,
7171
.lock = nullptr // No custom lock needed
7272
}
73-
},
74-
.uart {
75-
// "UART0-IN"
76-
uart::Configuration {
77-
.name = "UART0",
78-
.port = UART_NUM_1,
79-
.rxPin = GPIO_NUM_44,
80-
.txPin = GPIO_NUM_43,
81-
.rtsPin = GPIO_NUM_NC,
82-
.ctsPin = GPIO_NUM_NC,
83-
.rxBufferSize = 1024,
84-
.txBufferSize = 1024,
85-
.config = {
86-
.baud_rate = 115200,
87-
.data_bits = UART_DATA_8_BITS,
88-
.parity = UART_PARITY_DISABLE,
89-
.stop_bits = UART_STOP_BITS_1,
90-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
91-
.rx_flow_ctrl_thresh = 0,
92-
.source_clk = UART_SCLK_DEFAULT,
93-
.flags = {
94-
.allow_pd = 0,
95-
.backup_before_sleep = 0,
96-
}
97-
}
98-
},
99-
// "UART1-OUT"
100-
uart::Configuration {
101-
.name = "UART1",
102-
.port = UART_NUM_2,
103-
.rxPin = GPIO_NUM_18,
104-
.txPin = GPIO_NUM_17,
105-
.rtsPin = GPIO_NUM_NC,
106-
.ctsPin = GPIO_NUM_NC,
107-
.rxBufferSize = 1024,
108-
.txBufferSize = 1024,
109-
.config = {
110-
.baud_rate = 115200,
111-
.data_bits = UART_DATA_8_BITS,
112-
.parity = UART_PARITY_DISABLE,
113-
.stop_bits = UART_STOP_BITS_1,
114-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
115-
.rx_flow_ctrl_thresh = 0,
116-
.source_clk = UART_SCLK_DEFAULT,
117-
.flags = {
118-
.allow_pd = 0,
119-
.backup_before_sleep = 0,
120-
}
121-
}
122-
}
12373
}
12474
};

Devices/elecrow-crowpanel-advance-28/elecrow,crowpanel-advance-28.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <tactility/bindings/root.h>
44
#include <tactility/bindings/esp32_gpio.h>
55
#include <tactility/bindings/esp32_i2c.h>
6+
#include <tactility/bindings/esp32_uart.h>
67

78
/ {
89
compatible = "root";
@@ -22,4 +23,22 @@
2223
pin-sda-pullup;
2324
pin-scl-pullup;
2425
};
26+
27+
uart0 {
28+
compatible = "espressif,esp32-uart";
29+
port = <UART_NUM_0>;
30+
pin-tx = <43>;
31+
pin-rx = <44>;
32+
pin-cts = <GPIO_PIN_NONE>;
33+
pin-rtx = <GPIO_PIN_NONE>;
34+
};
35+
36+
uart1 {
37+
compatible = "espressif,esp32-uart";
38+
port = <UART_NUM_1>;
39+
pin-tx = <17>;
40+
pin-rx = <18>;
41+
pin-cts = <GPIO_PIN_NONE>;
42+
pin-rtx = <GPIO_PIN_NONE>;
43+
};
2544
};

Devices/elecrow-crowpanel-advance-35/Source/Configuration.cpp

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -72,55 +72,5 @@ extern const Configuration hardwareConfiguration = {
7272
.isMutable = false,
7373
.lock = nullptr // No custom lock needed
7474
}
75-
},
76-
.uart {
77-
// "UART0-IN"
78-
uart::Configuration {
79-
.name = "UART0",
80-
.port = UART_NUM_1,
81-
.rxPin = GPIO_NUM_44,
82-
.txPin = GPIO_NUM_43,
83-
.rtsPin = GPIO_NUM_NC,
84-
.ctsPin = GPIO_NUM_NC,
85-
.rxBufferSize = 1024,
86-
.txBufferSize = 1024,
87-
.config = {
88-
.baud_rate = 115200,
89-
.data_bits = UART_DATA_8_BITS,
90-
.parity = UART_PARITY_DISABLE,
91-
.stop_bits = UART_STOP_BITS_1,
92-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
93-
.rx_flow_ctrl_thresh = 0,
94-
.source_clk = UART_SCLK_DEFAULT,
95-
.flags = {
96-
.allow_pd = 0,
97-
.backup_before_sleep = 0,
98-
}
99-
}
100-
},
101-
// "UART1-OUT"
102-
uart::Configuration {
103-
.name = "UART1",
104-
.port = UART_NUM_2,
105-
.rxPin = GPIO_NUM_18,
106-
.txPin = GPIO_NUM_17,
107-
.rtsPin = GPIO_NUM_NC,
108-
.ctsPin = GPIO_NUM_NC,
109-
.rxBufferSize = 1024,
110-
.txBufferSize = 1024,
111-
.config = {
112-
.baud_rate = 115200,
113-
.data_bits = UART_DATA_8_BITS,
114-
.parity = UART_PARITY_DISABLE,
115-
.stop_bits = UART_STOP_BITS_1,
116-
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
117-
.rx_flow_ctrl_thresh = 0,
118-
.source_clk = UART_SCLK_DEFAULT,
119-
.flags = {
120-
.allow_pd = 0,
121-
.backup_before_sleep = 0,
122-
}
123-
}
124-
}
12575
}
12676
};

Devices/elecrow-crowpanel-advance-35/elecrow,crowpanel-advance-35.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <tactility/bindings/root.h>
44
#include <tactility/bindings/esp32_gpio.h>
55
#include <tactility/bindings/esp32_i2c.h>
6+
#include <tactility/bindings/esp32_uart.h>
67

78
/ {
89
compatible = "root";
@@ -22,4 +23,22 @@
2223
pin-sda-pullup;
2324
pin-scl-pullup;
2425
};
26+
27+
uart0 {
28+
compatible = "espressif,esp32-uart";
29+
port = <UART_NUM_0>;
30+
pin-tx = <43>;
31+
pin-rx = <44>;
32+
pin-cts = <GPIO_PIN_NONE>;
33+
pin-rtx = <GPIO_PIN_NONE>;
34+
};
35+
36+
uart1 {
37+
compatible = "espressif,esp32-uart";
38+
port = <UART_NUM_1>;
39+
pin-tx = <17>;
40+
pin-rx = <18>;
41+
pin-cts = <GPIO_PIN_NONE>;
42+
pin-rtx = <GPIO_PIN_NONE>;
43+
};
2544
};

0 commit comments

Comments
 (0)