xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml (revision 312f79584f632384d63972582d353c777d66dfab)
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  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
64*312f7958SKrzysztof Kozlowski    unevaluatedProperties: false
65f8c76af2SKrzysztof Kozlowski
66f8c76af2SKrzysztof Kozlowski    properties:
67f8c76af2SKrzysztof Kozlowski      pins:
68f8c76af2SKrzysztof Kozlowski        description:
69f8c76af2SKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
70f8c76af2SKrzysztof Kozlowski          subnode.
71f8c76af2SKrzysztof Kozlowski        items:
72f8c76af2SKrzysztof Kozlowski          oneOf:
73f8c76af2SKrzysztof Kozlowski            - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$"
74f8c76af2SKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
75f8c76af2SKrzysztof Kozlowski        minItems: 1
76f8c76af2SKrzysztof Kozlowski        maxItems: 36
77f8c76af2SKrzysztof Kozlowski
78f8c76af2SKrzysztof Kozlowski      function:
79f8c76af2SKrzysztof Kozlowski        description:
80f8c76af2SKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
81f8c76af2SKrzysztof Kozlowski          pins.
82f8c76af2SKrzysztof Kozlowski
83f8c76af2SKrzysztof Kozlowski        enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
84f8c76af2SKrzysztof Kozlowski                atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1,
85f8c76af2SKrzysztof Kozlowski                atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2,
86f8c76af2SKrzysztof Kozlowski                atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb,
87f8c76af2SKrzysztof Kozlowski                audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1,
88f8c76af2SKrzysztof Kozlowski                cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng,
89f8c76af2SKrzysztof Kozlowski                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
90f8c76af2SKrzysztof Kozlowski                ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk,
91f8c76af2SKrzysztof Kozlowski                dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
92f8c76af2SKrzysztof Kozlowski                gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en,
93f8c76af2SKrzysztof Kozlowski                ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1,
94f8c76af2SKrzysztof Kozlowski                mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte,
95f8c76af2SKrzysztof Kozlowski                nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset,
96f8c76af2SKrzysztof Kozlowski                pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable,
97f8c76af2SKrzysztof Kozlowski                qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04,
98f8c76af2SKrzysztof Kozlowski                qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx,
99f8c76af2SKrzysztof Kozlowski                swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
100f8c76af2SKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data,
101f8c76af2SKrzysztof Kozlowski                uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger,
102f8c76af2SKrzysztof Kozlowski                wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ]
103f8c76af2SKrzysztof Kozlowski
104f8c76af2SKrzysztof Kozlowski
105f8c76af2SKrzysztof Kozlowski    required:
106f8c76af2SKrzysztof Kozlowski      - pins
107f8c76af2SKrzysztof Kozlowski
108f8c76af2SKrzysztof Kozlowskiexamples:
109f8c76af2SKrzysztof Kozlowski  - |
110f8c76af2SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
111f8c76af2SKrzysztof Kozlowski    pinctrl@500000 {
112f8c76af2SKrzysztof Kozlowski        compatible = "qcom,sm6125-tlmm";
113f8c76af2SKrzysztof Kozlowski        reg = <0x00500000 0x400000>,
114f8c76af2SKrzysztof Kozlowski              <0x00900000 0x400000>,
115f8c76af2SKrzysztof Kozlowski              <0x00d00000 0x400000>;
116f8c76af2SKrzysztof Kozlowski        reg-names = "west", "south", "east";
117f8c76af2SKrzysztof Kozlowski        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
118f8c76af2SKrzysztof Kozlowski        gpio-controller;
119f8c76af2SKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 134>;
120f8c76af2SKrzysztof Kozlowski        #gpio-cells = <2>;
121f8c76af2SKrzysztof Kozlowski        interrupt-controller;
122f8c76af2SKrzysztof Kozlowski        #interrupt-cells = <2>;
123f8c76af2SKrzysztof Kozlowski
124f8c76af2SKrzysztof Kozlowski        sdc2-off-state {
125f8c76af2SKrzysztof Kozlowski            clk-pins {
126f8c76af2SKrzysztof Kozlowski                pins = "sdc2_clk";
127f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
128f8c76af2SKrzysztof Kozlowski                bias-disable;
129f8c76af2SKrzysztof Kozlowski            };
130f8c76af2SKrzysztof Kozlowski
131f8c76af2SKrzysztof Kozlowski            cmd-pins {
132f8c76af2SKrzysztof Kozlowski                pins = "sdc2_cmd";
133f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
134f8c76af2SKrzysztof Kozlowski                bias-pull-up;
135f8c76af2SKrzysztof Kozlowski            };
136f8c76af2SKrzysztof Kozlowski
137f8c76af2SKrzysztof Kozlowski            data-pins {
138f8c76af2SKrzysztof Kozlowski                pins = "sdc2_data";
139f8c76af2SKrzysztof Kozlowski                drive-strength = <2>;
140f8c76af2SKrzysztof Kozlowski                bias-pull-up;
141f8c76af2SKrzysztof Kozlowski            };
142f8c76af2SKrzysztof Kozlowski        };
143f8c76af2SKrzysztof Kozlowski    };
144