]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: exynos: Add upstream DW MMC properties to all Exynos dts
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:20 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
Some device tree properties for DW MMC block were updated in Linux
kernel. Let's follow its example and rework corresponding properties in
all Exynos device trees. Don't remove outdated properties yet, it'll be
done later once DW MMC driver is updated accordingly to read the updated
properties instead of outdated ones.

Next properties are added:

* samsung,dw-mshc-ciu-div and samsung,dw-mshc-sdr-timing:

  They were derived from outdated samsung,timing property.

* fifo-depth (generic replacement for fifoth_val):

  FIFO depth was calculated from fifoth_val (using expressions from
  FIFOTH register description in TRM):

      fifo-depth = ((fifoth_val >> 16) + 1) * 2

* bus-width: generic replacement for samsung,bus-width
* clock-frequency: generic replacement for bus_hz
* non-removable: generic replacement for samsung,removable = <0>

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 files changed:
arch/arm/dts/exynos4210-origen.dts
arch/arm/dts/exynos4210-trats.dts
arch/arm/dts/exynos4210-universal_c210.dts
arch/arm/dts/exynos4412-odroid.dts
arch/arm/dts/exynos4412-trats2.dts
arch/arm/dts/exynos5250-arndale.dts
arch/arm/dts/exynos5250-smdk5250.dts
arch/arm/dts/exynos5250-snow.dts
arch/arm/dts/exynos5250-spring.dts
arch/arm/dts/exynos5420-smdk5420.dts
arch/arm/dts/exynos5422-odroidxu3.dts
arch/arm/dts/exynos54xx.dtsi

index 65a5fcd67effe09bbd148c4c51922f7fb4b26770..a4915de2c49c5c9ea8eb7334dcc9d2937c38a7b0 100644 (file)
@@ -26,6 +26,7 @@
 
 &sdhci2 {
        samsung,bus-width = <4>;
+       bus-width = <4>;
        samsung,timing = <1 2 3>;
        cd-gpios = <&gpk2 2 0>;
        status = "okay";
index 05989ee97e5b314739008db2306e81c6bcd4c9db..4fbdf4730994739861af92fb07ab23940b612161 100644 (file)
 
 &sdhci0 {
        samsung,bus-width = <8>;
+       bus-width = <8>;
        samsung,timing = <1 3 3>;
        pwr-gpios = <&gpk0 2 0>;
        status = "okay";
 
 &sdhci2 {
        samsung,bus-width = <4>;
+       bus-width = <4>;
        samsung,timing = <1 2 3>;
        cd-gpios = <&gpx3 4 0>;
        status = "okay";
index 610a8ad2e71eba0e8dbdf7a5a23a8b68cb69e006..1b3ac1fee15f2fe4fbcb1fef9bcae8fb9cc6f737 100644 (file)
 
 &sdhci0 {
        samsung,bus-width = <8>;
+       bus-width = <8>;
        samsung,timing = <1 3 3>;
        pwr-gpios = <&gpk0 2 0>;
        status = "okay";
 
 &sdhci2 {
        samsung,bus-width = <4>;
+       bus-width = <4>;
        samsung,timing = <1 2 3>;
        cd-gpios = <&gpx3 4 0>;
        status = "okay";
index ce08e8dc1ebb1b10911fdace90365229dbb29094..a405b9708719487e7bf6b75ed44e29771212cf38 100644 (file)
 
 &sdhci2 {
        samsung,bus-width = <4>;
+       bus-width = <4>;
        samsung,timing = <1 2 3>;
        cd-inverted;
        cd-gpios = <&gpk2 2 0>;
 
 &mshc_0 {
        samsung,bus-width = <8>;
+       bus-width = <8>;
        samsung,timing = <2 1 0>;
+       samsung,dw-mshc-ciu-div = <0>;
+       samsung,dw-mshc-sdr-timing = <2 1>;
        samsung,removable = <0>;
+       non-removable;
        fifoth_val = <0x203f0040>;
+       fifo-depth = <0x80>;
+       clock-frequency = <400000000>;
        bus_hz = <400000000>;
        div = <0x3>;
        index = <4>;
index c4db137e01f62e98c8f34c1aba79ce0f7fb86641..30758ffa1ef981b159ec11e353f54b345cf6e801 100644 (file)
 
        sdhci@12510000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
                pwr-gpios = <&gpk0 4 0>;
                status = "disabled";
 
 &sdhci0 {
        samsung,bus-width = <8>;
+       bus-width = <8>;
        samsung,timing = <1 3 3>;
        pwr-gpios = <&gpk0 4 0>;
        status = "disabled";
 
 &sdhci2 {
        samsung,bus-width = <4>;
+       bus-width = <4>;
        samsung,timing = <1 2 3>;
        cd-gpios = <&gpk2 2 0>;
        status = "okay";
 
 &mshc_0 {
        samsung,bus-width = <8>;
+       bus-width = <8>;
        samsung,timing = <2 1 0>;
+       samsung,dw-mshc-ciu-div = <0>;
+       samsung,dw-mshc-sdr-timing = <2 1>;
        samsung,removable = <0>;
+       non-removable;
        fifoth_val = <0x203f0040>;
+       clock-frequency = <400000000>;
        bus_hz = <400000000>;
        div = <0x3>;
        index = <4>;
index 60309c61f302d867c90a3073ceef88ce51bcf8b5..7f84589c97a2026b63a0db1af3b2d040694dbefd 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
        };
 
        mmc@12210000 {
 
        mmc@12220000 {
                samsung,bus-width = <4>;
+               bus-width = <4>;
                samsung,timing = <1 2 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 2>;
        };
 
        mmc@12230000 {
index afe0cca48a931e6c13301c5b3473f2b42a82adf2..882db2d1f6085a68ed51b4b80c9d34819fde36c9 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
                samsung,removable = <0>;
+               non-removable;
        };
 
        mmc@12210000 {
 
        mmc@12220000 {
                samsung,bus-width = <4>;
+               bus-width = <4>;
                samsung,timing = <1 2 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 2>;
                samsung,removable = <1>;
        };
 
index e41f2d3041e2f1a40358212a92f66e5a75ec99a2..bcf04d5c07c0c6102da470c926f5a4dc4b411a29 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
                samsung,removable = <0>;
+               non-removable;
        };
 
        mmc@12210000 {
 
        mmc@12220000 {
                samsung,bus-width = <4>;
+               bus-width = <4>;
                samsung,timing = <1 2 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 2>;
                samsung,removable = <1>;
        };
 
index 77e7a6b9e45a61554c2996efe2e37d04d7bb014f..7270a546a7957c42d0aae5f1c277d138e890ea14 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
                samsung,removable = <0>;
+               non-removable;
        };
 
        mmc@12210000 {
index 7a5da674fbedebccbab8177a297dab0c2be4402a..1f27baafebaf487e536fb08c62d92746d931f1e7 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
                samsung,removable = <0>;
+               non-removable;
                samsung,pre-init;
        };
 
 
        mmc@12220000 {
                samsung,bus-width = <4>;
+               bus-width = <4>;
                samsung,timing = <1 2 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 2>;
                samsung,removable = <1>;
        };
 
index 9d055d066fd3dfd3b88eb8ba5ab09f5221186126..767b3e415d583c8e6b8e62c738723e773c773651 100644 (file)
 
        mmc@12200000 {
                fifoth_val = <0x201f0020>;
+               fifo-depth = <0x40>;
        };
 
        mmc@12220000 {
                fifoth_val = <0x201f0020>;
+               fifo-depth = <0x40>;
        };
 
        emmc-reset {
index 221da8b4850b58fb2778ee83819ca8cce4f0e9a7..fd74166c7e480274fbd131ef58777a25d518963d 100644 (file)
 
        mmc@12200000 {
                samsung,bus-width = <8>;
+               bus-width = <8>;
                samsung,timing = <1 3 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 3>;
                samsung,removable = <0>;
+               non-removable;
                samsung,pre-init;
        };
 
 
        mmc@12220000 {
                samsung,bus-width = <4>;
+               bus-width = <4>;
                samsung,timing = <1 2 3>;
+               samsung,dw-mshc-ciu-div = <3>;
+               samsung,dw-mshc-sdr-timing = <1 2>;
                samsung,removable = <1>;
        };