xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,x1e80100-tlmm.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
15180f4faSRajendra Nayak# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25180f4faSRajendra Nayak%YAML 1.2
35180f4faSRajendra Nayak---
45180f4faSRajendra Nayak$id: http://devicetree.org/schemas/pinctrl/qcom,x1e80100-tlmm.yaml#
55180f4faSRajendra Nayak$schema: http://devicetree.org/meta-schemas/core.yaml#
65180f4faSRajendra Nayak
75180f4faSRajendra Nayaktitle: Qualcomm Technologies, Inc. X1E80100 TLMM block
85180f4faSRajendra Nayak
95180f4faSRajendra Nayakmaintainers:
105180f4faSRajendra Nayak  - Rajendra Nayak <quic_rjendra@quicinc.com>
115180f4faSRajendra Nayak
125180f4faSRajendra Nayakdescription:
135180f4faSRajendra Nayak  Top Level Mode Multiplexer pin controller in Qualcomm X1E80100 SoC.
145180f4faSRajendra Nayak
155180f4faSRajendra NayakallOf:
165180f4faSRajendra Nayak  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
175180f4faSRajendra Nayak
185180f4faSRajendra Nayakproperties:
195180f4faSRajendra Nayak  compatible:
205180f4faSRajendra Nayak    const: qcom,x1e80100-tlmm
215180f4faSRajendra Nayak
225180f4faSRajendra Nayak  reg:
235180f4faSRajendra Nayak    maxItems: 1
245180f4faSRajendra Nayak
257e47d9d3SKrzysztof Kozlowski  interrupts:
267e47d9d3SKrzysztof Kozlowski    maxItems: 1
277e47d9d3SKrzysztof Kozlowski
285180f4faSRajendra Nayak  gpio-reserved-ranges:
295180f4faSRajendra Nayak    minItems: 1
305180f4faSRajendra Nayak    maxItems: 119
315180f4faSRajendra Nayak
325180f4faSRajendra Nayak  gpio-line-names:
335180f4faSRajendra Nayak    maxItems: 238
345180f4faSRajendra Nayak
355180f4faSRajendra NayakpatternProperties:
365180f4faSRajendra Nayak  "-state$":
375180f4faSRajendra Nayak    oneOf:
385180f4faSRajendra Nayak      - $ref: "#/$defs/qcom-x1e80100-tlmm-state"
395180f4faSRajendra Nayak      - patternProperties:
405180f4faSRajendra Nayak          "-pins$":
415180f4faSRajendra Nayak            $ref: "#/$defs/qcom-x1e80100-tlmm-state"
425180f4faSRajendra Nayak        additionalProperties: false
435180f4faSRajendra Nayak
445180f4faSRajendra Nayak$defs:
455180f4faSRajendra Nayak  qcom-x1e80100-tlmm-state:
465180f4faSRajendra Nayak    type: object
475180f4faSRajendra Nayak    description:
485180f4faSRajendra Nayak      Pinctrl node's client devices use subnodes for desired pin configuration.
495180f4faSRajendra Nayak      Client device subnodes use below standard properties.
505180f4faSRajendra Nayak    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
515180f4faSRajendra Nayak    unevaluatedProperties: false
525180f4faSRajendra Nayak
535180f4faSRajendra Nayak    properties:
545180f4faSRajendra Nayak      pins:
555180f4faSRajendra Nayak        description:
565180f4faSRajendra Nayak          List of gpio pins affected by the properties specified in this
575180f4faSRajendra Nayak          subnode.
585180f4faSRajendra Nayak        items:
595180f4faSRajendra Nayak          oneOf:
605180f4faSRajendra Nayak            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-2][0-9]|23[0-7])$"
615180f4faSRajendra Nayak            - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ]
625180f4faSRajendra Nayak        minItems: 1
635180f4faSRajendra Nayak        maxItems: 36
645180f4faSRajendra Nayak
655180f4faSRajendra Nayak      function:
665180f4faSRajendra Nayak        description:
675180f4faSRajendra Nayak          Specify the alternative function to be configured for the specified
685180f4faSRajendra Nayak          pins.
695180f4faSRajendra Nayak        enum: [ aon_cci, aoss_cti, atest_char, atest_char0,
705180f4faSRajendra Nayak                atest_char1, atest_char2, atest_char3, atest_usb,
715180f4faSRajendra Nayak                audio_ext, audio_ref, cam_aon, cam_mclk, cci_async,
725180f4faSRajendra Nayak                cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3,
735180f4faSRajendra Nayak                cci_timer4, cmu_rng0, cmu_rng1, cmu_rng2, cmu_rng3,
745180f4faSRajendra Nayak                cri_trng, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
755180f4faSRajendra Nayak                ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, ddr_pxi6, ddr_pxi7,
765180f4faSRajendra Nayak                edp0_hot, edp0_lcd, edp1_hot, edp1_lcd, eusb0_ac, eusb1_ac,
775180f4faSRajendra Nayak                eusb2_ac, eusb3_ac, eusb5_ac, eusb6_ac, gcc_gp1, gcc_gp2,
785180f4faSRajendra Nayak                gcc_gp3, gpio, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws, i2s1_data0,
795180f4faSRajendra Nayak                i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist, mdp_vsync0,
805180f4faSRajendra Nayak                mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5,
815180f4faSRajendra Nayak                mdp_vsync6, mdp_vsync7, mdp_vsync8, pcie3_clk, pcie4_clk,
825180f4faSRajendra Nayak                pcie5_clk, pcie6a_clk, pcie6b_clk, phase_flag, pll_bist, pll_clk,
835180f4faSRajendra Nayak                prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti,
845180f4faSRajendra Nayak                qdss_gpio, qspi00, qspi01, qspi02, qspi03, qspi0_clk, qspi0_cs0,
855180f4faSRajendra Nayak                qspi0_cs1, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4,
865180f4faSRajendra Nayak                qup0_se5, qup0_se6, qup0_se7, qup1_se0, qup1_se1, qup1_se2, qup1_se3,
875180f4faSRajendra Nayak                qup1_se4, qup1_se5, qup1_se6, qup1_se7, qup2_se0, qup2_se1, qup2_se2,
885180f4faSRajendra Nayak                qup2_se3, qup2_se4, qup2_se5, qup2_se6, qup2_se7, sd_write, sdc4_clk,
895180f4faSRajendra Nayak                sdc4_cmd, sdc4_data0, sdc4_data1, sdc4_data2, sdc4_data3, sys_throttle,
905180f4faSRajendra Nayak                tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tgu_ch4, tgu_ch5,
915180f4faSRajendra Nayak                tgu_ch6, tgu_ch7, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3,
925180f4faSRajendra Nayak                tsense_pwm1, tsense_pwm2, sense_pwm3, tsense_pwm4, usb0_dp, usb0_phy,
935180f4faSRajendra Nayak                usb0_sbrx, usb0_sbtx, usb1_dp, usb1_phy, usb1_sbrx, usb1_sbtx,
945180f4faSRajendra Nayak                usb2_dp, usb2_phy, usb2_sbrx, usb2_sbtx, vsense_trigger ]
955180f4faSRajendra Nayak
965180f4faSRajendra Nayak    required:
975180f4faSRajendra Nayak      - pins
985180f4faSRajendra Nayak
995180f4faSRajendra Nayakrequired:
1005180f4faSRajendra Nayak  - compatible
1015180f4faSRajendra Nayak  - reg
1025180f4faSRajendra Nayak
103*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
1045180f4faSRajendra Nayak
1055180f4faSRajendra Nayakexamples:
1065180f4faSRajendra Nayak  - |
1075180f4faSRajendra Nayak    #include <dt-bindings/interrupt-controller/arm-gic.h>
1085180f4faSRajendra Nayak    tlmm: pinctrl@f100000 {
1095180f4faSRajendra Nayak        compatible = "qcom,x1e80100-tlmm";
1105180f4faSRajendra Nayak        reg = <0x0f100000 0xf00000>;
1115180f4faSRajendra Nayak        gpio-controller;
1125180f4faSRajendra Nayak        #gpio-cells = <2>;
1135180f4faSRajendra Nayak        gpio-ranges = <&tlmm 0 0 239>;
1145180f4faSRajendra Nayak        interrupt-controller;
1155180f4faSRajendra Nayak        #interrupt-cells = <2>;
1165180f4faSRajendra Nayak        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1175180f4faSRajendra Nayak
1185180f4faSRajendra Nayak        gpio-wo-state {
1195180f4faSRajendra Nayak            pins = "gpio1";
1205180f4faSRajendra Nayak            function = "gpio";
1215180f4faSRajendra Nayak        };
1225180f4faSRajendra Nayak
1235180f4faSRajendra Nayak        uart-w-state {
1245180f4faSRajendra Nayak            rx-pins {
1255180f4faSRajendra Nayak                pins = "gpio26";
1265180f4faSRajendra Nayak                function = "qup2_se7";
1275180f4faSRajendra Nayak                bias-pull-up;
1285180f4faSRajendra Nayak            };
1295180f4faSRajendra Nayak
1305180f4faSRajendra Nayak            tx-pins {
1315180f4faSRajendra Nayak                pins = "gpio27";
1325180f4faSRajendra Nayak                function = "qup2_se7";
1335180f4faSRajendra Nayak                bias-disable;
1345180f4faSRajendra Nayak            };
1355180f4faSRajendra Nayak        };
1365180f4faSRajendra Nayak    };
1375180f4faSRajendra Nayak...
138