aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2015-04-10 05:40:29 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2015-04-10 06:55:40 -0400
commit69f0fb2a592fc9ebc5e3e55178055d1cff31d479 (patch)
treefea0d4dc23395a1feb96347a17a8a209b37aa13b
parent4e187d3154e6a47dfb8561aa0003d93243ec7e4a (diff)
mmc: sdhci-st: Update ST SDHCI binding documentation.
This patch updates the binding information to reflect the extra dt options which are now supported by the sdhci-st.c driver which enable support for stih407 family silicon. STiH410 SoC and later support UHS modes for eMMC, so the driver now makes use of these common bindings. Examples are provided for both eMMC (which has additional bindings) and also sd slot for STiH407. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/mmc/sdhci-st.txt100
1 files changed, 90 insertions, 10 deletions
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-st.txt b/Documentation/devicetree/bindings/mmc/sdhci-st.txt
index 7527db447a35..18d950df2749 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-st.txt
+++ b/Documentation/devicetree/bindings/mmc/sdhci-st.txt
@@ -5,20 +5,62 @@ Documentation/devicetree/bindings/mmc/mmc.txt and the properties
5used by the sdhci-st driver. 5used by the sdhci-st driver.
6 6
7Required properties: 7Required properties:
8- compatible : Must be "st,sdhci" 8- compatible: Must be "st,sdhci" and it can be compatible to "st,sdhci-stih407"
9- clock-names : Should be "mmc" 9 to set the internal glue logic used for configuring the MMC
10 See: Documentation/devicetree/bindings/resource-names.txt 10 subsystem (mmcss) inside the FlashSS (available in STiH407 SoC
11- clocks : Phandle of the clock used by the sdhci controler 11 family).
12 See: Documentation/devicetree/bindings/clock/clock-bindings.txt 12
13- clock-names: Should be "mmc".
14 See: Documentation/devicetree/bindings/resource-names.txt
15- clocks: Phandle to the clock.
16 See: Documentation/devicetree/bindings/clock/clock-bindings.txt
17
18- interrupts: One mmc interrupt should be described here.
19- interrupt-names: Should be "mmcirq".
20
21- pinctrl-names: A pinctrl state names "default" must be defined.
22- pinctrl-0: Phandle referencing pin configuration of the sd/emmc controller.
23 See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt
24
25- reg: This must provide the host controller base address and it can also
26 contain the FlashSS Top register for TX/RX delay used by the driver
27 to configure DLL inside the flashSS, if so reg-names must also be
28 specified.
13 29
14Optional properties: 30Optional properties:
15- non-removable: non-removable slot 31- reg-names: Should be "mmc" and "top-mmc-delay". "top-mmc-delay" is optional
16 See: Documentation/devicetree/bindings/mmc/mmc.txt 32 for eMMC on stih407 family silicon to configure DLL inside FlashSS.
17- bus-width: Number of data lines 33
18 See: Documentation/devicetree/bindings/mmc/mmc.txt 34- non-removable: Non-removable slot. Also used for configuring mmcss in STiH407 SoC
35 family.
36 See: Documentation/devicetree/bindings/mmc/mmc.txt.
37
38- bus-width: Number of data lines.
39 See: Documentation/devicetree/bindings/mmc/mmc.txt.
40
41- max-frequency: Can be 200MHz, 100Mz or 50MHz (default) and used for
42 configuring the CCONFIG3 in the mmcss.
43 See: Documentation/devicetree/bindings/mmc/mmc.txt.
44
45- resets: Phandle and reset specifier pair to softreset line of HC IP.
46 See: Documentation/devicetree/bindings/reset/reset.txt
47
48- vqmmc-supply: Phandle to the regulator dt node, mentioned as the vcc/vdd
49 supply in eMMC/SD specs.
50
51- sd-uhs--sdr50: To enable the SDR50 in the mmcss.
52 See: Documentation/devicetree/bindings/mmc/mmc.txt.
53
54- sd-uhs-sdr104: To enable the SDR104 in the mmcss.
55 See: Documentation/devicetree/bindings/mmc/mmc.txt.
56
57- sd-uhs-ddr50: To enable the DDR50 in the mmcss.
58 See: Documentation/devicetree/bindings/mmc/mmc.txt.
19 59
20Example: 60Example:
21 61
62/* Example stih416e eMMC configuration */
63
22mmc0: sdhci@fe81e000 { 64mmc0: sdhci@fe81e000 {
23 compatible = "st,sdhci"; 65 compatible = "st,sdhci";
24 status = "disabled"; 66 status = "disabled";
@@ -29,5 +71,43 @@ mmc0: sdhci@fe81e000 {
29 pinctrl-0 = <&pinctrl_mmc0>; 71 pinctrl-0 = <&pinctrl_mmc0>;
30 clock-names = "mmc"; 72 clock-names = "mmc";
31 clocks = <&clk_s_a1_ls 1>; 73 clocks = <&clk_s_a1_ls 1>;
32 bus-width = <8> 74 bus-width = <8>
75
76/* Example SD stih407 family configuration */
77
78mmc1: sdhci@09080000 {
79 compatible = "st,sdhci-stih407", "st,sdhci";
80 status = "disabled";
81 reg = <0x09080000 0x7ff>;
82 reg-names = "mmc";
83 interrupts = <GIC_SPI 90 IRQ_TYPE_NONE>;
84 interrupt-names = "mmcirq";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_sd1>;
87 clock-names = "mmc";
88 clocks = <&clk_s_c0_flexgen CLK_MMC_1>;
89 resets = <&softreset STIH407_MMC1_SOFTRESET>;
90 bus-width = <4>;
91};
92
93/* Example eMMC stih407 family configuration */
94
95mmc0: sdhci@09060000 {
96 compatible = "st,sdhci-stih407", "st,sdhci";
97 status = "disabled";
98 reg = <0x09060000 0x7ff>, <0x9061008 0x20>;
99 reg-names = "mmc", "top-mmc-delay";
100 interrupts = <GIC_SPI 92 IRQ_TYPE_NONE>;
101 interrupt-names = "mmcirq";
102 pinctrl-names = "default";
103 pinctrl-0 = <&pinctrl_mmc0>;
104 clock-names = "mmc";
105 clocks = <&clk_s_c0_flexgen CLK_MMC_0>;
106 vqmmc-supply = <&vmmc_reg>;
107 max-frequency = <200000000>;
108 bus-width = <8>;
109 non-removable;
110 sd-uhs-sdr50;
111 sd-uhs-sdr104;
112 sd-uhs-ddr50;
33}; 113};