xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml (revision 12a18bb74f7500693bdfb6af2f99c05d2d43f9c6)
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
22*12a18bb7SKrzysztof Kozlowski  interrupts:
23*12a18bb7SKrzysztof Kozlowski    maxItems: 1
24*12a18bb7SKrzysztof Kozlowski
25a869153bSKrzysztof Kozlowski  interrupt-controller: true
26a869153bSKrzysztof Kozlowski  "#interrupt-cells": true
27a869153bSKrzysztof Kozlowski  gpio-controller: true
28a869153bSKrzysztof Kozlowski  "#gpio-cells": true
29a869153bSKrzysztof Kozlowski  gpio-ranges: true
30a869153bSKrzysztof Kozlowski  wakeup-parent: true
31a869153bSKrzysztof Kozlowski
32a869153bSKrzysztof KozlowskipatternProperties:
33a869153bSKrzysztof Kozlowski  "-state$":
34a869153bSKrzysztof Kozlowski    oneOf:
35a869153bSKrzysztof Kozlowski      - $ref: "#/$defs/qcom-qcm2290-tlmm-state"
36a869153bSKrzysztof Kozlowski      - patternProperties:
37a869153bSKrzysztof Kozlowski          "-pins$":
38a869153bSKrzysztof Kozlowski            $ref: "#/$defs/qcom-qcm2290-tlmm-state"
39a869153bSKrzysztof Kozlowski        additionalProperties: false
40a869153bSKrzysztof Kozlowski
41a869153bSKrzysztof Kozlowski$defs:
42a869153bSKrzysztof Kozlowski  qcom-qcm2290-tlmm-state:
43a869153bSKrzysztof Kozlowski    type: object
44a869153bSKrzysztof Kozlowski    description:
45a869153bSKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
46a869153bSKrzysztof Kozlowski      Client device subnodes use below standard properties.
47a869153bSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
48a869153bSKrzysztof Kozlowski
49a869153bSKrzysztof Kozlowski    properties:
50a869153bSKrzysztof Kozlowski      pins:
51a869153bSKrzysztof Kozlowski        description:
52a869153bSKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
53a869153bSKrzysztof Kozlowski          subnode.
54a869153bSKrzysztof Kozlowski        items:
55a869153bSKrzysztof Kozlowski          oneOf:
56a869153bSKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-6])$"
57a869153bSKrzysztof Kozlowski            - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data,
58a869153bSKrzysztof Kozlowski                      sdc2_clk, sdc2_cmd, sdc2_data ]
59a869153bSKrzysztof Kozlowski        minItems: 1
60a869153bSKrzysztof Kozlowski        maxItems: 36
61a869153bSKrzysztof Kozlowski
62a869153bSKrzysztof Kozlowski      function:
63a869153bSKrzysztof Kozlowski        description:
64a869153bSKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
65a869153bSKrzysztof Kozlowski          pins.
66a869153bSKrzysztof Kozlowski
67a869153bSKrzysztof Kozlowski        enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c,
68a869153bSKrzysztof Kozlowski                cci_timer0, cci_timer1, cci_timer2, cci_timer3, char_exec,
69a869153bSKrzysztof Kozlowski                cri_trng, cri_trng0, cri_trng1, dac_calib, dbg_out, ddr_bist,
70a869153bSKrzysztof Kozlowski                ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2,
71a869153bSKrzysztof Kozlowski                gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx,
72a869153bSKrzysztof Kozlowski                jitter_bist, mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1,
73a869153bSKrzysztof Kozlowski                mpm_pwr, mss_lte, m_voc, nav_gpio, pa_indicator, pbs0, pbs1,
74a869153bSKrzysztof Kozlowski                pbs2, pbs3, pbs4, pbs5, pbs6, pbs7, pbs8, pbs9, pbs10, pbs11,
75a869153bSKrzysztof Kozlowski                pbs12, pbs13, pbs14, pbs15, pbs_out, phase_flag, pll_bist,
76a869153bSKrzysztof Kozlowski                pll_bypassnl, pll_reset, prng_rosc, pwm_0, pwm_1, pwm_2, pwm_3,
77a869153bSKrzysztof Kozlowski                pwm_4, pwm_5, pwm_6, pwm_7, pwm_8, pwm_9, qdss_cti, qdss_gpio,
78a869153bSKrzysztof Kozlowski                qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, sdc2_tb, sd_write,
79a869153bSKrzysztof Kozlowski                ssbi_wtr1, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
80a869153bSKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
81a869153bSKrzysztof Kozlowski                uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1,
82a869153bSKrzysztof Kozlowski                vsense_trigger, wlan1_adc0, wlan1_adc1 ]
83a869153bSKrzysztof Kozlowski
84a869153bSKrzysztof Kozlowski      bias-pull-down: true
85a869153bSKrzysztof Kozlowski      bias-pull-up: true
86a869153bSKrzysztof Kozlowski      bias-disable: true
87a869153bSKrzysztof Kozlowski      drive-strength: true
88a869153bSKrzysztof Kozlowski      output-high: true
89a869153bSKrzysztof Kozlowski      output-low: true
90a869153bSKrzysztof Kozlowski
91a869153bSKrzysztof Kozlowski    required:
92a869153bSKrzysztof Kozlowski      - pins
93a869153bSKrzysztof Kozlowski
94a869153bSKrzysztof Kozlowski    additionalProperties: false
95a869153bSKrzysztof Kozlowski
96a869153bSKrzysztof KozlowskiallOf:
97a869153bSKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
98a869153bSKrzysztof Kozlowski
99a869153bSKrzysztof Kozlowskirequired:
100a869153bSKrzysztof Kozlowski  - compatible
101a869153bSKrzysztof Kozlowski  - reg
102a869153bSKrzysztof Kozlowski
103a869153bSKrzysztof KozlowskiadditionalProperties: false
104a869153bSKrzysztof Kozlowski
105a869153bSKrzysztof Kozlowskiexamples:
106a869153bSKrzysztof Kozlowski  - |
107a869153bSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
108a869153bSKrzysztof Kozlowski    tlmm: pinctrl@500000 {
109a869153bSKrzysztof Kozlowski        compatible = "qcom,qcm2290-tlmm";
110a869153bSKrzysztof Kozlowski        reg = <0x500000 0x300000>;
111a869153bSKrzysztof Kozlowski        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
112a869153bSKrzysztof Kozlowski        gpio-controller;
113a869153bSKrzysztof Kozlowski        #gpio-cells = <2>;
114a869153bSKrzysztof Kozlowski        interrupt-controller;
115a869153bSKrzysztof Kozlowski        #interrupt-cells = <2>;
116a869153bSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 127>;
117a869153bSKrzysztof Kozlowski
118a869153bSKrzysztof Kozlowski        sdc2_on_state: sdc2-on-state {
119a869153bSKrzysztof Kozlowski            clk-pins {
120a869153bSKrzysztof Kozlowski                pins = "sdc2_clk";
121a869153bSKrzysztof Kozlowski                bias-disable;
122a869153bSKrzysztof Kozlowski                drive-strength = <16>;
123a869153bSKrzysztof Kozlowski            };
124a869153bSKrzysztof Kozlowski
125a869153bSKrzysztof Kozlowski            cmd-pins {
126a869153bSKrzysztof Kozlowski                pins = "sdc2_cmd";
127a869153bSKrzysztof Kozlowski                bias-pull-up;
128a869153bSKrzysztof Kozlowski                drive-strength = <10>;
129a869153bSKrzysztof Kozlowski            };
130a869153bSKrzysztof Kozlowski
131a869153bSKrzysztof Kozlowski            data-pins {
132a869153bSKrzysztof Kozlowski                pins = "sdc2_data";
133a869153bSKrzysztof Kozlowski                bias-pull-up;
134a869153bSKrzysztof Kozlowski                drive-strength = <10>;
135a869153bSKrzysztof Kozlowski            };
136a869153bSKrzysztof Kozlowski        };
137a869153bSKrzysztof Kozlowski    };
138