qcom,apq8084-pinctrl.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Qualcomm APQ8084 TLMM block
  2. This binding describes the Top Level Mode Multiplexer block found in the
  3. MSM8960 platform.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be "qcom,apq8084-pinctrl"
  8. - reg:
  9. Usage: required
  10. Value type: <prop-encoded-array>
  11. Definition: the base address and size of the TLMM register space.
  12. - interrupts:
  13. Usage: required
  14. Value type: <prop-encoded-array>
  15. Definition: should specify the TLMM summary IRQ.
  16. - interrupt-controller:
  17. Usage: required
  18. Value type: <none>
  19. Definition: identifies this node as an interrupt controller
  20. - #interrupt-cells:
  21. Usage: required
  22. Value type: <u32>
  23. Definition: must be 2. Specifying the pin number and flags, as defined
  24. in <dt-bindings/interrupt-controller/irq.h>
  25. - gpio-controller:
  26. Usage: required
  27. Value type: <none>
  28. Definition: identifies this node as a gpio controller
  29. - #gpio-cells:
  30. Usage: required
  31. Value type: <u32>
  32. Definition: must be 2. Specifying the pin number and flags, as defined
  33. in <dt-bindings/gpio/gpio.h>
  34. Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
  35. a general description of GPIO and interrupt bindings.
  36. Please refer to pinctrl-bindings.txt in this directory for details of the
  37. common pinctrl bindings used by client devices, including the meaning of the
  38. phrase "pin configuration node".
  39. The pin configuration nodes act as a container for an arbitrary number of
  40. subnodes. Each of these subnodes represents some desired configuration for a
  41. pin, a group, or a list of pins or groups. This configuration can include the
  42. mux function to select on those pin(s)/group(s), and various pin configuration
  43. parameters, such as pull-up, drive strength, etc.
  44. PIN CONFIGURATION NODES:
  45. The name of each subnode is not important; all subnodes should be enumerated
  46. and processed purely based on their content.
  47. Each subnode only affects those parameters that are explicitly listed. In
  48. other words, a subnode that lists a mux function but no pin configuration
  49. parameters implies no information about any pin configuration parameters.
  50. Similarly, a pin subnode that describes a pullup parameter implies no
  51. information about e.g. the mux function.
  52. The following generic properties as defined in pinctrl-bindings.txt are valid
  53. to specify in a pin configuration subnode:
  54. - pins:
  55. Usage: required
  56. Value type: <string-array>
  57. Definition: List of gpio pins affected by the properties specified in
  58. this subnode. Valid pins are:
  59. gpio0-gpio146,
  60. sdc1_clk,
  61. sdc1_cmd,
  62. sdc1_data
  63. sdc2_clk,
  64. sdc2_cmd,
  65. sdc2_data
  66. - function:
  67. Usage: required
  68. Value type: <string>
  69. Definition: Specify the alternative function to be configured for the
  70. specified pins. Functions are only valid for gpio pins.
  71. Valid values are:
  72. adsp_ext, audio_ref, blsp_i2c1, blsp_i2c2, blsp_i2c3,
  73. blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8,
  74. blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12,
  75. blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, blsp_spi5,
  76. blsp_spi6, blsp_spi7, blsp_spi8, blsp_spi9, blsp_spi10,
  77. blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2, blsp_uart3,
  78. blsp_uart4, blsp_uart5, blsp_uart6, blsp_uart7, blsp_uart8,
  79. blsp_uart9, blsp_uart10, blsp_uart11, blsp_uart12,
  80. blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim4, blsp_uim5,
  81. blsp_uim6, blsp_uim7, blsp_uim8, blsp_uim9, blsp_uim10,
  82. blsp_uim11, blsp_uim12, cam_mclk0, cam_mclk1, cam_mclk2,
  83. cam_mclk3, cci_async, cci_async_in0, cci_i2c0, cci_i2c1,
  84. cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4,
  85. edp_hpd, gcc_gp1, gcc_gp2, gcc_gp3, gcc_obt, gcc_vtt,i
  86. gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, gp0_clk, gp1_clk, gpio,
  87. hdmi_cec, hdmi_ddc, hdmi_dtest, hdmi_hpd, hdmi_rcv, hsic,
  88. ldo_en, ldo_update, mdp_vsync, pci_e0, pci_e0_n, pci_e0_rst,
  89. pci_e1, pci_e1_rst, pci_e1_rst_n, pci_e1_clkreq_n, pri_mi2s,
  90. qua_mi2s, sata_act, sata_devsleep, sata_devsleep_n,
  91. sd_write, sdc_emmc_mode, sdc3, sdc4, sec_mi2s, slimbus,
  92. spdif_tx, spkr_i2s, spkr_i2s_ws, spss_geni, ter_mi2s, tsif1,
  93. tsif2, uim, uim_batt_alarm
  94. - bias-disable:
  95. Usage: optional
  96. Value type: <none>
  97. Definition: The specified pins should be configued as no pull.
  98. - bias-pull-down:
  99. Usage: optional
  100. Value type: <none>
  101. Definition: The specified pins should be configued as pull down.
  102. - bias-pull-up:
  103. Usage: optional
  104. Value type: <none>
  105. Definition: The specified pins should be configued as pull up.
  106. - output-high:
  107. Usage: optional
  108. Value type: <none>
  109. Definition: The specified pins are configured in output mode, driven
  110. high.
  111. Not valid for sdc pins.
  112. - output-low:
  113. Usage: optional
  114. Value type: <none>
  115. Definition: The specified pins are configured in output mode, driven
  116. low.
  117. Not valid for sdc pins.
  118. - drive-strength:
  119. Usage: optional
  120. Value type: <u32>
  121. Definition: Selects the drive strength for the specified pins, in mA.
  122. Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
  123. Example:
  124. tlmm: pinctrl@fd510000 {
  125. compatible = "qcom,apq8084-pinctrl";
  126. reg = <0xfd510000 0x4000>;
  127. gpio-controller;
  128. #gpio-cells = <2>;
  129. interrupt-controller;
  130. #interrupt-cells = <2>;
  131. interrupts = <0 208 0>;
  132. uart2: uart2-default {
  133. mux {
  134. pins = "gpio4", "gpio5";
  135. function = "blsp_uart2";
  136. };
  137. tx {
  138. pins = "gpio4";
  139. drive-strength = <4>;
  140. bias-disable;
  141. };
  142. rx {
  143. pins = "gpio5";
  144. drive-strength = <2>;
  145. bias-pull-up;
  146. };
  147. };
  148. };