18c2ecf20Sopenharmony_ciQualcomm APQ8064 TLMM block 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: "qcom,apq8064-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 458c2ecf20Sopenharmony_ci pins, function, bias-disable, bias-pull-down, bias-pull-up, drive-strength, 468c2ecf20Sopenharmony_ci output-low, output-high. 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciNon-empty subnodes must specify the 'pins' property. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciValid values for pins are: 518c2ecf20Sopenharmony_ci gpio0-gpio89 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciValid values for function are: 548c2ecf20Sopenharmony_ci cam_mclk, codec_mic_i2s, codec_spkr_i2s, gp_clk_0a, gp_clk_0b, gp_clk_1a, 558c2ecf20Sopenharmony_ci gp_clk_1b, gp_clk_2a, gp_clk_2b, gpio, gsbi1, gsbi2, gsbi3, gsbi4, 568c2ecf20Sopenharmony_ci gsbi4_cam_i2c, gsbi5, gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, 578c2ecf20Sopenharmony_ci gsbi6_spi_cs1, gsbi6_spi_cs2, gsbi6_spi_cs3, gsbi7, gsbi7_spi_cs1, 588c2ecf20Sopenharmony_ci gsbi7_spi_cs2, gsbi7_spi_cs3, gsbi_cam_i2c, hdmi, mi2s, riva_bt, riva_fm, 598c2ecf20Sopenharmony_ci riva_wlan, sdc2, sdc4, slimbus, spkr_i2s, tsif1, tsif2, usb2_hsic, ps_hold 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ciExample: 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci msmgpio: pinctrl@800000 { 648c2ecf20Sopenharmony_ci compatible = "qcom,apq8064-pinctrl"; 658c2ecf20Sopenharmony_ci reg = <0x800000 0x4000>; 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci gpio-controller; 688c2ecf20Sopenharmony_ci #gpio-cells = <2>; 698c2ecf20Sopenharmony_ci interrupt-controller; 708c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 718c2ecf20Sopenharmony_ci interrupts = <0 16 0x4>; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci pinctrl-names = "default"; 748c2ecf20Sopenharmony_ci pinctrl-0 = <&gsbi5_uart_default>; 758c2ecf20Sopenharmony_ci gpio-ranges = <&msmgpio 0 0 90>; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci gsbi5_uart_default: gsbi5_uart_default { 788c2ecf20Sopenharmony_ci mux { 798c2ecf20Sopenharmony_ci pins = "gpio51", "gpio52"; 808c2ecf20Sopenharmony_ci function = "gsbi5"; 818c2ecf20Sopenharmony_ci }; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci tx { 848c2ecf20Sopenharmony_ci pins = "gpio51"; 858c2ecf20Sopenharmony_ci drive-strength = <4>; 868c2ecf20Sopenharmony_ci bias-disable; 878c2ecf20Sopenharmony_ci }; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci rx { 908c2ecf20Sopenharmony_ci pins = "gpio52"; 918c2ecf20Sopenharmony_ci drive-strength = <2>; 928c2ecf20Sopenharmony_ci bias-pull-up; 938c2ecf20Sopenharmony_ci }; 948c2ecf20Sopenharmony_ci }; 958c2ecf20Sopenharmony_ci }; 96