]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32mp1: DT alignment with Linux kernel v5.9-rc4
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 16 Sep 2020 08:01:32 +0000 (10:01 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 2 Oct 2020 12:56:56 +0000 (14:56 +0200)
DT alignment with Linux kernel v5.9-rc4 for the STM32MP15x soc
device tree files and the STMicroelectronics boards device tree files.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/dts/stm32mp15-pinctrl.dtsi
arch/arm/dts/stm32mp151.dtsi
arch/arm/dts/stm32mp157a-dk1.dts
arch/arm/dts/stm32mp157c-dk2.dts
arch/arm/dts/stm32mp157c-ed1.dts
arch/arm/dts/stm32mp157c-ev1.dts
arch/arm/dts/stm32mp15xx-dkx.dtsi

index e9525b5d0644ca25ed493299f4776cae6ef0f2ed..154832983cf17d8093c430f9540267f8f81e9b0a 100644 (file)
                };
        };
 
+       spi4_pins_a: spi4-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('E', 12, AF5)>, /* SPI4_SCK */
+                                <STM32_PINMUX('E', 6, AF5)>;  /* SPI4_MOSI */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <1>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('E', 13, AF5)>; /* SPI4_MISO */
+                       bias-disable;
+               };
+       };
+
        stusb1600_pins_a: stusb1600-0 {
                        pins {
                                pinmux = <STM32_PINMUX('I', 11, ANALOG)>;
                };
        };
 
+       uart4_pins_a: uart4-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                       bias-disable;
+               };
+       };
+
+       uart4_idle_pins_a: uart4-idle-0 {
+                  pins1 {
+                        pinmux = <STM32_PINMUX('G', 11, ANALOG)>; /* UART4_TX */
+                  };
+                  pins2 {
+                        pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                        bias-disable;
+                  };
+       };
+
+       uart4_sleep_pins_a: uart4-sleep-0 {
+                  pins {
+                       pinmux = <STM32_PINMUX('G', 11, ANALOG)>, /* UART4_TX */
+                                <STM32_PINMUX('B', 2, ANALOG)>; /* UART4_RX */
+                   };
+       };
+
+       uart4_pins_b: uart4-1 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('D', 1, AF8)>; /* UART4_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                       bias-disable;
+               };
+       };
+
+       uart4_pins_c: uart4-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                       bias-disable;
+               };
+       };
+
+       uart7_pins_a: uart7-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('E', 8, AF7)>; /* UART7_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('E', 7, AF7)>, /* UART7_RX */
+                                <STM32_PINMUX('E', 10, AF7)>, /* UART7_CTS */
+                                <STM32_PINMUX('E', 9, AF7)>; /* UART7_RTS */
+                       bias-disable;
+               };
+       };
+
+       uart7_pins_b: uart7-1 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('F', 7, AF7)>; /* UART7_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('F', 6, AF7)>; /* UART7_RX */
+                       bias-disable;
+               };
+       };
+
+       uart7_pins_c: uart7-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('E', 8, AF7)>; /* UART7_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */
+                       bias-disable;
+               };
+       };
+
+       uart7_idle_pins_c: uart7-idle-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('E', 8, ANALOG)>; /* UART7_TX */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */
+                       bias-disable;
+               };
+       };
+
+       uart7_sleep_pins_c: uart7-sleep-2 {
+               pins {
+                       pinmux = <STM32_PINMUX('E', 8, ANALOG)>, /* UART7_TX */
+                                <STM32_PINMUX('E', 7, ANALOG)>; /* UART7_RX */
+               };
+       };
+
+       uart8_pins_a: uart8-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('E', 0, AF8)>; /* UART8_RX */
+                       bias-disable;
+               };
+       };
+
        usart2_pins_a: usart2-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */
                };
        };
 
