]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32mp: alignment with v6.4
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 10 Jul 2023 08:38:45 +0000 (10:38 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 16 Aug 2023 13:30:49 +0000 (15:30 +0200)
Device tree alignment with Linux kernel v6.4.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp13-pinctrl.dtsi
arch/arm/dts/stm32mp131.dtsi
arch/arm/dts/stm32mp135f-dk.dts
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 b2dce3a29f39caeec22981b921d4997e90994ee8..27e0c3826789de645c5cc201444aa5f577d32fa3 100644 (file)
                        bias-disable;
                };
        };
+
+       uart4_idle_pins_a: uart4-idle-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('D', 6, ANALOG)>; /* UART4_TX */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
+                       bias-disable;
+               };
+       };
+
+       uart4_sleep_pins_a: uart4-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('D', 6, ANALOG)>, /* UART4_TX */
+                                <STM32_PINMUX('D', 8, ANALOG)>; /* UART4_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('F', 9, AF8)>; /* UART8_RX */
+                       bias-pull-up;
+               };
+       };
+
+       uart8_idle_pins_a: uart8-idle-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('E', 1, ANALOG)>; /* UART8_TX */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('F', 9, AF8)>; /* UART8_RX */
+                       bias-pull-up;
+               };
+       };
+
+       uart8_sleep_pins_a: uart8-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('E', 1, ANALOG)>, /* UART8_TX */
+                                <STM32_PINMUX('F', 9, ANALOG)>; /* UART8_RX */
+               };
+       };
+
+       usart1_pins_a: usart1-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('C', 0, AF7)>, /* USART1_TX */
+                                <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 0, AF4)>, /* USART1_RX */
+                                <STM32_PINMUX('A', 7, AF7)>; /* USART1_CTS_NSS */
+                       bias-pull-up;
+               };
+       };
+
+       usart1_idle_pins_a: usart1-idle-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
+                                <STM32_PINMUX('A', 7, ANALOG)>; /* USART1_CTS_NSS */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins3 {
+                       pinmux = <STM32_PINMUX('B', 0, AF4)>; /* USART1_RX */
+                       bias-pull-up;
+               };
+       };
+
+       usart1_sleep_pins_a: usart1-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
+                                <STM32_PINMUX('C', 2, ANALOG)>, /* USART1_RTS */
+                                <STM32_PINMUX('A', 7, ANALOG)>, /* USART1_CTS_NSS */
+                                <STM32_PINMUX('B', 0, ANALOG)>; /* USART1_RX */
+               };
+       };
+
+       usart2_pins_a: usart2-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('H', 12, AF1)>, /* USART2_TX */
+                                <STM32_PINMUX('D', 4, AF3)>; /* USART2_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('D', 15, AF1)>, /* USART2_RX */
+                                <STM32_PINMUX('E', 11, AF2)>; /* USART2_CTS_NSS */
+                       bias-disable;
+               };
+       };
+
+       usart2_idle_pins_a: usart2-idle-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('H', 12, ANALOG)>, /* USART2_TX */
+                                <STM32_PINMUX('E', 11, ANALOG)>; /* USART2_CTS_NSS */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('D', 4, AF3)>; /* USART2_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins3 {
+                       pinmux = <STM32_PINMUX('D', 15, AF1)>; /* USART2_RX */
+                       bias-disable;
+               };
+       };
+
+       usart2_sleep_pins_a: usart2-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('H', 12, ANALOG)>, /* USART2_TX */
+                                <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
+                                <STM32_PINMUX('D', 15, ANALOG)>, /* USART2_RX */
+                                <STM32_PINMUX('E', 11, ANALOG)>; /* USART2_CTS_NSS */
+               };
+       };
 };
index d94ba25472679e37d1374c13104c2fd1a0a4139e..d163c267e34c6292d3e122ce3457be5b8fc8d137 100644 (file)
                        status = "disabled";
                };
 
+               usart3: serial@4000f000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x4000f000 0x400>;
+                       interrupts-extended = <&exti 28 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc USART3_K>;
+                       resets = <&rcc USART3_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 45 0x400 0x5>,
+                              <&dmamux1 46 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                uart4: serial@40010000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40010000 0x400>;
-                       interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 30 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc UART4_K>;
                        resets = <&rcc UART4_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 63 0x400 0x5>,
+                              <&dmamux1 64 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
+               uart5: serial@40011000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x40011000 0x400>;
+                       interrupts-extended = <&exti 31 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc UART5_K>;
+                       resets = <&rcc UART5_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 65 0x400 0x5>,
+                              <&dmamux1 66 0x400 0x1>;
+                       dma-names = "rx", "tx";
                        status = "disabled";
                };
 
                        status = "disabled";
                };
 
