]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 6964fc9e97cfa346c0f46405382f85f62f93f8d4..71fe17adf13a9775de2b532f075a496bd020fbb4 100644 (file)
@@ -71,5 +71,7 @@
 };
 
 &usart1 {
+       pinctrl-0 = <&usart1_pins_a>;
+       pinctrl-names = "default";
        status = "okay";
 };
index f0b731db6f530ab194deecda35fbb623cd95df10..e3ce796424c36280ee3b4ecfd83f86b2a2f69ba1 100644 (file)
@@ -71,5 +71,7 @@
 };
 
 &usart1 {
+       pinctrl-0 = <&usart1_pins_a>;
+       pinctrl-names = "default";
        status = "okay";
 };
index 3fed69ce0b9fbd97c2b3b0dc47d71862543b5ed8..aa6c67d999214b3c9a5d2ba40b660203910c5abf 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 {