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