xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1a869153bSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2a869153bSKrzysztof Kozlowski%YAML 1.2
3a869153bSKrzysztof Kozlowski---
4a869153bSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,qcm2290-tlmm.yaml#
5a869153bSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6a869153bSKrzysztof Kozlowski
7a869153bSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. QCM2290 TLMM block
8a869153bSKrzysztof Kozlowski
9a869153bSKrzysztof Kozlowskimaintainers:
10a869153bSKrzysztof Kozlowski  - Shawn Guo <shawn.guo@linaro.org>
11a869153bSKrzysztof Kozlowski
12a869153bSKrzysztof Kozlowskidescription:
13a869153bSKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm QCM2290 SoC.
14a869153bSKrzysztof Kozlowski
15a869153bSKrzysztof Kozlowskiproperties:
16a869153bSKrzysztof Kozlowski  compatible:
17a869153bSKrzysztof Kozlowski    const: qcom,qcm2290-tlmm
18a869153bSKrzysztof Kozlowski
19a869153bSKrzysztof Kozlowski  reg:
20a869153bSKrzysztof Kozlowski    maxItems: 1
21a869153bSKrzysztof Kozlowski
2212a18bb7SKrzysztof Kozlowski  interrupts:
2312a18bb7SKrzysztof Kozlowski    maxItems: 1
2412a18bb7SKrzysztof Kozlowski
25a869153bSKrzysztof KozlowskipatternProperties:
26a869153bSKrzysztof Kozlowski  "-state$":
27a869153bSKrzysztof Kozlowski    oneOf:
28a869153bSKrzysztof Kozlowski      - $ref: "#/$defs/qcom-qcm2290-tlmm-state"
29a869153bSKrzysztof Kozlowski      - patternProperties:
30a869153bSKrzysztof Kozlowski          "-pins$":
31a869153bSKrzysztof Kozlowski            $ref: "#/$defs/qcom-qcm2290-tlmm-state"
32a869153bSKrzysztof Kozlowski        additionalProperties: false
33a869153bSKrzysztof Kozlowski
34a869153bSKrzysztof Kozlowski$defs:
35a869153bSKrzysztof Kozlowski  qcom-qcm2290-tlmm-state:
36a869153bSKrzysztof Kozlowski    type: object
37a869153bSKrzysztof Kozlowski    description:
38a869153bSKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
39a869153bSKrzysztof Kozlowski      Client device subnodes use below standard properties.
40a869153bSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
41f69ba355SKrzysztof Kozlowski    unevaluatedProperties: false
42a869153bSKrzysztof Kozlowski
43a869153bSKrzysztof Kozlowski    properties:
44a869153bSKrzysztof Kozlowski      pins:
45a869153bSKrzysztof Kozlowski        description:
46a869153bSKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
47a869153bSKrzysztof Kozlowski          subnode.
48a869153bSKrzysztof Kozlowski        items:
49a869153bSKrzysztof Kozlowski          oneOf:
50a869153bSKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-6])$"
51a869153bSKrzysztof Kozlowski            - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data,
52a869153bSKrzysztof Kozlowski                      sdc2_clk, sdc2_cmd, sdc2_data ]
53a869153bSKrzysztof Kozlowski        minItems: 1
54a869153bSKrzysztof Kozlowski        maxItems: 36
55a869153bSKrzysztof Kozlowski
56a869153bSKrzysztof Kozlowski      function:
57a869153bSKrzysztof Kozlowski        description:
58a869153bSKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
59a869153bSKrzysztof Kozlowski          pins.
60a869153bSKrzysztof Kozlowski
61a869153bSKrzysztof Kozlowski        enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c,
62a869153bSKrzysztof Kozlowski                cci_timer0, cci_timer1, cci_timer2, cci_timer3, char_exec,
63a869153bSKrzysztof Kozlowski                cri_trng, cri_trng0, cri_trng1, dac_calib, dbg_out, ddr_bist,
64a869153bSKrzysztof Kozlowski                ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2,
65a869153bSKrzysztof Kozlowski                gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx,
66a869153bSKrzysztof Kozlowski                jitter_bist, mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1,
67a869153bSKrzysztof Kozlowski                mpm_pwr, mss_lte, m_voc, nav_gpio, pa_indicator, pbs0, pbs1,
68a869153bSKrzysztof Kozlowski                pbs2, pbs3, pbs4, pbs5, pbs6, pbs7, pbs8, pbs9, pbs10, pbs11,
69a869153bSKrzysztof Kozlowski                pbs12, pbs13, pbs14, pbs15, pbs_out, phase_flag, pll_bist,
70a869153bSKrzysztof Kozlowski                pll_bypassnl, pll_reset, prng_rosc, pwm_0, pwm_1, pwm_2, pwm_3,
71a869153bSKrzysztof Kozlowski                pwm_4, pwm_5, pwm_6, pwm_7, pwm_8, pwm_9, qdss_cti, qdss_gpio,
72a869153bSKrzysztof Kozlowski                qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, sdc2_tb, sd_write,
73a869153bSKrzysztof Kozlowski                ssbi_wtr1, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
74a869153bSKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
75a869153bSKrzysztof Kozlowski                uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1,
76a869153bSKrzysztof Kozlowski                vsense_trigger, wlan1_adc0, wlan1_adc1 ]
77a869153bSKrzysztof Kozlowski
78a869153bSKrzysztof Kozlowski    required:
79a869153bSKrzysztof Kozlowski      - pins
80a869153bSKrzysztof Kozlowski
81a869153bSKrzysztof KozlowskiallOf:
82a869153bSKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
83a869153bSKrzysztof Kozlowski
84a869153bSKrzysztof Kozlowskirequired:
85a869153bSKrzysztof Kozlowski  - compatible
86a869153bSKrzysztof Kozlowski  - reg
87a869153bSKrzysztof Kozlowski
88*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
89a869153bSKrzysztof Kozlowski
90a869153bSKrzysztof Kozlowskiexamples:
91a869153bSKrzysztof Kozlowski  - |
92a869153bSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
93a869153bSKrzysztof Kozlowski    tlmm: pinctrl@500000 {
94a869153bSKrzysztof Kozlowski        compatible = "qcom,qcm2290-tlmm";
95a869153bSKrzysztof Kozlowski        reg = <0x500000 0x300000>;
96a869153bSKrzysztof Kozlowski        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
97a869153bSKrzysztof Kozlowski        gpio-controller;
98a869153bSKrzysztof Kozlowski        #gpio-cells = <2>;
99a869153bSKrzysztof Kozlowski        interrupt-controller;
100a869153bSKrzysztof Kozlowski        #interrupt-cells = <2>;
101a869153bSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 127>;
102a869153bSKrzysztof Kozlowski
103a869153bSKrzysztof Kozlowski        sdc2_on_state: sdc2-on-state {
104a869153bSKrzysztof Kozlowski            clk-pins {
105a869153bSKrzysztof Kozlowski                pins = "sdc2_clk";
106a869153bSKrzysztof Kozlowski                bias-disable;
107a869153bSKrzysztof Kozlowski                drive-strength = <16>;
108a869153bSKrzysztof Kozlowski            };
109a869153bSKrzysztof Kozlowski
110a869153bSKrzysztof Kozlowski            cmd-pins {
111a869153bSKrzysztof Kozlowski                pins = "sdc2_cmd";
112a869153bSKrzysztof Kozlowski                bias-pull-up;
113a869153bSKrzysztof Kozlowski                drive-strength = <10>;
114a869153bSKrzysztof Kozlowski            };
115a869153bSKrzysztof Kozlowski
116a869153bSKrzysztof Kozlowski            data-pins {
117a869153bSKrzysztof Kozlowski                pins = "sdc2_data";
118a869153bSKrzysztof Kozlowski                bias-pull-up;
119a869153bSKrzysztof Kozlowski                drive-strength = <10>;
120a869153bSKrzysztof Kozlowski            };
121a869153bSKrzysztof Kozlowski        };
122a869153bSKrzysztof Kozlowski    };
123