ARM: dts: stm32: add pinctrl and disabled spi5 node in stm32mp135f-dk
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 25 Jul 2022 07:52:55 +0000 (09:52 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 12 Sep 2022 13:19:12 +0000 (15:19 +0200)
Add pinctrl information and a disabled spi5 node within
stm32mp135f-dk.dts in order to use the spi5 bus which is
available via the GPIO expansion pins of the STM32MP135 Discovery board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp13-pinctrl.dtsi
arch/arm/boot/dts/stm32mp135f-dk.dts

index 749078ba9d4291c5bf822b27d2ab43562b9cb276..efdd163eba30e91dbd05ac782ff258cc422d166d 100644 (file)
                };
        };
 
+       spi5_pins_a: spi5-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('H', 7, AF6)>, /* SPI5_SCK */
+                                <STM32_PINMUX('H', 3, AF5)>; /* SPI5_MOSI */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <1>;
+               };
+
+               pins2 {
+                       pinmux = <STM32_PINMUX('A', 8, AF5)>; /* SPI5_MISO */
+                       bias-disable;
+               };
+       };
+
+       spi5_sleep_pins_a: spi5-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('H', 7, ANALOG)>, /* SPI5_SCK */
+                                <STM32_PINMUX('A', 8, ANALOG)>, /* SPI5_MISO */
+                                <STM32_PINMUX('H', 3, ANALOG)>; /* SPI5_MOSI */
+               };
+       };
+
        uart4_pins_a: uart4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('D', 6, AF8)>; /* UART4_TX */
index 3e2823332d51262cc80ef8e99cdb2b11667543be..de341d17e87d421e18efa0ea5a6e9887792f9abb 100644 (file)
        status = "okay";
 };
 
+&spi5 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&spi5_pins_a>;
+       pinctrl-1 = <&spi5_sleep_pins_a>;
+       status = "disabled";
+};
+
 &uart4 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart4_pins_a>;