]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32mp1: DT alignment with Linux 5.7-rc2
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 30 Apr 2020 13:52:46 +0000 (15:52 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Thu, 14 May 2020 07:02:12 +0000 (09:02 +0200)
DT alignment with Linux 5.7-rc2, including the kernel commits

431c89e6f323 ARM: dts: stm32: use correct vqmmc regu for eMMC on stm32mp1 ED1/EV1 boards
79e965053872 ARM: dts: stm32: add disable-wp property for SD-card on STM32MP1 boards
877db62ea516 ARM: dts: stm32: add cd-gpios properties for SD-cards on STM32MP1 boards
7519e95ba5f8 ARM: dts: stm32: Do clean up in stmpic nodes on stm32mp15 boards
f68e2dbc591a ARM: dts: stm32: Rename stmfx joystick pins on stm32mp157c-ev1
d6210da4f8bf ARM: dts: stm32: add cpu clock-frequency property on stm32mp15x
b65b6fc56925 ARM: dts: stm32: add wakeup-source in all I2C nodes of stm32mp157c
1c1cf5996cfb ARM: dts: stm32: add i2c4 sleep pinctrl on stm32mp157c-ed1
bef15fc0fad9 ARM: dts: stm32: add i2c2/i2c5 sleep pinctrl on stm32mp157c-ev1
b7fc0a87b9ac ARM: dts: stm32: add i2c4 sleep pinctrl on stm32mp15xx-dkx
a5e557655285 ARM: dts: stm32: set i2c4 bus freq to 400KHz on stm32mp15 DK boards
8bc631b650a6 ARM: dts: stm32: set i2c4 bus freq to 400KHz on stm32mp157c-ed1
fccd6a577bb3 ARM: dts: stm32: Correct stmfx node name on stm32mp157c-ev1 board
cc775a83db65 ARM: dts: stm32: add resets property on all DMA nodes on stm32mp151
c5fae093511b ARM: dts: stm32: enable USB OTG Dual Role on stm32mp157c-ev1
9879e2165758 ARM: dts: stm32: add USB OTG pinctrl to stm32mp15
82ac8a81f985 ARM: dts: stm32: add USB OTG full support on stm32mp151
8714b26e2863 ARM: dts: stm32: remove useless properties in stm32mp157a-avenger96 stmpic node
a7959919709e ARM: dts: stm32: Add UART8 pins A pinmux entry on stm32mp1
4d7c53a684da ARM: dts: stm32: Add USART3 pins A pinmux entry on stm32mp1
80ab128332ee ARM: dts: stm32: Add SAI2A pins B pinmux entry on stm32mp1
ab7f98c0c546 ARM: dts: stm32: Add Ethernet0 RMII pins A pinmux entry on stm32mp1

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/stm32mp153.dtsi
arch/arm/dts/stm32mp157c-ed1.dts
arch/arm/dts/stm32mp157c-ev1.dts
arch/arm/dts/stm32mp15xx-dhcom.dtsi
arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi
arch/arm/dts/stm32mp15xx-dkx.dtsi

index 29acdc4afdabeb1ce1292b92d231719e2dfaab96..8d00391978ae8d1726a1ac8c27856f802cd238a1 100644 (file)
                };
        };
 
+       ethernet0_rmii_pins_a: rmii-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH1_RMII_TXD0 */
+                                <STM32_PINMUX('G', 14, AF11)>, /* ETH1_RMII_TXD1 */
+                                <STM32_PINMUX('B', 11, AF11)>, /* ETH1_RMII_TX_EN */
+                                <STM32_PINMUX('A', 1, AF0)>,   /* ETH1_RMII_REF_CLK */
+                                <STM32_PINMUX('A', 2, AF11)>,  /* ETH1_MDIO */
+                                <STM32_PINMUX('C', 1, AF11)>;  /* ETH1_MDC */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <2>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('C', 4, AF11)>,  /* ETH1_RMII_RXD0 */
+                                <STM32_PINMUX('C', 5, AF11)>,  /* ETH1_RMII_RXD1 */
+                                <STM32_PINMUX('A', 7, AF11)>;  /* ETH1_RMII_CRS_DV */
+                       bias-disable;
+               };
+       };
+
+       ethernet0_rmii_pins_sleep_a: rmii-sleep-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('G', 13, ANALOG)>, /* ETH1_RMII_TXD0 */
+                                <STM32_PINMUX('G', 14, ANALOG)>, /* ETH1_RMII_TXD1 */
+                                <STM32_PINMUX('B', 11, ANALOG)>, /* ETH1_RMII_TX_EN */
+                                <STM32_PINMUX('A', 2, ANALOG)>,  /* ETH1_MDIO */
+                                <STM32_PINMUX('C', 1, ANALOG)>,  /* ETH1_MDC */
+                                <STM32_PINMUX('C', 4, ANALOG)>,  /* ETH1_RMII_RXD0 */
+                                <STM32_PINMUX('C', 5, ANALOG)>,  /* ETH1_RMII_RXD1 */
+                                <STM32_PINMUX('A', 1, ANALOG)>,  /* ETH1_RMII_REF_CLK */
+                                <STM32_PINMUX('A', 7, ANALOG)>;  /* ETH1_RMII_CRS_DV */
+               };
+       };
+
        fmc_pins_a: fmc-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
                };
        };
 
