1*4882a593SmuzhiyunQualcomm APQ8084 TLMM block 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis binding describes the Top Level Mode Multiplexer block found in the 4*4882a593SmuzhiyunMSM8960 platform. 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun- compatible: 7*4882a593Smuzhiyun Usage: required 8*4882a593Smuzhiyun Value type: <string> 9*4882a593Smuzhiyun Definition: must be "qcom,apq8084-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. Valid pins are: 85*4882a593Smuzhiyun gpio0-gpio146, 86*4882a593Smuzhiyun sdc1_clk, 87*4882a593Smuzhiyun sdc1_cmd, 88*4882a593Smuzhiyun sdc1_data 89*4882a593Smuzhiyun sdc2_clk, 90*4882a593Smuzhiyun sdc2_cmd, 91*4882a593Smuzhiyun sdc2_data 92*4882a593Smuzhiyun 93*4882a593Smuzhiyun- function: 94*4882a593Smuzhiyun Usage: required 95*4882a593Smuzhiyun Value type: <string> 96*4882a593Smuzhiyun Definition: Specify the alternative function to be configured for the 97*4882a593Smuzhiyun specified pins. Functions are only valid for gpio pins. 98*4882a593Smuzhiyun Valid values are: 99*4882a593Smuzhiyun adsp_ext, audio_ref, blsp_i2c1, blsp_i2c2, blsp_i2c3, 100*4882a593Smuzhiyun blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8, 101*4882a593Smuzhiyun blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12, 102*4882a593Smuzhiyun blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, blsp_spi5, 103*4882a593Smuzhiyun blsp_spi6, blsp_spi7, blsp_spi8, blsp_spi9, blsp_spi10, 104*4882a593Smuzhiyun blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2, blsp_uart3, 105*4882a593Smuzhiyun blsp_uart4, blsp_uart5, blsp_uart6, blsp_uart7, blsp_uart8, 106*4882a593Smuzhiyun blsp_uart9, blsp_uart10, blsp_uart11, blsp_uart12, 107*4882a593Smuzhiyun blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim4, blsp_uim5, 108*4882a593Smuzhiyun blsp_uim6, blsp_uim7, blsp_uim8, blsp_uim9, blsp_uim10, 109*4882a593Smuzhiyun blsp_uim11, blsp_uim12, cam_mclk0, cam_mclk1, cam_mclk2, 110*4882a593Smuzhiyun cam_mclk3, cci_async, cci_async_in0, cci_i2c0, cci_i2c1, 111*4882a593Smuzhiyun cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 112*4882a593Smuzhiyun edp_hpd, gcc_gp1, gcc_gp2, gcc_gp3, gcc_obt, gcc_vtt,i 113*4882a593Smuzhiyun gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, gp0_clk, gp1_clk, gpio, 114*4882a593Smuzhiyun hdmi_cec, hdmi_ddc, hdmi_dtest, hdmi_hpd, hdmi_rcv, hsic, 115*4882a593Smuzhiyun ldo_en, ldo_update, mdp_vsync, pci_e0, pci_e0_n, pci_e0_rst, 116*4882a593Smuzhiyun pci_e1, pci_e1_rst, pci_e1_rst_n, pci_e1_clkreq_n, pri_mi2s, 117*4882a593Smuzhiyun qua_mi2s, sata_act, sata_devsleep, sata_devsleep_n, 118*4882a593Smuzhiyun sd_write, sdc_emmc_mode, sdc3, sdc4, sec_mi2s, slimbus, 119*4882a593Smuzhiyun spdif_tx, spkr_i2s, spkr_i2s_ws, spss_geni, ter_mi2s, tsif1, 120*4882a593Smuzhiyun tsif2, uim, uim_batt_alarm 121*4882a593Smuzhiyun 122*4882a593Smuzhiyun- bias-disable: 123*4882a593Smuzhiyun Usage: optional 124*4882a593Smuzhiyun Value type: <none> 125*4882a593Smuzhiyun Definition: The specified pins should be configured as no pull. 126*4882a593Smuzhiyun 127*4882a593Smuzhiyun- bias-pull-down: 128*4882a593Smuzhiyun Usage: optional 129*4882a593Smuzhiyun Value type: <none> 130*4882a593Smuzhiyun Definition: The specified pins should be configured as pull down. 131*4882a593Smuzhiyun 132*4882a593Smuzhiyun- bias-pull-up: 133*4882a593Smuzhiyun Usage: optional 134*4882a593Smuzhiyun Value type: <none> 135*4882a593Smuzhiyun Definition: The specified pins should be configured as pull up. 136*4882a593Smuzhiyun 137*4882a593Smuzhiyun- output-high: 138*4882a593Smuzhiyun Usage: optional 139*4882a593Smuzhiyun Value type: <none> 140*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 141*4882a593Smuzhiyun high. 142*4882a593Smuzhiyun Not valid for sdc pins. 143*4882a593Smuzhiyun 144*4882a593Smuzhiyun- output-low: 145*4882a593Smuzhiyun Usage: optional 146*4882a593Smuzhiyun Value type: <none> 147*4882a593Smuzhiyun Definition: The specified pins are configured in output mode, driven 148*4882a593Smuzhiyun low. 149*4882a593Smuzhiyun Not valid for sdc pins. 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun- drive-strength: 152*4882a593Smuzhiyun Usage: optional 153*4882a593Smuzhiyun Value type: <u32> 154*4882a593Smuzhiyun Definition: Selects the drive strength for the specified pins, in mA. 155*4882a593Smuzhiyun Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 156*4882a593Smuzhiyun 157*4882a593SmuzhiyunExample: 158*4882a593Smuzhiyun 159*4882a593Smuzhiyun tlmm: pinctrl@fd510000 { 160*4882a593Smuzhiyun compatible = "qcom,apq8084-pinctrl"; 161*4882a593Smuzhiyun reg = <0xfd510000 0x4000>; 162*4882a593Smuzhiyun 163*4882a593Smuzhiyun gpio-controller; 164*4882a593Smuzhiyun #gpio-cells = <2>; 165*4882a593Smuzhiyun gpio-ranges = <&tlmm 0 0 147>; 166*4882a593Smuzhiyun interrupt-controller; 167*4882a593Smuzhiyun #interrupt-cells = <2>; 168*4882a593Smuzhiyun interrupts = <0 208 0>; 169*4882a593Smuzhiyun 170*4882a593Smuzhiyun uart2: uart2-default { 171*4882a593Smuzhiyun mux { 172*4882a593Smuzhiyun pins = "gpio4", "gpio5"; 173*4882a593Smuzhiyun function = "blsp_uart2"; 174*4882a593Smuzhiyun }; 175*4882a593Smuzhiyun 176*4882a593Smuzhiyun tx { 177*4882a593Smuzhiyun pins = "gpio4"; 178*4882a593Smuzhiyun drive-strength = <4>; 179*4882a593Smuzhiyun bias-disable; 180*4882a593Smuzhiyun }; 181*4882a593Smuzhiyun 182*4882a593Smuzhiyun rx { 183*4882a593Smuzhiyun pins = "gpio5"; 184*4882a593Smuzhiyun drive-strength = <2>; 185*4882a593Smuzhiyun bias-pull-up; 186*4882a593Smuzhiyun }; 187*4882a593Smuzhiyun }; 188*4882a593Smuzhiyun }; 189