Skip to content

Commit ae345cb

Browse files
Glauber Maroto Ferreiracfriedt
authored andcommitted
soc: xtensa: esp32s2: dts: uart node refactoring
Not all boards use the same UART's defaults properties. This commit updates device tree declarations by deferring specific definitions to the board's DTS. Signed-off-by: Glauber Maroto Ferreira <[email protected]>
1 parent d8bafe4 commit ae345cb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

boards/xtensa/esp32s2_saola/esp32s2_saola.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
&uart0 {
3232
status = "okay";
3333
current-speed = <115200>;
34-
rx-pin = <5>;
35-
tx-pin = <6>;
34+
tx-pin = <43>;
35+
rx-pin = <44>;
3636
};
3737

3838
&gpio0 {

dts/xtensa/espressif/esp32s2.dtsi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,10 @@
8585
compatible = "espressif,esp32-uart";
8686
reg = <0x3f400000 0x400>;
8787
label = "UART_0";
88+
status = "disabled";
8889
interrupts = <UART0_INTR_SOURCE>;
8990
interrupt-parent = <&intc>;
9091
clocks = <&rtc ESP32_UART0_MODULE>;
91-
current-speed = <115200>;
92-
status = "okay";
93-
tx-pin = <43>;
94-
rx-pin = <44>;
9592
};
9693

9794
uart1: uart@3f410000 {

0 commit comments

Comments
 (0)