+       sai2a_pins_b: sai2a-2 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('I', 6, AF10)>,  /* SAI2_SD_A */
+                                <STM32_PINMUX('I', 7, AF10)>,  /* SAI2_FS_A */
+                                <STM32_PINMUX('D', 13, AF10)>; /* SAI2_SCK_A */
+                       slew-rate = <0>;
+                       drive-push-pull;
+                       bias-disable;
+               };
+       };
+
+       sai2a_sleep_pins_b: sai2a-sleep-3 {
+               pins {
+                       pinmux = <STM32_PINMUX('I', 6, ANALOG)>,  /* SAI2_SD_A */
+                                <STM32_PINMUX('I', 7, ANALOG)>,  /* SAI2_FS_A */
+                                <STM32_PINMUX('D', 13, ANALOG)>; /* SAI2_SCK_A */
+               };
+       };
+
        sai2b_pins_a: sai2b-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('E', 12, AF10)>, /* SAI2_SCK_B */
                };
        };
 
+       usart3_pins_a: usart3-0 {
+               pins1 {
+                       pinmux = <STM32_PINMUX('B', 10, AF7)>; /* USART3_TX */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <0>;
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
+                       bias-disable;
+               };
+       };
+
        uart4_pins_a: uart4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
                        bias-disable;
                };
        };
+
+       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;
+               };
+       };
+
+       usbotg_hs_pins_a: usbotg-hs-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('A', 10, ANALOG)>; /* OTG_ID */
+               };
+       };
+
+       usbotg_fs_dp_dm_pins_a: usbotg-fs-dp-dm-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* OTG_FS_DM */
+                                <STM32_PINMUX('A', 12, ANALOG)>; /* OTG_FS_DP */
+               };
+       };
 };
 
 &pinctrl_z {
index f185639a460f5a8c297764c0fd579cbc14c1b578..75d2c0d296efc509b77fce17730a284da19ca093 100644 (file)
@@ -17,6 +17,7 @@
 
                cpu0: cpu@0 {
                        compatible = "arm,cortex-a7";
+                       clock-frequency = <650000000>;
                        device_type = "cpu";
                        reg = <0>;
                };
                        resets = <&rcc I2C1_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        resets = <&rcc I2C2_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        resets = <&rcc I2C3_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        resets = <&rcc I2C5_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                                     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc DMA1>;
+                       resets = <&rcc DMA1_R>;
                        #dma-cells = <4>;
                        st,mem2mem;
                        dma-requests = <8>;
                                     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc DMA2>;
+                       resets = <&rcc DMA2_R>;
                        #dma-cells = <4>;
                        st,mem2mem;
                        dma-requests = <8>;
                        dma-masters = <&dma1 &dma2>;
                        dma-channels = <16>;
                        clocks = <&rcc DMAMUX>;
+                       resets = <&rcc DMAMUX_R>;
                };
 
                adc: adc@48003000 {
                };
 
                usbotg_hs: usb-otg@49000000 {
-                       compatible = "snps,dwc2";
+                       compatible = "st,stm32mp15-hsotg", "snps,dwc2";
                        reg = <0x49000000 0x10000>;
                        clocks = <&rcc USBO_K>;
                        clock-names = "otg";
                        reg = <0x58000000 0x1000>;
                        interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc MDMA>;
+                       resets = <&rcc MDMA_R>;
                        #dma-cells = <5>;
                        dma-channels = <32>;
                        dma-requests = <48>;
                        resets = <&rcc I2C4_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
                        resets = <&rcc I2C6_R>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       wakeup-source;
                        status = "disabled";
                };
 
index 2d759fc6015c5870826cb2f47883f2acf7cf3794..6d9ab08667fccff92f9267bff10e33f6cbdd72a7 100644 (file)
@@ -10,6 +10,7 @@
        cpus {
                cpu1: cpu@1 {
                        compatible = "arm,cortex-a7";
+                       clock-frequency = <650000000>;
                        device_type = "cpu";
                        reg = <1>;
                };
index 05d53264055e5b31c919cd611645f6a5350e2546..4fb71100f50471cc1a4e02d08ff81080646b6406 100644 (file)
 };
 
 &i2c4 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c4_pins_a>;
