1*c66ec88fSEmmanuel VadotQualcomm Technologies, Inc. SDM660 TLMM block 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThis binding describes the Top Level Mode Multiplexer block found in the 4*c66ec88fSEmmanuel VadotSDM660 platform. 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel Vadot- compatible: 7*c66ec88fSEmmanuel Vadot Usage: required 8*c66ec88fSEmmanuel Vadot Value type: <string> 9*c66ec88fSEmmanuel Vadot Definition: must be "qcom,sdm660-pinctrl" or 10*c66ec88fSEmmanuel Vadot "qcom,sdm630-pinctrl". 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot- reg: 13*c66ec88fSEmmanuel Vadot Usage: required 14*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 15*c66ec88fSEmmanuel Vadot Definition: the base address and size of the north, center and south 16*c66ec88fSEmmanuel Vadot TLMM tiles. 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot- reg-names: 19*c66ec88fSEmmanuel Vadot Usage: required 20*c66ec88fSEmmanuel Vadot Value type: <stringlist> 21*c66ec88fSEmmanuel Vadot Definition: names for the cells of reg, must contain "north", "center" 22*c66ec88fSEmmanuel Vadot and "south". 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot- interrupts: 25*c66ec88fSEmmanuel Vadot Usage: required 26*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 27*c66ec88fSEmmanuel Vadot Definition: should specify the TLMM summary IRQ. 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot- interrupt-controller: 30*c66ec88fSEmmanuel Vadot Usage: required 31*c66ec88fSEmmanuel Vadot Value type: <none> 32*c66ec88fSEmmanuel Vadot Definition: identifies this node as an interrupt controller 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot- #interrupt-cells: 35*c66ec88fSEmmanuel Vadot Usage: required 36*c66ec88fSEmmanuel Vadot Value type: <u32> 37*c66ec88fSEmmanuel Vadot Definition: must be 2. Specifying the pin number and flags, as defined 38*c66ec88fSEmmanuel Vadot in <dt-bindings/interrupt-controller/irq.h> 39*c66ec88fSEmmanuel Vadot 40*c66ec88fSEmmanuel Vadot- gpio-controller: 41*c66ec88fSEmmanuel Vadot Usage: required 42*c66ec88fSEmmanuel Vadot Value type: <none> 43*c66ec88fSEmmanuel Vadot Definition: identifies this node as a gpio controller 44*c66ec88fSEmmanuel Vadot 45*c66ec88fSEmmanuel Vadot- gpio-ranges: 46*c66ec88fSEmmanuel Vadot Usage: required 47*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 48*c66ec88fSEmmanuel Vadot Definition: Specifies the mapping between gpio controller and 49*c66ec88fSEmmanuel Vadot pin-controller pins. 50*c66ec88fSEmmanuel Vadot 51*c66ec88fSEmmanuel Vadot- #gpio-cells: 52*c66ec88fSEmmanuel Vadot Usage: required 53*c66ec88fSEmmanuel Vadot Value type: <u32> 54*c66ec88fSEmmanuel Vadot Definition: must be 2. Specifying the pin number and flags, as defined 55*c66ec88fSEmmanuel Vadot in <dt-bindings/gpio/gpio.h> 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel VadotPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 58*c66ec88fSEmmanuel Vadota general description of GPIO and interrupt bindings. 59*c66ec88fSEmmanuel Vadot 60*c66ec88fSEmmanuel VadotPlease refer to pinctrl-bindings.txt in this directory for details of the 61*c66ec88fSEmmanuel Vadotcommon pinctrl bindings used by client devices, including the meaning of the 62*c66ec88fSEmmanuel Vadotphrase "pin configuration node". 63*c66ec88fSEmmanuel Vadot 64*c66ec88fSEmmanuel VadotThe pin configuration nodes act as a container for an arbitrary number of 65*c66ec88fSEmmanuel Vadotsubnodes. Each of these subnodes represents some desired configuration for a 66*c66ec88fSEmmanuel Vadotpin, a group, or a list of pins or groups. This configuration can include the 67*c66ec88fSEmmanuel Vadotmux function to select on those pin(s)/group(s), and various pin configuration 68*c66ec88fSEmmanuel Vadotparameters, such as pull-up, drive strength, etc. 69*c66ec88fSEmmanuel Vadot 70*c66ec88fSEmmanuel Vadot 71*c66ec88fSEmmanuel VadotPIN CONFIGURATION NODES: 72*c66ec88fSEmmanuel Vadot 73*c66ec88fSEmmanuel VadotThe name of each subnode is not important; all subnodes should be enumerated 74*c66ec88fSEmmanuel Vadotand processed purely based on their content. 75*c66ec88fSEmmanuel Vadot 76*c66ec88fSEmmanuel VadotEach subnode only affects those parameters that are explicitly listed. In 77*c66ec88fSEmmanuel Vadotother words, a subnode that lists a mux function but no pin configuration 78*c66ec88fSEmmanuel Vadotparameters implies no information about any pin configuration parameters. 79*c66ec88fSEmmanuel VadotSimilarly, a pin subnode that describes a pullup parameter implies no 80*c66ec88fSEmmanuel Vadotinformation about e.g. the mux function. 81*c66ec88fSEmmanuel Vadot 82*c66ec88fSEmmanuel Vadot 83*c66ec88fSEmmanuel VadotThe following generic properties as defined in pinctrl-bindings.txt are valid 84*c66ec88fSEmmanuel Vadotto specify in a pin configuration subnode: 85*c66ec88fSEmmanuel Vadot 86*c66ec88fSEmmanuel Vadot- pins: 87*c66ec88fSEmmanuel Vadot Usage: required 88*c66ec88fSEmmanuel Vadot Value type: <string-array> 89*c66ec88fSEmmanuel Vadot Definition: List of gpio pins affected by the properties specified in 90*c66ec88fSEmmanuel Vadot this subnode. Valid pins are: 91*c66ec88fSEmmanuel Vadot gpio0-gpio113, 92*c66ec88fSEmmanuel Vadot Supports mux, bias and drive-strength 93*c66ec88fSEmmanuel Vadot sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd, sdc2_data sdc1_rclk, 94*c66ec88fSEmmanuel Vadot Supports bias and drive-strength 95*c66ec88fSEmmanuel Vadot 96*c66ec88fSEmmanuel Vadot- function: 97*c66ec88fSEmmanuel Vadot Usage: required 98*c66ec88fSEmmanuel Vadot Value type: <string> 99*c66ec88fSEmmanuel Vadot Definition: Specify the alternative function to be configured for the 100*c66ec88fSEmmanuel Vadot specified pins. Functions are only valid for gpio pins. 101*c66ec88fSEmmanuel Vadot Valid values are: 102*c66ec88fSEmmanuel Vadot adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, 103*c66ec88fSEmmanuel Vadot atest_char2, atest_char3, atest_gpsadc0, atest_gpsadc1, 104*c66ec88fSEmmanuel Vadot atest_tsens, atest_tsens2, atest_usb1, atest_usb10, 105*c66ec88fSEmmanuel Vadot atest_usb11, atest_usb12, atest_usb13, atest_usb2, 106*c66ec88fSEmmanuel Vadot atest_usb20, atest_usb21, atest_usb22, atest_usb23, 107*c66ec88fSEmmanuel Vadot audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1, blsp_i2c2, 108*c66ec88fSEmmanuel Vadot blsp_i2c3, blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, 109*c66ec88fSEmmanuel Vadot blsp_i2c8_a, blsp_i2c8_b, blsp_spi1, blsp_spi2, blsp_spi3, 110*c66ec88fSEmmanuel Vadot blsp_spi3_cs1, blsp_spi3_cs2, blsp_spi4, blsp_spi5, 111*c66ec88fSEmmanuel Vadot blsp_spi6, blsp_spi7, blsp_spi8_a, blsp_spi8_b, 112*c66ec88fSEmmanuel Vadot blsp_spi8_cs1, blsp_spi8_cs2, blsp_uart1, blsp_uart2, 113*c66ec88fSEmmanuel Vadot blsp_uart5, blsp_uart6_a, blsp_uart6_b, blsp_uim1, 114*c66ec88fSEmmanuel Vadot blsp_uim2, blsp_uim5, blsp_uim6, cam_mclk, cci_async, 115*c66ec88fSEmmanuel Vadot cci_i2c, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, 116*c66ec88fSEmmanuel Vadot gcc_gp1, gcc_gp2, gcc_gp3, gpio, gps_tx_a, gps_tx_b, gps_tx_c, 117*c66ec88fSEmmanuel Vadot isense_dbg, jitter_bist, ldo_en, ldo_update, m_voc, mdp_vsync, 118*c66ec88fSEmmanuel Vadot mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, mss_lte, 119*c66ec88fSEmmanuel Vadot nav_pps_a, nav_pps_b, nav_pps_c, pa_indicator, phase_flag0, 120*c66ec88fSEmmanuel Vadot phase_flag1, phase_flag10, phase_flag11, phase_flag12, 121*c66ec88fSEmmanuel Vadot phase_flag13, phase_flag14, phase_flag15, phase_flag16, 122*c66ec88fSEmmanuel Vadot phase_flag17, phase_flag18, phase_flag19, phase_flag2, 123*c66ec88fSEmmanuel Vadot phase_flag20, phase_flag21, phase_flag22, phase_flag23, 124*c66ec88fSEmmanuel Vadot phase_flag24, phase_flag25, phase_flag26, phase_flag27, 125*c66ec88fSEmmanuel Vadot phase_flag28, phase_flag29, phase_flag3, phase_flag30, 126*c66ec88fSEmmanuel Vadot phase_flag31, phase_flag4, phase_flag5, phase_flag6, 127*c66ec88fSEmmanuel Vadot phase_flag7, phase_flag8, phase_flag9, pll_bypassnl, 128*c66ec88fSEmmanuel Vadot pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, pwr_crypto, 129*c66ec88fSEmmanuel Vadot pwr_modem, pwr_nav, qdss_cti0_a, qdss_cti0_b, qdss_cti1_a, 130*c66ec88fSEmmanuel Vadot qdss_cti1_b, qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10, 131*c66ec88fSEmmanuel Vadot qdss_gpio11, qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15, 132*c66ec88fSEmmanuel Vadot qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6, 133*c66ec88fSEmmanuel Vadot qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink_enable, qlink_request, 134*c66ec88fSEmmanuel Vadot qspi_clk, qspi_cs, qspi_data0, qspi_data1, qspi_data2, 135*c66ec88fSEmmanuel Vadot qspi_data3, qspi_resetn, sec_mi2s, sndwire_clk, sndwire_data, 136*c66ec88fSEmmanuel Vadot sp_cmu, ssc_irq, tgu_ch0, tgu_ch1, tsense_pwm1, tsense_pwm2, 137*c66ec88fSEmmanuel Vadot uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, 138*c66ec88fSEmmanuel Vadot uim2_data, uim2_present, uim2_reset, uim_batt, vfr_1, 139*c66ec88fSEmmanuel Vadot vsense_clkout, vsense_data0, vsense_data1, vsense_mode, 140*c66ec88fSEmmanuel Vadot wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1 141*c66ec88fSEmmanuel Vadot 142*c66ec88fSEmmanuel Vadot- bias-disable: 143*c66ec88fSEmmanuel Vadot Usage: optional 144*c66ec88fSEmmanuel Vadot Value type: <none> 145*c66ec88fSEmmanuel Vadot Definition: The specified pins should be configured as no pull. 146*c66ec88fSEmmanuel Vadot 147*c66ec88fSEmmanuel Vadot- bias-pull-down: 148*c66ec88fSEmmanuel Vadot Usage: optional 149*c66ec88fSEmmanuel Vadot Value type: <none> 150*c66ec88fSEmmanuel Vadot Definition: The specified pins should be configured as pull down. 151*c66ec88fSEmmanuel Vadot 152*c66ec88fSEmmanuel Vadot- bias-pull-up: 153*c66ec88fSEmmanuel Vadot Usage: optional 154*c66ec88fSEmmanuel Vadot Value type: <none> 155*c66ec88fSEmmanuel Vadot Definition: The specified pins should be configured as pull up. 156*c66ec88fSEmmanuel Vadot 157*c66ec88fSEmmanuel Vadot- output-high: 158*c66ec88fSEmmanuel Vadot Usage: optional 159*c66ec88fSEmmanuel Vadot Value type: <none> 160*c66ec88fSEmmanuel Vadot Definition: The specified pins are configured in output mode, driven 161*c66ec88fSEmmanuel Vadot high. 162*c66ec88fSEmmanuel Vadot Not valid for sdc pins. 163*c66ec88fSEmmanuel Vadot 164*c66ec88fSEmmanuel Vadot- output-low: 165*c66ec88fSEmmanuel Vadot Usage: optional 166*c66ec88fSEmmanuel Vadot Value type: <none> 167*c66ec88fSEmmanuel Vadot Definition: The specified pins are configured in output mode, driven 168*c66ec88fSEmmanuel Vadot low. 169*c66ec88fSEmmanuel Vadot Not valid for sdc pins. 170*c66ec88fSEmmanuel Vadot 171*c66ec88fSEmmanuel Vadot- drive-strength: 172*c66ec88fSEmmanuel Vadot Usage: optional 173*c66ec88fSEmmanuel Vadot Value type: <u32> 174*c66ec88fSEmmanuel Vadot Definition: Selects the drive strength for the specified pins, in mA. 175*c66ec88fSEmmanuel Vadot Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 176*c66ec88fSEmmanuel Vadot 177*c66ec88fSEmmanuel VadotExample: 178*c66ec88fSEmmanuel Vadot 179*c66ec88fSEmmanuel Vadot tlmm: pinctrl@3100000 { 180*c66ec88fSEmmanuel Vadot compatible = "qcom,sdm660-pinctrl"; 181*c66ec88fSEmmanuel Vadot reg = <0x3100000 0x200000>, 182*c66ec88fSEmmanuel Vadot <0x3500000 0x200000>, 183*c66ec88fSEmmanuel Vadot <0x3900000 0x200000>; 184*c66ec88fSEmmanuel Vadot reg-names = "south", "center", "north"; 185*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 186*c66ec88fSEmmanuel Vadot gpio-controller; 187*c66ec88fSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 114>; 188*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 189*c66ec88fSEmmanuel Vadot interrupt-controller; 190*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 191*c66ec88fSEmmanuel Vadot }; 192