Skip to content

Commit

Permalink
boards: silabs: xg23_rb4210a: use new eusart driver
Browse files Browse the repository at this point in the history
Example for using new EUSART driver. Will remove this commit later.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
  • Loading branch information
yishai1999 committed Jan 8, 2025
1 parent e7a9e79 commit c98e990
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
#include <dt-bindings/pinctrl/silabs/xg23-pinctrl.h>

&pinctrl {
usart0_default: usart0_default {
eusart0_default: eusart0_default {
group0 {
pins = <USART0_TX_PA8>;
pins = <EUSART0_TX_PA8>;
drive-push-pull;
output-high;
};
group1 {
pins = <USART0_RX_PA9>;
pins = <EUSART0_RX_PA9>;
input-enable;
silabs,input-filter;
};
Expand Down
10 changes: 5 additions & 5 deletions boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
compatible = "silabs,xg23_rb4210a", "silabs,efr32zg23";

chosen {
zephyr,console = &usart0;
zephyr,shell-uart = &usart0;
zephyr,uart-pipe = &usart0;
zephyr,console = &eusart0;
zephyr,shell-uart = &eusart0;
zephyr,uart-pipe = &eusart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
Expand Down Expand Up @@ -109,9 +109,9 @@
clocks = <&lfxo>;
};

&usart0 {
&eusart0 {
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-0 = <&eusart0_default>;
pinctrl-names = "default";
status = "okay";
};
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/silabs/efr32xg23.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
};

eusart0: eusart@5b010000 {
compatible = "silabs,gecko-spi-eusart";
compatible = "silabs,gecko-eusart";
reg = <0x5B010000 0x4000>;
interrupts = <11 0>, <12 0>;
interrupt-names = "rx", "tx";
Expand Down

0 comments on commit c98e990

Please sign in to comment.