Skip to content

Commit 2f21baa

Browse files
petejohansonjhedberg
authored andcommitted
boards: seeed: Fix XIAO MG24 standard uart pins
Properly use EUSART1 for the XIAO connector serial device, and switch XIAO SPI to EUSART0 to allow simultaneous use. Signed-off-by: Peter Johanson <[email protected]>
1 parent 31a78a9 commit 2f21baa

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

boards/seeed/xiao_mg24/seeed_xiao_connector.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
};
2525
};
2626

27-
xiao_spi: &eusart1 {};
27+
xiao_spi: &eusart0 {};
2828

29-
xiao_serial: &eusart0 {};
29+
xiao_serial: &eusart1 {};
3030

3131
xiao_i2c: &i2c0 {};

boards/seeed/xiao_mg24/xiao_mg24-pinctrl.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@
1010
&pinctrl {
1111
eusart0_default: eusart0_default {
1212
group0 {
13-
pins = <EUSART1_TX_PC6>;
13+
pins = <EUSART0_TX_PA5>, <EUSART0_SCLK_PA3>;
1414
drive-push-pull;
1515
output-high;
1616
};
1717

1818
group1 {
19-
pins = <EUSART1_RX_PC7>;
19+
pins = <EUSART0_RX_PA4>;
2020
input-enable;
2121
silabs,input-filter;
2222
};
2323
};
2424

2525
eusart1_default: eusart1_default {
2626
group0 {
27-
pins = <EUSART1_TX_PA5>, <EUSART1_SCLK_PA3>;
27+
pins = <EUSART1_TX_PC6>;
2828
drive-push-pull;
2929
output-high;
3030
};
3131

3232
group1 {
33-
pins = <EUSART1_RX_PA4>;
33+
pins = <EUSART1_RX_PC7>;
3434
input-enable;
3535
silabs,input-filter;
3636
};

boards/seeed/xiao_mg24/xiao_mg24.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,18 @@
119119
};
120120

121121
&eusart0 {
122-
compatible = "silabs,eusart-uart";
123-
current-speed = <115200>;
124-
pinctrl-0 = <&eusart0_default>;
125-
pinctrl-names = "default";
126-
};
127-
128-
&eusart1 {
129122
compatible = "silabs,eusart-spi";
130123
#address-cells = <1>;
131124
#size-cells = <0>;
132125
clock-frequency = <4000000>;
133126
cs-gpios = <&gpioc 7 GPIO_ACTIVE_LOW>;
127+
pinctrl-0 = <&eusart0_default>;
128+
pinctrl-names = "default";
129+
};
130+
131+
&eusart1 {
132+
compatible = "silabs,eusart-uart";
133+
current-speed = <115200>;
134134
pinctrl-0 = <&eusart1_default>;
135135
pinctrl-names = "default";
136136
};

0 commit comments

Comments
 (0)