xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml (revision 12a18bb74f7500693bdfb6af2f99c05d2d43f9c6)
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
30*12a18bb7SKrzysztof Kozlowski  interrupts:
31*12a18bb7SKrzysztof Kozlowski    maxItems: 1
32*12a18bb7SKrzysztof Kozlowski
33f8c76af2SKrzysztof Kozlowski  interrupt-controller: true
34f8c76af2SKrzysztof Kozlowski  "#interrupt-cells": true
35f8c76af2SKrzysztof Kozlowski  gpio-controller: true
36f8c76af2SKrzysztof Kozlowski  gpio-reserved-ranges: true
37f8c76af2SKrzysztof Kozlowski  "#gpio-cells": true
38f8c76af2SKrzysztof Kozlowski  gpio-ranges: true
39f8c76af2SKrzysztof Kozlowski  wakeup-parent: true
40f8c76af2SKrzysztof Kozlowski
41f8c76af2SKrzysztof Kozlowskirequired:
42f8c76af2SKrzysztof Kozlowski  - compatible
43f8c76af2SKrzysztof Kozlowski  - reg
44f8c76af2SKrzysztof Kozlowski  - reg-names
45f8c76af2SKrzysztof Kozlowski
46f8c76af2SKrzysztof KozlowskiadditionalProperties: false
47f8c76af2SKrzysztof Kozlowski
48f8c76af2SKrzysztof KozlowskipatternProperties:
49f8c76af2SKrzysztof Kozlowski  "-state$":
50f8c76af2SKrzysztof Kozlowski    oneOf:
51f8c76af2SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm6125-tlmm-state"
52f8c76af2SKrzysztof Kozlowski      - patternProperties:
53f8c76af2SKrzysztof Kozlowski          "-pins$":
54f8c76af2SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm6125-tlmm-state"
55f8c76af2SKrzysztof Kozlowski        additionalProperties: false
56f8c76af2SKrzysztof Kozlowski
57f8c76af2SKrzysztof Kozlowski$defs:
58f8c76af2SKrzysztof Kozlowski  qcom-sm6125-tlmm-state:
59f8c76af2SKrzysztof Kozlowski    type: object
60f8c76af2SKrzysztof Kozlowski    description:
61f8c76af2SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
62f8c76af2SKrzysztof Kozlowski      Client device subnodes use below standard properties.
63f8c76af2SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
64f8c76af2SKrzysztof Kozlowski
65f8c76af2SKrzysztof Kozlowski    properties:
66f8c76af2SKrzysztof Kozlowski      pins:
67f8c76af2SKrzysztof Kozlowski        description:
68f8c76af2SKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
69f8c76af2SKrzysztof Kozlowski          subnode.
70f8c76af2SKrzysztof Kozlowski        items:
71f8c76af2SKrzysztof Kozlowski          oneOf:
72f8c76af2SKrzysztof Kozlowski            - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$"
73f8c76af2SKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
74f8c76af2SKrzysztof Kozlowski        minItems: 1
75f8c76af2SKrzysztof Kozlowski        maxItems: 36
76f8c76af2SKrzysztof Kozlowski
77f8c76af2SKrzysztof Kozlowski      function:
78f8c76af2SKrzysztof Kozlowski        description:
79f8c76af2SKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
80f8c76af2SKrzysztof Kozlowski          pins.
81f8c76af2SKrzysztof Kozlowski
82f8c76af2SKrzysztof Kozlowski        enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
83f8c76af2SKrzysztof Kozlowski                atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1,
84f8c76af2SKrzysztof Kozlowski                atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2,
85f8c76af2SKrzysztof Kozlowski                atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb,
86f8c76af2SKrzysztof Kozlowski                audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1,
87f8c76af2SKrzysztof Kozlowski                cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng,
88f8c76af2SKrzysztof Kozlowski                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
89f8c76af2SKrzysztof Kozlowski                ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk,
90f8c76af2SKrzysztof Kozlowski                dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
91f8c76af2SKrzysztof Kozlowski                gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en,
92f8c76af2SKrzysztof Kozlowski                ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1,
93f8c76af2SKrzysztof Kozlowski                mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte,
94f8c76af2SKrzysztof Kozlowski                nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset,
95f8c76af2SKrzysztof Kozlowski                pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable,
96f8c76af2SKrzysztof Kozlowski                qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04,
97f8c76af2SKrzysztof Kozlowski                qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx,
98f8c76af2SKrzysztof Kozlowski                swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
99f8c76af2SKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data,
100f8c76af2SKrzysztof Kozlowski                uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger,
101f8c76af2SKrzysztof Kozlowski                wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ]
102f8c76af2SKrzysztof Kozlowski
103f8c76af2SKrzysztof Kozlowski
104f8c76af2SKrzysztof Kozlowski      bias-disable: true
105f8c76af2SKrzysztof Kozlowski      bias-pull-down: true
106f8c76af2SKrzysztof Kozlowski      bias-pull-up: true
107f8c76af2SKrzysztof Kozlowski      drive-strength: true
108f8c76af2SKrzysztof Kozlowski      input-enable: true
109f8c76af2SKrzysztof Kozlowski      output-high: true
110f8c76af2SKrzysztof Kozlowski      output-low: true
111f8c76af2SKrzysztof Kozlowski
112f8c76af2SKrzysztof Kozlowski    required:
113f8c76af2SKrzysztof Kozlowski      - pins
114f8c76af2SKrzysztof Kozlowski
115f8c76af2SKrzysztof Kozlowski    additionalProperties: false
116f8c76af2SKrzysztof Kozlowski
117f8c76af2SKrzysztof Kozlowskiexamples:
118f8c76af2SKrzysztof Kozlowski  - |
119f8c76af2SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
120f8c76af2SKrzysztof Kozlowski    pinctrl@500000 {
121f8c76af2SKrzysztof Kozlowski        compatible = "qcom,sm6125-tlmm";
122f8c76af2SKrzysztof Kozlowski        reg = <0x00500000 0x400000>,
123f8c76af2SKrzysztof Kozlowski              <0x00900000 0x400000>,
124f8c76af2SKrzysztof Kozlowski              <0x00d00000 0x400000>;
125f8c76af2SKrzysztof Kozlowski        reg-names = "west", "south", "east";
126f8c76af2SKrzysztof Kozlowski        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
127f8c76af2SKrzysztof Kozlowski        gpio-controller;
128f8c76af2SKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 134>;
129f8c76af2SKrzysztof Kozlowski        #gpio-cells = <2>;
130f8c76af2SKrzysztof Kozlowski        interrupt-controller;
131f8c76af2SKrzysztof Kozlowski        #interrupt-cells = <2>;
132f8c76af2SKrzysztof Kozlowski
133f8c76af2SKrzysztof Kozlowski        sdc2-off-state {
134f8c76af2SKrzysztof Kozlowski            clk-pins {
135f8c76af2SKrzysztof Kozlowski                pins = "sdc2_clk";
136f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
137f8c76af2SKrzysztof Kozlowski                bias-disable;
138f8c76af2SKrzysztof Kozlowski            };
139f8c76af2SKrzysztof Kozlowski
140f8c76af2SKrzysztof Kozlowski            cmd-pins {
141f8c76af2SKrzysztof Kozlowski                pins = "sdc2_cmd";
142f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
143f8c76af2SKrzysztof Kozlowski                bias-pull-up;
144f8c76af2SKrzysztof Kozlowski            };
145f8c76af2SKrzysztof Kozlowski
146f8c76af2SKrzysztof Kozlowski            data-pins {
147f8c76af2SKrzysztof Kozlowski                pins = "sdc2_data";
148f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
149f8c76af2SKrzysztof Kozlowski                bias-pull-up;
150f8c76af2SKrzysztof Kozlowski            };
151f8c76af2SKrzysztof Kozlowski        };
152f8c76af2SKrzysztof Kozlowski    };
153