boards: silabs: xg23_rb4210a: use new eusart driver
Example for using new EUSART driver. Will remove this commit later. Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
This commit is contained in:
parent
d5c0d7acdd
commit
3414619eec
2 changed files with 9 additions and 8 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -109,9 +109,10 @@
|
|||
clocks = <&lfxo>;
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
&eusart0 {
|
||||
compatible = "silabs,eusart-uart";
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&usart0_default>;
|
||||
pinctrl-0 = <&eusart0_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue