18c2ecf20Sopenharmony_ciQualcomm MSM8974 TLMM block 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: "qcom,msm8974-pinctrl" 58c2ecf20Sopenharmony_ci- reg: Should be the base address and length of the TLMM block. 68c2ecf20Sopenharmony_ci- interrupts: Should be the parent IRQ of the TLMM block. 78c2ecf20Sopenharmony_ci- interrupt-controller: Marks the device node as an interrupt controller. 88c2ecf20Sopenharmony_ci- #interrupt-cells: Should be two. 98c2ecf20Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller. 108c2ecf20Sopenharmony_ci- #gpio-cells : Should be two. 118c2ecf20Sopenharmony_ci The first cell is the gpio pin number and the 128c2ecf20Sopenharmony_ci second cell is used for optional parameters. 138c2ecf20Sopenharmony_ci- gpio-ranges: see ../gpio/gpio.txt 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciOptional properties: 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci- gpio-reserved-ranges: see ../gpio/gpio.txt 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 208c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the 238c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the 248c2ecf20Sopenharmony_ciphrase "pin configuration node". 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciQualcomm's pin configuration nodes act as a container for an arbitrary number of 278c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a 288c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the 298c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration 308c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated 338c2ecf20Sopenharmony_ciand processed purely based on their content. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In 368c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration 378c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters. 388c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no 398c2ecf20Sopenharmony_ciinformation about e.g. the mux function. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid 438c2ecf20Sopenharmony_cito specify in a pin configuration subnode: 448c2ecf20Sopenharmony_ci pins, function, bias-disable, bias-pull-down, bias-pull-up, drive-strength. 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciNon-empty subnodes must specify the 'pins' property. 478c2ecf20Sopenharmony_ciNote that not all properties are valid for all pins. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciValid values for pins are: 518c2ecf20Sopenharmony_ci gpio0-gpio145 528c2ecf20Sopenharmony_ci Supports mux, bias and drive-strength 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data 558c2ecf20Sopenharmony_ci Supports bias and drive-strength 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci hsic_data, hsic_strobe 588c2ecf20Sopenharmony_ci Supports only mux 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ciValid values for function are: 618c2ecf20Sopenharmony_ci cci_i2c0, cci_i2c1, uim1, uim2, uim_batt_alarm, 628c2ecf20Sopenharmony_ci blsp_uim1, blsp_uart1, blsp_i2c1, blsp_spi1, 638c2ecf20Sopenharmony_ci blsp_uim2, blsp_uart2, blsp_i2c2, blsp_spi2, 648c2ecf20Sopenharmony_ci blsp_uim3, blsp_uart3, blsp_i2c3, blsp_spi3, 658c2ecf20Sopenharmony_ci blsp_uim4, blsp_uart4, blsp_i2c4, blsp_spi4, 668c2ecf20Sopenharmony_ci blsp_uim5, blsp_uart5, blsp_i2c5, blsp_spi5, 678c2ecf20Sopenharmony_ci blsp_uim6, blsp_uart6, blsp_i2c6, blsp_spi6, 688c2ecf20Sopenharmony_ci blsp_uim7, blsp_uart7, blsp_i2c7, blsp_spi7, 698c2ecf20Sopenharmony_ci blsp_uim8, blsp_uart8, blsp_i2c8, blsp_spi8, 708c2ecf20Sopenharmony_ci blsp_uim9, blsp_uart9, blsp_i2c9, blsp_spi9, 718c2ecf20Sopenharmony_ci blsp_uim10, blsp_uart10, blsp_i2c10, blsp_spi10, 728c2ecf20Sopenharmony_ci blsp_uim11, blsp_uart11, blsp_i2c11, blsp_spi11, 738c2ecf20Sopenharmony_ci blsp_uim12, blsp_uart12, blsp_i2c12, blsp_spi12, 748c2ecf20Sopenharmony_ci blsp_spi1_cs1, blsp_spi2_cs2, blsp_spi_cs3, blsp_spi2_cs1, blsp_spi2_cs2 758c2ecf20Sopenharmony_ci blsp_spi2_cs3, blsp_spi10_cs1, blsp_spi10_cs2, blsp_spi10_cs3, 768c2ecf20Sopenharmony_ci sdc3, sdc4, gcc_gp_clk1, gcc_gp_clk2, gcc_gp_clk3, cci_timer0, cci_timer1, 778c2ecf20Sopenharmony_ci cci_timer2, cci_timer3, cci_async_in0, cci_async_in1, cci_async_in2, 788c2ecf20Sopenharmony_ci cam_mckl0, cam_mclk1, cam_mclk2, cam_mclk3, mdp_vsync, hdmi_cec, hdmi_ddc, 798c2ecf20Sopenharmony_ci hdmi_hpd, edp_hpd, gp_pdm0, gp_pdm1, gp_pdm2, gp_pdm3, gp0_clk, gp1_clk, 808c2ecf20Sopenharmony_ci gp_mn, tsif1, tsif2, hsic, grfc, audio_ref_clk, qua_mi2s, pri_mi2s, spkr_mi2s, 818c2ecf20Sopenharmony_ci ter_mi2s, sec_mi2s, bt, fm, wlan, slimbus, hsic_ctl, gpio 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci (Note that this is not yet the complete list of functions) 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ciExample: 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci msmgpio: pinctrl@fd510000 { 908c2ecf20Sopenharmony_ci compatible = "qcom,msm8974-pinctrl"; 918c2ecf20Sopenharmony_ci reg = <0xfd510000 0x4000>; 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci gpio-controller; 948c2ecf20Sopenharmony_ci #gpio-cells = <2>; 958c2ecf20Sopenharmony_ci gpio-ranges = <&msmgpio 0 0 146>; 968c2ecf20Sopenharmony_ci interrupt-controller; 978c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 988c2ecf20Sopenharmony_ci interrupts = <0 208 0>; 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1018c2ecf20Sopenharmony_ci pinctrl-0 = <&uart2_default>; 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci uart2_default: uart2_default { 1048c2ecf20Sopenharmony_ci mux { 1058c2ecf20Sopenharmony_ci pins = "gpio4", "gpio5"; 1068c2ecf20Sopenharmony_ci function = "blsp_uart2"; 1078c2ecf20Sopenharmony_ci }; 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci tx { 1108c2ecf20Sopenharmony_ci pins = "gpio4"; 1118c2ecf20Sopenharmony_ci drive-strength = <4>; 1128c2ecf20Sopenharmony_ci bias-disable; 1138c2ecf20Sopenharmony_ci }; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci rx { 1168c2ecf20Sopenharmony_ci pins = "gpio5"; 1178c2ecf20Sopenharmony_ci drive-strength = <2>; 1188c2ecf20Sopenharmony_ci bias-pull-up; 1198c2ecf20Sopenharmony_ci }; 1208c2ecf20Sopenharmony_ci }; 1218c2ecf20Sopenharmony_ci }; 122