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 65a5fcd..a4915de 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 05989ee..4fbdf47 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 610a8ad..1b3ac1f 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 ce08e8d..a405b97 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 c4db137..30758ff 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 60309c6..7f84589 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 afe0cca..882db2d 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 e41f2d3..bcf04d5 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 77e7a6b..7270a54 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 7a5da67..1f27baa 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 9d055d0..767b3e4 100644 (file)
 
        mmc@12200000 {
                fifoth_val = <0x201f0020>;
+               fifo-depth = <0x40>;
        };
 
        mmc@12220000 {
                fifoth_val = <0x201f0020>;
+               fifo-depth = <0x40>;
        };
 
        emmc-reset {
index 221da8b..fd74166 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>;
        };