1*4882a593SmuzhiyunQualcomm SDM845 TLMM block 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis binding describes the Top Level Mode Multiplexer block found in the 4*4882a593SmuzhiyunSDM845 platform. 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun- compatible: 7*4882a593Smuzhiyun Usage: required 8*4882a593Smuzhiyun Value type: <string> 9*4882a593Smuzhiyun Definition: must be "qcom,sdm845-pinctrl" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun- reg: 12*4882a593Smuzhiyun Usage: required 13*4882a593Smuzhiyun Value type: <prop-encoded-array> 14*4882a593Smuzhiyun Definition: the base address and size of the TLMM register space. 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun- interrupts: 17*4882a593Smuzhiyun Usage: required 18*4882a593Smuzhiyun Value type: <prop-encoded-array> 19*4882a593Smuzhiyun Definition: should specify the TLMM summary IRQ. 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun- interrupt-controller: 22*4882a593Smuzhiyun Usage: required 23*4882a593Smuzhiyun Value type: <none> 24*4882a593Smuzhiyun Definition: identifies this node as an interrupt controller 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun- #interrupt-cells: 27*4882a593Smuzhiyun Usage: required 28*4882a593Smuzhiyun Value type: <u32> 29*4882a593Smuzhiyun Definition: must be 2. Specifying the pin number and flags, as defined 30*4882a593Smuzhiyun in <dt-bindings/interrupt-controller/irq.h> 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun- gpio-controller: 33*4882a593Smuzhiyun Usage: required 34*4882a593Smuzhiyun Value type: <none> 35*4882a593Smuzhiyun Definition: identifies this node as a gpio controller 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun- #gpio-cells: 38*4882a593Smuzhiyun Usage: required 39*4882a593Smuzhiyun Value type: <u32> 40*4882a593Smuzhiyun Definition: must be 2. Specifying the pin number and flags, as defined 41*4882a593Smuzhiyun in <dt-bindings/gpio/gpio.h> 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 44*4882a593Smuzhiyuna general description of GPIO and interrupt bindings. 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunPlease refer to pinctrl-bindings.txt in this directory for details of the 47*4882a593Smuzhiyuncommon pinctrl bindings used by client devices, including the meaning of the 48*4882a593Smuzhiyunphrase "pin configuration node". 49*4882a593Smuzhiyun 50*4882a593SmuzhiyunThe pin configuration nodes act as a container for an arbitrary number of 51*4882a593Smuzhiyunsubnodes. Each of these subnodes represents some desired configuration for a 52*4882a593Smuzhiyunpin, a group, or a list of pins or groups. This configuration can include the 53*4882a593Smuzhiyunmux function to select on those pin(s)/group(s), and various pin configuration 54*4882a593Smuzhiyunparameters, such as pull-up, drive strength, etc. 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun 57*4882a593SmuzhiyunPIN CONFIGURATION NODES: 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunThe name of each subnode is not important; all subnodes should be enumerated 60*4882a593Smuzhiyunand processed purely based on their content. 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunEach subnode only affects those parameters that are explicitly listed. In 63*4882a593Smuzhiyunother words, a subnode that lists a mux function but no pin configuration 64*4882a593Smuzhiyunparameters implies no information about any pin configuration parameters. 65*4882a593SmuzhiyunSimilarly, a pin subnode that describes a pullup parameter implies no 66*4882a593Smuzhiyuninformation about e.g. the mux function. 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun 69*4882a593SmuzhiyunThe following generic properties as defined in pinctrl-bindings.txt are valid 70*4882a593Smuzhiyunto specify in a pin configuration subnode: 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun- pins: 73*4882a593Smuzhiyun Usage: required 74*4882a593Smuzhiyun Value type: <string-array> 75*4882a593Smuzhiyun Definition: List of gpio pins affected by the properties specified in 76*4882a593Smuzhiyun this subnode. 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun Valid pins are: 79*4882a593Smuzhiyun gpio0-gpio149 80*4882a593Smuzhiyun Supports mux, bias and drive-strength 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset 83*4882a593Smuzhiyun Supports bias and drive-strength 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun- function: 86*4882a593Smuzhiyun Usage: required 87*4882a593Smuzhiyun Value type: <string> 88*4882a593Smuzhiyun Definition: Specify the alternative function to be configured for the 89*4882a593Smuzhiyun specified pins. Functions are only valid for gpio pins. 90*4882a593Smuzhiyun Valid values are: 91*4882a593Smuzhiyun 92*4882a593Smuzhiyun gpio, adsp_ext, agera_pll, atest_char, atest_tsens, 93*4882a593Smuzhiyun atest_tsens2, atest_usb1, atest_usb10, atest_usb11, 94*4882a593Smuzhiyun atest_usb12, atest_usb13, atest_usb2, atest_usb20, 95*4882a593Smuzhiyun atest_usb21, atest_usb22, atest_usb23, audio_ref, 96*4882a593Smuzhiyun btfm_slimbus, cam_mclk, cci_async, cci_i2c, cci_timer0, 97*4882a593Smuzhiyun cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng, 98*4882a593Smuzhiyun cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, 99*4882a593Smuzhiyun ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, 100*4882a593Smuzhiyun gcc_gp2, gcc_gp3, jitter_bist, ldo_en, ldo_update, 101*4882a593Smuzhiyun lpass_slimbus, m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, 102*4882a593Smuzhiyun mdp_vsync2, mdp_vsync3, mss_lte, nav_pps, pa_indicator, 103*4882a593Smuzhiyun pci_e0, pci_e1, phase_flag, pll_bist, pll_bypassnl, 104*4882a593Smuzhiyun pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, 105*4882a593Smuzhiyun qdss, qlink_enable, qlink_request, qua_mi2s, qup0, qup1, 106*4882a593Smuzhiyun qup10, qup11, qup12, qup13, qup14, qup15, qup2, qup3, qup4, 107*4882a593Smuzhiyun qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, 108*4882a593Smuzhiyun qspi_clk, qspi_cs, qspi_data, sd_write, sdc4_clk, sdc4_cmd, 109*4882a593Smuzhiyun sdc4_data, sec_mi2s, sp_cmu, spkr_i2s, ter_mi2s, tgu_ch0, 110*4882a593Smuzhiyun tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, 111*4882a593Smuzhiyun tsif1_clk, tsif1_data, tsif1_en, tsif1_error, tsif1_sync, 112*4882a593Smuzhiyun tsif2_clk, tsif2_data, tsif2_en, tsif2_error, tsif2_sync, 113*4882a593Smuzhiyun uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, 114*4882a593Smuzhiyun uim2_data, uim2_present, uim2_reset, uim_batt, usb_phy, 115*4882a593Smuzhiyun vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, 116*4882a593Smuzhiyun wlan2_adc1, 117*4882a593Smuzhiyun 118*4882a593Smuzhiyun- bias-disable: 119*4882a593Smuzhiyun Usage: optional 120*4882a593Smuzhiyun Value type: <none> 121*4882a593Smuzhiyun Definition: The specified pins should be configured as no pull. 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun- bias-pull-down: 124*4882a593Smuzhiyun Usage: optional 125*4882a593Smuzhiyun Value type: <none> 126*4882a593Smuzhiyun Definition: The specified pins should be configured as pull down. 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun- bias-pull-up: 129*4882a593Smuzhiyun Usage: optional 130*4882a593Smuzhiyun Value type: <none> 131*4882a593Smuzhiyun Definition: The specified pins should be configured as pull up. 132*4882a593Smuzhiyun 133*4882a593Smuzhiyun- output-high: 134*4882a593Smuzhiyun Usage: optional 135*4882a593Smuzhiyun Value type: <none> 136*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 137*4882a593Smuzhiyun high. 138*4882a593Smuzhiyun Not valid for sdc pins. 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun- output-low: 141*4882a593Smuzhiyun Usage: optional 142*4882a593Smuzhiyun Value type: <none> 143*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 144*4882a593Smuzhiyun low. 145*4882a593Smuzhiyun Not valid for sdc pins. 146*4882a593Smuzhiyun 147*4882a593Smuzhiyun- drive-strength: 148*4882a593Smuzhiyun Usage: optional 149*4882a593Smuzhiyun Value type: <u32> 150*4882a593Smuzhiyun Definition: Selects the drive strength for the specified pins, in mA. 151*4882a593Smuzhiyun Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 152*4882a593Smuzhiyun 153*4882a593SmuzhiyunExample: 154*4882a593Smuzhiyun 155*4882a593Smuzhiyun tlmm: pinctrl@3400000 { 156*4882a593Smuzhiyun compatible = "qcom,sdm845-pinctrl"; 157*4882a593Smuzhiyun reg = <0x03400000 0xc00000>; 158*4882a593Smuzhiyun interrupts = <GIC_SPI 208 0>; 159*4882a593Smuzhiyun gpio-controller; 160*4882a593Smuzhiyun #gpio-cells = <2>; 161*4882a593Smuzhiyun interrupt-controller; 162*4882a593Smuzhiyun #interrupt-cells = <2>; 163*4882a593Smuzhiyun 164*4882a593Smuzhiyun qup9_active: qup9-active { 165*4882a593Smuzhiyun mux { 166*4882a593Smuzhiyun pins = "gpio4", "gpio5"; 167*4882a593Smuzhiyun function = "qup9"; 168*4882a593Smuzhiyun }; 169*4882a593Smuzhiyun 170*4882a593Smuzhiyun config { 171*4882a593Smuzhiyun pins = "gpio4", "gpio5"; 172*4882a593Smuzhiyun drive-strength = <2>; 173*4882a593Smuzhiyun bias-disable; 174*4882a593Smuzhiyun }; 175*4882a593Smuzhiyun }; 176*4882a593Smuzhiyun }; 177