xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml (revision 548e33205964d3a471a5aca259aee6685becfed8)
1*548e3320SBjorn Andersson# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*548e3320SBjorn Andersson%YAML 1.2
3*548e3320SBjorn Andersson---
4*548e3320SBjorn Andersson$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml#
5*548e3320SBjorn Andersson$schema: http://devicetree.org/meta-schemas/core.yaml#
6*548e3320SBjorn Andersson
7*548e3320SBjorn Anderssontitle: Qualcomm Technologies, Inc. SM8250 TLMM block
8*548e3320SBjorn Andersson
9*548e3320SBjorn Anderssonmaintainers:
10*548e3320SBjorn Andersson  - Bjorn Andersson <bjorn.andersson@linaro.org>
11*548e3320SBjorn Andersson
12*548e3320SBjorn Anderssondescription: |
13*548e3320SBjorn Andersson  This binding describes the Top Level Mode Multiplexer block found in the
14*548e3320SBjorn Andersson  SM8250 platform.
15*548e3320SBjorn Andersson
16*548e3320SBjorn Anderssonproperties:
17*548e3320SBjorn Andersson  compatible:
18*548e3320SBjorn Andersson    const: qcom,sm8250-pinctrl
19*548e3320SBjorn Andersson
20*548e3320SBjorn Andersson  reg:
21*548e3320SBjorn Andersson    minItems: 3
22*548e3320SBjorn Andersson    maxItems: 3
23*548e3320SBjorn Andersson
24*548e3320SBjorn Andersson  reg-names:
25*548e3320SBjorn Andersson    items:
26*548e3320SBjorn Andersson      - const: "west"
27*548e3320SBjorn Andersson      - const: "south"
28*548e3320SBjorn Andersson      - const: "north"
29*548e3320SBjorn Andersson
30*548e3320SBjorn Andersson  interrupts:
31*548e3320SBjorn Andersson    description: Specifies the TLMM summary IRQ
32*548e3320SBjorn Andersson    maxItems: 1
33*548e3320SBjorn Andersson
34*548e3320SBjorn Andersson  interrupt-controller: true
35*548e3320SBjorn Andersson
36*548e3320SBjorn Andersson  '#interrupt-cells':
37*548e3320SBjorn Andersson    description:
38*548e3320SBjorn Andersson      Specifies the PIN numbers and Flags, as defined in defined in
39*548e3320SBjorn Andersson      include/dt-bindings/interrupt-controller/irq.h
40*548e3320SBjorn Andersson    const: 2
41*548e3320SBjorn Andersson
42*548e3320SBjorn Andersson  gpio-controller: true
43*548e3320SBjorn Andersson
44*548e3320SBjorn Andersson  '#gpio-cells':
45*548e3320SBjorn Andersson    description: Specifying the pin number and flags, as defined in
46*548e3320SBjorn Andersson      include/dt-bindings/gpio/gpio.h
47*548e3320SBjorn Andersson    const: 2
48*548e3320SBjorn Andersson
49*548e3320SBjorn Andersson  gpio-ranges:
50*548e3320SBjorn Andersson    maxItems: 1
51*548e3320SBjorn Andersson
52*548e3320SBjorn Andersson  wakeup-parent:
53*548e3320SBjorn Andersson    maxItems: 1
54*548e3320SBjorn Andersson
55*548e3320SBjorn Andersson#PIN CONFIGURATION NODES
56*548e3320SBjorn AnderssonpatternProperties:
57*548e3320SBjorn Andersson  '^.*$':
58*548e3320SBjorn Andersson    if:
59*548e3320SBjorn Andersson      type: object
60*548e3320SBjorn Andersson    then:
61*548e3320SBjorn Andersson      properties:
62*548e3320SBjorn Andersson        pins:
63*548e3320SBjorn Andersson          description:
64*548e3320SBjorn Andersson            List of gpio pins affected by the properties specified in this
65*548e3320SBjorn Andersson            subnode.
66*548e3320SBjorn Andersson          items:
67*548e3320SBjorn Andersson            oneOf:
68*548e3320SBjorn Andersson              - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
69*548e3320SBjorn Andersson              - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ]
70*548e3320SBjorn Andersson          minItems: 1
71*548e3320SBjorn Andersson          maxItems: 36
72*548e3320SBjorn Andersson
73*548e3320SBjorn Andersson        function:
74*548e3320SBjorn Andersson          description:
75*548e3320SBjorn Andersson            Specify the alternative function to be configured for the specified
76*548e3320SBjorn Andersson            pins.
77*548e3320SBjorn Andersson
78*548e3320SBjorn Andersson          enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c,
79*548e3320SBjorn Andersson            cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng,
80*548e3320SBjorn Andersson            cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
81*548e3320SBjorn Andersson            ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
82*548e3320SBjorn Andersson            ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
83*548e3320SBjorn Andersson            mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
84*548e3320SBjorn Andersson            mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
85*548e3320SBjorn Andersson            mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1,
86*548e3320SBjorn Andersson            pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset,
87*548e3320SBjorn Andersson            pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3,
88*548e3320SBjorn Andersson            qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14,
89*548e3320SBjorn Andersson            qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6,
90*548e3320SBjorn Andersson            qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41,
91*548e3320SBjorn Andersson            sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1,
92*548e3320SBjorn Andersson            tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data,
93*548e3320SBjorn Andersson            tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en,
94*548e3320SBjorn Andersson            tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ]
95*548e3320SBjorn Andersson
96*548e3320SBjorn Andersson        drive-strength:
97*548e3320SBjorn Andersson          enum: [2, 4, 6, 8, 10, 12, 14, 16]
98*548e3320SBjorn Andersson          default: 2
99*548e3320SBjorn Andersson          description:
100*548e3320SBjorn Andersson            Selects the drive strength for the specified pins, in mA.
101*548e3320SBjorn Andersson
102*548e3320SBjorn Andersson        bias-pull-down: true
103*548e3320SBjorn Andersson
104*548e3320SBjorn Andersson        bias-pull-up: true
105*548e3320SBjorn Andersson
106*548e3320SBjorn Andersson        bias-disable: true
107*548e3320SBjorn Andersson
108*548e3320SBjorn Andersson        output-high: true
109*548e3320SBjorn Andersson
110*548e3320SBjorn Andersson        output-low: true
111*548e3320SBjorn Andersson
112*548e3320SBjorn Andersson      required:
113*548e3320SBjorn Andersson        - pins
114*548e3320SBjorn Andersson        - function
115*548e3320SBjorn Andersson
116*548e3320SBjorn Andersson      additionalProperties: false
117*548e3320SBjorn Andersson
118*548e3320SBjorn Anderssonrequired:
119*548e3320SBjorn Andersson  - compatible
120*548e3320SBjorn Andersson  - reg
121*548e3320SBjorn Andersson  - reg-names
122*548e3320SBjorn Andersson  - interrupts
123*548e3320SBjorn Andersson  - interrupt-controller
124*548e3320SBjorn Andersson  - '#interrupt-cells'
125*548e3320SBjorn Andersson  - gpio-controller
126*548e3320SBjorn Andersson  - '#gpio-cells'
127*548e3320SBjorn Andersson  - gpio-ranges
128*548e3320SBjorn Andersson
129*548e3320SBjorn AnderssonadditionalProperties: false
130*548e3320SBjorn Andersson
131*548e3320SBjorn Anderssonexamples:
132*548e3320SBjorn Andersson  - |
133*548e3320SBjorn Andersson        #include <dt-bindings/interrupt-controller/arm-gic.h>
134*548e3320SBjorn Andersson        pinctrl@1f00000 {
135*548e3320SBjorn Andersson                compatible = "qcom,sm8250-pinctrl";
136*548e3320SBjorn Andersson                reg = <0x0f100000 0x300000>,
137*548e3320SBjorn Andersson                      <0x0f500000 0x300000>,
138*548e3320SBjorn Andersson                      <0x0f900000 0x300000>;
139*548e3320SBjorn Andersson                reg-names = "west", "south", "north";
140*548e3320SBjorn Andersson                interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
141*548e3320SBjorn Andersson                gpio-controller;
142*548e3320SBjorn Andersson                #gpio-cells = <2>;
143*548e3320SBjorn Andersson                interrupt-controller;
144*548e3320SBjorn Andersson                #interrupt-cells = <2>;
145*548e3320SBjorn Andersson                gpio-ranges = <&tlmm 0 0 180>;
146*548e3320SBjorn Andersson                wakeup-parent = <&pdc>;
147*548e3320SBjorn Andersson        };
148