+       pinctrl-1 = <&i2c4_pins_sleep_a>;
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
+       clock-frequency = <400000>;
        status = "okay";
        /* spare dmas for other usage */
        /delete-property/dmas;
 
                        vdd_usb: ldo4 {
                                regulator-name = "vdd_usb";
-                               regulator-min-microvolt = <3300000>;
-                               regulator-max-microvolt = <3300000>;
                                interrupts = <IT_CURLIM_LDO4 0>;
                        };
 
                        vref_ddr: vref_ddr {
                                regulator-name = "vref_ddr";
                                regulator-always-on;
-                               regulator-over-current-protection;
                        };
 
                        bst_out: boost {
        pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
        st,neg-edge;
        bus-width = <8>;
        vmmc-supply = <&v3v3>;
-       vqmmc-supply = <&v3v3>;
+       vqmmc-supply = <&vdd>;
        mmc-ddr-3_3v;
        status = "okay";
 };
index 228e35e1688458b0f3433c80a47473e9afb331da..8a4c7ff31a922e7717f78a36eac0b5f963a6d9c9 100644 (file)
 };
 
 &i2c2 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c2_pins_a>;
+       pinctrl-1 = <&i2c2_pins_sleep_a>;
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
        status = "okay";
                interrupt-parent = <&gpioi>;
                vdd-supply = <&v3v3>;
 
-               stmfx_pinctrl: stmfx-pin-controller {
+               stmfx_pinctrl: pinctrl {
                        compatible = "st,stmfx-0300-pinctrl";
                        gpio-controller;
                        #gpio-cells = <2>;
                        #interrupt-cells = <2>;
                        gpio-ranges = <&stmfx_pinctrl 0 0 24>;
 
-                       joystick_pins: joystick {
+                       joystick_pins: joystick-pins {
                                pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
                                bias-pull-down;
                        };
 };
 
 &i2c5 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c5_pins_a>;
+       pinctrl-1 = <&i2c5_pins_sleep_a>;
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
        status = "okay";
 };
 
 &usbotg_hs {
-       dr_mode = "peripheral";
+       pinctrl-0 = <&usbotg_hs_pins_a>;
+       pinctrl-names = "default";
        phys = <&usbphyc_port1 0>;
        phy-names = "usb2-phy";
        status = "okay";
index d8a255b9c687f65c0e182200e51927968d54d197..b3f4cb45154a2d02e60fdc8d7d2230aa781f95de 100644 (file)
        pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
index 248fc455e3559d1be1b197dd35d46c1b61fa06e8..64299df8166a583cf985ab62c2bee73235a5f99f 100644 (file)
                #interrupt-cells = <2>;
                status = "okay";
 
-               st,main-control-register = <0x04>;
-               st,vin-control-register = <0xc0>;
-               st,usb-control-register = <0x30>;
-
                regulators {
                        compatible = "st,stpmic1-regulators";
 
@@ -78,7 +74,6 @@
                                regulator-min-microvolt = <2900000>;
                                regulator-max-microvolt = <2900000>;
                                regulator-always-on;
-                               st,mask_reset;
                                regulator-initial-mode = <0>;
                                regulator-over-current-protection;
                        };
 
                        vdd_usb: ldo4 {
                                regulator-name = "vdd_usb";
-                               regulator-min-microvolt = <3300000>;
-                               regulator-max-microvolt = <3300000>;
                                interrupts = <IT_CURLIM_LDO4 0>;
                                interrupt-parent = <&pmic>;
                        };
                        vref_ddr: vref_ddr {
                                regulator-name = "vref_ddr";
                                regulator-always-on;
-                               regulator-over-current-protection;
                        };
 
                        bst_out: boost {
index 9ce10a52f06cc9eb645ad479af690721b51a070f..812e370ee4079358eec670c9a51dd91856c1a15b 100644 (file)
 };
 
 &i2c4 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c4_pins_a>;
+       pinctrl-1 = <&i2c4_pins_sleep_a>;
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
+       clock-frequency = <400000>;
        status = "okay";
        /* spare dmas for other usage */
        /delete-property/dmas;
 
                        vdd_usb: ldo4 {
                                regulator-name = "vdd_usb";
-                               regulator-min-microvolt = <3300000>;
-                               regulator-max-microvolt = <3300000>;
                                interrupts = <IT_CURLIM_LDO4 0>;
                        };
 
                        vref_ddr: vref_ddr {
                                regulator-name = "vref_ddr";
                                regulator-always-on;
-                               regulator-over-current-protection;
                        };
 
                         bst_out: boost {
        pinctrl-0 = <&sdmmc1_b4_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,neg-edge;
        bus-width = <4>;
        vmmc-supply = <&v3v3>;