+               uart7: serial@40018000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x40018000 0x400>;
+                       interrupts-extended = <&exti 32 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc UART7_K>;
+                       resets = <&rcc UART7_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 79 0x400 0x5>,
+                              <&dmamux1 80 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
+               uart8: serial@40019000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x40019000 0x400>;
+                       interrupts-extended = <&exti 33 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc UART8_K>;
+                       resets = <&rcc UART8_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 81 0x400 0x5>,
+                              <&dmamux1 82 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                timers1: timer@44000000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        };
                };
 
+               usart6: serial@44003000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x44003000 0x400>;
+                       interrupts-extended = <&exti 29 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc USART6_K>;
+                       resets = <&rcc USART6_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 71 0x400 0x5>,
+                              <&dmamux1 72 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                i2s1: audio-controller@44004000 {
                        compatible = "st,stm32h7-i2s";
                        reg = <0x44004000 0x400>;
                        status = "disabled";
                };
 
+               usart1: serial@4c000000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x4c000000 0x400>;
+                       interrupts-extended = <&exti 26 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc USART1_K>;
+                       resets = <&rcc USART1_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 41 0x400 0x5>,
+                              <&dmamux1 42 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
+               usart2: serial@4c001000 {
+                       compatible = "st,stm32h7-uart";
+                       reg = <0x4c001000 0x400>;
+                       interrupts-extended = <&exti 27 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&rcc USART2_K>;
+                       resets = <&rcc USART2_R>;
+                       wakeup-source;
+                       dmas = <&dmamux1 43 0x400 0x5>,
+                              <&dmamux1 44 0x400 0x1>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                i2s4: audio-controller@4c002000 {
                        compatible = "st,stm32h7-i2s";
                        reg = <0x4c002000 0x400>;
                        reg = <0x50000000 0x1000>;
                        #clock-cells = <1>;
                        #reset-cells = <1>;
-                       interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
-
                        clock-names = "hse", "hsi", "csi", "lse", "lsi";
                        clocks = <&scmi_clk CK_SCMI_HSE>,
                                 <&scmi_clk CK_SCMI_HSI>,
index c40686cb2b9a1ed1297eed07694cae0fce384345..f0900ca672b5a86893e1c6bc5361f2c8a00314f7 100644 (file)
 
        aliases {
                serial0 = &uart4;
+               serial1 = &usart1;
+               serial2 = &uart8;
+               serial3 = &usart2;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
        };
 
        memory@c0000000 {
 };
 
 &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>;
+       /delete-property/dmas;
+       /delete-property/dma-names;
+       status = "okay";
+};
+
+&uart8 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&uart8_pins_a>;
+       pinctrl-1 = <&uart8_sleep_pins_a>;
+       pinctrl-2 = <&uart8_idle_pins_a>;
+       /delete-property/dmas;
+       /delete-property/dma-names;
+       status = "disabled";
+};
+
+&usart1 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&usart1_pins_a>;
+       pinctrl-1 = <&usart1_sleep_pins_a>;
+       pinctrl-2 = <&usart1_idle_pins_a>;
+       uart-has-rtscts;
+       status = "disabled";
+};
+
+/* Bluetooth */
+&usart2 {
+       pinctrl-names = "default", "sleep", "idle";
+       pinctrl-0 = <&usart2_pins_a>;
+       pinctrl-1 = <&usart2_sleep_pins_a>;
+       pinctrl-2 = <&usart2_idle_pins_a>;
+       uart-has-rtscts;
        status = "okay";
 };
 
index a9d2bec9901412ae98cd7f3981d5269c16cb46b8..e86d989dd351d3677e3a6f067e2745aeb9ba6bcc 100644 (file)
                };
        };
 
+       spi1_pins_b: spi1-1 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('A', 5, AF5)>, /* SPI1_SCK */
+                                <STM32_PINMUX('B', 5, AF5)>; /* SPI1_MOSI */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <1>;
+               };
+
+               pins2 {
+                       pinmux = <STM32_PINMUX('A', 6, AF5)>; /* SPI1_MISO */
+                       bias-disable;
+               };
+       };
+
        spi2_pins_a: spi2-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('B', 10, AF5)>, /* SPI2_SCK */
                                 <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
                        bias-disable;
                        drive-push-pull;
