18c2ecf20Sopenharmony_ciQualcomm MSM8994 TLMM block
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis binding describes the Top Level Mode Multiplexer block found in the
48c2ecf20Sopenharmony_ciMSM8994 platform.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci- compatible:
78c2ecf20Sopenharmony_ci	Usage: required
88c2ecf20Sopenharmony_ci	Value type: <string>
98c2ecf20Sopenharmony_ci	Definition: Should contain one of:
108c2ecf20Sopenharmony_ci		    "qcom,msm8992-pinctrl",
118c2ecf20Sopenharmony_ci		    "qcom,msm8994-pinctrl".
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci- reg:
148c2ecf20Sopenharmony_ci	Usage: required
158c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
168c2ecf20Sopenharmony_ci	Definition: the base address and size of the TLMM register space.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci- interrupts:
198c2ecf20Sopenharmony_ci	Usage: required
208c2ecf20Sopenharmony_ci	Value type: <prop-encoded-array>
218c2ecf20Sopenharmony_ci	Definition: should specify the TLMM summary IRQ.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci- interrupt-controller:
248c2ecf20Sopenharmony_ci	Usage: required
258c2ecf20Sopenharmony_ci	Value type: <none>
268c2ecf20Sopenharmony_ci	Definition: identifies this node as an interrupt controller
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci- #interrupt-cells:
298c2ecf20Sopenharmony_ci	Usage: required
308c2ecf20Sopenharmony_ci	Value type: <u32>
318c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
328c2ecf20Sopenharmony_ci		    in <dt-bindings/interrupt-controller/irq.h>
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci- gpio-controller:
358c2ecf20Sopenharmony_ci	Usage: required
368c2ecf20Sopenharmony_ci	Value type: <none>
378c2ecf20Sopenharmony_ci	Definition: identifies this node as a gpio controller
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci- #gpio-cells:
408c2ecf20Sopenharmony_ci	Usage: required
418c2ecf20Sopenharmony_ci	Value type: <u32>
428c2ecf20Sopenharmony_ci	Definition: must be 2. Specifying the pin number and flags, as defined
438c2ecf20Sopenharmony_ci		    in <dt-bindings/gpio/gpio.h>
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci- gpio-ranges:
468c2ecf20Sopenharmony_ci	Usage: required
478c2ecf20Sopenharmony_ci	Definition:  see ../gpio/gpio.txt
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci- gpio-reserved-ranges:
508c2ecf20Sopenharmony_ci	Usage: optional
518c2ecf20Sopenharmony_ci	Definition: see ../gpio/gpio.txt
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
548c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
578c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
588c2ecf20Sopenharmony_ciphrase "pin configuration node".
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciThe pin configuration nodes act as a container for an arbitrary number of
618c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a
628c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the
638c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration
648c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciPIN CONFIGURATION NODES:
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated
708c2ecf20Sopenharmony_ciand processed purely based on their content.
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In
738c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration
748c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters.
758c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no
768c2ecf20Sopenharmony_ciinformation about e.g. the mux function.
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid
808c2ecf20Sopenharmony_cito specify in a pin configuration subnode:
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci- pins:
838c2ecf20Sopenharmony_ci	Usage: required
848c2ecf20Sopenharmony_ci	Value type: <string-array>
858c2ecf20Sopenharmony_ci	Definition: List of gpio pins affected by the properties specified in
868c2ecf20Sopenharmony_ci		    this subnode.
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci		    Valid pins are:
898c2ecf20Sopenharmony_ci		      gpio0-gpio145
908c2ecf20Sopenharmony_ci		        Supports mux, bias and drive-strength
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci		      sdc1_clk, sdc1_cmd, sdc1_data sdc1_rclk, sdc2_clk,
938c2ecf20Sopenharmony_ci		      sdc2_cmd, sdc2_data
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
1038c2ecf20Sopenharmony_ci		    audio_ref_clk,  blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5,
1048c2ecf20Sopenharmony_ci		    blsp_i2c6, blsp_i2c7, blsp_i2c8, blsp_i2c9, blsp_i2c10, blsp_i2c11,
1058c2ecf20Sopenharmony_ci		    blsp_i2c12, blsp_spi1, blsp_spi1_cs1, blsp_spi1_cs2, blsp_spi1_cs3,
1068c2ecf20Sopenharmony_ci		    blsp_spi2, blsp_spi2_cs1, blsp_spi2_cs2, blsp_spi2_cs3, blsp_spi3,
1078c2ecf20Sopenharmony_ci		    blsp_spi4, blsp_spi5, blsp_spi6, blsp_spi7, blsp_spi8, blsp_spi9,
1088c2ecf20Sopenharmony_ci		    blsp_spi10, blsp_spi10_cs1, blsp_spi10_cs2, blsp_spi10_cs3, blsp_spi11,
1098c2ecf20Sopenharmony_ci		    blsp_spi12, blsp_uart1, blsp_uart2, blsp_uart3, blsp_uart4, blsp_uart5,
1108c2ecf20Sopenharmony_ci		    blsp_uart6, blsp_uart7, blsp_uart8, blsp_uart9, blsp_uart10, blsp_uart11,
1118c2ecf20Sopenharmony_ci		    blsp_uart12, blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim4, blsp_uim5,
1128c2ecf20Sopenharmony_ci		    blsp_uim6, blsp_uim7, blsp_uim8, blsp_uim9, blsp_uim10, blsp_uim11,
1138c2ecf20Sopenharmony_ci		    blsp_uim12, blsp11_i2c_scl_b, blsp11_i2c_sda_b, blsp11_uart_rx_b,
1148c2ecf20Sopenharmony_ci		    blsp11_uart_tx_b, cam_mclk0, cam_mclk1, cam_mclk2, cam_mclk3,
1158c2ecf20Sopenharmony_ci		    cci_async_in0, cci_async_in1, cci_async_in2, cci_i2c0, cci_i2c1,
1168c2ecf20Sopenharmony_ci		    cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4,
1178c2ecf20Sopenharmony_ci		    gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b, gcc_gp3_clk_a,
1188c2ecf20Sopenharmony_ci		    gcc_gp3_clk_b, gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, gp0_clk,
1198c2ecf20Sopenharmony_ci		    gp1_clk, gps_tx, gsm_tx, hdmi_cec, hdmi_ddc, hdmi_hpd, hdmi_rcv,
1208c2ecf20Sopenharmony_ci		    mdp_vsync, mss_lte, nav_pps, nav_tsync, qdss_cti_trig_in_a,
1218c2ecf20Sopenharmony_ci		    qdss_cti_trig_in_b, qdss_cti_trig_in_c, qdss_cti_trig_in_d,
1228c2ecf20Sopenharmony_ci		    qdss_cti_trig_out_a, qdss_cti_trig_out_b, qdss_cti_trig_out_c,
1238c2ecf20Sopenharmony_ci		    qdss_cti_trig_out_d, qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a,
1248c2ecf20Sopenharmony_ci		    qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, qua_mi2s, pci_e0,
1258c2ecf20Sopenharmony_ci		    pci_e1, pri_mi2s, sdc4, sec_mi2s, slimbus, spkr_i2s, ter_mi2s, tsif1,
1268c2ecf20Sopenharmony_ci		    tsif2, uim_batt_alarm, uim1, uim2, uim3, uim4, gpio
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci- bias-disable:
1298c2ecf20Sopenharmony_ci	Usage: optional
1308c2ecf20Sopenharmony_ci	Value type: <none>
1318c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as no pull.
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci- bias-pull-down:
1348c2ecf20Sopenharmony_ci	Usage: optional
1358c2ecf20Sopenharmony_ci	Value type: <none>
1368c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull down.
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci- bias-pull-up:
1398c2ecf20Sopenharmony_ci	Usage: optional
1408c2ecf20Sopenharmony_ci	Value type: <none>
1418c2ecf20Sopenharmony_ci	Definition: The specified pins should be configured as pull up.
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci- output-high:
1448c2ecf20Sopenharmony_ci	Usage: optional
1458c2ecf20Sopenharmony_ci	Value type: <none>
1468c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1478c2ecf20Sopenharmony_ci		    high.
1488c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci- output-low:
1518c2ecf20Sopenharmony_ci	Usage: optional
1528c2ecf20Sopenharmony_ci	Value type: <none>
1538c2ecf20Sopenharmony_ci	Definition: The specified pins are configured in output mode, driven
1548c2ecf20Sopenharmony_ci		    low.
1558c2ecf20Sopenharmony_ci		    Not valid for sdc pins.
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci- drive-strength:
1588c2ecf20Sopenharmony_ci	Usage: optional
1598c2ecf20Sopenharmony_ci	Value type: <u32>
1608c2ecf20Sopenharmony_ci	Definition: Selects the drive strength for the specified pins, in mA.
1618c2ecf20Sopenharmony_ci		    Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_ciExample:
1648c2ecf20Sopenharmony_ci
1658c2ecf20Sopenharmony_ci	msmgpio: pinctrl@fd510000 {
1668c2ecf20Sopenharmony_ci		compatible = "qcom,msm8994-pinctrl";
1678c2ecf20Sopenharmony_ci		reg = <0xfd510000 0x4000>;
1688c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1698c2ecf20Sopenharmony_ci		gpio-controller;
1708c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
1718c2ecf20Sopenharmony_ci		gpio-ranges = <&msmgpio 0 0 146>;
1728c2ecf20Sopenharmony_ci		interrupt-controller;
1738c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ci		blsp1_uart2_default: blsp1_uart2_default {
1768c2ecf20Sopenharmony_ci			pinmux {
1778c2ecf20Sopenharmony_ci				pins = "gpio4", "gpio5";
1788c2ecf20Sopenharmony_ci				function = "blsp_uart2";
1798c2ecf20Sopenharmony_ci			};
1808c2ecf20Sopenharmony_ci			pinconf {
1818c2ecf20Sopenharmony_ci				pins = "gpio4", "gpio5";
1828c2ecf20Sopenharmony_ci				drive-strength = <16>;
1838c2ecf20Sopenharmony_ci				bias-disable;
1848c2ecf20Sopenharmony_ci			};
1858c2ecf20Sopenharmony_ci		};
1868c2ecf20Sopenharmony_ci	};
187