xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1548e3320SBjorn Andersson# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2548e3320SBjorn Andersson%YAML 1.2
3548e3320SBjorn Andersson---
4548e3320SBjorn Andersson$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml#
5548e3320SBjorn Andersson$schema: http://devicetree.org/meta-schemas/core.yaml#
6548e3320SBjorn Andersson
7548e3320SBjorn Anderssontitle: Qualcomm Technologies, Inc. SM8250 TLMM block
8548e3320SBjorn Andersson
9548e3320SBjorn Anderssonmaintainers:
10548e3320SBjorn Andersson  - Bjorn Andersson <bjorn.andersson@linaro.org>
11548e3320SBjorn Andersson
124a0c5fb3SKrzysztof Kozlowskidescription:
134a0c5fb3SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in the Qualcomm SM8250 SoC.
14548e3320SBjorn Andersson
15548e3320SBjorn Anderssonproperties:
16548e3320SBjorn Andersson  compatible:
17548e3320SBjorn Andersson    const: qcom,sm8250-pinctrl
18548e3320SBjorn Andersson
19548e3320SBjorn Andersson  reg:
20548e3320SBjorn Andersson    maxItems: 3
21548e3320SBjorn Andersson
22548e3320SBjorn Andersson  reg-names:
23548e3320SBjorn Andersson    items:
244a0c5fb3SKrzysztof Kozlowski      - const: west
254a0c5fb3SKrzysztof Kozlowski      - const: south
264a0c5fb3SKrzysztof Kozlowski      - const: north
27548e3320SBjorn Andersson
2812a18bb7SKrzysztof Kozlowski  interrupts:
2912a18bb7SKrzysztof Kozlowski    maxItems: 1
3012a18bb7SKrzysztof Kozlowski
31a094b8d8SKrzysztof Kozlowski  gpio-reserved-ranges:
32a094b8d8SKrzysztof Kozlowski    minItems: 1
33a094b8d8SKrzysztof Kozlowski    maxItems: 90
34a094b8d8SKrzysztof Kozlowski
35a094b8d8SKrzysztof Kozlowski  gpio-line-names:
36a094b8d8SKrzysztof Kozlowski    maxItems: 180
37a094b8d8SKrzysztof Kozlowski
38548e3320SBjorn AnderssonpatternProperties:
39a327e870SKrzysztof Kozlowski  "-state$":
40a327e870SKrzysztof Kozlowski    oneOf:
41a327e870SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm8250-tlmm-state"
42a327e870SKrzysztof Kozlowski      - patternProperties:
43a327e870SKrzysztof Kozlowski          "-pins$":
44a327e870SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm8250-tlmm-state"
45a327e870SKrzysztof Kozlowski        additionalProperties: false
46a327e870SKrzysztof Kozlowski
47a327e870SKrzysztof Kozlowski$defs:
48a327e870SKrzysztof Kozlowski  qcom-sm8250-tlmm-state:
49548e3320SBjorn Andersson    type: object
50a327e870SKrzysztof Kozlowski    description:
51a327e870SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
52a327e870SKrzysztof Kozlowski      Client device subnodes use below standard properties.
53fd69e8beSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
544134e65aSKrzysztof Kozlowski    unevaluatedProperties: false
55a327e870SKrzysztof Kozlowski
56548e3320SBjorn Andersson    properties:
57548e3320SBjorn Andersson      pins:
58548e3320SBjorn Andersson        description:
59548e3320SBjorn Andersson          List of gpio pins affected by the properties specified in this
60548e3320SBjorn Andersson          subnode.
61548e3320SBjorn Andersson        items:
62548e3320SBjorn Andersson          oneOf:
63548e3320SBjorn Andersson            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
64548e3320SBjorn Andersson            - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ]
65548e3320SBjorn Andersson        minItems: 1
66548e3320SBjorn Andersson        maxItems: 36
67548e3320SBjorn Andersson
68548e3320SBjorn Andersson      function:
69548e3320SBjorn Andersson        description:
70548e3320SBjorn Andersson          Specify the alternative function to be configured for the specified
71548e3320SBjorn Andersson          pins.
72548e3320SBjorn Andersson
73548e3320SBjorn Andersson        enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c,
74548e3320SBjorn Andersson                cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng,
75548e3320SBjorn Andersson                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
76548e3320SBjorn Andersson                ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
77548e3320SBjorn Andersson                ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
78548e3320SBjorn Andersson                mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
79548e3320SBjorn Andersson                mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
80548e3320SBjorn Andersson                mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1,
81548e3320SBjorn Andersson                pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset,
82548e3320SBjorn Andersson                pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3,
83548e3320SBjorn Andersson                qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14,
84548e3320SBjorn Andersson                qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6,
85548e3320SBjorn Andersson                qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41,
86548e3320SBjorn Andersson                sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1,
87548e3320SBjorn Andersson                tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data,
88548e3320SBjorn Andersson                tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en,
89548e3320SBjorn Andersson                tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ]
90548e3320SBjorn Andersson
91548e3320SBjorn Andersson    required:
92548e3320SBjorn Andersson      - pins
936e6e1ef6SKrzysztof Kozlowski
94c09acbc4SRafał MiłeckiallOf:
95b8d64ea6SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
96c09acbc4SRafał Miłecki
97548e3320SBjorn Anderssonrequired:
98548e3320SBjorn Andersson  - compatible
99548e3320SBjorn Andersson  - reg
100548e3320SBjorn Andersson  - reg-names
101548e3320SBjorn Andersson
102*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
103548e3320SBjorn Andersson
104548e3320SBjorn Anderssonexamples:
105548e3320SBjorn Andersson  - |
106548e3320SBjorn Andersson    #include <dt-bindings/interrupt-controller/arm-gic.h>
107548e3320SBjorn Andersson    pinctrl@1f00000 {
108548e3320SBjorn Andersson        compatible = "qcom,sm8250-pinctrl";
109548e3320SBjorn Andersson        reg = <0x0f100000 0x300000>,
110548e3320SBjorn Andersson              <0x0f500000 0x300000>,
111548e3320SBjorn Andersson              <0x0f900000 0x300000>;
112548e3320SBjorn Andersson        reg-names = "west", "south", "north";
113548e3320SBjorn Andersson        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
114548e3320SBjorn Andersson        gpio-controller;
115548e3320SBjorn Andersson        #gpio-cells = <2>;
116548e3320SBjorn Andersson        interrupt-controller;
117548e3320SBjorn Andersson        #interrupt-cells = <2>;
1186f4e10ffSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 181>; /* GPIOs + ufs_reset */
119548e3320SBjorn Andersson        wakeup-parent = <&pdc>;
120548e3320SBjorn Andersson    };
121