-                       slew-rate = <3>;
+                       slew-rate = <0>;
                };
                pins2 {
                        pinmux = <STM32_PINMUX('D', 6, AF7)>, /* USART2_RX */
                        pinmux = <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
                        bias-disable;
                        drive-push-pull;
-                       slew-rate = <3>;
+                       slew-rate = <0>;
                };
                pins3 {
                        pinmux = <STM32_PINMUX('D', 6, AF7)>; /* USART2_RX */
                        bias-disable;
                };
        };
-
-       spi1_pins_b: spi1-1 {
-               pins1 {
-                       pinmux = <STM32_PINMUX('A', 5, AF5)>, /* SPI1_SCK */
-                                <STM32_PINMUX('B', 5, AF5)>; /* SPI1_MOSI */
-                       bias-disable;
-                       drive-push-pull;
-                       slew-rate = <1>;
-               };
-
-               pins2 {
-                       pinmux = <STM32_PINMUX('A', 6, AF5)>; /* SPI1_MISO */
-                       bias-disable;
-               };
-       };
 };
index b3baacbb26943d84cf77ba6669c5068e89e98a46..21d11be328c098d932094fe15b73cf6705fefbcf 100644 (file)
                usbotg_hs: usb-otg@49000000 {
                        compatible = "st,stm32mp15-hsotg", "snps,dwc2";
                        reg = <0x49000000 0x10000>;
-                       clocks = <&rcc USBO_K>;
-                       clock-names = "otg";
+                       clocks = <&rcc USBO_K>, <&usbphyc>;
+                       clock-names = "otg", "utmi";
                        resets = <&rcc USBO_R>;
                        reset-names = "dwc2";
                        interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
index 4c8be9c8eb20e2e25695700b1acce06d0fa556de..0da3667ab1e0eea183869b98fc6b62795ee75e1e 100644 (file)
@@ -17,9 +17,6 @@
 
        aliases {
                ethernet0 = &ethernet0;
-               serial0 = &uart4;
-               serial1 = &usart3;
-               serial2 = &uart7;
        };
 
        chosen {
index 2bc92ef3aeb9570d496f521a142326832cc379c0..ab13e340f4ef58fa837bf6b4971dee2ca0b8e157 100644 (file)
@@ -18,9 +18,6 @@
 
        aliases {
                ethernet0 = &ethernet0;
-               serial0 = &uart4;
-               serial1 = &usart3;
-               serial2 = &uart7;
                serial3 = &usart2;
        };
 
index fe5c8f25cecd80ac16d16891f6223b28425e204d..3541a17dceb9f40d38cf0a3694158c99b3281b31 100644 (file)
        model = "STMicroelectronics STM32MP157C eval daughter";
        compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
 
+       aliases {
+               serial0 = &uart4;
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };
                        reg = <0x38000000 0x10000>;
                        no-map;
                };
-
-               gpu_reserved: gpu@e8000000 {
-                       reg = <0xe8000000 0x8000000>;
-                       no-map;
-               };
-       };
-
-       aliases {
-               serial0 = &uart4;
        };
 
        sd_switch: regulator-sd_switch {
        status = "okay";
 };
 
-&gpu {
-       contiguous-area = <&gpu_reserved>;
-};
-
 &hash1 {
        status = "okay";
 };
index 542226cfcfdfb6ec60ec280c7ff46efe5cf79b07..ba8e9d9a42fafd7a4957bc99c2d868087518fc3d 100644 (file)
        model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
        compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
 
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        aliases {
-               serial0 = &uart4;
                serial1 = &usart3;
                ethernet0 = &ethernet0;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        clocks {
                clk_ext_camera: clk-ext-camera {
                        #clock-cells = <0>;
index 49b3e768c89826b113c10516613ce2debeca6374..f4de6c0b7587d5cd1816c3e52d3a87a2d5ae3f38 100644 (file)
@@ -8,6 +8,12 @@
 #include <dt-bindings/mfd/st,stpmic1.h>
 
 / {
+       aliases {
+               serial0 = &uart4;
+               serial1 = &usart3;
+               serial2 = &uart7;
+       };
+
        memory@c0000000 {
                device_type = "memory";
                reg = <0xc0000000 0x20000000>;
                        reg = <0x38000000 0x10000>;
                        no-map;
                };
-
-               gpu_reserved: gpu@d4000000 {
-                       reg = <0xd4000000 0x4000000>;
-                       no-map;
-               };
        };
 
        led {
        };
 };
 
-&gpu {
-       contiguous-area = <&gpu_reserved>;
-};
-
 &hash1 {
        status = "okay";
 };