0041-dt-Document-Qualcomm-IPQ8064-pinctrl-binding.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. From 425015979d3b1600d14403be7d6d64ba1238e58d Mon Sep 17 00:00:00 2001
  2. From: Andy Gross <[email protected]>
  3. Date: Mon, 14 Apr 2014 22:10:36 -0500
  4. Subject: [PATCH 041/182] dt: Document Qualcomm IPQ8064 pinctrl binding
  5. Define a new binding for the Qualcomm TLMMv2 based pin controller inside the
  6. IPQ8064.
  7. Signed-off-by: Andy Gross <[email protected]>
  8. Reviewed-by: Bjorn Andersson <[email protected]>
  9. Signed-off-by: Linus Walleij <[email protected]>
  10. ---
  11. .../bindings/pinctrl/qcom,ipq8064-pinctrl.txt | 95 ++++++++++++++++++++
  12. 1 file changed, 95 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,ipq8064-pinctrl.txt
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq8064-pinctrl.txt
  16. @@ -0,0 +1,95 @@
  17. +Qualcomm IPQ8064 TLMM block
  18. +
  19. +Required properties:
  20. +- compatible: "qcom,ipq8064-pinctrl"
  21. +- reg: Should be the base address and length of the TLMM block.
  22. +- interrupts: Should be the parent IRQ of the TLMM block.
  23. +- interrupt-controller: Marks the device node as an interrupt controller.
  24. +- #interrupt-cells: Should be two.
  25. +- gpio-controller: Marks the device node as a GPIO controller.
  26. +- #gpio-cells : Should be two.
  27. + The first cell is the gpio pin number and the
  28. + second cell is used for optional parameters.
  29. +
  30. +Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
  31. +a general description of GPIO and interrupt bindings.
  32. +
  33. +Please refer to pinctrl-bindings.txt in this directory for details of the
  34. +common pinctrl bindings used by client devices, including the meaning of the
  35. +phrase "pin configuration node".
  36. +
  37. +Qualcomm's pin configuration nodes act as a container for an abitrary number of
  38. +subnodes. Each of these subnodes represents some desired configuration for a
  39. +pin, a group, or a list of pins or groups. This configuration can include the
  40. +mux function to select on those pin(s)/group(s), and various pin configuration
  41. +parameters, such as pull-up, drive strength, etc.
  42. +
  43. +The name of each subnode is not important; all subnodes should be enumerated
  44. +and processed purely based on their content.
  45. +
  46. +Each subnode only affects those parameters that are explicitly listed. In
  47. +other words, a subnode that lists a mux function but no pin configuration
  48. +parameters implies no information about any pin configuration parameters.
  49. +Similarly, a pin subnode that describes a pullup parameter implies no
  50. +information about e.g. the mux function.
  51. +
  52. +
  53. +The following generic properties as defined in pinctrl-bindings.txt are valid
  54. +to specify in a pin configuration subnode:
  55. +
  56. + pins, function, bias-disable, bias-pull-down, bias-pull,up, drive-strength,
  57. + output-low, output-high.
  58. +
  59. +Non-empty subnodes must specify the 'pins' property.
  60. +
  61. +Valid values for qcom,pins are:
  62. + gpio0-gpio68
  63. + Supports mux, bias, and drive-strength
  64. +
  65. + sdc3_clk, sdc3_cmd, sdc3_data
  66. + Supports bias and drive-strength
  67. +
  68. +
  69. +Valid values for function are:
  70. + mdio, mi2s, pdm, ssbi, spmi, audio_pcm, gsbi1, gsbi2, gsbi4, gsbi5,
  71. + gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, gsbi7, nss_spi, sdc1,
  72. + spdif, nand, tsif1, tsif2, usb_fs_n, usb_fs, usb2_hsic, rgmii2, sata,
  73. + pcie1_rst, pcie1_prsnt, pcie1_pwren_n, pcie1_pwren, pcie1_pwrflt,
  74. + pcie1_clk_req, pcie2_rst, pcie2_prsnt, pcie2_pwren_n, pcie2_pwren,
  75. + pcie2_pwrflt, pcie2_clk_req, pcie3_rst, pcie3_prsnt, pcie3_pwren_n,
  76. + pcie3_pwren, pcie3_pwrflt, pcie3_clk_req, ps_hold
  77. +
  78. +Example:
  79. +
  80. + pinmux: pinctrl@800000 {
  81. + compatible = "qcom,ipq8064-pinctrl";
  82. + reg = <0x800000 0x4000>;
  83. +
  84. + gpio-controller;
  85. + #gpio-cells = <2>;
  86. + interrupt-controller;
  87. + #interrupt-cells = <2>;
  88. + interrupts = <0 32 0x4>;
  89. +
  90. + pinctrl-names = "default";
  91. + pinctrl-0 = <&gsbi5_uart_default>;
  92. +
  93. + gsbi5_uart_default: gsbi5_uart_default {
  94. + mux {
  95. + pins = "gpio18", "gpio19";
  96. + function = "gsbi5";
  97. + };
  98. +
  99. + tx {
  100. + pins = "gpio18";
  101. + drive-strength = <4>;
  102. + bias-disable;
  103. + };
  104. +
  105. + rx {
  106. + pins = "gpio19";
  107. + drive-strength = <2>;
  108. + bias-pull-up;
  109. + };
  110. + };
  111. + };