18c2ecf20Sopenharmony_ciQualcomm Technologies, Inc. SDM660 TLMM block
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis binding describes the Top Level Mode Multiplexer block found in the
48c2ecf20Sopenharmony_ciSDM660 platform.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci- compatible:
78c2ecf20Sopenharmony_ci	Usage: required
88c2ecf20Sopenharmony_ci	Value type: <string>
98c2ecf20Sopenharmony_ci	Definition: must be "qcom,sdm660-pinctrl" or
108c2ecf20Sopenharmony_ci		    "qcom,sdm630-pinctrl".
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci- reg:
138c2ecf20Sopenharmony_ci	Usage: required
148c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
158c2ecf20Sopenharmony_ci	Definition: the base address and size of the north, center and south
168c2ecf20Sopenharmony_ci		    TLMM tiles.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci- reg-names:
198c2ecf20Sopenharmony_ci       Usage: required
208c2ecf20Sopenharmony_ci       Value type: <stringlist>
218c2ecf20Sopenharmony_ci       Definition: names for the cells of reg, must contain "north", "center"
228c2ecf20Sopenharmony_ci                   and "south".
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci- interrupts:
258c2ecf20Sopenharmony_ci	Usage: required
268c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
278c2ecf20Sopenharmony_ci	Definition: should specify the TLMM summary IRQ.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci- interrupt-controller:
308c2ecf20Sopenharmony_ci	Usage: required
318c2ecf20Sopenharmony_ci	Value type: <none>
328c2ecf20Sopenharmony_ci	Definition: identifies this node as an interrupt controller
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci- #interrupt-cells:
358c2ecf20Sopenharmony_ci	Usage: required
368c2ecf20Sopenharmony_ci	Value type: <u32>
378c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
388c2ecf20Sopenharmony_ci		    in <dt-bindings/interrupt-controller/irq.h>
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci- gpio-controller:
418c2ecf20Sopenharmony_ci	Usage: required
428c2ecf20Sopenharmony_ci	Value type: <none>
438c2ecf20Sopenharmony_ci	Definition: identifies this node as a gpio controller
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci- gpio-ranges:
468c2ecf20Sopenharmony_ci	Usage: required
478c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
488c2ecf20Sopenharmony_ci	Definition: Specifies the mapping between gpio controller and
498c2ecf20Sopenharmony_ci		    pin-controller pins.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci- #gpio-cells:
528c2ecf20Sopenharmony_ci	Usage: required
538c2ecf20Sopenharmony_ci	Value type: <u32>
548c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
558c2ecf20Sopenharmony_ci		    in <dt-bindings/gpio/gpio.h>
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
588c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
618c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
628c2ecf20Sopenharmony_ciphrase "pin configuration node".
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciThe pin configuration nodes act as a container for an arbitrary number of
658c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a
668c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the
678c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration
688c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc.
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciPIN CONFIGURATION NODES:
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated
748c2ecf20Sopenharmony_ciand processed purely based on their content.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In
778c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration
788c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters.
798c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no
808c2ecf20Sopenharmony_ciinformation about e.g. the mux function.
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid
848c2ecf20Sopenharmony_cito specify in a pin configuration subnode:
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci- pins:
878c2ecf20Sopenharmony_ci	Usage: required
888c2ecf20Sopenharmony_ci	Value type: <string-array>
898c2ecf20Sopenharmony_ci	Definition: List of gpio pins affected by the properties specified in
908c2ecf20Sopenharmony_ci		    this subnode.  Valid pins are:
918c2ecf20Sopenharmony_ci		    gpio0-gpio113,
928c2ecf20Sopenharmony_ci		        Supports mux, bias and drive-strength
938c2ecf20Sopenharmony_ci		    sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd, sdc2_data sdc1_rclk,
948c2ecf20Sopenharmony_ci		        Supports bias and drive-strength
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci- function:
978c2ecf20Sopenharmony_ci	Usage: required
988c2ecf20Sopenharmony_ci	Value type: <string>
998c2ecf20Sopenharmony_ci	Definition: Specify the alternative function to be configured for the
1008c2ecf20Sopenharmony_ci		    specified pins. Functions are only valid for gpio pins.
1018c2ecf20Sopenharmony_ci		    Valid values are:
1028c2ecf20Sopenharmony_ci		    adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
1038c2ecf20Sopenharmony_ci		    atest_char2, atest_char3, atest_gpsadc0, atest_gpsadc1,
1048c2ecf20Sopenharmony_ci		    atest_tsens, atest_tsens2, atest_usb1, atest_usb10,
1058c2ecf20Sopenharmony_ci		    atest_usb11, atest_usb12, atest_usb13, atest_usb2,
1068c2ecf20Sopenharmony_ci		    atest_usb20, atest_usb21, atest_usb22, atest_usb23,
1078c2ecf20Sopenharmony_ci		    audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1, blsp_i2c2,
1088c2ecf20Sopenharmony_ci		    blsp_i2c3, blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7,
1098c2ecf20Sopenharmony_ci		    blsp_i2c8_a, blsp_i2c8_b, blsp_spi1, blsp_spi2, blsp_spi3,
1108c2ecf20Sopenharmony_ci		    blsp_spi3_cs1, blsp_spi3_cs2, blsp_spi4, blsp_spi5,
1118c2ecf20Sopenharmony_ci		    blsp_spi6, blsp_spi7, blsp_spi8_a, blsp_spi8_b,
1128c2ecf20Sopenharmony_ci		    blsp_spi8_cs1, blsp_spi8_cs2, blsp_uart1, blsp_uart2,
1138c2ecf20Sopenharmony_ci		    blsp_uart5, blsp_uart6_a, blsp_uart6_b, blsp_uim1,
1148c2ecf20Sopenharmony_ci		    blsp_uim2, blsp_uim5, blsp_uim6, cam_mclk, cci_async,
1158c2ecf20Sopenharmony_ci		    cci_i2c, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist,
1168c2ecf20Sopenharmony_ci		    gcc_gp1, gcc_gp2, gcc_gp3, gpio, gps_tx_a, gps_tx_b, gps_tx_c,
1178c2ecf20Sopenharmony_ci		    isense_dbg, jitter_bist, ldo_en, ldo_update, m_voc, mdp_vsync,
1188c2ecf20Sopenharmony_ci		    mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, mss_lte,
1198c2ecf20Sopenharmony_ci		    nav_pps_a, nav_pps_b, nav_pps_c, pa_indicator, phase_flag0,
1208c2ecf20Sopenharmony_ci		    phase_flag1, phase_flag10, phase_flag11, phase_flag12,
1218c2ecf20Sopenharmony_ci		    phase_flag13, phase_flag14, phase_flag15, phase_flag16,
1228c2ecf20Sopenharmony_ci		    phase_flag17, phase_flag18, phase_flag19, phase_flag2,
1238c2ecf20Sopenharmony_ci		    phase_flag20, phase_flag21, phase_flag22, phase_flag23,
1248c2ecf20Sopenharmony_ci		    phase_flag24, phase_flag25, phase_flag26, phase_flag27,
1258c2ecf20Sopenharmony_ci		    phase_flag28, phase_flag29, phase_flag3, phase_flag30,
1268c2ecf20Sopenharmony_ci		    phase_flag31, phase_flag4, phase_flag5, phase_flag6,
1278c2ecf20Sopenharmony_ci		    phase_flag7, phase_flag8, phase_flag9, pll_bypassnl,
1288c2ecf20Sopenharmony_ci		    pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, pwr_crypto,
1298c2ecf20Sopenharmony_ci		    pwr_modem, pwr_nav, qdss_cti0_a, qdss_cti0_b, qdss_cti1_a,
1308c2ecf20Sopenharmony_ci		    qdss_cti1_b, qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10,
1318c2ecf20Sopenharmony_ci		    qdss_gpio11, qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15,
1328c2ecf20Sopenharmony_ci		    qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6,
1338c2ecf20Sopenharmony_ci		    qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink_enable, qlink_request,
1348c2ecf20Sopenharmony_ci		    qspi_clk, qspi_cs, qspi_data0, qspi_data1, qspi_data2,
1358c2ecf20Sopenharmony_ci		    qspi_data3, qspi_resetn, sec_mi2s, sndwire_clk, sndwire_data,
1368c2ecf20Sopenharmony_ci		    sp_cmu, ssc_irq, tgu_ch0, tgu_ch1, tsense_pwm1, tsense_pwm2,
1378c2ecf20Sopenharmony_ci		    uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
1388c2ecf20Sopenharmony_ci		    uim2_data, uim2_present, uim2_reset, uim_batt, vfr_1,
1398c2ecf20Sopenharmony_ci		    vsense_clkout, vsense_data0, vsense_data1, vsense_mode,
1408c2ecf20Sopenharmony_ci		    wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci- bias-disable:
1438c2ecf20Sopenharmony_ci	Usage: optional
1448c2ecf20Sopenharmony_ci	Value type: <none>
1458c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as no pull.
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci- bias-pull-down:
1488c2ecf20Sopenharmony_ci	Usage: optional
1498c2ecf20Sopenharmony_ci	Value type: <none>
1508c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull down.
1518c2ecf20Sopenharmony_ci
1528c2ecf20Sopenharmony_ci- bias-pull-up:
1538c2ecf20Sopenharmony_ci	Usage: optional
1548c2ecf20Sopenharmony_ci	Value type: <none>
1558c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull up.
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci- output-high:
1588c2ecf20Sopenharmony_ci	Usage: optional
1598c2ecf20Sopenharmony_ci	Value type: <none>
1608c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1618c2ecf20Sopenharmony_ci		    high.
1628c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci- output-low:
1658c2ecf20Sopenharmony_ci	Usage: optional
1668c2ecf20Sopenharmony_ci	Value type: <none>
1678c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1688c2ecf20Sopenharmony_ci		    low.
1698c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci- drive-strength:
1728c2ecf20Sopenharmony_ci	Usage: optional
1738c2ecf20Sopenharmony_ci	Value type: <u32>
1748c2ecf20Sopenharmony_ci	Definition: Selects the drive strength for the specified pins, in mA.
1758c2ecf20Sopenharmony_ci		    Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ciExample:
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_ci	tlmm: pinctrl@3100000 {
1808c2ecf20Sopenharmony_ci		compatible = "qcom,sdm660-pinctrl";
1818c2ecf20Sopenharmony_ci		reg = <0x3100000 0x200000>,
1828c2ecf20Sopenharmony_ci		      <0x3500000 0x200000>,
1838c2ecf20Sopenharmony_ci		      <0x3900000 0x200000>;
1848c2ecf20Sopenharmony_ci		reg-names = "south", "center", "north";
1858c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1868c2ecf20Sopenharmony_ci		gpio-controller;
1878c2ecf20Sopenharmony_ci		gpio-ranges = <&tlmm 0 0 114>;
1888c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
1898c2ecf20Sopenharmony_ci		interrupt-controller;
1908c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
1918c2ecf20Sopenharmony_ci	};
192