qcom,mdm9607-pinctrl.txt 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Qualcomm Technologies, Inc. MDM9607 TLMM block
  2. This binding describes the Top Level Mode Multiplexer block found in the
  3. MDM9607 platform.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be "qcom,mdm9607-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. - qcom,tlmm-emmc-boot-select:
  35. Usage: optional
  36. Value type: <u32>
  37. Definition: selects the bit-field position to set.
  38. Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
  39. a general description of GPIO and interrupt bindings.
  40. Please refer to pinctrl-bindings.txt in this directory for details of the
  41. common pinctrl bindings used by client devices, including the meaning of the
  42. phrase "pin configuration node".
  43. The pin configuration nodes act as a container for an arbitrary number of
  44. subnodes. Each of these subnodes represents some desired configuration for a
  45. pin, a group, or a list of pins or groups. This configuration can include the
  46. mux function to select on those pin(s)/group(s), and various pin configuration
  47. parameters, such as pull-up, drive strength, etc.
  48. PIN CONFIGURATION NODES:
  49. The name of each subnode is not important; all subnodes should be enumerated
  50. and processed purely based on their content.
  51. Each subnode only affects those parameters that are explicitly listed. In
  52. other words, a subnode that lists a mux function but no pin configuration
  53. parameters implies no information about any pin configuration parameters.
  54. Similarly, a pin subnode that describes a pullup parameter implies no
  55. information about e.g. the mux function.
  56. The following generic properties as defined in pinctrl-bindings.txt are valid
  57. to specify in a pin configuration subnode:
  58. - pins:
  59. Usage: required
  60. Value type: <string-array>
  61. Definition: List of gpio pins affected by the properties specified in
  62. this subnode. Valid pins are:
  63. gpio0-gpio79,
  64. sdc1_clk,
  65. sdc1_cmd,
  66. sdc1_data,
  67. sdc2_clk,
  68. sdc2_cmd,
  69. sdc2_data,
  70. qdsd_clk,
  71. qdsd_cmd,
  72. qdsd_data0,
  73. qdsd_data1,
  74. qdsd_data2,
  75. qdsd_data3
  76. - function:
  77. Usage: required
  78. Value type: <string>
  79. Definition: Specify the alternative function to be configured for the
  80. specified pins. Functions are only valid for gpio pins.
  81. Valid values are:
  82. blsp_spi3, blsp_uart3, qdss_tracedata_a, bimc_dte1, blsp_i2c3,
  83. qdss_traceclk_a, bimc_dte0, qdss_cti_trig_in_a1, blsp_spi2,
  84. blsp_uart2, blsp_uim2, blsp_i2c2, qdss_tracectl_a, sensor_int2,
  85. blsp_spi5, blsp_uart5, ebi2_lcd, m_voc, sensor_int3, sensor_en,
  86. blsp_i2c5, ebi2_a, qdss_tracedata_b, sensor_rst, blsp2_spi,
  87. blsp_spi1, blsp_uart1, blsp_uim1, blsp3_spi, gcc_gp2_clk_b,
  88. gcc_gp3_clk_b, blsp_i2c1, gcc_gp1_clk_b, blsp_spi4, blsp_uart4,
  89. rcm_marker1, blsp_i2c4, qdss_cti_trig_out_a1, rcm_marker2,
  90. qdss_cti_trig_out_a0, blsp_spi6, blsp_uart6, pri_mi2s_ws_a,
  91. ebi2_lcd_te_b, blsp1_spi, backlight_en_b, pri_mi2s_data0_a,
  92. pri_mi2s_data1_a, blsp_i2c6, ebi2_a_d_8_b, pri_mi2s_sck_a,
  93. ebi2_lcd_cs_n_b, touch_rst, pri_mi2s_mclk_a, pwr_nav_enabled_a,
  94. ts_int, sd_write, pwr_crypto_enabled_a, codec_rst, adsp_ext,
  95. atest_combodac_to_gpio_native, uim2_data, gmac_mdio, gcc_gp1_clk_a,
  96. uim2_clk, gcc_gp2_clk_a, eth_irq, uim2_reset, gcc_gp3_clk_a,
  97. eth_rst, uim2_present, prng_rosc, uim1_data, uim1_clk,
  98. uim1_reset, uim1_present, gcc_plltest, uim_batt, coex_uart,
  99. codec_int, qdss_cti_trig_in_a0, atest_bbrx1, cri_trng0, atest_bbrx0,
  100. cri_trng, qdss_cti_trig_in_b0, atest_gpsadc_dtest0_native,
  101. qdss_cti_trig_out_b0, qdss_tracectl_b, qdss_traceclk_b, pa_indicator,
  102. modem_tsync, nav_tsync_out_a, nav_ptp_pps_in_a, ptp_pps_out_a,
  103. gsm0_tx, qdss_cti_trig_in_b1, cri_trng1, qdss_cti_trig_out_b1,
  104. ssbi1, atest_gpsadc_dtest1_native, ssbi2, atest_char3, atest_char2,
  105. atest_char1, atest_char0, atest_char, ebi0_wrcdc, ldo_update,
  106. gcc_tlmm, ldo_en, dbg_out, atest_tsens, lcd_rst, wlan_en1,
  107. nav_tsync_out_b, nav_ptp_pps_in_b, ptp_pps_out_b, pbs0, sec_mi2s,
  108. pwr_modem_enabled_a, pbs1, pwr_modem_enabled_b, pbs2, pwr_nav_enabled_b,
  109. pwr_crypto_enabled_b, gpio
  110. - bias-disable:
  111. Usage: optional
  112. Value type: <none>
  113. Definition: The specified pins should be configued as no pull.
  114. - bias-pull-down:
  115. Usage: optional
  116. Value type: <none>
  117. Definition: The specified pins should be configued as pull down.
  118. - bias-pull-up:
  119. Usage: optional
  120. Value type: <none>
  121. Definition: The specified pins should be configued as pull up.
  122. - output-high:
  123. Usage: optional
  124. Value type: <none>
  125. Definition: The specified pins are configured in output mode, driven
  126. high.
  127. Not valid for sdc pins.
  128. - output-low:
  129. Usage: optional
  130. Value type: <none>
  131. Definition: The specified pins are configured in output mode, driven
  132. low.
  133. Not valid for sdc pins.
  134. - drive-strength:
  135. Usage: optional
  136. Value type: <u32>
  137. Definition: Selects the drive strength for the specified pins, in mA.
  138. Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
  139. Example:
  140. tlmm: pinctrl@01010000 {
  141. compatible = "qcom,mdm9607-pinctrl";
  142. reg = <0x01010000 0x300000>;
  143. interrupts = <0 208 0>;
  144. gpio-controller;
  145. #gpio-cells = <2>;
  146. interrupt-controller;
  147. #interrupt-cells = <2>;
  148. qcom,tlmm-emmc-boot-select = <0x1>;
  149. uart_console_active: uart_console_active {
  150. mux {
  151. pins = "gpio8", "gpio9";
  152. function = "blsp_uart5";
  153. };
  154. config {
  155. pins = "gpio8", "gpio9";
  156. drive-strength = <2>;
  157. bias-disable;
  158. };
  159. };
  160. };