qcom,msm8916-pinctrl.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Qualcomm MSM8916 TLMM block
  2. This binding describes the Top Level Mode Multiplexer block found in the
  3. MSM8916 platform.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be "qcom,msm8916-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-gpio121,
  60. sdc1_clk,
  61. sdc1_cmd,
  62. sdc1_data
  63. sdc2_clk,
  64. sdc2_cmd,
  65. sdc2_data,
  66. qdsd_cmd,
  67. qdsd_data0,
  68. qdsd_data1,
  69. qdsd_data2,
  70. qdsd_data3
  71. - function:
  72. Usage: required
  73. Value type: <string>
  74. Definition: Specify the alternative function to be configured for the
  75. specified pins. Functions are only valid for gpio pins.
  76. Valid values are:
  77. adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, atest_char0,
  78. atest_char1, atest_char2, atest_char3, atest_combodac, atest_gpsadc0,
  79. atest_gpsadc1, atest_tsens, atest_wlan0, atest_wlan1, backlight_en,
  80. bimc_dte0,bimc_dte1, blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4,
  81. blsp_i2c5, blsp_i2c6, blsp_spi1, blsp_spi1_cs1, blsp_spi1_cs2,
  82. blsp_spi1_cs3, blsp_spi2, blsp_spi2_cs1, blsp_spi2_cs2, blsp_spi2_cs3,
  83. blsp_spi3, blsp_spi3_cs1, blsp_spi3_cs2, blsp_spi3_cs3, blsp_spi4,
  84. blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uim1, blsp_uim2,
  85. cam1_rst, cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c,
  86. cci_timer0, cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out,
  87. display_5v, dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us,
  88. ext_lpass, flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a,
  89. gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0, gsm0_tx1,
  90. gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2, ldo_en,
  91. ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc, nav_pps, nav_tsync,
  92. pa_indicator, pbs0, pbs1, pbs2, pri_mi2s, pri_mi2s_ws, prng_rosc,
  93. pwr_crypto_enabled_a, pwr_crypto_enabled_b, pwr_modem_enabled_a,
  94. pwr_modem_enabled_b, pwr_nav_enabled_a, pwr_nav_enabled_b,
  95. qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, qdss_ctitrig_in_b0,
  96. qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, qdss_ctitrig_out_a1,
  97. qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, qdss_traceclk_a,
  98. qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a,
  99. qdss_tracedata_b, reset_n, sd_card, sd_write, sec_mi2s, smb_int,
  100. ssbi_wtr0, ssbi_wtr1, uim1, uim2, uim3, uim_batt, wcss_bt, wcss_fm,
  101. wcss_wlan, webcam1_rst
  102. - bias-disable:
  103. Usage: optional
  104. Value type: <none>
  105. Definition: The specified pins should be configued as no pull.
  106. - bias-pull-down:
  107. Usage: optional
  108. Value type: <none>
  109. Definition: The specified pins should be configued as pull down.
  110. - bias-pull-up:
  111. Usage: optional
  112. Value type: <none>
  113. Definition: The specified pins should be configued as pull up.
  114. - output-high:
  115. Usage: optional
  116. Value type: <none>
  117. Definition: The specified pins are configured in output mode, driven
  118. high.
  119. Not valid for sdc pins.
  120. - output-low:
  121. Usage: optional
  122. Value type: <none>
  123. Definition: The specified pins are configured in output mode, driven
  124. low.
  125. Not valid for sdc pins.
  126. - drive-strength:
  127. Usage: optional
  128. Value type: <u32>
  129. Definition: Selects the drive strength for the specified pins, in mA.
  130. Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
  131. Example:
  132. tlmm: pinctrl@1000000 {
  133. compatible = "qcom,msm8916-pinctrl";
  134. reg = <0x1000000 0x300000>;
  135. interrupts = <0 208 0>;
  136. gpio-controller;
  137. #gpio-cells = <2>;
  138. interrupt-controller;
  139. #interrupt-cells = <2>;
  140. uart2: uart2-default {
  141. mux {
  142. pins = "gpio4", "gpio5";
  143. function = "blsp_uart2";
  144. };
  145. tx {
  146. pins = "gpio4";
  147. drive-strength = <4>;
  148. bias-disable;
  149. };
  150. rx {
  151. pins = "gpio5";
  152. drive-strength = <2>;
  153. bias-pull-up;
  154. };
  155. };
  156. };