qcom,sdm845-pinctrl 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. Qualcomm Technologies, Inc. SDM845 TLMM block
  2. This binding describes the Top Level Mode Multiplexer block found in the
  3. SDM845 platform.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be "qcom,sdm845-pinctrl" or "qcom,sdm845-pinctrl-v2"
  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", optional base address of
  13. PDC mux selection registers provided as "pdc_regs"
  14. and optional base address of shared SPI config
  15. registers provided as "spi_cfg_regs".
  16. - reg-names:
  17. Usage: required
  18. Value type: <prop-encoded-array>
  19. Definition: Provides labels for the reg property.
  20. - interrupts:
  21. Usage: required
  22. Value type: <prop-encoded-array>
  23. Definition: should specify the TLMM summary IRQ.
  24. - interrupt-controller:
  25. Usage: required
  26. Value type: <none>
  27. Definition: identifies this node as an interrupt controller
  28. - #interrupt-cells:
  29. Usage: required
  30. Value type: <u32>
  31. Definition: must be 2. Specifying the pin number and flags, as defined
  32. in <dt-bindings/interrupt-controller/irq.h>
  33. - gpio-controller:
  34. Usage: required
  35. Value type: <none>
  36. Definition: identifies this node as a gpio controller
  37. - #gpio-cells:
  38. Usage: required
  39. Value type: <u32>
  40. Definition: must be 2. Specifying the pin number and flags, as defined
  41. in <dt-bindings/gpio/gpio.h>
  42. Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
  43. a general description of GPIO and interrupt bindings.
  44. Please refer to pinctrl-bindings.txt in this directory for details of the
  45. common pinctrl bindings used by client devices, including the meaning of the
  46. phrase "pin configuration node".
  47. The pin configuration nodes act as a container for an arbitrary number of
  48. subnodes. Each of these subnodes represents some desired configuration for a
  49. pin, a group, or a list of pins or groups. This configuration can include the
  50. mux function to select on those pin(s)/group(s), and various pin configuration
  51. parameters, such as pull-up, drive strength, etc.
  52. PIN CONFIGURATION NODES:
  53. The name of each subnode is not important; all subnodes should be enumerated
  54. and processed purely based on their content.
  55. Each subnode only affects those parameters that are explicitly listed. In
  56. other words, a subnode that lists a mux function but no pin configuration
  57. parameters implies no information about any pin configuration parameters.
  58. Similarly, a pin subnode that describes a pullup parameter implies no
  59. information about e.g. the mux function.
  60. The following generic properties as defined in pinctrl-bindings.txt are valid
  61. to specify in a pin configuration subnode:
  62. - pins:
  63. Usage: required
  64. Value type: <string-array>
  65. Definition: List of gpio pins affected by the properties specified in
  66. this subnode.
  67. Valid pins are:
  68. gpio0-gpio149
  69. Supports mux, bias and drive-strength
  70. sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd,
  71. sdc2_data sdc1_rclk
  72. Supports bias and drive-strength
  73. - function:
  74. Usage: required
  75. Value type: <string>
  76. Definition: Specify the alternative function to be configured for the
  77. specified pins. Functions are only valid for gpio pins.
  78. Valid values are:
  79. blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens,
  80. bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8,
  81. qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b,
  82. dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10,
  83. blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12,
  84. mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11,
  85. atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, atest_char,
  86. cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, qdss_tracedata_b,
  87. pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, atest_usb2, cci_i2c,
  88. qdss_stm3, dac_calib3, atest_usb23, atest_char3, dac_calib4,
  89. qdss_stm2, atest_usb22, atest_char2, qdss_stm1, dac_calib5,
  90. atest_usb21, atest_char1, dbg_out, qdss_stm0, dac_calib6,
  91. atest_usb20, atest_char0, dac_calib10, qdss_stm10,
  92. qdss_cti_trig_in_a, cci_timer4, blsp_spi6, blsp_uart6, blsp_uim6,
  93. blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11,
  94. qdss_stm8, cci_timer0, qdss_stm13, dac_calib7, cci_timer1,
  95. qdss_stm12, dac_calib8, cci_timer2, blsp1_spi, qdss_stm11,
  96. dac_calib9, cci_timer3, cci_async, dac_calib12, blsp_i2c6,
  97. qdss_tracectl_a, dac_calib13, qdss_traceclk_a, dac_calib14,
  98. dac_calib15, hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem,
  99. dac_calib17, hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto,
  100. dac_calib19, hdmi_hot, dac_calib20, dac_calib21, pci_e0,
  101. dac_calib22, dac_calib23, dac_calib24, tsif1_sync, dac_calib25,
  102. sd_write, tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2,
  103. qdss_cti, blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3,
  104. uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9,
  105. blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7,
  106. qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, blsp_uart11,
  107. blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, blsp_i2c11, cri_trng0,
  108. cri_trng1, cri_trng, qdss_stm18, pri_mi2s, qdss_stm17, blsp_spi4,
  109. blsp_uart4, blsp_uim4, qdss_stm16, qdss_stm15, blsp_i2c4,
  110. qdss_stm14, dac_calib26, spkr_i2s, audio_ref, lpass_slimbus,
  111. isense_dbg, tsense_pwm1, tsense_pwm2, btfm_slimbus, ter_mi2s,
  112. qdss_stm22, qdss_stm21, qdss_stm20, qdss_stm19, gcc_gp1_clk_b,
  113. sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
  114. gcc_gp3_clk_b, blsp_i2c5, blsp_spi12, blsp_uart12, blsp_uim12,
  115. qdss_stm25, qdss_stm31, blsp_i2c12, qdss_stm30, qdss_stm29,
  116. tsif1_clk, qdss_stm28, tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27,
  117. qdss_traceclk_b, tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk,
  118. sdc4_clk, qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b,
  119. sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b,
  120. ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, blsp11_uart_rx_b,
  121. blsp11_i2c_sda_b, prng_rosc, blsp11_i2c_scl_b, uim2, uim1, uim_batt,
  122. pci_e2, pa_indicator, adsp_ext, ddr_bist, qdss_tracedata_11,
  123. qdss_tracedata_12, modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx,
  124. qspi_cs, ssbi2, ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3,
  125. gpio
  126. - bias-disable:
  127. Usage: optional
  128. Value type: <none>
  129. Definition: The specified pins should be configued as no pull.
  130. - bias-pull-down:
  131. Usage: optional
  132. Value type: <none>
  133. Definition: The specified pins should be configued as pull down.
  134. - bias-pull-up:
  135. Usage: optional
  136. Value type: <none>
  137. Definition: The specified pins should be configued as pull up.
  138. - output-high:
  139. Usage: optional
  140. Value type: <none>
  141. Definition: The specified pins are configured in output mode, driven
  142. high.
  143. Not valid for sdc pins.
  144. - output-low:
  145. Usage: optional
  146. Value type: <none>
  147. Definition: The specified pins are configured in output mode, driven
  148. low.
  149. Not valid for sdc pins.
  150. - drive-strength:
  151. Usage: optional
  152. Value type: <u32>
  153. Definition: Selects the drive strength for the specified pins, in mA.
  154. Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
  155. Example:
  156. tlmm: pinctrl@03400000 {
  157. compatible = "qcom,sdm845-pinctrl";
  158. reg = <0x03800000 0xc00000>, <0x179900f0 0x60>;
  159. reg-names = "pinctrl_regs", "spi_cfg_regs";
  160. interrupts = <0 208 0>;
  161. gpio-controller;
  162. #gpio-cells = <2>;
  163. interrupt-controller;
  164. #interrupt-cells = <2>;
  165. };