ARM: dts: Add USART1 pin config to STM32F429 boards
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>
Wed, 14 Oct 2015 16:15:04 +0000 (18:15 +0200)
committerMaxime Coquelin <mcoquelin.stm32@gmail.com>
Thu, 11 Feb 2016 11:02:58 +0000 (12:02 +0100)
This patch selects USART1 pin configuration on PA9/PA10 pins
for both Eval and Disco boards.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
arch/arm/boot/dts/stm32429i-eval.dts
arch/arm/boot/dts/stm32f429-disco.dts
arch/arm/boot/dts/stm32f429.dtsi

index 6964fc9..71fe17a 100644 (file)
@@ -71,5 +71,7 @@
 };
 
 &usart1 {
+       pinctrl-0 = <&usart1_pins_a>;
+       pinctrl-names = "default";
        status = "okay";
 };
index f0b731d..e3ce796 100644 (file)
@@ -71,5 +71,7 @@
 };
 
 &usart1 {
+       pinctrl-0 = <&usart1_pins_a>;
+       pinctrl-names = "default";
        status = "okay";
 };
index 3fed69c..aa6c67d 100644 (file)
                                clocks = <&rcc 0 266>;
                                st,bank-name = "GPIOK";
                        };
+
+                       usart1_pins_a: usart1@0 {
+                               pins1 {
+                                       pinmux = <STM32F429_PA9_FUNC_USART1_TX>;
+                                       bias-disable;
+                                       drive-push-pull;
+                                       slew-rate = <0>;
+                               };
+                               pins2 {
+                                       pinmux = <STM32F429_PA10_FUNC_USART1_RX>;
+                                       bias-disable;
+                               };
+                       };
                };
 
                rcc: rcc@40023810 {