18c2ecf20Sopenharmony_ciQualcomm SM8150 TLMM block
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis binding describes the Top Level Mode Multiplexer block found in the
48c2ecf20Sopenharmony_ciQCS404 platform.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci- compatible:
78c2ecf20Sopenharmony_ci	Usage: required
88c2ecf20Sopenharmony_ci	Value type: <string>
98c2ecf20Sopenharmony_ci	Definition: must be "qcom,sm8150-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, west
158c2ecf20Sopenharmony_ci		    and east TLMM tiles.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci- reg-names:
188c2ecf20Sopenharmony_ci	Usage: required
198c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
208c2ecf20Sopenharmony_ci	Defintiion: names for the cells of reg, must contain "north", "south"
218c2ecf20Sopenharmony_ci		    "west" and "east".
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-gpio149
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, ddr_pxi2, atest_char,
1148c2ecf20Sopenharmony_ci		    atest_char0, atest_char1, atest_char2, atest_char3,
1158c2ecf20Sopenharmony_ci		    audio_ref, atest_usb1, atest_usb2, atest_usb10,
1168c2ecf20Sopenharmony_ci		    atest_usb11, atest_usb12, atest_usb13, atest_usb20,
1178c2ecf20Sopenharmony_ci		    atest_usb21, atest_usb22, atest_usb2, atest_usb23,
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, cri_trng0, cri_trng1, dbg_out, ddr_bist,
1218c2ecf20Sopenharmony_ci		    ddr_pxi0, ddr_pxi1, ddr_pxi3, edp_hot, edp_lcd,
1228c2ecf20Sopenharmony_ci		    emac_phy, emac_pps, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
1238c2ecf20Sopenharmony_ci		    hs1_mi2s, hs2_mi2s, hs3_mi2s, jitter_bist,
1248c2ecf20Sopenharmony_ci		    lpass_slimbus, mdp_vsync, mdp_vsync0, mdp_vsync1,
1258c2ecf20Sopenharmony_ci		    mdp_vsync2, mdp_vsync3, mss_lte, m_voc, nav_pps,
1268c2ecf20Sopenharmony_ci		    pa_indicator, pci_e0, phase_flag, pll_bypassnl,
1278c2ecf20Sopenharmony_ci		    pll_bist, pci_e1, pll_reset, pri_mi2s, pri_mi2s_ws,
1288c2ecf20Sopenharmony_ci		    prng_rosc, qdss, qdss_cti, qlink_request, qlink_enable,
1298c2ecf20Sopenharmony_ci		    qspi0, qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qua_mi2s,
1308c2ecf20Sopenharmony_ci		    qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8,
1318c2ecf20Sopenharmony_ci		    qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16,
1328c2ecf20Sopenharmony_ci		    qup17, qup18, qup19, qup_l4, qup_l5, qup_l6, rgmii,
1338c2ecf20Sopenharmony_ci		    sdc4, sd_write, sec_mi2s, spkr_i2s, sp_cmu, ter_mi2s,
1348c2ecf20Sopenharmony_ci		    tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1,
1358c2ecf20Sopenharmony_ci		    tsense_pwm2, tsif1, tsif2, uim1, uim2, uim_batt,
1368c2ecf20Sopenharmony_ci		    usb2phy_ac, usb_phy, vfr_1, vsense_trigger, wlan1_adc0,
1378c2ecf20Sopenharmony_ci		    wlan1_adc1, wlan2_adc0, wlan2_adc1, wmss_reset
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci- bias-disable:
1408c2ecf20Sopenharmony_ci	Usage: optional
1418c2ecf20Sopenharmony_ci	Value type: <none>
1428c2ecf20Sopenharmony_ci	Definition: The specified pins should be configued as no pull.
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci- bias-pull-down:
1458c2ecf20Sopenharmony_ci	Usage: optional
1468c2ecf20Sopenharmony_ci	Value type: <none>
1478c2ecf20Sopenharmony_ci	Definition: The specified pins should be configued as pull down.
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ci- bias-pull-up:
1508c2ecf20Sopenharmony_ci	Usage: optional
1518c2ecf20Sopenharmony_ci	Value type: <none>
1528c2ecf20Sopenharmony_ci	Definition: The specified pins should be configued as pull up.
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ci- output-high:
1558c2ecf20Sopenharmony_ci	Usage: optional
1568c2ecf20Sopenharmony_ci	Value type: <none>
1578c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1588c2ecf20Sopenharmony_ci		    high.
1598c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci- output-low:
1628c2ecf20Sopenharmony_ci	Usage: optional
1638c2ecf20Sopenharmony_ci	Value type: <none>
1648c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1658c2ecf20Sopenharmony_ci		    low.
1668c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci- drive-strength:
1698c2ecf20Sopenharmony_ci	Usage: optional
1708c2ecf20Sopenharmony_ci	Value type: <u32>
1718c2ecf20Sopenharmony_ci	Definition: Selects the drive strength for the specified pins, in mA.
1728c2ecf20Sopenharmony_ci		    Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ciExample:
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci	tlmm: pinctrl@3000000 {
1778c2ecf20Sopenharmony_ci		compatible = "qcom,sm8150-pinctrl";
1788c2ecf20Sopenharmony_ci		reg = <0x03100000 0x300000>,
1798c2ecf20Sopenharmony_ci		      <0x03500000 0x300000>,
1808c2ecf20Sopenharmony_ci		      <0x03900000 0x300000>,
1818c2ecf20Sopenharmony_ci		      <0x03D00000 0x300000>;
1828c2ecf20Sopenharmony_ci		reg-names = "west", "east", "north", "south";
1838c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1848c2ecf20Sopenharmony_ci		gpio-controller;
1858c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
1868c2ecf20Sopenharmony_ci		gpio-ranges = <&tlmm 0 0 175>;
1878c2ecf20Sopenharmony_ci		gpio-reserved-ranges = <0 4>, <126 4>;
1888c2ecf20Sopenharmony_ci		interrupt-controller;
1898c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
1908c2ecf20Sopenharmony_ci	};
191