xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1f8c76af2SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f8c76af2SKrzysztof Kozlowski%YAML 1.2
3f8c76af2SKrzysztof Kozlowski---
4f8c76af2SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sm6125-tlmm.yaml#
5f8c76af2SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6f8c76af2SKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SM6125 TLMM block
7f8c76af2SKrzysztof Kozlowski
8f8c76af2SKrzysztof Kozlowskimaintainers:
9f8c76af2SKrzysztof Kozlowski  - Martin Botka <martin.botka@somainline.org>
10f8c76af2SKrzysztof Kozlowski
11f8c76af2SKrzysztof Kozlowskidescription:
12f8c76af2SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm SM6125 SoC.
13f8c76af2SKrzysztof Kozlowski
14f8c76af2SKrzysztof KozlowskiallOf:
15f8c76af2SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
16f8c76af2SKrzysztof Kozlowski
17f8c76af2SKrzysztof Kozlowskiproperties:
18f8c76af2SKrzysztof Kozlowski  compatible:
19f8c76af2SKrzysztof Kozlowski    const: qcom,sm6125-tlmm
20f8c76af2SKrzysztof Kozlowski
21f8c76af2SKrzysztof Kozlowski  reg:
22f8c76af2SKrzysztof Kozlowski    maxItems: 3
23f8c76af2SKrzysztof Kozlowski
24f8c76af2SKrzysztof Kozlowski  reg-names:
25f8c76af2SKrzysztof Kozlowski    items:
26f8c76af2SKrzysztof Kozlowski      - const: west
27f8c76af2SKrzysztof Kozlowski      - const: south
28f8c76af2SKrzysztof Kozlowski      - const: east
29f8c76af2SKrzysztof Kozlowski
3012a18bb7SKrzysztof Kozlowski  interrupts:
3112a18bb7SKrzysztof Kozlowski    maxItems: 1
3212a18bb7SKrzysztof Kozlowski
33f8c76af2SKrzysztof Kozlowski  gpio-reserved-ranges: true
34f8c76af2SKrzysztof Kozlowski
35f8c76af2SKrzysztof KozlowskipatternProperties:
36f8c76af2SKrzysztof Kozlowski  "-state$":
37f8c76af2SKrzysztof Kozlowski    oneOf:
38f8c76af2SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm6125-tlmm-state"
39f8c76af2SKrzysztof Kozlowski      - patternProperties:
40f8c76af2SKrzysztof Kozlowski          "-pins$":
41f8c76af2SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm6125-tlmm-state"
42f8c76af2SKrzysztof Kozlowski        additionalProperties: false
43f8c76af2SKrzysztof Kozlowski
44f8c76af2SKrzysztof Kozlowski$defs:
45f8c76af2SKrzysztof Kozlowski  qcom-sm6125-tlmm-state:
46f8c76af2SKrzysztof Kozlowski    type: object
47f8c76af2SKrzysztof Kozlowski    description:
48f8c76af2SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
49f8c76af2SKrzysztof Kozlowski      Client device subnodes use below standard properties.
50f8c76af2SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51312f7958SKrzysztof Kozlowski    unevaluatedProperties: false
52f8c76af2SKrzysztof Kozlowski
53f8c76af2SKrzysztof Kozlowski    properties:
54f8c76af2SKrzysztof Kozlowski      pins:
55f8c76af2SKrzysztof Kozlowski        description:
56f8c76af2SKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
57f8c76af2SKrzysztof Kozlowski          subnode.
58f8c76af2SKrzysztof Kozlowski        items:
59f8c76af2SKrzysztof Kozlowski          oneOf:
60f8c76af2SKrzysztof Kozlowski            - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$"
61f8c76af2SKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
62f8c76af2SKrzysztof Kozlowski        minItems: 1
63f8c76af2SKrzysztof Kozlowski        maxItems: 36
64f8c76af2SKrzysztof Kozlowski
65f8c76af2SKrzysztof Kozlowski      function:
66f8c76af2SKrzysztof Kozlowski        description:
67f8c76af2SKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
68f8c76af2SKrzysztof Kozlowski          pins.
69f8c76af2SKrzysztof Kozlowski
70f8c76af2SKrzysztof Kozlowski        enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
71f8c76af2SKrzysztof Kozlowski                atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1,
72f8c76af2SKrzysztof Kozlowski                atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2,
73f8c76af2SKrzysztof Kozlowski                atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb,
74f8c76af2SKrzysztof Kozlowski                audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1,
75f8c76af2SKrzysztof Kozlowski                cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng,
76f8c76af2SKrzysztof Kozlowski                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
77f8c76af2SKrzysztof Kozlowski                ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk,
78f8c76af2SKrzysztof Kozlowski                dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
79f8c76af2SKrzysztof Kozlowski                gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en,
80f8c76af2SKrzysztof Kozlowski                ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1,
81f8c76af2SKrzysztof Kozlowski                mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte,
82f8c76af2SKrzysztof Kozlowski                nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset,
83f8c76af2SKrzysztof Kozlowski                pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable,
84f8c76af2SKrzysztof Kozlowski                qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04,
85f8c76af2SKrzysztof Kozlowski                qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx,
86f8c76af2SKrzysztof Kozlowski                swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
87f8c76af2SKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data,
88f8c76af2SKrzysztof Kozlowski                uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger,
89f8c76af2SKrzysztof Kozlowski                wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ]
90f8c76af2SKrzysztof Kozlowski
91f8c76af2SKrzysztof Kozlowski
92f8c76af2SKrzysztof Kozlowski    required:
93f8c76af2SKrzysztof Kozlowski      - pins
94f8c76af2SKrzysztof Kozlowski
95*79d770afSKrzysztof Kozlowskirequired:
96*79d770afSKrzysztof Kozlowski  - compatible
97*79d770afSKrzysztof Kozlowski  - reg
98*79d770afSKrzysztof Kozlowski  - reg-names
99*79d770afSKrzysztof Kozlowski
100*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
101*79d770afSKrzysztof Kozlowski
102f8c76af2SKrzysztof Kozlowskiexamples:
103f8c76af2SKrzysztof Kozlowski  - |
104f8c76af2SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
105f8c76af2SKrzysztof Kozlowski    pinctrl@500000 {
106f8c76af2SKrzysztof Kozlowski        compatible = "qcom,sm6125-tlmm";
107f8c76af2SKrzysztof Kozlowski        reg = <0x00500000 0x400000>,
108f8c76af2SKrzysztof Kozlowski              <0x00900000 0x400000>,
109f8c76af2SKrzysztof Kozlowski              <0x00d00000 0x400000>;
110f8c76af2SKrzysztof Kozlowski        reg-names = "west", "south", "east";
111f8c76af2SKrzysztof Kozlowski        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
112f8c76af2SKrzysztof Kozlowski        gpio-controller;
113f8c76af2SKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 134>;
114f8c76af2SKrzysztof Kozlowski        #gpio-cells = <2>;
115f8c76af2SKrzysztof Kozlowski        interrupt-controller;
116f8c76af2SKrzysztof Kozlowski        #interrupt-cells = <2>;
117f8c76af2SKrzysztof Kozlowski
118f8c76af2SKrzysztof Kozlowski        sdc2-off-state {
119f8c76af2SKrzysztof Kozlowski            clk-pins {
120f8c76af2SKrzysztof Kozlowski                pins = "sdc2_clk";
121f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
122f8c76af2SKrzysztof Kozlowski                bias-disable;
123f8c76af2SKrzysztof Kozlowski            };
124f8c76af2SKrzysztof Kozlowski
125f8c76af2SKrzysztof Kozlowski            cmd-pins {
126f8c76af2SKrzysztof Kozlowski                pins = "sdc2_cmd";
127f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
128f8c76af2SKrzysztof Kozlowski                bias-pull-up;
129f8c76af2SKrzysztof Kozlowski            };
130f8c76af2SKrzysztof Kozlowski
131f8c76af2SKrzysztof Kozlowski            data-pins {
132f8c76af2SKrzysztof Kozlowski                pins = "sdc2_data";
133f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
134f8c76af2SKrzysztof Kozlowski                bias-pull-up;
135f8c76af2SKrzysztof Kozlowski            };
136f8c76af2SKrzysztof Kozlowski        };
137f8c76af2SKrzysztof Kozlowski    };
138