arm: dts: exynos: Add upstream DW MMC properties to all Exynos dts

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>
This commit is contained in:
Sam Protsenko 2024-08-07 22:14:20 -05:00 committed by Minkyu Kang
parent 84d5bd070c
commit d1c057fd49
12 changed files with 60 additions and 0 deletions

View File

@ -26,6 +26,7 @@
&sdhci2 { &sdhci2 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
cd-gpios = <&gpk2 2 0>; cd-gpios = <&gpk2 2 0>;
status = "okay"; status = "okay";

View File

@ -241,6 +241,7 @@
&sdhci0 { &sdhci0 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
pwr-gpios = <&gpk0 2 0>; pwr-gpios = <&gpk0 2 0>;
status = "okay"; status = "okay";
@ -248,6 +249,7 @@
&sdhci2 { &sdhci2 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
cd-gpios = <&gpx3 4 0>; cd-gpios = <&gpx3 4 0>;
status = "okay"; status = "okay";

View File

@ -236,6 +236,7 @@
&sdhci0 { &sdhci0 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
pwr-gpios = <&gpk0 2 0>; pwr-gpios = <&gpk0 2 0>;
status = "okay"; status = "okay";
@ -243,6 +244,7 @@
&sdhci2 { &sdhci2 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
cd-gpios = <&gpx3 4 0>; cd-gpios = <&gpx3 4 0>;
status = "okay"; status = "okay";

View File

@ -235,6 +235,7 @@
&sdhci2 { &sdhci2 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
cd-inverted; cd-inverted;
cd-gpios = <&gpk2 2 0>; cd-gpios = <&gpk2 2 0>;
@ -243,9 +244,15 @@
&mshc_0 { &mshc_0 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <2 1 0>; samsung,timing = <2 1 0>;
samsung,dw-mshc-ciu-div = <0>;
samsung,dw-mshc-sdr-timing = <2 1>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
fifoth_val = <0x203f0040>; fifoth_val = <0x203f0040>;
fifo-depth = <0x80>;
clock-frequency = <400000000>;
bus_hz = <400000000>; bus_hz = <400000000>;
div = <0x3>; div = <0x3>;
index = <4>; index = <4>;

View File

@ -109,6 +109,7 @@
sdhci@12510000 { sdhci@12510000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
pwr-gpios = <&gpk0 4 0>; pwr-gpios = <&gpk0 4 0>;
status = "disabled"; status = "disabled";
@ -432,6 +433,7 @@
&sdhci0 { &sdhci0 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
pwr-gpios = <&gpk0 4 0>; pwr-gpios = <&gpk0 4 0>;
status = "disabled"; status = "disabled";
@ -439,6 +441,7 @@
&sdhci2 { &sdhci2 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
cd-gpios = <&gpk2 2 0>; cd-gpios = <&gpk2 2 0>;
status = "okay"; status = "okay";
@ -446,9 +449,14 @@
&mshc_0 { &mshc_0 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <2 1 0>; samsung,timing = <2 1 0>;
samsung,dw-mshc-ciu-div = <0>;
samsung,dw-mshc-sdr-timing = <2 1>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
fifoth_val = <0x203f0040>; fifoth_val = <0x203f0040>;
clock-frequency = <400000000>;
bus_hz = <400000000>; bus_hz = <400000000>;
div = <0x3>; div = <0x3>;
index = <4>; index = <4>;

View File

@ -28,7 +28,10 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
}; };
mmc@12210000 { mmc@12210000 {
@ -37,7 +40,10 @@
mmc@12220000 { mmc@12220000 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 2>;
}; };
mmc@12230000 { mmc@12230000 {

View File

@ -146,8 +146,12 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
}; };
mmc@12210000 { mmc@12210000 {
@ -156,7 +160,10 @@
mmc@12220000 { mmc@12220000 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 2>;
samsung,removable = <1>; samsung,removable = <1>;
}; };

View File

@ -302,8 +302,12 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
}; };
mmc@12210000 { mmc@12210000 {
@ -312,7 +316,10 @@
mmc@12220000 { mmc@12220000 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 2>;
samsung,removable = <1>; samsung,removable = <1>;
}; };

View File

@ -104,8 +104,12 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
}; };
mmc@12210000 { mmc@12210000 {

View File

@ -107,8 +107,12 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
samsung,pre-init; samsung,pre-init;
}; };
@ -118,7 +122,10 @@
mmc@12220000 { mmc@12220000 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 2>;
samsung,removable = <1>; samsung,removable = <1>;
}; };

View File

@ -281,10 +281,12 @@
mmc@12200000 { mmc@12200000 {
fifoth_val = <0x201f0020>; fifoth_val = <0x201f0020>;
fifo-depth = <0x40>;
}; };
mmc@12220000 { mmc@12220000 {
fifoth_val = <0x201f0020>; fifoth_val = <0x201f0020>;
fifo-depth = <0x40>;
}; };
emmc-reset { emmc-reset {

View File

@ -120,8 +120,12 @@
mmc@12200000 { mmc@12200000 {
samsung,bus-width = <8>; samsung,bus-width = <8>;
bus-width = <8>;
samsung,timing = <1 3 3>; samsung,timing = <1 3 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 3>;
samsung,removable = <0>; samsung,removable = <0>;
non-removable;
samsung,pre-init; samsung,pre-init;
}; };
@ -131,7 +135,10 @@
mmc@12220000 { mmc@12220000 {
samsung,bus-width = <4>; samsung,bus-width = <4>;
bus-width = <4>;
samsung,timing = <1 2 3>; samsung,timing = <1 2 3>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <1 2>;
samsung,removable = <1>; samsung,removable = <1>;
}; };