18c2ecf20Sopenharmony_ciQualcomm MSM8996 TLMM block 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis binding describes the Top Level Mode Multiplexer block found in the 48c2ecf20Sopenharmony_ciMSM8996 platform. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci- compatible: 78c2ecf20Sopenharmony_ci Usage: required 88c2ecf20Sopenharmony_ci Value type: <string> 98c2ecf20Sopenharmony_ci Definition: must be "qcom,msm8996-pinctrl" 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci- reg: 128c2ecf20Sopenharmony_ci Usage: required 138c2ecf20Sopenharmony_ci Value type: <prop-encoded-array> 148c2ecf20Sopenharmony_ci Definition: the base address and size of the TLMM register space. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci- interrupts: 178c2ecf20Sopenharmony_ci Usage: required 188c2ecf20Sopenharmony_ci Value type: <prop-encoded-array> 198c2ecf20Sopenharmony_ci Definition: should specify the TLMM summary IRQ. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci- interrupt-controller: 228c2ecf20Sopenharmony_ci Usage: required 238c2ecf20Sopenharmony_ci Value type: <none> 248c2ecf20Sopenharmony_ci Definition: identifies this node as an interrupt controller 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci- #interrupt-cells: 278c2ecf20Sopenharmony_ci Usage: required 288c2ecf20Sopenharmony_ci Value type: <u32> 298c2ecf20Sopenharmony_ci Definition: must be 2. Specifying the pin number and flags, as defined 308c2ecf20Sopenharmony_ci in <dt-bindings/interrupt-controller/irq.h> 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci- gpio-controller: 338c2ecf20Sopenharmony_ci Usage: required 348c2ecf20Sopenharmony_ci Value type: <none> 358c2ecf20Sopenharmony_ci Definition: identifies this node as a gpio controller 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci- #gpio-cells: 388c2ecf20Sopenharmony_ci Usage: required 398c2ecf20Sopenharmony_ci Value type: <u32> 408c2ecf20Sopenharmony_ci Definition: must be 2. Specifying the pin number and flags, as defined 418c2ecf20Sopenharmony_ci in <dt-bindings/gpio/gpio.h> 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci- gpio-ranges: 448c2ecf20Sopenharmony_ci Usage: required 458c2ecf20Sopenharmony_ci Definition: see ../gpio/gpio.txt 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci- gpio-reserved-ranges: 488c2ecf20Sopenharmony_ci Usage: optional 498c2ecf20Sopenharmony_ci Definition: see ../gpio/gpio.txt 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 528c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings. 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the 558c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the 568c2ecf20Sopenharmony_ciphrase "pin configuration node". 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ciThe pin configuration nodes act as a container for an arbitrary number of 598c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a 608c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the 618c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration 628c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciPIN CONFIGURATION NODES: 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated 688c2ecf20Sopenharmony_ciand processed purely based on their content. 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In 718c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration 728c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters. 738c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no 748c2ecf20Sopenharmony_ciinformation about e.g. the mux function. 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid 788c2ecf20Sopenharmony_cito specify in a pin configuration subnode: 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci- pins: 818c2ecf20Sopenharmony_ci Usage: required 828c2ecf20Sopenharmony_ci Value type: <string-array> 838c2ecf20Sopenharmony_ci Definition: List of gpio pins affected by the properties specified in 848c2ecf20Sopenharmony_ci this subnode. 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci Valid pins are: 878c2ecf20Sopenharmony_ci gpio0-gpio149 888c2ecf20Sopenharmony_ci Supports mux, bias and drive-strength 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd, 918c2ecf20Sopenharmony_ci sdc2_data sdc1_rclk 928c2ecf20Sopenharmony_ci Supports bias and drive-strength 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci- function: 958c2ecf20Sopenharmony_ci Usage: required 968c2ecf20Sopenharmony_ci Value type: <string> 978c2ecf20Sopenharmony_ci Definition: Specify the alternative function to be configured for the 988c2ecf20Sopenharmony_ci specified pins. Functions are only valid for gpio pins. 998c2ecf20Sopenharmony_ci Valid values are: 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens, 1028c2ecf20Sopenharmony_ci bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8, 1038c2ecf20Sopenharmony_ci qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b, 1048c2ecf20Sopenharmony_ci dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10, 1058c2ecf20Sopenharmony_ci blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12, 1068c2ecf20Sopenharmony_ci mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11, 1078c2ecf20Sopenharmony_ci atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, atest_char, 1088c2ecf20Sopenharmony_ci cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, qdss_tracedata_b, 1098c2ecf20Sopenharmony_ci pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, atest_usb2, cci_i2c, 1108c2ecf20Sopenharmony_ci qdss_stm3, dac_calib3, atest_usb23, atest_char3, dac_calib4, 1118c2ecf20Sopenharmony_ci qdss_stm2, atest_usb22, atest_char2, qdss_stm1, dac_calib5, 1128c2ecf20Sopenharmony_ci atest_usb21, atest_char1, dbg_out, qdss_stm0, dac_calib6, 1138c2ecf20Sopenharmony_ci atest_usb20, atest_char0, dac_calib10, qdss_stm10, 1148c2ecf20Sopenharmony_ci qdss_cti_trig_in_a, cci_timer4, blsp_spi6, blsp_uart6, blsp_uim6, 1158c2ecf20Sopenharmony_ci blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11, 1168c2ecf20Sopenharmony_ci qdss_stm8, cci_timer0, qdss_stm13, dac_calib7, cci_timer1, 1178c2ecf20Sopenharmony_ci qdss_stm12, dac_calib8, cci_timer2, blsp1_spi, qdss_stm11, 1188c2ecf20Sopenharmony_ci dac_calib9, cci_timer3, cci_async, dac_calib12, blsp_i2c6, 1198c2ecf20Sopenharmony_ci qdss_tracectl_a, dac_calib13, qdss_traceclk_a, dac_calib14, 1208c2ecf20Sopenharmony_ci dac_calib15, hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem, 1218c2ecf20Sopenharmony_ci dac_calib17, hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto, 1228c2ecf20Sopenharmony_ci dac_calib19, hdmi_hot, dac_calib20, dac_calib21, pci_e0, 1238c2ecf20Sopenharmony_ci dac_calib22, dac_calib23, dac_calib24, tsif1_sync, dac_calib25, 1248c2ecf20Sopenharmony_ci sd_write, tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2, 1258c2ecf20Sopenharmony_ci qdss_cti, blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3, 1268c2ecf20Sopenharmony_ci uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9, 1278c2ecf20Sopenharmony_ci blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7, 1288c2ecf20Sopenharmony_ci qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, blsp_uart11, 1298c2ecf20Sopenharmony_ci blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, blsp_i2c11, cri_trng0, 1308c2ecf20Sopenharmony_ci cri_trng1, cri_trng, qdss_stm18, pri_mi2s, qdss_stm17, blsp_spi4, 1318c2ecf20Sopenharmony_ci blsp_uart4, blsp_uim4, qdss_stm16, qdss_stm15, blsp_i2c4, 1328c2ecf20Sopenharmony_ci qdss_stm14, dac_calib26, spkr_i2s, audio_ref, lpass_slimbus, 1338c2ecf20Sopenharmony_ci isense_dbg, tsense_pwm1, tsense_pwm2, btfm_slimbus, ter_mi2s, 1348c2ecf20Sopenharmony_ci qdss_stm22, qdss_stm21, qdss_stm20, qdss_stm19, gcc_gp1_clk_b, 1358c2ecf20Sopenharmony_ci sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b, 1368c2ecf20Sopenharmony_ci gcc_gp3_clk_b, blsp_i2c5, blsp_spi12, blsp_uart12, blsp_uim12, 1378c2ecf20Sopenharmony_ci qdss_stm25, qdss_stm31, blsp_i2c12, qdss_stm30, qdss_stm29, 1388c2ecf20Sopenharmony_ci tsif1_clk, qdss_stm28, tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27, 1398c2ecf20Sopenharmony_ci qdss_traceclk_b, tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk, 1408c2ecf20Sopenharmony_ci sdc4_clk, qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b, 1418c2ecf20Sopenharmony_ci sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b, 1428c2ecf20Sopenharmony_ci ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, blsp11_uart_rx_b, 1438c2ecf20Sopenharmony_ci blsp11_i2c_sda_b, prng_rosc, blsp11_i2c_scl_b, uim2, uim1, uim_batt, 1448c2ecf20Sopenharmony_ci pci_e2, pa_indicator, adsp_ext, ddr_bist, qdss_tracedata_11, 1458c2ecf20Sopenharmony_ci qdss_tracedata_12, modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx, 1468c2ecf20Sopenharmony_ci qspi_cs, ssbi2, ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3, 1478c2ecf20Sopenharmony_ci gpio 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci- bias-disable: 1508c2ecf20Sopenharmony_ci Usage: optional 1518c2ecf20Sopenharmony_ci Value type: <none> 1528c2ecf20Sopenharmony_ci Definition: The specified pins should be configured as no pull. 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci- bias-pull-down: 1558c2ecf20Sopenharmony_ci Usage: optional 1568c2ecf20Sopenharmony_ci Value type: <none> 1578c2ecf20Sopenharmony_ci Definition: The specified pins should be configured as pull down. 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci- bias-pull-up: 1608c2ecf20Sopenharmony_ci Usage: optional 1618c2ecf20Sopenharmony_ci Value type: <none> 1628c2ecf20Sopenharmony_ci Definition: The specified pins should be configured as pull up. 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ci- output-high: 1658c2ecf20Sopenharmony_ci Usage: optional 1668c2ecf20Sopenharmony_ci Value type: <none> 1678c2ecf20Sopenharmony_ci Definition: The specified pins are configured in output mode, driven 1688c2ecf20Sopenharmony_ci high. 1698c2ecf20Sopenharmony_ci Not valid for sdc pins. 1708c2ecf20Sopenharmony_ci 1718c2ecf20Sopenharmony_ci- output-low: 1728c2ecf20Sopenharmony_ci Usage: optional 1738c2ecf20Sopenharmony_ci Value type: <none> 1748c2ecf20Sopenharmony_ci Definition: The specified pins are configured in output mode, driven 1758c2ecf20Sopenharmony_ci low. 1768c2ecf20Sopenharmony_ci Not valid for sdc pins. 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ci- drive-strength: 1798c2ecf20Sopenharmony_ci Usage: optional 1808c2ecf20Sopenharmony_ci Value type: <u32> 1818c2ecf20Sopenharmony_ci Definition: Selects the drive strength for the specified pins, in mA. 1828c2ecf20Sopenharmony_ci Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ciExample: 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci tlmm: pinctrl@1010000 { 1878c2ecf20Sopenharmony_ci compatible = "qcom,msm8996-pinctrl"; 1888c2ecf20Sopenharmony_ci reg = <0x01010000 0x300000>; 1898c2ecf20Sopenharmony_ci interrupts = <0 208 0>; 1908c2ecf20Sopenharmony_ci gpio-controller; 1918c2ecf20Sopenharmony_ci gpio-ranges = <&tlmm 0 0 150>; 1928c2ecf20Sopenharmony_ci #gpio-cells = <2>; 1938c2ecf20Sopenharmony_ci interrupt-controller; 1948c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 1958c2ecf20Sopenharmony_ci 1968c2ecf20Sopenharmony_ci uart_console_active: uart_console_active { 1978c2ecf20Sopenharmony_ci mux { 1988c2ecf20Sopenharmony_ci pins = "gpio4", "gpio5"; 1998c2ecf20Sopenharmony_ci function = "blsp_uart8"; 2008c2ecf20Sopenharmony_ci }; 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci config { 2038c2ecf20Sopenharmony_ci pins = "gpio4", "gpio5"; 2048c2ecf20Sopenharmony_ci drive-strength = <2>; 2058c2ecf20Sopenharmony_ci bias-disable; 2068c2ecf20Sopenharmony_ci }; 2078c2ecf20Sopenharmony_ci }; 2088c2ecf20Sopenharmony_ci }; 209