]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: uniphier-sd: sync with Linux
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 10 Sep 2018 03:58:35 +0000 (12:58 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 11 Sep 2018 11:37:18 +0000 (20:37 +0900)
Sync with the driver code and the binding recently merged in Linux.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/dts/uniphier-ld20.dtsi
arch/arm/dts/uniphier-ld4.dtsi
arch/arm/dts/uniphier-pinctrl.dtsi
arch/arm/dts/uniphier-pro4-ref.dts
arch/arm/dts/uniphier-pro4.dtsi
arch/arm/dts/uniphier-pro5.dtsi
arch/arm/dts/uniphier-pxs2.dtsi
arch/arm/dts/uniphier-pxs3.dtsi
arch/arm/dts/uniphier-sld8.dtsi
drivers/mmc/uniphier-sd.c

index 35867ab95322e8ca51d99e320ce2686ce5f3645a..997049703940d80645cfce83290b825c268e32de 100644 (file)
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a400000 0x800>;
                        interrupts = <0 76 4>;
index e3d3138e6d9d427e6f73e88ecb62abfaf06412c5..f505f643f76b6fad07c3d39831861b6bc1cd6a23 100644 (file)
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a400000 0x200>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
-                       pinctrl-1 = <&pinctrl_sd_1v8>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&mio_clk 0>;
                        reset-names = "host", "bridge";
                        resets = <&mio_rst 0>, <&mio_rst 3>;
                };
 
                emmc: sdhc@5a500000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a500000 0x200>;
                        interrupts = <0 78 4>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&mio_clk 1>;
-                       reset-names = "host", "bridge";
-                       resets = <&mio_rst 1>, <&mio_rst 4>;
+                       reset-names = "host", "bridge", "hw";
+                       resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
                        bus-width = <8>;
-                       non-removable;
                        cap-mmc-highspeed;
                        cap-mmc-hw-reset;
+                       non-removable;
                };
 
                usb0: usb@5a800100 {
index 2dc86d272845813441a9f23f574e0b848ff9aced..aeb47b0ffe92a62288256635a532e7744de10f77 100644 (file)
                function = "sd";
        };
 
-       pinctrl_sd_1v8: sd-1v8 {
+       pinctrl_sd_uhs: sd-uhs {
                groups = "sd";
                function = "sd";
        };
                function = "sd1";
        };
 
-       pinctrl_sd1_1v8: sd1-1v8 {
-               groups = "sd1";
-               function = "sd1";
-       };
-
        pinctrl_system_bus: system-bus {
                groups = "system_bus", "system_bus_cs1";
                function = "system_bus";
index 198add340960b7738f71c4abc3362d5f91a96b9f..06065eb36cad1cfb21181c860f9922661cea79d2 100644 (file)
        status = "okay";
 };
 
-&sd1 {
-       status = "okay";
-};
-
 &usb2 {
        status = "okay";
 };
index 3cd9b729d0d29895d2902527cc849471dd6ae459..8974844541cd1badb498140a21005255b702b68a 100644 (file)
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a400000 0x200>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
-                       pinctrl-1 = <&pinctrl_sd_1v8>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&mio_clk 0>;
                        reset-names = "host", "bridge";
                        resets = <&mio_rst 0>, <&mio_rst 3>;
                };
 
                emmc: sdhc@5a500000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a500000 0x200>;
                        interrupts = <0 78 4>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&mio_clk 1>;
-                       reset-names = "host", "bridge";
-                       resets = <&mio_rst 1>, <&mio_rst 4>;
+                       reset-names = "host", "bridge", "hw";
+                       resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
                        bus-width = <8>;
-                       non-removable;
                        cap-mmc-highspeed;
                        cap-mmc-hw-reset;
+                       non-removable;
                };
 
                sd1: sdhc@5a600000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a600000 0x200>;
                        interrupts = <0 85 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_sd1>;
-                       pinctrl-1 = <&pinctrl_sd1_1v8>;
                        clocks = <&mio_clk 2>;
+                       reset-names = "host", "bridge";
                        resets = <&mio_rst 2>, <&mio_rst 5>;
                        bus-width = <4>;
                        cap-sd-highspeed;
