Skip to content

Commit 5111257

Browse files
committed
boards: arm: stm32: add pinctrl state name for UART peripheral
Add the pinctrl state name (default) for the UART/USART/LPUART peripherals. Changes performed using the following Python script run from the repository root: ``` from pathlib import Path import re for fpath in Path(".").glob("boards/arm/**/*.dts"): lines = open(fpath).readlines() is_stm32 = False for line in lines: if "stm32" in line: is_stm32 = True break if not is_stm32: continue with open(fpath, "w") as f: for line in lines: f.write(line) m = re.match(r"(\s+)pinctrl-0.*us?art.*", line) if m: f.write(m.group(1) + "pinctrl-names = \"default\";\n") ``` Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 5618b0d commit 5111257

File tree

98 files changed

+187
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+187
-0
lines changed

boards/arm/96b_aerocore2/96b_aerocore2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,35 @@
6464

6565
&usart1 {
6666
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
67+
pinctrl-names = "default";
6768
current-speed = <115200>;
6869
status = "okay";
6970
};
7071

7172
&usart2 {
7273
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>;
74+
pinctrl-names = "default";
7375
current-speed = <115200>;
7476
status = "okay";
7577
};
7678

7779
&usart3 {
7880
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
81+
pinctrl-names = "default";
7982
current-speed = <115200>;
8083
status = "okay";
8184
};
8285

8386
&uart7 {
8487
pinctrl-0 = <&uart7_tx_pe8 &uart7_rx_pe7>;
88+
pinctrl-names = "default";
8589
current-speed = <115200>;
8690
status = "okay";
8791
};
8892

8993
&uart8 {
9094
pinctrl-0 = <&uart8_tx_pe1 &uart8_rx_pe0>;
95+
pinctrl-names = "default";
9196
current-speed = <115200>;
9297
status = "okay";
9398
};

boards/arm/96b_argonkey/96b_argonkey.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171

7272
&usart1 {
7373
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
74+
pinctrl-names = "default";
7475
current-speed = <115200>;
7576
status = "okay";
7677
};

boards/arm/96b_avenger96/96b_avenger96.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@
5959

6060
&uart4 {
6161
pinctrl-0 = <&uart4_tx_pd1 &uart4_rx_pb2>;
62+
pinctrl-names = "default";
6263
current-speed = <115200>;
6364
status = "okay";
6465
};
6566

6667
&uart7 {
6768
pinctrl-0 = <&uart7_tx_pe8 &uart7_rx_pe7>;
69+
pinctrl-names = "default";
6870
current-speed = <115200>;
6971
status = "okay";
7072
};

boards/arm/96b_carbon/96b_carbon.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,21 @@
7777

7878
&usart1 {
7979
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
80+
pinctrl-names = "default";
8081
current-speed = <115200>;
8182
status = "okay";
8283
};
8384

8485
&usart2 {
8586
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
87+
pinctrl-names = "default";
8688
current-speed = <115200>;
8789
status = "okay";
8890
};
8991

9092
&usart6 {
9193
pinctrl-0 = <&usart6_tx_pc6 &usart6_rx_pc7>;
94+
pinctrl-names = "default";
9295
current-speed = <115200>;
9396
status = "okay";
9497
};

boards/arm/96b_neonkey/96b_neonkey.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878

7979
&usart1 {
8080
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
81+
pinctrl-names = "default";
8182
current-speed = <115200>;
8283
status = "okay";
8384
};

boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,28 @@
172172

173173
&usart1 {
174174
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
175+
pinctrl-names = "default";
175176
current-speed = <115200>;
176177
status = "okay";
177178
};
178179

179180
&usart2 {
180181
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>;
182+
pinctrl-names = "default";
181183
current-speed = <115200>;
182184
status = "okay";
183185
};
184186

185187
&usart3 {
186188
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
189+
pinctrl-names = "default";
187190
current-speed = <115200>;
188191
status = "okay";
189192
};
190193

191194
&uart4 {
192195
pinctrl-0 = <&uart4_tx_pc10 &uart4_rx_pc11>;
196+
pinctrl-names = "default";
193197
current-speed = <115200>;
194198
status = "okay";
195199
};

boards/arm/96b_wistrio/96b_wistrio.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@
6060

6161
&usart1 {
6262
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
63+
pinctrl-names = "default";
6364
current-speed = <115200>;
6465
status = "okay";
6566
};
6667

6768
&usart2 {
6869
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
70+
pinctrl-names = "default";
6971
current-speed = <115200>;
7072
status = "okay";
7173
};

boards/arm/adafruit_feather_stm32f405/adafruit_feather_stm32f405.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858

5959
&usart3 {
6060
pinctrl-0 = <&usart3_tx_pb10 &usart3_rx_pb11>;
61+
pinctrl-names = "default";
6162
current-speed = <115200>;
6263
status = "okay";
6364
};

boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ arduino_i2c: &i2c1 {};
100100

101101
&usart1 {
102102
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
103+
pinctrl-names = "default";
103104
current-speed = <115200>;
104105
status = "okay";
105106
};
106107

107108
&usart2 {
108109
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
110+
pinctrl-names = "default";
109111
current-speed = <115200>;
110112
status = "okay";
111113
};

boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@
6969

7070
&usart1 {
7171
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
72+
pinctrl-names = "default";
7273
current-speed = <115200>;
7374
status = "okay";
7475
};
7576

7677
&uart4 {
7778
pinctrl-0 = <&uart4_tx_pa0 &uart4_rx_pa1>;
79+
pinctrl-names = "default";
7880
current-speed = <115200>;
7981
};
8082

0 commit comments

Comments
 (0)