Skip to content

Commit 66f2139

Browse files
committed
boards: stm32l5: Refactor serial peripheral descriptions
On stm32l5 based boards, some serial devices descriptions were scattered between common.dtsi and base or non secure dts files. This leads to build issues now that pinctrl-0 and pinctrl-names properties are required but this was anyway broken since the beginning. Group all serial devices definition in common.dtsi so complete devices description is available to both non secure and base descriptions. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 11c444f commit 66f2139

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@
7373
status = "okay";
7474
};
7575

76+
&lpuart1 {
77+
pinctrl-0 = <&lpuart1_tx_pg7 &lpuart1_rx_pg8>;
78+
pinctrl-names = "default";
79+
current-speed = <115200>;
80+
status = "okay";
81+
};
82+
7683
&usart3 {
7784
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
7885
pinctrl-names = "default";

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q.dts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,3 @@
2626
sw0 = &user_button;
2727
};
2828
};
29-
30-
&lpuart1 {
31-
pinctrl-0 = <&lpuart1_tx_pg7 &lpuart1_rx_pg8>;
32-
pinctrl-names = "default";
33-
current-speed = <115200>;
34-
status = "okay";
35-
};

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q_ns.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,3 @@
2626
sw0 = &user_button;
2727
};
2828
};
29-
30-
&lpuart1 {
31-
current-speed = <115200>;
32-
status = "okay";
33-
};

boards/arm/stm32l562e_dk/stm32l562e_dk.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
cpu-power-states = <&stop0 &stop1 &stop2>;
3232
};
3333

34-
&usart1 {
35-
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
36-
pinctrl-names = "default";
37-
};
38-
3934
&lptim1 {
4035
status = "okay";
4136
};

boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181

8282
&usart1 {
8383
current-speed = <115200>;
84+
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
85+
pinctrl-names = "default";
8486
status = "okay";
8587
};
8688

0 commit comments

Comments
 (0)