+       usart2_pins_c: usart2-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('D', 5, AF7)>, /* USART2_TX */
+                                <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <3>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('D', 6, AF7)>, /* USART2_RX */
+                                <STM32_PINMUX('D', 3, AF7)>; /* USART2_CTS_NSS */
+                       bias-disable;
+               };
+       };
+
+       usart2_idle_pins_c: usart2-idle-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('D', 5, ANALOG)>, /* USART2_TX */
+                                <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
+                                <STM32_PINMUX('D', 3, ANALOG)>; /* USART2_CTS_NSS */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('D', 6, AF7)>; /* USART2_RX */
+                       bias-disable;
+               };
+       };
+
+       usart2_sleep_pins_c: usart2-sleep-2 {
+               pins {
+                       pinmux = <STM32_PINMUX('D', 5, ANALOG)>, /* USART2_TX */
+                                <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
+                                <STM32_PINMUX('D', 6, ANALOG)>, /* USART2_RX */
+                                <STM32_PINMUX('D', 3, ANALOG)>; /* USART2_CTS_NSS */
+               };
+       };
+
        usart3_pins_a: usart3-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('B', 10, AF7)>; /* USART3_TX */
                };
        };
 
+       usart3_pins_b: usart3-1 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
+                                <STM32_PINMUX('I', 10, AF8)>; /* USART3_CTS_NSS */
+                       bias-disable;
+               };
+       };
+
+       usart3_idle_pins_b: usart3-idle-1 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
+                                <STM32_PINMUX('I', 10, ANALOG)>; /* USART3_CTS_NSS */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
+                       bias-disable;
+               };
+       };
+
+       usart3_sleep_pins_b: usart3-sleep-1 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
+                                <STM32_PINMUX('I', 10, ANALOG)>, /* USART3_CTS_NSS */
+                                <STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
+               };
+       };
+
+       usart3_pins_c: usart3-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
+                                <STM32_PINMUX('B', 13, AF7)>; /* USART3_CTS_NSS */
+                       bias-disable;
+               };
+       };
+
+       usart3_idle_pins_c: usart3-idle-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
+                                <STM32_PINMUX('B', 13, ANALOG)>; /* USART3_CTS_NSS */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
+                       bias-disable;
+               };
+       };
+
+       usart3_sleep_pins_c: usart3-sleep-2 {
+               pins {
+                       pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
+                                <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
+                                <STM32_PINMUX('B', 13, ANALOG)>, /* USART3_CTS_NSS */
+                                <STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
+               };
+       };
+
        uart4_pins_a: uart4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
                        bias-disable;
                };
        };
-
-       spi4_pins_a: spi4-0 {
-               pins {
-                       pinmux = <STM32_PINMUX('E', 12, AF5)>, /* SPI4_SCK */
-                                <STM32_PINMUX('E', 6, AF5)>;  /* SPI4_MOSI */
-                       bias-disable;
-                       drive-push-pull;
-                       slew-rate = <1>;
-               };
-               pins2 {
-                       pinmux = <STM32_PINMUX('E', 13, AF5)>; /* SPI4_MISO */
-                       bias-disable;
-               };
-       };
 };
index 39d9e545ed0ff7ec3f07ce7197707c48c749b7f8..206d3d3c789f8d1cefd4a4370b18b2330f4279b1 100644 (file)
                };
 
                pwr_mcu: pwr_mcu@50001014 {
-                       compatible = "syscon";
+                       compatible = "st,stm32mp151-pwr-mcu", "syscon";
                        reg = <0x50001014 0x4>;
                };
 
                        dma-names = "tx", "rx";
                        clocks = <&rcc QSPI_K>;
                        resets = <&rcc QSPI_R>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        status = "disabled";
                };
 