-                       sd-uhs-sdr12;
-                       sd-uhs-sdr25;
-                       sd-uhs-sdr50;
                };
 
                usb2: usb@5a800100 {
index 6aea9af2b6c516867217fcc90fd8984db1995691..6e0ea7976e04cb5904a0709d337819df460fd7e4 100644 (file)
                };
 
                emmc: sdhc@68400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1";
                        status = "disabled";
                        reg = <0x68400000 0x800>;
                        interrupts = <0 78 4>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&sd_clk 1>;
-                       reset-names = "host";
-                       resets = <&sd_rst 1>;
+                       reset-names = "host", "hw";
+                       resets = <&sd_rst 1>, <&sd_rst 6>;
                        bus-width = <8>;
-                       non-removable;
                        cap-mmc-highspeed;
                        cap-mmc-hw-reset;
-                       no-3-3-v;
+                       non-removable;
                };
 
                sd: sdhc@68800000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1";
                        status = "disabled";
                        reg = <0x68800000 0x800>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
-                       pinctrl-1 = <&pinctrl_sd_1v8>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&sd_clk 0>;
                        reset-names = "host";
                        resets = <&sd_rst 0>;
index 48782a567af81a51a4e3777c3f865cdb69816b20..63c1c2ce6052da29abbb0d4c374f7e6fe432af77 100644 (file)
                };
 
                emmc: sdhc@5a000000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a000000 0x800>;
                        interrupts = <0 78 4>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&sd_clk 1>;
-                       reset-names = "host";
-                       resets = <&sd_rst 1>;
+                       reset-names = "host", "hw";
+                       resets = <&sd_rst 1>, <&sd_rst 6>;
                        bus-width = <8>;
-                       non-removable;
                        cap-mmc-highspeed;
                        cap-mmc-hw-reset;
-                       no-3-3-v;
+                       non-removable;
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a400000 0x800>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
-                       pinctrl-1 = <&pinctrl_sd_1v8>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&sd_clk 0>;
                        reset-names = "host";
                        resets = <&sd_rst 0>;
index c6ec63c6973ebae72c0b7b86dec9ed2895c17a97..daf74531e44e481510bad179bf9dcccc9d4da133 100644 (file)
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a400000 0x800>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&sd_clk 0>;
                        reset-names = "host";
                        resets = <&sd_rst 0>;
                        bus-width = <4>;
                        cap-sd-highspeed;
+                       sd-uhs-sdr12;
+                       sd-uhs-sdr25;
+                       sd-uhs-sdr50;
                };
 
                soc_glue: soc-glue@5f800000 {
index 35c2f856f05d69e2c30bd9303ff636870f5adb4f..437265bb739348e70e7f227e57de870b7f87641f 100644 (file)
                };
 
                sd: sdhc@5a400000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a400000 0x200>;
                        interrupts = <0 76 4>;
-                       pinctrl-names = "default", "1.8v";
+                       pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
-                       pinctrl-1 = <&pinctrl_sd_1v8>;
+                       pinctrl-1 = <&pinctrl_sd_uhs>;
                        clocks = <&mio_clk 0>;
                        reset-names = "host", "bridge";
                        resets = <&mio_rst 0>, <&mio_rst 3>;
                };
 
                emmc: sdhc@5a500000 {
-                       compatible = "socionext,uniphier-sdhc";
+                       compatible = "socionext,uniphier-sd-v2.91";
                        status = "disabled";
                        reg = <0x5a500000 0x200>;
                        interrupts = <0 78 4>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&mio_clk 1>;
-                       reset-names = "host", "bridge";
-                       resets = <&mio_rst 1>, <&mio_rst 4>;
+                       reset-names = "host", "bridge", "hw";
+                       resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
                        bus-width = <8>;
-                       non-removable;
                        cap-mmc-highspeed;
                        cap-mmc-hw-reset;
+                       non-removable;
                };
 
                usb0: usb@5a800100 {
index ad5dbb3433aecfd3d0b2b055b5df706d0c8689e5..813c28494c377e49146965997afcc685c535f3e8 100644 (file)
@@ -25,7 +25,9 @@ static const struct dm_mmc_ops uniphier_sd_ops = {
 };
 
 static const struct udevice_id uniphier_sd_match[] = {
-       { .compatible = "socionext,uniphier-sdhc", .data = 0 },
+       { .compatible = "socionext,uniphier-sd-v2.91" },
+       { .compatible = "socionext,uniphier-sd-v3.1" },
+       { .compatible = "socionext,uniphier-sd-v3.1.1" },
        { /* sentinel */ }
 };