ARM: dts: stm32: add SPI1 support on stm32mp157c-ev1
authorAmelie Delaunay <amelie.delaunay@st.com>
Thu, 17 May 2018 14:21:00 +0000 (16:21 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Fri, 13 Jul 2018 11:57:02 +0000 (13:57 +0200)
This patch adds SPI1 support on stm32mp157c-ev1 board.
SPI1 is available on GPIO expansion connector but kept disabled
so these pins can be used as GPIOs by default.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
arch/arm/boot/dts/stm32mp157c-ev1.dts

index a7125aecd1f71dfbd917cab7b6ab034a78c2c27a..28bad7401d2c57e6e19f8a3b00130e5f56e61204 100644 (file)
                        pins-are-numbered;
                        interrupt-parent = <&exti>;
                        st,syscfg = <&exti 0x60 0xff>;
-                       status = "disabled";
 
                        gpioz: gpio@54004000 {
                                gpio-controller;
                                        slew-rate = <0>;
                                };
                        };
+
+                       spi1_pins_a: spi1-0 {
+                               pins1 {
+                                       pinmux = <STM32_PINMUX('Z', 0, AF5)>, /* SPI1_SCK */
+                                                <STM32_PINMUX('Z', 2, AF5)>; /* SPI1_MOSI */
+                                       bias-disable;
+                                       drive-push-pull;
+                                       slew-rate = <1>;
+                               };
+
+                               pins2 {
+                                       pinmux = <STM32_PINMUX('Z', 1, AF5)>; /* SPI1_MISO */
+                                       bias-disable;
+                               };
+                       };
                };
        };
 };
index 6cad8f175cdcc6703d1896c3d57300aeaa0b469f..28284513d8863246bd1db4d9dbefd13cd847856a 100644 (file)
        };
 };
 
+&spi1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&spi1_pins_a>;
+       status = "disabled";
+};
+
 &timers2 {
        status = "disabled";
        pwm {