xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sar2130p-tlmm.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sar2130p-tlmm.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: Qualcomm Technologies, Inc. SAR2130P TLMM block
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
11*5f62a964SEmmanuel Vadot
12*5f62a964SEmmanuel Vadotdescription:
13*5f62a964SEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SAR2130P SoC.
14*5f62a964SEmmanuel Vadot
15*5f62a964SEmmanuel VadotallOf:
16*5f62a964SEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
17*5f62a964SEmmanuel Vadot
18*5f62a964SEmmanuel Vadotproperties:
19*5f62a964SEmmanuel Vadot  compatible:
20*5f62a964SEmmanuel Vadot    const: qcom,sar2130p-tlmm
21*5f62a964SEmmanuel Vadot
22*5f62a964SEmmanuel Vadot  reg:
23*5f62a964SEmmanuel Vadot    maxItems: 1
24*5f62a964SEmmanuel Vadot
25*5f62a964SEmmanuel Vadot  interrupts:
26*5f62a964SEmmanuel Vadot    maxItems: 1
27*5f62a964SEmmanuel Vadot
28*5f62a964SEmmanuel Vadot  gpio-reserved-ranges:
29*5f62a964SEmmanuel Vadot    minItems: 1
30*5f62a964SEmmanuel Vadot    maxItems: 78
31*5f62a964SEmmanuel Vadot
32*5f62a964SEmmanuel Vadot  gpio-line-names:
33*5f62a964SEmmanuel Vadot    maxItems: 156
34*5f62a964SEmmanuel Vadot
35*5f62a964SEmmanuel VadotpatternProperties:
36*5f62a964SEmmanuel Vadot  "-state$":
37*5f62a964SEmmanuel Vadot    oneOf:
38*5f62a964SEmmanuel Vadot      - $ref: "#/$defs/qcom-sar2130p-tlmm-state"
39*5f62a964SEmmanuel Vadot      - patternProperties:
40*5f62a964SEmmanuel Vadot          "-pins$":
41*5f62a964SEmmanuel Vadot            $ref: "#/$defs/qcom-sar2130p-tlmm-state"
42*5f62a964SEmmanuel Vadot        additionalProperties: false
43*5f62a964SEmmanuel Vadot
44*5f62a964SEmmanuel Vadot$defs:
45*5f62a964SEmmanuel Vadot  qcom-sar2130p-tlmm-state:
46*5f62a964SEmmanuel Vadot    type: object
47*5f62a964SEmmanuel Vadot    description:
48*5f62a964SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
49*5f62a964SEmmanuel Vadot      Client device subnodes use below standard properties.
50*5f62a964SEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51*5f62a964SEmmanuel Vadot    unevaluatedProperties: false
52*5f62a964SEmmanuel Vadot
53*5f62a964SEmmanuel Vadot    properties:
54*5f62a964SEmmanuel Vadot      pins:
55*5f62a964SEmmanuel Vadot        description:
56*5f62a964SEmmanuel Vadot          List of gpio pins affected by the properties specified in this
57*5f62a964SEmmanuel Vadot          subnode.
58*5f62a964SEmmanuel Vadot        items:
59*5f62a964SEmmanuel Vadot          oneOf:
60*5f62a964SEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-5])$"
61*5f62a964SEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk ]
62*5f62a964SEmmanuel Vadot        minItems: 1
63*5f62a964SEmmanuel Vadot        maxItems: 36
64*5f62a964SEmmanuel Vadot
65*5f62a964SEmmanuel Vadot      function:
66*5f62a964SEmmanuel Vadot        description:
67*5f62a964SEmmanuel Vadot          Specify the alternative function to be configured for the specified
68*5f62a964SEmmanuel Vadot          pins.
69*5f62a964SEmmanuel Vadot        enum: [ aoss_cti, atest_char, atest_char0, atest_char1, atest_char2,
70*5f62a964SEmmanuel Vadot                atest_char3, atest_usb0, atest_usb00, atest_usb01, atest_usb02,
71*5f62a964SEmmanuel Vadot                atest_usb03, audio_ref, cam_mclk, cci_async, cci_i2c,
72*5f62a964SEmmanuel Vadot                cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4,
73*5f62a964SEmmanuel Vadot                cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0,
74*5f62a964SEmmanuel Vadot                ddr_pxi1, ddr_pxi2, ddr_pxi3, dp0_hot, ext_mclk0, ext_mclk1,
75*5f62a964SEmmanuel Vadot                gcc_gp1, gcc_gp2, gcc_gp3, gpio, host2wlan_sol, i2s0_data0,
76*5f62a964SEmmanuel Vadot                i2s0_data1, i2s0_sck, i2s0_ws, ibi_i3c, jitter_bist, mdp_vsync,
77*5f62a964SEmmanuel Vadot                mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, pcie0_clkreqn,
78*5f62a964SEmmanuel Vadot                pcie1_clkreqn, phase_flag0, phase_flag1, phase_flag10,
79*5f62a964SEmmanuel Vadot                phase_flag11, phase_flag12, phase_flag13, phase_flag14,
80*5f62a964SEmmanuel Vadot                phase_flag15, phase_flag16, phase_flag17, phase_flag18,
81*5f62a964SEmmanuel Vadot                phase_flag19, phase_flag2, phase_flag20, phase_flag21,
82*5f62a964SEmmanuel Vadot                phase_flag22, phase_flag23, phase_flag24, phase_flag25,
83*5f62a964SEmmanuel Vadot                phase_flag26, phase_flag27, phase_flag28, phase_flag29,
84*5f62a964SEmmanuel Vadot                phase_flag3, phase_flag30, phase_flag31, phase_flag4,
85*5f62a964SEmmanuel Vadot                phase_flag5, phase_flag6, phase_flag7, phase_flag8,
86*5f62a964SEmmanuel Vadot                phase_flag9, pll_bist, pll_clk, prng_rosc0, prng_rosc1,
87*5f62a964SEmmanuel Vadot                prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qdss_gpio0,
88*5f62a964SEmmanuel Vadot                qdss_gpio1, qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13,
89*5f62a964SEmmanuel Vadot                qdss_gpio14, qdss_gpio15, qdss_gpio2, qdss_gpio3, qdss_gpio4,
90*5f62a964SEmmanuel Vadot                qdss_gpio5, qdss_gpio6, qdss_gpio7, qdss_gpio8, qdss_gpio9,
91*5f62a964SEmmanuel Vadot                qspi0, qspi1, qspi2, qspi3, qspi_clk, qspi_cs0, qspi_cs1, qup0,
92*5f62a964SEmmanuel Vadot                qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup10,
93*5f62a964SEmmanuel Vadot                qup11, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3,
94*5f62a964SEmmanuel Vadot                tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3,
95*5f62a964SEmmanuel Vadot                tsense_pwm1, tsense_pwm2, usb0_phy, vsense_trigger ]
96*5f62a964SEmmanuel Vadot
97*5f62a964SEmmanuel Vadot    required:
98*5f62a964SEmmanuel Vadot      - pins
99*5f62a964SEmmanuel Vadot
100*5f62a964SEmmanuel Vadotrequired:
101*5f62a964SEmmanuel Vadot  - compatible
102*5f62a964SEmmanuel Vadot  - reg
103*5f62a964SEmmanuel Vadot
104*5f62a964SEmmanuel VadotunevaluatedProperties: false
105*5f62a964SEmmanuel Vadot
106*5f62a964SEmmanuel Vadotexamples:
107*5f62a964SEmmanuel Vadot  - |
108*5f62a964SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
109*5f62a964SEmmanuel Vadot    pinctrl@f100000 {
110*5f62a964SEmmanuel Vadot        compatible = "qcom,sar2130p-tlmm";
111*5f62a964SEmmanuel Vadot        reg = <0x0f100000 0x300000>;
112*5f62a964SEmmanuel Vadot        gpio-controller;
113*5f62a964SEmmanuel Vadot        #gpio-cells = <2>;
114*5f62a964SEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 156>;
115*5f62a964SEmmanuel Vadot        interrupt-controller;
116*5f62a964SEmmanuel Vadot        #interrupt-cells = <2>;
117*5f62a964SEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
118*5f62a964SEmmanuel Vadot
119*5f62a964SEmmanuel Vadot        gpio-wo-state {
120*5f62a964SEmmanuel Vadot            pins = "gpio1";
121*5f62a964SEmmanuel Vadot            function = "gpio";
122*5f62a964SEmmanuel Vadot        };
123*5f62a964SEmmanuel Vadot
124*5f62a964SEmmanuel Vadot        uart-w-state {
125*5f62a964SEmmanuel Vadot            rx-pins {
126*5f62a964SEmmanuel Vadot                pins = "gpio26";
127*5f62a964SEmmanuel Vadot                function = "qup7";
128*5f62a964SEmmanuel Vadot                bias-pull-up;
129*5f62a964SEmmanuel Vadot            };
130*5f62a964SEmmanuel Vadot
131*5f62a964SEmmanuel Vadot            tx-pins {
132*5f62a964SEmmanuel Vadot                pins = "gpio27";
133*5f62a964SEmmanuel Vadot                function = "qup7";
134*5f62a964SEmmanuel Vadot                bias-disable;
135*5f62a964SEmmanuel Vadot            };
136*5f62a964SEmmanuel Vadot        };
137*5f62a964SEmmanuel Vadot    };
138*5f62a964SEmmanuel Vadot...
139