Commit 5b311c15 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ulf Hansson

mmc: sdhci-cadence: add Socionext UniPhier specific compatible string

Add a Socionext SoC specific compatible (suggested by Rob Herring).

No SoC specific data are associated with the compatible strings for
now, but other SoC vendors may use this IP and want to differentiate
IP variants in the future.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent e93b1cc8
* Cadence SD/SDIO/eMMC Host Controller * Cadence SD/SDIO/eMMC Host Controller
Required properties: Required properties:
- compatible: should be "cdns,sd4hc". - compatible: should be one of the following:
"cdns,sd4hc" - default of the IP
"socionext,uniphier-sd4hc" - for Socionext UniPhier SoCs
- reg: offset and length of the register set for the device. - reg: offset and length of the register set for the device.
- interrupts: a single interrupt specifier. - interrupts: a single interrupt specifier.
- clocks: phandle to the input clock. - clocks: phandle to the input clock.
...@@ -19,7 +21,7 @@ if supported. See mmc.txt for details. ...@@ -19,7 +21,7 @@ if supported. See mmc.txt for details.
Example: Example:
emmc: sdhci@5a000000 { emmc: sdhci@5a000000 {
compatible = "cdns,sd4hc"; compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
reg = <0x5a000000 0x400>; reg = <0x5a000000 0x400>;
interrupts = <0 78 4>; interrupts = <0 78 4>;
clocks = <&clk 4>; clocks = <&clk 4>;
......
...@@ -262,6 +262,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) ...@@ -262,6 +262,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev)
} }
static const struct of_device_id sdhci_cdns_match[] = { static const struct of_device_id sdhci_cdns_match[] = {
{ .compatible = "socionext,uniphier-sd4hc" },
{ .compatible = "cdns,sd4hc" }, { .compatible = "cdns,sd4hc" },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment