]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: stm32mp15: alignment with v5.13
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 29 Jun 2021 10:01:07 +0000 (12:01 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 16 Jul 2021 07:28:46 +0000 (09:28 +0200)
Device tree alignment with Linux kernel v5.13
- ARM: dts: stm32: Add PTP clock to Ethernet controller
- ARM: dts: stm32: enable the analog filter for all I2C nodes in
  stm32mp151
- ARM: dts: stm32: fix usart 2 & 3 pinconf to wake up with flow control
- ARM: dts: stm32: Add wakeup management on stm32mp15x UART nodes
- ARM: dts: stm32: add #clock-cells property to usbphyc node on stm32mp151
- ARM: dts: stm32: Add STM32MP1 I2C6 SDA/SCL pinmux
- ARM: dts: stm32: Rename mmc controller nodes to mmc@
- ARM: dts: stm32: Add additional init state for SDMMC1 pins

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp15-pinctrl.dtsi
arch/arm/dts/stm32mp151.dtsi

index 20a59e8f7a33fc380832e4a880471dbfdfd14f57..060baa8b7e9d4daadc97c9f8545307d60eb2e2c8 100644 (file)
                };
        };
 
+       sdmmc1_b4_init_pins_a: sdmmc1-b4-init-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
+                                <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
+                                <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
+                                <STM32_PINMUX('C', 11, AF12)>; /* SDMMC1_D3 */
+                       slew-rate = <1>;
+                       drive-push-pull;
+                       bias-disable;
+               };
+       };
+
        sdmmc1_b4_sleep_pins_a: sdmmc1-b4-sleep-0 {
                pins {
                        pinmux = <STM32_PINMUX('C', 8, ANALOG)>, /* SDMMC1_D0 */
                };
        };
 
+       sdmmc1_dir_init_pins_a: sdmmc1-dir-init-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
+                                <STM32_PINMUX('C', 7, AF8)>, /* SDMMC1_D123DIR */
+                                <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */
+                       slew-rate = <1>;
+                       drive-push-pull;
+                       bias-pull-up;
+               };
+       };
+
        sdmmc1_dir_sleep_pins_a: sdmmc1-dir-sleep-0 {
                pins {
                        pinmux = <STM32_PINMUX('F', 2, ANALOG)>, /* SDMMC1_D0DIR */
        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', 4, AF7)>; /* USART2_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <3>;
+               };
+               pins3 {
                        pinmux = <STM32_PINMUX('D', 6, AF7)>; /* USART2_RX */
                        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('G', 8, AF8)>; /* USART3_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins3 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
                        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('G', 8, AF8)>; /* USART3_RTS */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins3 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
                        bias-disable;
                };
                };
        };
 
+       i2c6_pins_a: i2c6-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('Z', 6, AF2)>, /* I2C6_SCL */
+                                <STM32_PINMUX('Z', 7, AF2)>; /* I2C6_SDA */
+                       bias-disable;
+                       drive-open-drain;
+                       slew-rate = <0>;
+               };
+       };
+
+       i2c6_sleep_pins_a: i2c6-sleep-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('Z', 6, ANALOG)>, /* I2C6_SCL */
+                                <STM32_PINMUX('Z', 7, ANALOG)>; /* I2C6_SDA */
+               };
+       };
+
        spi1_pins_a: spi1-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('Z', 0, AF5)>, /* SPI1_SCK */
index b564fc6269394c02f8bf3d36713aca22f7d6eccf..177927d14efabb54f9b3ede5a2c504448a896378 100644 (file)
                usart2: serial@4000e000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x4000e000 0x400>;
-                       interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 27 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc USART2_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                usart3: serial@4000f000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x4000f000 0x400>;
-                       interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 28 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc USART3_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                uart4: serial@40010000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40010000 0x400>;
-                       interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 30 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc UART4_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                uart5: serial@40011000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40011000 0x400>;
-                       interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 31 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc UART5_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x1>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x2>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x4>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x10>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };
 
                uart7: serial@40018000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40018000 0x400>;
-                       interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 32 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc UART7_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                uart8: serial@40019000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40019000 0x400>;
-                       interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 33 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc UART8_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                usart6: serial@44003000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x44003000 0x400>;
-                       interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 29 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc USART6_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        };
                };
 
-               sdmmc3: sdmmc@48004000 {
+               sdmmc3: mmc@48004000 {
                        compatible = "arm,pl18x", "arm,primecell";
                        arm,primecell-periphid = <0x00253180>;
                        reg = <0x48004000 0x400>;
                        status = "disabled";
                };
 
-               sdmmc1: sdmmc@58005000 {
+               sdmmc1: mmc@58005000 {
                        compatible = "arm,pl18x", "arm,primecell";
                        arm,primecell-periphid = <0x00253180>;
                        reg = <0x58005000 0x1000>;
                        status = "disabled";
                };
 
-               sdmmc2: sdmmc@58007000 {
+               sdmmc2: mmc@58007000 {
                        compatible = "arm,pl18x", "arm,primecell";
                        arm,primecell-periphid = <0x00253180>;
                        reg = <0x58007000 0x1000>;
                                      "mac-clk-tx",
                                      "mac-clk-rx",
                                      "eth-ck",
+                                     "ptp_ref",
                                      "ethstp";
                        clocks = <&rcc ETHMAC>,
                                 <&rcc ETHTX>,
                                 <&rcc ETHRX>,
                                 <&rcc ETHCK_K>,
+                                <&rcc ETHPTP_K>,
                                 <&rcc ETHSTP>;
                        st,syscon = <&syscfg 0x4>;
                        snps,mixed-burst;
                usbphyc: usbphyc@5a006000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       #clock-cells = <0>;
                        compatible = "st,stm32mp1-usbphyc";
                        reg = <0x5a006000 0x1000>;
                        clocks = <&rcc USBPHY_K>;
                usart1: serial@5c000000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x5c000000 0x400>;
-                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&exti 26 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc USART1_K>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x8>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };
 
                        #size-cells = <0>;
                        st,syscfg-fmp = <&syscfg 0x4 0x20>;
                        wakeup-source;
+                       i2c-analog-filter;
                        status = "disabled";
                };