xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml (revision 4134e65a6339d1f8991f59eb3cff98efb2ecb0e5)
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
31548e3320SBjorn Andersson  interrupt-controller: true
32b8d64ea6SKrzysztof Kozlowski  "#interrupt-cells": true
33548e3320SBjorn Andersson  gpio-controller: true
34b8d64ea6SKrzysztof Kozlowski  "#gpio-cells": true
35b8d64ea6SKrzysztof Kozlowski  gpio-ranges: true
36b8d64ea6SKrzysztof Kozlowski  wakeup-parent: true
37548e3320SBjorn Andersson
38a094b8d8SKrzysztof Kozlowski  gpio-reserved-ranges:
39a094b8d8SKrzysztof Kozlowski    minItems: 1
40a094b8d8SKrzysztof Kozlowski    maxItems: 90
41a094b8d8SKrzysztof Kozlowski
42a094b8d8SKrzysztof Kozlowski  gpio-line-names:
43a094b8d8SKrzysztof Kozlowski    maxItems: 180
44a094b8d8SKrzysztof Kozlowski
45548e3320SBjorn AnderssonpatternProperties:
46a327e870SKrzysztof Kozlowski  "-state$":
47a327e870SKrzysztof Kozlowski    oneOf:
48a327e870SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm8250-tlmm-state"
49a327e870SKrzysztof Kozlowski      - patternProperties:
50a327e870SKrzysztof Kozlowski          "-pins$":
51a327e870SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm8250-tlmm-state"
52a327e870SKrzysztof Kozlowski        additionalProperties: false
53a327e870SKrzysztof Kozlowski
54a327e870SKrzysztof Kozlowski$defs:
55a327e870SKrzysztof Kozlowski  qcom-sm8250-tlmm-state:
56548e3320SBjorn Andersson    type: object
57a327e870SKrzysztof Kozlowski    description:
58a327e870SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
59a327e870SKrzysztof Kozlowski      Client device subnodes use below standard properties.
60fd69e8beSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
61*4134e65aSKrzysztof Kozlowski    unevaluatedProperties: false
62a327e870SKrzysztof Kozlowski
63548e3320SBjorn Andersson    properties:
64548e3320SBjorn Andersson      pins:
65548e3320SBjorn Andersson        description:
66548e3320SBjorn Andersson          List of gpio pins affected by the properties specified in this
67548e3320SBjorn Andersson          subnode.
68548e3320SBjorn Andersson        items:
69548e3320SBjorn Andersson          oneOf:
70548e3320SBjorn Andersson            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
71548e3320SBjorn Andersson            - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ]
72548e3320SBjorn Andersson        minItems: 1
73548e3320SBjorn Andersson        maxItems: 36
74548e3320SBjorn Andersson
75548e3320SBjorn Andersson      function:
76548e3320SBjorn Andersson        description:
77548e3320SBjorn Andersson          Specify the alternative function to be configured for the specified
78548e3320SBjorn Andersson          pins.
79548e3320SBjorn Andersson
80548e3320SBjorn Andersson        enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c,
81548e3320SBjorn Andersson                cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng,
82548e3320SBjorn Andersson                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
83548e3320SBjorn Andersson                ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
84548e3320SBjorn Andersson                ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
85548e3320SBjorn Andersson                mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
86548e3320SBjorn Andersson                mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
87548e3320SBjorn Andersson                mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1,
88548e3320SBjorn Andersson                pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset,
89548e3320SBjorn Andersson                pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3,
90548e3320SBjorn Andersson                qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14,
91548e3320SBjorn Andersson                qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6,
92548e3320SBjorn Andersson                qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41,
93548e3320SBjorn Andersson                sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1,
94548e3320SBjorn Andersson                tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data,
95548e3320SBjorn Andersson                tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en,
96548e3320SBjorn Andersson                tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ]
97548e3320SBjorn Andersson
98548e3320SBjorn Andersson    required:
99548e3320SBjorn Andersson      - pins
1006e6e1ef6SKrzysztof Kozlowski
101c09acbc4SRafał MiłeckiallOf:
102b8d64ea6SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
103c09acbc4SRafał Miłecki
104548e3320SBjorn Anderssonrequired:
105548e3320SBjorn Andersson  - compatible
106548e3320SBjorn Andersson  - reg
107548e3320SBjorn Andersson  - reg-names
108548e3320SBjorn Andersson
109548e3320SBjorn AnderssonadditionalProperties: false
110548e3320SBjorn Andersson
111548e3320SBjorn Anderssonexamples:
112548e3320SBjorn Andersson  - |
113548e3320SBjorn Andersson    #include <dt-bindings/interrupt-controller/arm-gic.h>
114548e3320SBjorn Andersson    pinctrl@1f00000 {
115548e3320SBjorn Andersson        compatible = "qcom,sm8250-pinctrl";
116548e3320SBjorn Andersson        reg = <0x0f100000 0x300000>,
117548e3320SBjorn Andersson              <0x0f500000 0x300000>,
118548e3320SBjorn Andersson              <0x0f900000 0x300000>;
119548e3320SBjorn Andersson        reg-names = "west", "south", "north";
120548e3320SBjorn Andersson        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
121548e3320SBjorn Andersson        gpio-controller;
122548e3320SBjorn Andersson        #gpio-cells = <2>;
123548e3320SBjorn Andersson        interrupt-controller;
124548e3320SBjorn Andersson        #interrupt-cells = <2>;
1256f4e10ffSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 181>; /* GPIOs + ufs_reset */
126548e3320SBjorn Andersson        wakeup-parent = <&pdc>;
127548e3320SBjorn Andersson    };
128