xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-tlmm.yaml (revision b22794c0f7b13ece8e44245ab99b2dcdd199caf2)
1222ca103SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2222ca103SKrzysztof Kozlowski%YAML 1.2
3222ca103SKrzysztof Kozlowski---
4222ca103SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sdx65-tlmm.yaml#
5222ca103SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6222ca103SKrzysztof Kozlowski
7222ca103SKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SDX65 TLMM block
8222ca103SKrzysztof Kozlowski
9222ca103SKrzysztof Kozlowskimaintainers:
10222ca103SKrzysztof Kozlowski  - Vamsi krishna Lanka <quic_vamslank@quicinc.com>
11222ca103SKrzysztof Kozlowski
12222ca103SKrzysztof Kozlowskidescription:
13222ca103SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm SDX65 SoC.
14222ca103SKrzysztof Kozlowski
15222ca103SKrzysztof Kozlowskiproperties:
16222ca103SKrzysztof Kozlowski  compatible:
17222ca103SKrzysztof Kozlowski    const: qcom,sdx65-tlmm
18222ca103SKrzysztof Kozlowski
19222ca103SKrzysztof Kozlowski  reg:
20222ca103SKrzysztof Kozlowski    maxItems: 1
21222ca103SKrzysztof Kozlowski
2212a18bb7SKrzysztof Kozlowski  interrupts:
2312a18bb7SKrzysztof Kozlowski    maxItems: 1
2412a18bb7SKrzysztof Kozlowski
25222ca103SKrzysztof Kozlowski  gpio-reserved-ranges:
26222ca103SKrzysztof Kozlowski    maxItems: 1
27222ca103SKrzysztof Kozlowski
28222ca103SKrzysztof KozlowskipatternProperties:
29222ca103SKrzysztof Kozlowski  "-state$":
30222ca103SKrzysztof Kozlowski    oneOf:
31222ca103SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sdx65-tlmm-state"
32222ca103SKrzysztof Kozlowski      - patternProperties:
33222ca103SKrzysztof Kozlowski          "-pins$":
34222ca103SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sdx65-tlmm-state"
35222ca103SKrzysztof Kozlowski        additionalProperties: false
36222ca103SKrzysztof Kozlowski
37222ca103SKrzysztof Kozlowski$defs:
38222ca103SKrzysztof Kozlowski  qcom-sdx65-tlmm-state:
39222ca103SKrzysztof Kozlowski    type: object
40222ca103SKrzysztof Kozlowski    description:
41222ca103SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
42222ca103SKrzysztof Kozlowski      Client device subnodes use below standard properties.
43222ca103SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
44810e171eSKrzysztof Kozlowski    unevaluatedProperties: false
45222ca103SKrzysztof Kozlowski
46222ca103SKrzysztof Kozlowski    properties:
47222ca103SKrzysztof Kozlowski      pins:
48222ca103SKrzysztof Kozlowski        description:
49222ca103SKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this subnode.
50222ca103SKrzysztof Kozlowski        items:
51222ca103SKrzysztof Kozlowski          oneOf:
52222ca103SKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$"
53222ca103SKrzysztof Kozlowski            - enum: [ ufs_reset, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data, sdc1_rclk ]
54222ca103SKrzysztof Kozlowski        minItems: 1
55222ca103SKrzysztof Kozlowski        maxItems: 150
56222ca103SKrzysztof Kozlowski
57222ca103SKrzysztof Kozlowski      function:
58222ca103SKrzysztof Kozlowski        description:
59222ca103SKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
60222ca103SKrzysztof Kozlowski          pins. Functions are only valid for gpio pins.
61222ca103SKrzysztof Kozlowski        enum: [ blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens,
62222ca103SKrzysztof Kozlowski                bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8,
63222ca103SKrzysztof Kozlowski                qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b,
64222ca103SKrzysztof Kozlowski                dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10,
65222ca103SKrzysztof Kozlowski                blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12,
66222ca103SKrzysztof Kozlowski                mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11,
67222ca103SKrzysztof Kozlowski                atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, atest_char,
68222ca103SKrzysztof Kozlowski                cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, qdss_tracedata_b,
69222ca103SKrzysztof Kozlowski                pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, atest_usb2, cci_i2c,
70222ca103SKrzysztof Kozlowski                qdss_stm3, dac_calib3, atest_usb23, atest_char3, dac_calib4,
71222ca103SKrzysztof Kozlowski                qdss_stm2, atest_usb22, atest_char2, qdss_stm1, dac_calib5,
72222ca103SKrzysztof Kozlowski                atest_usb21, atest_char1, dbg_out, qdss_stm0, dac_calib6,
73222ca103SKrzysztof Kozlowski                atest_usb20, atest_char0, dac_calib10, qdss_stm10,
74222ca103SKrzysztof Kozlowski                qdss_cti_trig_in_a, cci_timer4, blsp_spi6, blsp_uart6, blsp_uim6,
75222ca103SKrzysztof Kozlowski                blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11,
76222ca103SKrzysztof Kozlowski                qdss_stm8, cci_timer0, qdss_stm13, dac_calib7, cci_timer1,
77222ca103SKrzysztof Kozlowski                qdss_stm12, dac_calib8, cci_timer2, blsp1_spi, qdss_stm11,
78222ca103SKrzysztof Kozlowski                dac_calib9, cci_timer3, cci_async, dac_calib12, blsp_i2c6,
79222ca103SKrzysztof Kozlowski                qdss_tracectl_a, dac_calib13, qdss_traceclk_a, dac_calib14,
80222ca103SKrzysztof Kozlowski                dac_calib15, hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem,
81222ca103SKrzysztof Kozlowski                dac_calib17, hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto,
82d3a0d116SKrzysztof Kozlowski                dac_calib19, hdmi_hot, dac_calib20, dac_calib21, pci_e0, pcie_clkreq,
83222ca103SKrzysztof Kozlowski                dac_calib22, dac_calib23, dac_calib24, tsif1_sync, dac_calib25,
84222ca103SKrzysztof Kozlowski                sd_write, tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2,
85222ca103SKrzysztof Kozlowski                qdss_cti, blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3,
86222ca103SKrzysztof Kozlowski                uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9,
87222ca103SKrzysztof Kozlowski                blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7,
88222ca103SKrzysztof Kozlowski                qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, blsp_uart11,
89222ca103SKrzysztof Kozlowski                blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, blsp_i2c11, cri_trng0,
90222ca103SKrzysztof Kozlowski                cri_trng1, cri_trng, qdss_stm18, pri_mi2s, qdss_stm17, blsp_spi4,
91222ca103SKrzysztof Kozlowski                blsp_uart4, blsp_uim4, qdss_stm16, qdss_stm15, blsp_i2c4,
92222ca103SKrzysztof Kozlowski                qdss_stm14, dac_calib26, spkr_i2s, audio_ref, lpass_slimbus,
93222ca103SKrzysztof Kozlowski                isense_dbg, tsense_pwm1, tsense_pwm2, btfm_slimbus, ter_mi2s,
94222ca103SKrzysztof Kozlowski                qdss_stm22, qdss_stm21, qdss_stm20, qdss_stm19, gcc_gp1_clk_b,
95222ca103SKrzysztof Kozlowski                sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
96222ca103SKrzysztof Kozlowski                gcc_gp3_clk_b, blsp_i2c5, blsp_spi12, blsp_uart12, blsp_uim12,
97222ca103SKrzysztof Kozlowski                qdss_stm25, qdss_stm31, blsp_i2c12, qdss_stm30, qdss_stm29,
98222ca103SKrzysztof Kozlowski                tsif1_clk, qdss_stm28, tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27,
99222ca103SKrzysztof Kozlowski                qdss_traceclk_b, tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk,
100222ca103SKrzysztof Kozlowski                sdc4_clk, qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b,
101222ca103SKrzysztof Kozlowski                sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b,
102222ca103SKrzysztof Kozlowski                ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, blsp11_uart_rx_b,
103222ca103SKrzysztof Kozlowski                blsp11_i2c_sda_b, prng_rosc, blsp11_i2c_scl_b, uim2, uim1, uim_batt,
104222ca103SKrzysztof Kozlowski                pci_e2, pa_indicator, adsp_ext, ddr_bist, qdss_tracedata_11,
105222ca103SKrzysztof Kozlowski                qdss_tracedata_12, modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx,
106222ca103SKrzysztof Kozlowski                qspi_cs, ssbi2, ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3,
107222ca103SKrzysztof Kozlowski                gpio ]
108222ca103SKrzysztof Kozlowski
109222ca103SKrzysztof Kozlowski    required:
110222ca103SKrzysztof Kozlowski      - pins
111222ca103SKrzysztof Kozlowski
112222ca103SKrzysztof KozlowskiallOf:
113222ca103SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
114222ca103SKrzysztof Kozlowski
115222ca103SKrzysztof Kozlowskirequired:
116222ca103SKrzysztof Kozlowski  - compatible
117222ca103SKrzysztof Kozlowski  - reg
118222ca103SKrzysztof Kozlowski
119*b22794c0SKrzysztof KozlowskiunevaluatedProperties: false
120222ca103SKrzysztof Kozlowski
121222ca103SKrzysztof Kozlowskiexamples:
122222ca103SKrzysztof Kozlowski  - |
123222ca103SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
124222ca103SKrzysztof Kozlowski    tlmm: pinctrl@f100000 {
125222ca103SKrzysztof Kozlowski        compatible = "qcom,sdx65-tlmm";
126222ca103SKrzysztof Kozlowski        reg = <0x03000000 0xdc2000>;
127222ca103SKrzysztof Kozlowski        gpio-controller;
128222ca103SKrzysztof Kozlowski        #gpio-cells = <2>;
129222ca103SKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 109>;
130222ca103SKrzysztof Kozlowski        interrupt-controller;
131222ca103SKrzysztof Kozlowski        #interrupt-cells = <2>;
132222ca103SKrzysztof Kozlowski        interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
133222ca103SKrzysztof Kozlowski
134222ca103SKrzysztof Kozlowski        gpio-wo-subnode-state {
135222ca103SKrzysztof Kozlowski            pins = "gpio1";
136222ca103SKrzysztof Kozlowski            function = "gpio";
137222ca103SKrzysztof Kozlowski        };
138222ca103SKrzysztof Kozlowski
139222ca103SKrzysztof Kozlowski        uart-w-subnodes-state {
140222ca103SKrzysztof Kozlowski            rx-pins {
141222ca103SKrzysztof Kozlowski                pins = "gpio4";
142222ca103SKrzysztof Kozlowski                function = "blsp_uart1";
143222ca103SKrzysztof Kozlowski                bias-pull-up;
144222ca103SKrzysztof Kozlowski            };
145222ca103SKrzysztof Kozlowski
146222ca103SKrzysztof Kozlowski            tx-pins {
147222ca103SKrzysztof Kozlowski                pins = "gpio5";
148222ca103SKrzysztof Kozlowski                function = "blsp_uart1";
149222ca103SKrzysztof Kozlowski                bias-disable;
150222ca103SKrzysztof Kozlowski            };
151222ca103SKrzysztof Kozlowski        };
152222ca103SKrzysztof Kozlowski    };
153222ca103SKrzysztof Kozlowski...
154