kernel: update 3.14 to 3.14.18
[openwrt.git] / target / linux / ipq806x / patches / 0046-mmc-sdhci-msm-Qualcomm-SDHCI-binding-documentation.patch
1 From 8a70c89b2fbb635a8d4fec302165343827aeed9f Mon Sep 17 00:00:00 2001
2 From: Georgi Djakov <gdjakov@mm-sol.com>
3 Date: Mon, 10 Mar 2014 17:37:11 +0200
4 Subject: [PATCH 046/182] mmc: sdhci-msm: Qualcomm SDHCI binding documentation
5
6 This patch adds the device-tree binding documentation for Qualcomm
7 SDHCI driver. It contains the differences between the core properties
8 in mmc.txt and the properties used by the sdhci-msm driver.
9
10 Signed-off-by: Georgi Djakov <gdjakov@mm-sol.com>
11 Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
12 Signed-off-by: Chris Ball <chris@printf.net>
13 ---
14  .../devicetree/bindings/mmc/sdhci-msm.txt          |   55 ++++++++++++++++++++
15  1 file changed, 55 insertions(+)
16  create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-msm.txt
17
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
20 @@ -0,0 +1,55 @@
21 +* Qualcomm SDHCI controller (sdhci-msm)
22 +
23 +This file documents differences between the core properties in mmc.txt
24 +and the properties used by the sdhci-msm driver.
25 +
26 +Required properties:
27 +- compatible: Should contain "qcom,sdhci-msm-v4".
28 +- reg: Base address and length of the register in the following order:
29 +       - Host controller register map (required)
30 +       - SD Core register map (required)
31 +- interrupts: Should contain an interrupt-specifiers for the interrupts:
32 +       - Host controller interrupt (required)
33 +- pinctrl-names: Should contain only one value - "default".
34 +- pinctrl-0: Should specify pin control groups used for this controller.
35 +- clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock-names.
36 +- clock-names: Should contain the following:
37 +       "iface" - Main peripheral bus clock (PCLK/HCLK - AHB Bus clock) (required)
38 +       "core"  - SDC MMC clock (MCLK) (required)
39 +       "bus"   - SDCC bus voter clock (optional)
40 +
41 +Example:
42 +
43 +       sdhc_1: sdhci@f9824900 {
44 +               compatible = "qcom,sdhci-msm-v4";
45 +               reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
46 +               interrupts = <0 123 0>;
47 +               bus-width = <8>;
48 +               non-removable;
49 +
50 +               vmmc = <&pm8941_l20>;
51 +               vqmmc = <&pm8941_s3>;
52 +
53 +               pinctrl-names = "default";
54 +               pinctrl-0 = <&sdc1_clk &sdc1_cmd &sdc1_data>;
55 +
56 +               clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>;
57 +               clock-names = "core", "iface";
58 +       };
59 +
60 +       sdhc_2: sdhci@f98a4900 {
61 +               compatible = "qcom,sdhci-msm-v4";
62 +               reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
63 +               interrupts = <0 125 0>;
64 +               bus-width = <4>;
65 +               cd-gpios = <&msmgpio 62 0x1>;
66 +
67 +               vmmc = <&pm8941_l21>;
68 +               vqmmc = <&pm8941_l13>;
69 +
70 +               pinctrl-names = "default";
71 +               pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data>;
72 +
73 +               clocks = <&gcc GCC_SDCC2_APPS_CLK>, <&gcc GCC_SDCC2_AHB_CLK>;
74 +               clock-names = "core", "iface";
75 +       };