18c2ecf20Sopenharmony_ciQualcomm Technologies, Inc. SC7180 TLMM block
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis binding describes the Top Level Mode Multiplexer block found in the
48c2ecf20Sopenharmony_ciSC7180 platform.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci- compatible:
78c2ecf20Sopenharmony_ci	Usage: required
88c2ecf20Sopenharmony_ci	Value type: <string>
98c2ecf20Sopenharmony_ci	Definition: must be "qcom,sc7180-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 north, south and west
158c2ecf20Sopenharmony_ci		    TLMM tiles
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci- reg-names:
188c2ecf20Sopenharmony_ci	Usage: required
198c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
208c2ecf20Sopenharmony_ci	Definition: names for the cells of reg, must contain "north", "south"
218c2ecf20Sopenharmony_ci		    and "west".
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci- interrupts:
248c2ecf20Sopenharmony_ci	Usage: required
258c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
268c2ecf20Sopenharmony_ci	Definition: should specify the TLMM summary IRQ.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci- interrupt-controller:
298c2ecf20Sopenharmony_ci	Usage: required
308c2ecf20Sopenharmony_ci	Value type: <none>
318c2ecf20Sopenharmony_ci	Definition: identifies this node as an interrupt controller
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci- #interrupt-cells:
348c2ecf20Sopenharmony_ci	Usage: required
358c2ecf20Sopenharmony_ci	Value type: <u32>
368c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
378c2ecf20Sopenharmony_ci		    in <dt-bindings/interrupt-controller/irq.h>
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci- gpio-controller:
408c2ecf20Sopenharmony_ci	Usage: required
418c2ecf20Sopenharmony_ci	Value type: <none>
428c2ecf20Sopenharmony_ci	Definition: identifies this node as a gpio controller
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci- #gpio-cells:
458c2ecf20Sopenharmony_ci	Usage: required
468c2ecf20Sopenharmony_ci	Value type: <u32>
478c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
488c2ecf20Sopenharmony_ci		    in <dt-bindings/gpio/gpio.h>
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci- gpio-ranges:
518c2ecf20Sopenharmony_ci	Usage: required
528c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
538c2ecf20Sopenharmony_ci	Definition:  see ../gpio/gpio.txt
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci- gpio-reserved-ranges:
568c2ecf20Sopenharmony_ci	Usage: optional
578c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
588c2ecf20Sopenharmony_ci	Definition: see ../gpio/gpio.txt
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
618c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings.
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
648c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
658c2ecf20Sopenharmony_ciphrase "pin configuration node".
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciThe pin configuration nodes act as a container for an arbitrary number of
688c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a
698c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the
708c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration
718c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc.
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ciPIN CONFIGURATION NODES:
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated
778c2ecf20Sopenharmony_ciand processed purely based on their content.
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In
808c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration
818c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters.
828c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no
838c2ecf20Sopenharmony_ciinformation about e.g. the mux function.
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid
878c2ecf20Sopenharmony_cito specify in a pin configuration subnode:
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci- pins:
908c2ecf20Sopenharmony_ci	Usage: required
918c2ecf20Sopenharmony_ci	Value type: <string-array>
928c2ecf20Sopenharmony_ci	Definition: List of gpio pins affected by the properties specified in
938c2ecf20Sopenharmony_ci		    this subnode.
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci		    Valid pins are:
968c2ecf20Sopenharmony_ci		      gpio0-gpio118
978c2ecf20Sopenharmony_ci		        Supports mux, bias and drive-strength
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci		      sdc1_clk, sdc1_cmd, sdc1_data sdc2_clk, sdc2_cmd,
1008c2ecf20Sopenharmony_ci		      sdc2_data sdc1_rclk
1018c2ecf20Sopenharmony_ci		        Supports bias and drive-strength
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci		      ufs_reset
1048c2ecf20Sopenharmony_ci			Supports bias and drive-strength
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci- function:
1078c2ecf20Sopenharmony_ci	Usage: required
1088c2ecf20Sopenharmony_ci	Value type: <string>
1098c2ecf20Sopenharmony_ci	Definition: Specify the alternative function to be configured for the
1108c2ecf20Sopenharmony_ci		    specified pins. Functions are only valid for gpio pins.
1118c2ecf20Sopenharmony_ci		    Valid values are:
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci		    adsp_ext, agera_pll, aoss_cti, atest_char, atest_char0,
1148c2ecf20Sopenharmony_ci		    atest_char1, atest_char2, atest_char3, atest_tsens,
1158c2ecf20Sopenharmony_ci		    atest_tsens2, atest_usb1, atest_usb10, atest_usb11,
1168c2ecf20Sopenharmony_ci		    atest_usb12, atest_usb13, atest_usb2, atest_usb20,
1178c2ecf20Sopenharmony_ci		    atest_usb21, atest_usb22, atest_usb23, audio_ref,
1188c2ecf20Sopenharmony_ci		    btfm_slimbus, cam_mclk, cci_async, cci_i2c, cci_timer0,
1198c2ecf20Sopenharmony_ci		    cci_timer1, cci_timer2, cci_timer3, cci_timer4,
1208c2ecf20Sopenharmony_ci		    cri_trng, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
1218c2ecf20Sopenharmony_ci		    ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, gcc_gp1, gcc_gp2,
1228c2ecf20Sopenharmony_ci		    gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gps_tx,
1238c2ecf20Sopenharmony_ci		    jitter_bist, ldo_en, ldo_update, lpass_ext, mdp_vsync,
1248c2ecf20Sopenharmony_ci		    mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s_0,
1258c2ecf20Sopenharmony_ci		    mi2s_1, mi2s_2, mss_lte, m_voc, pa_indicator, phase_flag,
1268c2ecf20Sopenharmony_ci		    PLL_BIST, pll_bypassnl, pll_reset, prng_rosc, qdss,
1278c2ecf20Sopenharmony_ci		    qdss_cti, qlink_enable, qlink_request, qspi_clk, qspi_cs,
1288c2ecf20Sopenharmony_ci		    qspi_data, qup00, qup01, qup02_i2c, qup02_uart, qup03,
1298c2ecf20Sopenharmony_ci		    qup04_i2c, qup04_uart, qup05, qup10, qup11_i2c, qup11_uart,
1308c2ecf20Sopenharmony_ci		    qup12, qup13_i2c, qup13_uart, qup14, qup15, sdc1_tb,
1318c2ecf20Sopenharmony_ci		    sdc2_tb, sd_write, sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2,
1328c2ecf20Sopenharmony_ci		    tgu_ch3, tsense_pwm1, tsense_pwm2, uim1, uim2, uim_batt,
1338c2ecf20Sopenharmony_ci		    usb_phy, vfr_1, _V_GPIO, _V_PPS_IN, _V_PPS_OUT,
1348c2ecf20Sopenharmony_ci		    vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0,
1358c2ecf20Sopenharmony_ci		    wlan2_adc1,
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci- bias-disable:
1388c2ecf20Sopenharmony_ci	Usage: optional
1398c2ecf20Sopenharmony_ci	Value type: <none>
1408c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as no pull.
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci- bias-pull-down:
1438c2ecf20Sopenharmony_ci	Usage: optional
1448c2ecf20Sopenharmony_ci	Value type: <none>
1458c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull down.
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci- bias-pull-up:
1488c2ecf20Sopenharmony_ci	Usage: optional
1498c2ecf20Sopenharmony_ci	Value type: <none>
1508c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull up.
1518c2ecf20Sopenharmony_ci
1528c2ecf20Sopenharmony_ci- output-high:
1538c2ecf20Sopenharmony_ci	Usage: optional
1548c2ecf20Sopenharmony_ci	Value type: <none>
1558c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1568c2ecf20Sopenharmony_ci		    high.
1578c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci- output-low:
1608c2ecf20Sopenharmony_ci	Usage: optional
1618c2ecf20Sopenharmony_ci	Value type: <none>
1628c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1638c2ecf20Sopenharmony_ci		    low.
1648c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci- drive-strength:
1678c2ecf20Sopenharmony_ci	Usage: optional
1688c2ecf20Sopenharmony_ci	Value type: <u32>
1698c2ecf20Sopenharmony_ci	Definition: Selects the drive strength for the specified pins, in mA.
1708c2ecf20Sopenharmony_ci		    Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ciExample:
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci	tlmm: pinctrl@3500000 {
1758c2ecf20Sopenharmony_ci		compatible = "qcom,sc7180-pinctrl";
1768c2ecf20Sopenharmony_ci		reg = <0x3500000 0x300000>,
1778c2ecf20Sopenharmony_ci		      <0x3900000 0x300000>,
1788c2ecf20Sopenharmony_ci		      <0x3D00000 0x300000>;
1798c2ecf20Sopenharmony_ci		reg-names = "west", "north", "south";
1808c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1818c2ecf20Sopenharmony_ci		gpio-controller;
1828c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
1838c2ecf20Sopenharmony_ci		gpio-ranges = <&tlmm 0 0 119>;
1848c2ecf20Sopenharmony_ci		gpio-reserved-ranges = <0 4>, <106 4>;
1858c2ecf20Sopenharmony_ci		interrupt-controller;
1868c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
1878c2ecf20Sopenharmony_ci	};
188