Skip to content

Commit 623ac59

Browse files
VCASTMAlexandre Torgue
authored andcommitted
ARM: dts: stm32: add uart nodes and uart aliases on stm32mp135f-dk
Update device-tree stm32mp135f-dk.dts to add usart1, uart8, usart2 and uart aliases. - Usart2 is used to interface a BT device, enable it by default. - Usart1 and uart8 are available on expansion connector. They are kept disabled. So, the pins are kept in analog state to lower power consumption by default or can be used as GPIO. - Uart4 is used for console. Signed-off-by: Valentin Caron <valentin.caron@foss.st.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
1 parent 8d69605 commit 623ac59

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

arch/arm/boot/dts/stm32mp135f-dk.dts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020
aliases {
2121
serial0 = &uart4;
22+
serial1 = &usart1;
23+
serial2 = &uart8;
24+
serial3 = &usart2;
25+
};
26+
27+
chosen {
28+
stdout-path = "serial0:115200n8";
2229
};
2330

2431
memory@c0000000 {
@@ -267,8 +274,41 @@
267274
};
268275

269276
&uart4 {
270-
pinctrl-names = "default";
277+
pinctrl-names = "default", "sleep", "idle";
271278
pinctrl-0 = <&uart4_pins_a>;
279+
pinctrl-1 = <&uart4_sleep_pins_a>;
280+
pinctrl-2 = <&uart4_idle_pins_a>;
281+
/delete-property/dmas;
282+
/delete-property/dma-names;
283+
status = "okay";
284+
};
285+
286+
&uart8 {
287+
pinctrl-names = "default", "sleep", "idle";
288+
pinctrl-0 = <&uart8_pins_a>;
289+
pinctrl-1 = <&uart8_sleep_pins_a>;
290+
pinctrl-2 = <&uart8_idle_pins_a>;
291+
/delete-property/dmas;
292+
/delete-property/dma-names;
293+
status = "disabled";
294+
};
295+
296+
&usart1 {
297+
pinctrl-names = "default", "sleep", "idle";
298+
pinctrl-0 = <&usart1_pins_a>;
299+
pinctrl-1 = <&usart1_sleep_pins_a>;
300+
pinctrl-2 = <&usart1_idle_pins_a>;
301+
uart-has-rtscts;
302+
status = "disabled";
303+
};
304+
305+
/* Bluetooth */
306+
&usart2 {
307+
pinctrl-names = "default", "sleep", "idle";
308+
pinctrl-0 = <&usart2_pins_a>;
309+
pinctrl-1 = <&usart2_sleep_pins_a>;
310+
pinctrl-2 = <&usart2_idle_pins_a>;
311+
uart-has-rtscts;
272312
status = "okay";
273313
};
274314

0 commit comments

Comments
 (0)