Skip to content

Commit dd04a32

Browse files
Glauber Maroto Ferreiracfriedt
authored andcommitted
soc: riscv: esp32c3: 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 ae345cb commit dd04a32

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
&uart0 {
4141
status = "okay";
4242
current-speed = <115200>;
43-
tx-pin = <2>;
44-
rx-pin = <3>;
43+
tx-pin = <21>;
44+
rx-pin = <20>;
4545
};
4646

4747
&i2c0 {

dts/riscv/espressif/esp32c3.dtsi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@
116116
compatible = "espressif,esp32-uart";
117117
reg = <0x60000000 0x400>;
118118
label = "UART_0";
119+
status = "disabled";
119120
interrupts = <UART0_INTR_SOURCE>;
120121
interrupt-parent = <&intc>;
121122
clocks = <&rtc ESP32_UART0_MODULE>;
122-
current-speed = <115200>;
123-
status = "okay";
124-
tx-pin = <21>;
125-
rx-pin = <20>;
126123
};
127124

128125
uart1: uart@60010000 {

0 commit comments

Comments
 (0)