1 Device Tree Bindings for the Arasan SDHCI Controller
3 The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4] bindings.
4 Only deviations are documented here.
6 [1] Documentation/devicetree/bindings/mmc/mmc.txt
7 [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
8 [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
9 [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
12 - compatible: Compatibility string. One of:
13 - "arasan,sdhci-8.9a": generic Arasan SDHCI 8.9a PHY
14 - "arasan,sdhci-4.9a": generic Arasan SDHCI 4.9a PHY
15 - "arasan,sdhci-5.1": generic Arasan SDHCI 5.1 PHY
16 - "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1": rk3399 eMMC PHY
17 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
18 - reg: From mmc bindings: Register location and length.
19 - clocks: From clock bindings: Handles to clock inputs.
20 - clock-names: From clock bindings: Tuple including "clk_xin" and "clk_ahb"
21 - interrupts: Interrupt specifier
23 Required Properties for "arasan,sdhci-5.1":
24 - phys: From PHY bindings: Phandle for the Generic PHY for arasan.
25 - phy-names: MUST be "phy_arasan".
28 - arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt)
29 used to access core corecfg registers. Offsets of registers in this
30 syscon are determined based on the main compatible string for the device.
31 - clock-output-names: If specified, this will be the name of the card clock
32 which will be exposed by this device. Required if #clock-cells is
34 - #clock-cells: If specified this should be the value <0>. With this property
35 in place we will export a clock representing the Card Clock. This clock
36 is expected to be consumed by our PHY. You must also specify
37 - xlnx,fails-without-test-cd: when present, the controller doesn't work when
38 the CD line is not connected properly, and the line is not connected
39 properly. Test mode can be used to force the controller to function.
40 - xlnx,int-clock-stable-broken: when present, the controller always reports
41 that the internal clock is stable even when it is not.
45 compatible = "arasan,sdhci-8.9a";
46 reg = <0xe0100000 0x1000>;
47 clock-names = "clk_xin", "clk_ahb";
48 clocks = <&clkc 21>, <&clkc 32>;
49 interrupt-parent = <&gic>;
50 interrupts = <0 24 4>;
54 compatible = "arasan,sdhci-5.1";
55 reg = <0xe2800000 0x1000>;
56 clock-names = "clk_xin", "clk_ahb";
57 clocks = <&cru 8>, <&cru 18>;
58 interrupt-parent = <&gic>;
59 interrupts = <0 24 4>;
61 phy-names = "phy_arasan";
64 sdhci: sdhci@fe330000 {
65 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
66 reg = <0x0 0xfe330000 0x0 0x10000>;
67 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
68 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
69 clock-names = "clk_xin", "clk_ahb";
70 arasan,soc-ctl-syscon = <&grf>;
71 assigned-clocks = <&cru SCLK_EMMC>;
72 assigned-clock-rates = <200000000>;
73 clock-output-names = "emmc_cardclock";
75 phy-names = "phy_arasan";