index d03d4cd2606ab63457ce136ef8f83e6cf0378268..4c8be9c8eb20e2e25695700b1acce06d0fa556de 100644 (file)
@@ -18,6 +18,8 @@
        aliases {
                ethernet0 = &ethernet0;
                serial0 = &uart4;
+               serial1 = &usart3;
+               serial2 = &uart7;
        };
 
        chosen {
index 9a8a26710ac1c90313aaee5fa68aa6a4d2f771c8..045636555dddfc44325ebd4e99e30a3a9239dae7 100644 (file)
@@ -19,6 +19,9 @@
        aliases {
                ethernet0 = &ethernet0;
                serial0 = &uart4;
+               serial1 = &usart3;
+               serial2 = &uart7;
+               serial3 = &usart2;
        };
 
        chosen {
                };
        };
 };
+
+&usart2 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&usart2_pins_c>;
+       pinctrl-1 = <&usart2_sleep_pins_c>;
+       pinctrl-2 = <&usart2_idle_pins_c>;
+       status = "disabled";
+};
index 072d646379e1199515b8309cc5a5a624eb376f09..dd911c99329da015d17f96ea833a802a29c9f061 100644 (file)
 };
 
 &uart4 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep", "idle";
        pinctrl-0 = <&uart4_pins_a>;
+       pinctrl-1 = <&uart4_sleep_pins_a>;
+       pinctrl-2 = <&uart4_idle_pins_a>;
        status = "okay";
 };
 
index 46f81ce92ec6e2ef7e03208fbcc1239edbfd64a3..a55e80ce260211a90c8e780e050645c2e5d10a6a 100644 (file)
@@ -19,6 +19,7 @@
 
        aliases {
                serial0 = &uart4;
+               serial1 = &usart3;
                ethernet0 = &ethernet0;
        };
 
        };
 };
 
+&usart3 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&usart3_pins_b>;
+       pinctrl-1 = <&usart3_sleep_pins_b>;
+       pinctrl-2 = <&usart3_idle_pins_b>;
+       /*
+        * HW flow control USART3_RTS is optional, and isn't default wired to
+        * the connector. SB23 needs to be soldered in order to use it, and R77
+        * (ETH_CLK) should be removed.
+        */
+       uart-has-rtscts;
+       status = "disabled";
+};
+
 &usbh_ehci {
        phys = <&usbphyc_port0>;
        status = "okay";
index d660dfb74e98f655dd21ae883577bb293d6694e7..aa4aa83e05f1753d3e621d374b13459c660aa27c 100644 (file)
@@ -62,7 +62,7 @@
 
        led {
                compatible = "gpio-leds";
-               blue {
+               led-blue {
                        label = "heartbeat";
                        gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
        };
 };
 
+&i2c5 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&i2c5_pins_a>;
+       pinctrl-1 = <&i2c5_sleep_pins_a>;
+       i2c-scl-rising-time-ns = <185>;
+       i2c-scl-falling-time-ns = <20>;
+       clock-frequency = <400000>;
+       /* spare dmas for other usage */
+       /delete-property/dmas;
+       /delete-property/dma-names;
+       status = "disabled";
+};
+
 &i2s2 {
        clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
        clock-names = "pclk", "i2sclk", "x8k", "x11k";
 };
 
 &uart4 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep", "idle";
        pinctrl-0 = <&uart4_pins_a>;
+       pinctrl-1 = <&uart4_sleep_pins_a>;
+       pinctrl-2 = <&uart4_idle_pins_a>;
        status = "okay";
 };
 
+&uart7 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&uart7_pins_c>;
+       pinctrl-1 = <&uart7_sleep_pins_c>;
+       pinctrl-2 = <&uart7_idle_pins_c>;
+       status = "disabled";
+};
+
+&usart3 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&usart3_pins_c>;
+       pinctrl-1 = <&usart3_sleep_pins_c>;
+       pinctrl-2 = <&usart3_idle_pins_c>;
+       uart-has-rtscts;
+       status = "disabled";
+};
+
 &usbh_ehci {
        phys = <&usbphyc_port0>;
        status = "okay";
 };
 
 &usbotg_hs {
-       dr_mode = "peripheral";
        phys = <&usbphyc_port1 0>;
        phy-names = "usb2-phy";
+       usb-role-switch;
        status = "okay";
 };