0046-mmc-sdhci-msm-Qualcomm-SDHCI-binding-documentation.patch 2.6 KB

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