1*4882a593SmuzhiyunQualcomm MSM8976 TLMM block 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis binding describes the Top Level Mode Multiplexer block found in the 4*4882a593SmuzhiyunMSM8956 and MSM8976 platforms. 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun- compatible: 7*4882a593Smuzhiyun Usage: required 8*4882a593Smuzhiyun Value type: <string> 9*4882a593Smuzhiyun Definition: must be "qcom,msm8976-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*4882a593Smuzhiyun- gpio-ranges: 44*4882a593Smuzhiyun Usage: required 45*4882a593Smuzhiyun Definition: see ../gpio/gpio.txt 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun- gpio-reserved-ranges: 48*4882a593Smuzhiyun Usage: optional 49*4882a593Smuzhiyun Definition: see ../gpio/gpio.txt 50*4882a593Smuzhiyun 51*4882a593SmuzhiyunPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 52*4882a593Smuzhiyuna general description of GPIO and interrupt bindings. 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunPlease refer to pinctrl-bindings.txt in this directory for details of the 55*4882a593Smuzhiyuncommon pinctrl bindings used by client devices, including the meaning of the 56*4882a593Smuzhiyunphrase "pin configuration node". 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunThe pin configuration nodes act as a container for an arbitrary number of 59*4882a593Smuzhiyunsubnodes. Each of these subnodes represents some desired configuration for a 60*4882a593Smuzhiyunpin, a group, or a list of pins or groups. This configuration can include the 61*4882a593Smuzhiyunmux function to select on those pin(s)/group(s), and various pin configuration 62*4882a593Smuzhiyunparameters, such as pull-up, drive strength, etc. 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunPIN CONFIGURATION NODES: 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunThe name of each subnode is not important; all subnodes should be enumerated 68*4882a593Smuzhiyunand processed purely based on their content. 69*4882a593Smuzhiyun 70*4882a593SmuzhiyunEach subnode only affects those parameters that are explicitly listed. In 71*4882a593Smuzhiyunother words, a subnode that lists a mux function but no pin configuration 72*4882a593Smuzhiyunparameters implies no information about any pin configuration parameters. 73*4882a593SmuzhiyunSimilarly, a pin subnode that describes a pullup parameter implies no 74*4882a593Smuzhiyuninformation about e.g. the mux function. 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun 77*4882a593SmuzhiyunThe following generic properties as defined in pinctrl-bindings.txt are valid 78*4882a593Smuzhiyunto specify in a pin configuration subnode: 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun- pins: 81*4882a593Smuzhiyun Usage: required 82*4882a593Smuzhiyun Value type: <string-array> 83*4882a593Smuzhiyun Definition: List of gpio pins affected by the properties specified in 84*4882a593Smuzhiyun this subnode. 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun Valid pins are: 87*4882a593Smuzhiyun gpio0-gpio145 88*4882a593Smuzhiyun Supports mux, bias and drive-strength 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun sdc1_clk, sdc1_cmd, sdc1_data, 91*4882a593Smuzhiyun sdc2_clk, sdc2_cmd, sdc2_data, 92*4882a593Smuzhiyun sdc3_clk, sdc3_cmd, sdc3_data 93*4882a593Smuzhiyun Supports bias and drive-strength 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun- function: 96*4882a593Smuzhiyun Usage: required 97*4882a593Smuzhiyun Value type: <string> 98*4882a593Smuzhiyun Definition: Specify the alternative function to be configured for the 99*4882a593Smuzhiyun specified pins. Functions are only valid for gpio pins. 100*4882a593Smuzhiyun Valid values are: 101*4882a593Smuzhiyun 102*4882a593Smuzhiyun gpio, blsp_uart1, blsp_spi1, smb_int, blsp_i2c1, blsp_spi2, 103*4882a593Smuzhiyun blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, blsp_spi3, 104*4882a593Smuzhiyun qdss_tracedata_b, blsp_i2c3, gcc_gp2_clk_b, gcc_gp3_clk_b, 105*4882a593Smuzhiyun blsp_spi4, cap_int, blsp_i2c4, blsp_spi5, blsp_uart5, 106*4882a593Smuzhiyun qdss_traceclk_a, m_voc, blsp_i2c5, qdss_tracectl_a, 107*4882a593Smuzhiyun qdss_tracedata_a, blsp_spi6, blsp_uart6, qdss_tracectl_b, 108*4882a593Smuzhiyun blsp_i2c6, qdss_traceclk_b, mdp_vsync, pri_mi2s_mclk_a, 109*4882a593Smuzhiyun sec_mi2s_mclk_a, cam_mclk, cci0_i2c, cci1_i2c, blsp1_spi, 110*4882a593Smuzhiyun blsp3_spi, gcc_gp1_clk_a, gcc_gp2_clk_a, gcc_gp3_clk_a, 111*4882a593Smuzhiyun uim_batt, sd_write, uim1_data, uim1_clk, uim1_reset, 112*4882a593Smuzhiyun uim1_present, uim2_data, uim2_clk, uim2_reset, 113*4882a593Smuzhiyun uim2_present, ts_xvdd, mipi_dsi0, us_euro, ts_resout, 114*4882a593Smuzhiyun ts_sample, sec_mi2s_mclk_b, pri_mi2s, codec_reset, 115*4882a593Smuzhiyun cdc_pdm0, us_emitter, pri_mi2s_mclk_b, pri_mi2s_mclk_c, 116*4882a593Smuzhiyun lpass_slimbus, lpass_slimbus0, lpass_slimbus1, codec_int1, 117*4882a593Smuzhiyun codec_int2, wcss_bt, sdc3, wcss_wlan2, wcss_wlan1, 118*4882a593Smuzhiyun wcss_wlan0, wcss_wlan, wcss_fm, key_volp, key_snapshot, 119*4882a593Smuzhiyun key_focus, key_home, pwr_down, dmic0_clk, hdmi_int, 120*4882a593Smuzhiyun dmic0_data, wsa_vi, wsa_en, blsp_spi8, wsa_irq, blsp_i2c8, 121*4882a593Smuzhiyun pa_indicator, modem_tsync, ssbi_wtr1, gsm1_tx, gsm0_tx, 122*4882a593Smuzhiyun sdcard_det, sec_mi2s, ss_switch, 123*4882a593Smuzhiyun 124*4882a593Smuzhiyun- bias-disable: 125*4882a593Smuzhiyun Usage: optional 126*4882a593Smuzhiyun Value type: <none> 127*4882a593Smuzhiyun Definition: The specified pins should be configured as no pull. 128*4882a593Smuzhiyun 129*4882a593Smuzhiyun- bias-pull-down: 130*4882a593Smuzhiyun Usage: optional 131*4882a593Smuzhiyun Value type: <none> 132*4882a593Smuzhiyun Definition: The specified pins should be configured as pull down. 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun- bias-pull-up: 135*4882a593Smuzhiyun Usage: optional 136*4882a593Smuzhiyun Value type: <none> 137*4882a593Smuzhiyun Definition: The specified pins should be configured as pull up. 138*4882a593Smuzhiyun 139*4882a593Smuzhiyun- output-high: 140*4882a593Smuzhiyun Usage: optional 141*4882a593Smuzhiyun Value type: <none> 142*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 143*4882a593Smuzhiyun high. 144*4882a593Smuzhiyun Not valid for sdc pins. 145*4882a593Smuzhiyun 146*4882a593Smuzhiyun- output-low: 147*4882a593Smuzhiyun Usage: optional 148*4882a593Smuzhiyun Value type: <none> 149*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 150*4882a593Smuzhiyun low. 151*4882a593Smuzhiyun Not valid for sdc pins. 152*4882a593Smuzhiyun 153*4882a593Smuzhiyun- drive-strength: 154*4882a593Smuzhiyun Usage: optional 155*4882a593Smuzhiyun Value type: <u32> 156*4882a593Smuzhiyun Definition: Selects the drive strength for the specified pins, in mA. 157*4882a593Smuzhiyun Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 158*4882a593Smuzhiyun 159*4882a593SmuzhiyunExample: 160*4882a593Smuzhiyun 161*4882a593Smuzhiyun tlmm: pinctrl@1000000 { 162*4882a593Smuzhiyun compatible = "qcom,msm8976-pinctrl"; 163*4882a593Smuzhiyun reg = <0x1000000 0x300000>; 164*4882a593Smuzhiyun interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 165*4882a593Smuzhiyun gpio-controller; 166*4882a593Smuzhiyun #gpio-cells = <2>; 167*4882a593Smuzhiyun gpio-ranges = <&tlmm 0 0 145>; 168*4882a593Smuzhiyun interrupt-controller; 169*4882a593Smuzhiyun #interrupt-cells = <2>; 170*4882a593Smuzhiyun 171*4882a593Smuzhiyun blsp1_uart2_active: blsp1_uart2_active { 172*4882a593Smuzhiyun mux { 173*4882a593Smuzhiyun pins = "gpio4", "gpio5", "gpio6", "gpio7"; 174*4882a593Smuzhiyun function = "blsp_uart2"; 175*4882a593Smuzhiyun }; 176*4882a593Smuzhiyun 177*4882a593Smuzhiyun config { 178*4882a593Smuzhiyun pins = "gpio4", "gpio5", "gpio6", "gpio7"; 179*4882a593Smuzhiyun drive-strength = <2>; 180*4882a593Smuzhiyun bias-disable; 181*4882a593Smuzhiyun }; 182*4882a593Smuzhiyun }; 183*4882a593Smuzhiyun }; 184