xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,x1e80100-tlmm.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*8d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8d13bc63SEmmanuel Vadot%YAML 1.2
3*8d13bc63SEmmanuel Vadot---
4*8d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,x1e80100-tlmm.yaml#
5*8d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8d13bc63SEmmanuel Vadot
7*8d13bc63SEmmanuel Vadottitle: Qualcomm Technologies, Inc. X1E80100 TLMM block
8*8d13bc63SEmmanuel Vadot
9*8d13bc63SEmmanuel Vadotmaintainers:
10*8d13bc63SEmmanuel Vadot  - Rajendra Nayak <quic_rjendra@quicinc.com>
11*8d13bc63SEmmanuel Vadot
12*8d13bc63SEmmanuel Vadotdescription:
13*8d13bc63SEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm X1E80100 SoC.
14*8d13bc63SEmmanuel Vadot
15*8d13bc63SEmmanuel VadotallOf:
16*8d13bc63SEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
17*8d13bc63SEmmanuel Vadot
18*8d13bc63SEmmanuel Vadotproperties:
19*8d13bc63SEmmanuel Vadot  compatible:
20*8d13bc63SEmmanuel Vadot    const: qcom,x1e80100-tlmm
21*8d13bc63SEmmanuel Vadot
22*8d13bc63SEmmanuel Vadot  reg:
23*8d13bc63SEmmanuel Vadot    maxItems: 1
24*8d13bc63SEmmanuel Vadot
25*8d13bc63SEmmanuel Vadot  interrupts:
26*8d13bc63SEmmanuel Vadot    maxItems: 1
27*8d13bc63SEmmanuel Vadot
28*8d13bc63SEmmanuel Vadot  gpio-reserved-ranges:
29*8d13bc63SEmmanuel Vadot    minItems: 1
30*8d13bc63SEmmanuel Vadot    maxItems: 119
31*8d13bc63SEmmanuel Vadot
32*8d13bc63SEmmanuel Vadot  gpio-line-names:
33*8d13bc63SEmmanuel Vadot    maxItems: 238
34*8d13bc63SEmmanuel Vadot
35*8d13bc63SEmmanuel VadotpatternProperties:
36*8d13bc63SEmmanuel Vadot  "-state$":
37*8d13bc63SEmmanuel Vadot    oneOf:
38*8d13bc63SEmmanuel Vadot      - $ref: "#/$defs/qcom-x1e80100-tlmm-state"
39*8d13bc63SEmmanuel Vadot      - patternProperties:
40*8d13bc63SEmmanuel Vadot          "-pins$":
41*8d13bc63SEmmanuel Vadot            $ref: "#/$defs/qcom-x1e80100-tlmm-state"
42*8d13bc63SEmmanuel Vadot        additionalProperties: false
43*8d13bc63SEmmanuel Vadot
44*8d13bc63SEmmanuel Vadot$defs:
45*8d13bc63SEmmanuel Vadot  qcom-x1e80100-tlmm-state:
46*8d13bc63SEmmanuel Vadot    type: object
47*8d13bc63SEmmanuel Vadot    description:
48*8d13bc63SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
49*8d13bc63SEmmanuel Vadot      Client device subnodes use below standard properties.
50*8d13bc63SEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51*8d13bc63SEmmanuel Vadot    unevaluatedProperties: false
52*8d13bc63SEmmanuel Vadot
53*8d13bc63SEmmanuel Vadot    properties:
54*8d13bc63SEmmanuel Vadot      pins:
55*8d13bc63SEmmanuel Vadot        description:
56*8d13bc63SEmmanuel Vadot          List of gpio pins affected by the properties specified in this
57*8d13bc63SEmmanuel Vadot          subnode.
58*8d13bc63SEmmanuel Vadot        items:
59*8d13bc63SEmmanuel Vadot          oneOf:
60*8d13bc63SEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-2][0-9]|23[0-7])$"
61*8d13bc63SEmmanuel Vadot            - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ]
62*8d13bc63SEmmanuel Vadot        minItems: 1
63*8d13bc63SEmmanuel Vadot        maxItems: 36
64*8d13bc63SEmmanuel Vadot
65*8d13bc63SEmmanuel Vadot      function:
66*8d13bc63SEmmanuel Vadot        description:
67*8d13bc63SEmmanuel Vadot          Specify the alternative function to be configured for the specified
68*8d13bc63SEmmanuel Vadot          pins.
69*8d13bc63SEmmanuel Vadot        enum: [ aon_cci, aoss_cti, atest_char, atest_char0,
70*8d13bc63SEmmanuel Vadot                atest_char1, atest_char2, atest_char3, atest_usb,
71*8d13bc63SEmmanuel Vadot                audio_ext, audio_ref, cam_aon, cam_mclk, cci_async,
72*8d13bc63SEmmanuel Vadot                cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3,
73*8d13bc63SEmmanuel Vadot                cci_timer4, cmu_rng0, cmu_rng1, cmu_rng2, cmu_rng3,
74*8d13bc63SEmmanuel Vadot                cri_trng, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
75*8d13bc63SEmmanuel Vadot                ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, ddr_pxi6, ddr_pxi7,
76*8d13bc63SEmmanuel Vadot                edp0_hot, edp0_lcd, edp1_hot, edp1_lcd, eusb0_ac, eusb1_ac,
77*8d13bc63SEmmanuel Vadot                eusb2_ac, eusb3_ac, eusb5_ac, eusb6_ac, gcc_gp1, gcc_gp2,
78*8d13bc63SEmmanuel Vadot                gcc_gp3, gpio, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws, i2s1_data0,
79*8d13bc63SEmmanuel Vadot                i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist, mdp_vsync0,
80*8d13bc63SEmmanuel Vadot                mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5,
81*8d13bc63SEmmanuel Vadot                mdp_vsync6, mdp_vsync7, mdp_vsync8, pcie3_clk, pcie4_clk,
82*8d13bc63SEmmanuel Vadot                pcie5_clk, pcie6a_clk, pcie6b_clk, phase_flag, pll_bist, pll_clk,
83*8d13bc63SEmmanuel Vadot                prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti,
84*8d13bc63SEmmanuel Vadot                qdss_gpio, qspi00, qspi01, qspi02, qspi03, qspi0_clk, qspi0_cs0,
85*8d13bc63SEmmanuel Vadot                qspi0_cs1, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4,
86*8d13bc63SEmmanuel Vadot                qup0_se5, qup0_se6, qup0_se7, qup1_se0, qup1_se1, qup1_se2, qup1_se3,
87*8d13bc63SEmmanuel Vadot                qup1_se4, qup1_se5, qup1_se6, qup1_se7, qup2_se0, qup2_se1, qup2_se2,
88*8d13bc63SEmmanuel Vadot                qup2_se3, qup2_se4, qup2_se5, qup2_se6, qup2_se7, sd_write, sdc4_clk,
89*8d13bc63SEmmanuel Vadot                sdc4_cmd, sdc4_data0, sdc4_data1, sdc4_data2, sdc4_data3, sys_throttle,
90*8d13bc63SEmmanuel Vadot                tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tgu_ch4, tgu_ch5,
91*8d13bc63SEmmanuel Vadot                tgu_ch6, tgu_ch7, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3,
92*8d13bc63SEmmanuel Vadot                tsense_pwm1, tsense_pwm2, sense_pwm3, tsense_pwm4, usb0_dp, usb0_phy,
93*8d13bc63SEmmanuel Vadot                usb0_sbrx, usb0_sbtx, usb1_dp, usb1_phy, usb1_sbrx, usb1_sbtx,
94*8d13bc63SEmmanuel Vadot                usb2_dp, usb2_phy, usb2_sbrx, usb2_sbtx, vsense_trigger ]
95*8d13bc63SEmmanuel Vadot
96*8d13bc63SEmmanuel Vadot    required:
97*8d13bc63SEmmanuel Vadot      - pins
98*8d13bc63SEmmanuel Vadot
99*8d13bc63SEmmanuel Vadotrequired:
100*8d13bc63SEmmanuel Vadot  - compatible
101*8d13bc63SEmmanuel Vadot  - reg
102*8d13bc63SEmmanuel Vadot
103*8d13bc63SEmmanuel VadotunevaluatedProperties: false
104*8d13bc63SEmmanuel Vadot
105*8d13bc63SEmmanuel Vadotexamples:
106*8d13bc63SEmmanuel Vadot  - |
107*8d13bc63SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
108*8d13bc63SEmmanuel Vadot    tlmm: pinctrl@f100000 {
109*8d13bc63SEmmanuel Vadot        compatible = "qcom,x1e80100-tlmm";
110*8d13bc63SEmmanuel Vadot        reg = <0x0f100000 0xf00000>;
111*8d13bc63SEmmanuel Vadot        gpio-controller;
112*8d13bc63SEmmanuel Vadot        #gpio-cells = <2>;
113*8d13bc63SEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 239>;
114*8d13bc63SEmmanuel Vadot        interrupt-controller;
115*8d13bc63SEmmanuel Vadot        #interrupt-cells = <2>;
116*8d13bc63SEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
117*8d13bc63SEmmanuel Vadot
118*8d13bc63SEmmanuel Vadot        gpio-wo-state {
119*8d13bc63SEmmanuel Vadot            pins = "gpio1";
120*8d13bc63SEmmanuel Vadot            function = "gpio";
121*8d13bc63SEmmanuel Vadot        };
122*8d13bc63SEmmanuel Vadot
123*8d13bc63SEmmanuel Vadot        uart-w-state {
124*8d13bc63SEmmanuel Vadot            rx-pins {
125*8d13bc63SEmmanuel Vadot                pins = "gpio26";
126*8d13bc63SEmmanuel Vadot                function = "qup2_se7";
127*8d13bc63SEmmanuel Vadot                bias-pull-up;
128*8d13bc63SEmmanuel Vadot            };
129*8d13bc63SEmmanuel Vadot
130*8d13bc63SEmmanuel Vadot            tx-pins {
131*8d13bc63SEmmanuel Vadot                pins = "gpio27";
132*8d13bc63SEmmanuel Vadot                function = "qup2_se7";
133*8d13bc63SEmmanuel Vadot                bias-disable;
134*8d13bc63SEmmanuel Vadot            };
135*8d13bc63SEmmanuel Vadot        };
136*8d13bc63SEmmanuel Vadot    };
137*8d13bc63SEmmanuel Vadot...
138