1*c66ec88fSEmmanuel VadotQualcomm MSM8974 TLMM block 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: "qcom,msm8974-pinctrl" 5*c66ec88fSEmmanuel Vadot- reg: Should be the base address and length of the TLMM block. 6*c66ec88fSEmmanuel Vadot- interrupts: Should be the parent IRQ of the TLMM block. 7*c66ec88fSEmmanuel Vadot- interrupt-controller: Marks the device node as an interrupt controller. 8*c66ec88fSEmmanuel Vadot- #interrupt-cells: Should be two. 9*c66ec88fSEmmanuel Vadot- gpio-controller: Marks the device node as a GPIO controller. 10*c66ec88fSEmmanuel Vadot- #gpio-cells : Should be two. 11*c66ec88fSEmmanuel Vadot The first cell is the gpio pin number and the 12*c66ec88fSEmmanuel Vadot second cell is used for optional parameters. 13*c66ec88fSEmmanuel Vadot- gpio-ranges: see ../gpio/gpio.txt 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel VadotOptional properties: 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadot- gpio-reserved-ranges: see ../gpio/gpio.txt 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel VadotPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 20*c66ec88fSEmmanuel Vadota general description of GPIO and interrupt bindings. 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel VadotPlease refer to pinctrl-bindings.txt in this directory for details of the 23*c66ec88fSEmmanuel Vadotcommon pinctrl bindings used by client devices, including the meaning of the 24*c66ec88fSEmmanuel Vadotphrase "pin configuration node". 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel VadotQualcomm's pin configuration nodes act as a container for an arbitrary number of 27*c66ec88fSEmmanuel Vadotsubnodes. Each of these subnodes represents some desired configuration for a 28*c66ec88fSEmmanuel Vadotpin, a group, or a list of pins or groups. This configuration can include the 29*c66ec88fSEmmanuel Vadotmux function to select on those pin(s)/group(s), and various pin configuration 30*c66ec88fSEmmanuel Vadotparameters, such as pull-up, drive strength, etc. 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel VadotThe name of each subnode is not important; all subnodes should be enumerated 33*c66ec88fSEmmanuel Vadotand processed purely based on their content. 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel VadotEach subnode only affects those parameters that are explicitly listed. In 36*c66ec88fSEmmanuel Vadotother words, a subnode that lists a mux function but no pin configuration 37*c66ec88fSEmmanuel Vadotparameters implies no information about any pin configuration parameters. 38*c66ec88fSEmmanuel VadotSimilarly, a pin subnode that describes a pullup parameter implies no 39*c66ec88fSEmmanuel Vadotinformation about e.g. the mux function. 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadot 42*c66ec88fSEmmanuel VadotThe following generic properties as defined in pinctrl-bindings.txt are valid 43*c66ec88fSEmmanuel Vadotto specify in a pin configuration subnode: 44*c66ec88fSEmmanuel Vadot pins, function, bias-disable, bias-pull-down, bias-pull-up, drive-strength. 45*c66ec88fSEmmanuel Vadot 46*c66ec88fSEmmanuel VadotNon-empty subnodes must specify the 'pins' property. 47*c66ec88fSEmmanuel VadotNote that not all properties are valid for all pins. 48*c66ec88fSEmmanuel Vadot 49*c66ec88fSEmmanuel Vadot 50*c66ec88fSEmmanuel VadotValid values for pins are: 51*c66ec88fSEmmanuel Vadot gpio0-gpio145 52*c66ec88fSEmmanuel Vadot Supports mux, bias and drive-strength 53*c66ec88fSEmmanuel Vadot 54*c66ec88fSEmmanuel Vadot sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data 55*c66ec88fSEmmanuel Vadot Supports bias and drive-strength 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel Vadot hsic_data, hsic_strobe 58*c66ec88fSEmmanuel Vadot Supports only mux 59*c66ec88fSEmmanuel Vadot 60*c66ec88fSEmmanuel VadotValid values for function are: 61*c66ec88fSEmmanuel Vadot cci_i2c0, cci_i2c1, uim1, uim2, uim_batt_alarm, 62*c66ec88fSEmmanuel Vadot blsp_uim1, blsp_uart1, blsp_i2c1, blsp_spi1, 63*c66ec88fSEmmanuel Vadot blsp_uim2, blsp_uart2, blsp_i2c2, blsp_spi2, 64*c66ec88fSEmmanuel Vadot blsp_uim3, blsp_uart3, blsp_i2c3, blsp_spi3, 65*c66ec88fSEmmanuel Vadot blsp_uim4, blsp_uart4, blsp_i2c4, blsp_spi4, 66*c66ec88fSEmmanuel Vadot blsp_uim5, blsp_uart5, blsp_i2c5, blsp_spi5, 67*c66ec88fSEmmanuel Vadot blsp_uim6, blsp_uart6, blsp_i2c6, blsp_spi6, 68*c66ec88fSEmmanuel Vadot blsp_uim7, blsp_uart7, blsp_i2c7, blsp_spi7, 69*c66ec88fSEmmanuel Vadot blsp_uim8, blsp_uart8, blsp_i2c8, blsp_spi8, 70*c66ec88fSEmmanuel Vadot blsp_uim9, blsp_uart9, blsp_i2c9, blsp_spi9, 71*c66ec88fSEmmanuel Vadot blsp_uim10, blsp_uart10, blsp_i2c10, blsp_spi10, 72*c66ec88fSEmmanuel Vadot blsp_uim11, blsp_uart11, blsp_i2c11, blsp_spi11, 73*c66ec88fSEmmanuel Vadot blsp_uim12, blsp_uart12, blsp_i2c12, blsp_spi12, 74*c66ec88fSEmmanuel Vadot blsp_spi1_cs1, blsp_spi2_cs2, blsp_spi_cs3, blsp_spi2_cs1, blsp_spi2_cs2 75*c66ec88fSEmmanuel Vadot blsp_spi2_cs3, blsp_spi10_cs1, blsp_spi10_cs2, blsp_spi10_cs3, 76*c66ec88fSEmmanuel Vadot sdc3, sdc4, gcc_gp_clk1, gcc_gp_clk2, gcc_gp_clk3, cci_timer0, cci_timer1, 77*c66ec88fSEmmanuel Vadot cci_timer2, cci_timer3, cci_async_in0, cci_async_in1, cci_async_in2, 78*c66ec88fSEmmanuel Vadot cam_mckl0, cam_mclk1, cam_mclk2, cam_mclk3, mdp_vsync, hdmi_cec, hdmi_ddc, 79*c66ec88fSEmmanuel Vadot hdmi_hpd, edp_hpd, gp_pdm0, gp_pdm1, gp_pdm2, gp_pdm3, gp0_clk, gp1_clk, 80*c66ec88fSEmmanuel Vadot gp_mn, tsif1, tsif2, hsic, grfc, audio_ref_clk, qua_mi2s, pri_mi2s, spkr_mi2s, 81*c66ec88fSEmmanuel Vadot ter_mi2s, sec_mi2s, bt, fm, wlan, slimbus, hsic_ctl, gpio 82*c66ec88fSEmmanuel Vadot 83*c66ec88fSEmmanuel Vadot (Note that this is not yet the complete list of functions) 84*c66ec88fSEmmanuel Vadot 85*c66ec88fSEmmanuel Vadot 86*c66ec88fSEmmanuel Vadot 87*c66ec88fSEmmanuel VadotExample: 88*c66ec88fSEmmanuel Vadot 89*c66ec88fSEmmanuel Vadot msmgpio: pinctrl@fd510000 { 90*c66ec88fSEmmanuel Vadot compatible = "qcom,msm8974-pinctrl"; 91*c66ec88fSEmmanuel Vadot reg = <0xfd510000 0x4000>; 92*c66ec88fSEmmanuel Vadot 93*c66ec88fSEmmanuel Vadot gpio-controller; 94*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 95*c66ec88fSEmmanuel Vadot gpio-ranges = <&msmgpio 0 0 146>; 96*c66ec88fSEmmanuel Vadot interrupt-controller; 97*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 98*c66ec88fSEmmanuel Vadot interrupts = <0 208 0>; 99*c66ec88fSEmmanuel Vadot 100*c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 101*c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart2_default>; 102*c66ec88fSEmmanuel Vadot 103*c66ec88fSEmmanuel Vadot uart2_default: uart2_default { 104*c66ec88fSEmmanuel Vadot mux { 105*c66ec88fSEmmanuel Vadot pins = "gpio4", "gpio5"; 106*c66ec88fSEmmanuel Vadot function = "blsp_uart2"; 107*c66ec88fSEmmanuel Vadot }; 108*c66ec88fSEmmanuel Vadot 109*c66ec88fSEmmanuel Vadot tx { 110*c66ec88fSEmmanuel Vadot pins = "gpio4"; 111*c66ec88fSEmmanuel Vadot drive-strength = <4>; 112*c66ec88fSEmmanuel Vadot bias-disable; 113*c66ec88fSEmmanuel Vadot }; 114*c66ec88fSEmmanuel Vadot 115*c66ec88fSEmmanuel Vadot rx { 116*c66ec88fSEmmanuel Vadot pins = "gpio5"; 117*c66ec88fSEmmanuel Vadot drive-strength = <2>; 118*c66ec88fSEmmanuel Vadot bias-pull-up; 119*c66ec88fSEmmanuel Vadot }; 120*c66ec88fSEmmanuel Vadot }; 121*c66ec88fSEmmanuel Vadot }; 122