qcom,msm8917-pinctrl.txt 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. Qualcomm Technologies, Inc. MSM8917 TLMM block
  2. This binding describes the Top Level Mode Multiplexer block found in the
  3. MSM8917 platform.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be "qcom,msm8917-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. provided as "pinctrl_regs".
  13. - reg-names:
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: Provides labels for the reg property.
  17. - interrupts:
  18. Usage: required
  19. Value type: <prop-encoded-array>
  20. Definition: should specify the TLMM summary IRQ.
  21. - interrupt-controller:
  22. Usage: required
  23. Value type: <none>
  24. Definition: identifies this node as an interrupt controller
  25. - #interrupt-cells:
  26. Usage: required
  27. Value type: <u32>
  28. Definition: must be 2. Specifying the pin number and flags, as defined
  29. in <dt-bindings/interrupt-controller/irq.h>
  30. - gpio-controller:
  31. Usage: required
  32. Value type: <none>
  33. Definition: identifies this node as a gpio controller
  34. - #gpio-cells:
  35. Usage: required
  36. Value type: <u32>
  37. Definition: must be 2. Specifying the pin number and flags, as defined
  38. in <dt-bindings/gpio/gpio.h>
  39. Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
  40. a general description of GPIO and interrupt bindings.
  41. Please refer to pinctrl-bindings.txt in this directory for details of the
  42. common pinctrl bindings used by client devices, including the meaning of the
  43. phrase "pin configuration node".
  44. The pin configuration nodes act as a container for an arbitrary number of
  45. subnodes. Each of these subnodes represents some desired configuration for a
  46. pin, a group, or a list of pins or groups. This configuration can include the
  47. mux function to select on those pin(s)/group(s), and various pin configuration
  48. parameters, such as pull-up, drive strength, etc.
  49. PIN CONFIGURATION NODES:
  50. The name of each subnode is not important; all subnodes should be enumerated
  51. and processed purely based on their content.
  52. Each subnode only affects those parameters that are explicitly listed. In
  53. other words, a subnode that lists a mux function but no pin configuration
  54. parameters implies no information about any pin configuration parameters.
  55. Similarly, a pin subnode that describes a pullup parameter implies no
  56. information about e.g. the mux function.
  57. The following generic properties as defined in pinctrl-bindings.txt are valid
  58. to specify in a pin configuration subnode:
  59. - pins:
  60. Usage: required
  61. Value type: <string-array>
  62. Definition: List of gpio pins affected by the properties specified in
  63. this subnode.
  64. Valid pins are:
  65. gpio0-gpio133,
  66. sdc1_clk,
  67. sdc1_cmd,
  68. sdc1_data,
  69. sdc1_rclk,
  70. sdc2_clk,
  71. sdc2_cmd,
  72. sdc2_data,
  73. qdsd_clk,
  74. qdsd_cmd,
  75. qdsd_data0,
  76. qdsd_data1,
  77. qdsd_data2,
  78. qdsd_data3,
  79. - function:
  80. Usage: required
  81. Value type: <string>
  82. Definition: Specify the alternative function to be configured for the
  83. specified pins. Functions are only valid for gpio pins.
  84. Valid values are:
  85. qdss_tracedata_b, blsp_uart1, gpio, blsp_spi1, adsp_ext, blsp_i2c1, prng_rosc,
  86. qdss_cti_trig_out_b0, blsp_spi2, blsp_uart2, blsp_uart3, pbs0, pbs1,
  87. pwr_modem_enabled_b, blsp_i2c3, gcc_gp2_clk_b, ldo_update,
  88. atest_combodac_to_gpio_native, ldo_en, blsp_i2c2, gcc_gp1_clk_b, pbs2,
  89. atest_gpsadc_dtest0_native, blsp_spi3, gcc_gp3_clk_b, blsp_spi4, blsp_uart4,
  90. sec_mi2s, pwr_nav_enabled_b, codec_mad, pwr_crypto_enabled_b, blsp_i2c4,
  91. blsp_spi5, blsp_uart5, qdss_traceclk_a, atest_bbrx1, m_voc,
  92. qdss_cti_trig_in_a0, qdss_cti_trig_in_b0, blsp_i2c6, qdss_traceclk_b,
  93. atest_wlan0, atest_wlan1, atest_bbrx0, blsp_i2c5, qdss_tracectl_a,
  94. atest_gpsadc_dtest1_native, qdss_tracedata_a, blsp_spi6, blsp_uart6,
  95. qdss_tracectl_b, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a, cam_mclk,
  96. cci_i2c, pwr_modem_enabled_a, cci_timer0, cci_timer1, cam1_standby,
  97. pwr_nav_enabled_a, cam1_rst, pwr_crypto_enabled_a, forced_usb,
  98. qdss_cti_trig_out_b1, cam2_rst, webcam_standby, cci_async, webcam_rst,
  99. ov_ldo, sd_write, accel_int, gcc_gp1_clk_a, alsp_int, gcc_gp2_clk_a,
  100. mag_int, gcc_gp3_clk_a, blsp6_spi, fp_int, qdss_cti_trig_in_b1, uim_batt,
  101. cam2_standby, uim1_data, uim1_clk, uim1_reset, uim1_present, uim2_data,
  102. uim2_clk, uim2_reset, uim2_present, sensor_rst, mipi_dsi0, smb_int,
  103. cam0_ldo, us_euro, atest_char3, dbg_out, bimc_dte0, ts_resout, ts_sample,
  104. sec_mi2s_mclk_b, pri_mi2s, sdcard_det, atest_char1, ebi_cdc, audio_reset,
  105. atest_char0, audio_ref, cdc_pdm0, pri_mi2s_mclk_b, lpass_slimbus,
  106. lpass_slimbus0, lpass_slimbus1, codec_int1, codec_int2, wcss_bt,
  107. atest_char2, ebi_ch0, wcss_wlan2, wcss_wlan1, wcss_wlan0, wcss_wlan,
  108. wcss_fm, ext_lpass, cri_trng, cri_trng1, cri_trng0, blsp_spi7, blsp_uart7,
  109. pri_mi2s_ws, blsp_i2c7, gcc_tlmm, dmic0_clk, dmic0_data, key_volp,
  110. qdss_cti_trig_in_a1, us_emitter, wsa_irq, wsa_io, wsa_reset, blsp_spi8,
  111. blsp_uart8, blsp_i2c8, gcc_plltest, nav_pps_in_a, pa_indicator, modem_tsync,
  112. nav_tsync, nav_pps_in_b, nav_pps, gsm0_tx, atest_char, atest_tsens,
  113. bimc_dte1, ssbi_wtr1, fp_gpio, coex_uart, key_snapshot, key_focus, nfc_pwr,
  114. blsp8_spi, qdss_cti_trig_out_a0, qdss_cti_trig_out_a1
  115. - bias-disable:
  116. Usage: optional
  117. Value type: <none>
  118. Definition: The specified pins should be configued as no pull.
  119. - bias-pull-down:
  120. Usage: optional
  121. Value type: <none>
  122. Definition: The specified pins should be configued as pull down.
  123. - bias-pull-up:
  124. Usage: optional
  125. Value type: <none>
  126. Definition: The specified pins should be configued as pull up.
  127. - output-high:
  128. Usage: optional
  129. Value type: <none>
  130. Definition: The specified pins are configured in output mode, driven
  131. high.
  132. Not valid for sdc pins.
  133. - output-low:
  134. Usage: optional
  135. Value type: <none>
  136. Definition: The specified pins are configured in output mode, driven
  137. low.
  138. Not valid for sdc pins.
  139. - drive-strength:
  140. Usage: optional
  141. Value type: <u32>
  142. Definition: Selects the drive strength for the specified pins, in mA.
  143. Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
  144. Example:
  145. tlmm: pinctrl@1000000 {
  146. compatible = "qcom,msm8917-pinctrl";
  147. reg = <0x1000000 0x300000>;
  148. reg-names = "pinctrl_regs";
  149. interrupts = <0 208 0>;
  150. gpio-controller;
  151. #gpio-cells = <2>;
  152. interrupt-controller;
  153. #interrupt-cells = <2>;
  154. pmx-uartconsole {
  155. uart_console_active: uart_console_active {
  156. mux {
  157. pins = "gpio4", "gpio5";
  158. function = "blsp_uart2";
  159. };
  160. config {
  161. pins = "gpio4", "gpio5";
  162. drive-strength = <2>;
  163. bias-disable;
  164. };
  165. };
  166. uart_console_sleep: uart_console_sleep {
  167. mux {
  168. pins = "gpio4", "gpio5";
  169. function = "blsp_uart2";
  170. };
  171. config {
  172. pins = "gpio4", "gpio5";
  173. drive-strength = <2>;
  174. bias-pull-down;
  175. };
  176. };
  177. };
  178. };