arm64: dts: uniphier: add input-delay properties to Cadence eMMC node
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 31 Mar 2017 04:20:45 +0000 (13:20 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 14 May 2017 02:43:46 +0000 (11:43 +0900)
Since commit a89c472d8b55 ("mmc: sdhci-cadence: Update PHY delay
configuration"), PHY parameters must be specified by DT.

The hard-coded settings have been converted as follows:
- SDHCI_CDNS_PHY_DLY_SD_DEFAULT -> cdns,phy-input-delay-legacy
- SDHCI_CDNS_PHY_DLY_EMMC_SDR   -> cdns,phy-input-delay-mmc-highspeed
- SDHCI_CDNS_PHY_DLY_EMMC_DDR   -> cdns,phy-input-delay-mmc-ddr

The following have not been moved:
- SDHCI_CDNS_PHY_DLY_SD_HS
   this is unneeded in the eMMC configuration
- SDHCI_CDNS_PHY_DLY_EMMC_LEGACY
   this is never enabled by the driver as it is covered by
   SDHCI_CDNS_PHY_DLY_SD_DEFAULT

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi

index 151c043b4835a14cd5db873b640b04f8731b2c19..42f1803cce18e87aabd24ee9603431c8fd01b718 100644 (file)
                        bus-width = <8>;
                        mmc-ddr-1_8v;
                        mmc-hs200-1_8v;
+                       cdns,phy-input-delay-legacy = <4>;
+                       cdns,phy-input-delay-mmc-highspeed = <2>;
+                       cdns,phy-input-delay-mmc-ddr = <3>;
                };
 
                usb0: usb@5a800100 {
index 6193f11acb78dba818f17e954db47a4e23593888..e4499ff37d516d5842a6c5524857259f2ad21312 100644 (file)
                        bus-width = <8>;
                        mmc-ddr-1_8v;
                        mmc-hs200-1_8v;
+                       cdns,phy-input-delay-legacy = <4>;
+                       cdns,phy-input-delay-mmc-highspeed = <2>;
+                       cdns,phy-input-delay-mmc-ddr = <3>;
                };
 
                soc-glue@5f800000 {