xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1c82d4776SVinod Koul# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c82d4776SVinod Koul%YAML 1.2
3c82d4776SVinod Koul---
4c82d4776SVinod Koul$id: http://devicetree.org/schemas/pinctrl/qcom,sdx55-pinctrl.yaml#
5c82d4776SVinod Koul$schema: http://devicetree.org/meta-schemas/core.yaml#
6c82d4776SVinod Koul
7c82d4776SVinod Koultitle: Qualcomm Technologies, Inc. SDX55 TLMM block
8c82d4776SVinod Koul
9c82d4776SVinod Koulmaintainers:
10c82d4776SVinod Koul  - Vinod Koul <vkoul@kernel.org>
11c82d4776SVinod Koul
1209f53706SKrzysztof Kozlowskidescription:
1309f53706SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm SDX55 SoC.
14c82d4776SVinod Koul
15c82d4776SVinod Koulproperties:
16c82d4776SVinod Koul  compatible:
17c82d4776SVinod Koul    const: qcom,sdx55-pinctrl
18c82d4776SVinod Koul
19c82d4776SVinod Koul  reg:
20c82d4776SVinod Koul    description: Specifies the base address and size of the TLMM register space
21c82d4776SVinod Koul    maxItems: 1
22c82d4776SVinod Koul
2312a18bb7SKrzysztof Kozlowski  interrupts:
2412a18bb7SKrzysztof Kozlowski    maxItems: 1
2512a18bb7SKrzysztof Kozlowski
26c82d4776SVinod Koul  gpio-reserved-ranges:
27c82d4776SVinod Koul    maxItems: 1
28c82d4776SVinod Koul
29c82d4776SVinod KoulpatternProperties:
308cd7d9e1SKrzysztof Kozlowski  "-state$":
318cd7d9e1SKrzysztof Kozlowski    oneOf:
328cd7d9e1SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sdx55-tlmm-state"
338cd7d9e1SKrzysztof Kozlowski      - patternProperties:
348cd7d9e1SKrzysztof Kozlowski          "-pins$":
358cd7d9e1SKrzysztof Kozlowski            $ref: "#/$defs/qcom-sdx55-tlmm-state"
368cd7d9e1SKrzysztof Kozlowski        additionalProperties: false
378cd7d9e1SKrzysztof Kozlowski
388cd7d9e1SKrzysztof Kozlowski$defs:
398cd7d9e1SKrzysztof Kozlowski  qcom-sdx55-tlmm-state:
40c82d4776SVinod Koul    type: object
41c82d4776SVinod Koul    description:
42c82d4776SVinod Koul      Pinctrl node's client devices use subnodes for desired pin configuration.
43c82d4776SVinod Koul      Client device subnodes use below standard properties.
44fd583a4fSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
45a38e276cSKrzysztof Kozlowski    unevaluatedProperties: false
46c82d4776SVinod Koul
47c82d4776SVinod Koul    properties:
48c82d4776SVinod Koul      pins:
49c82d4776SVinod Koul        description:
50c82d4776SVinod Koul          List of gpio pins affected by the properties specified in this subnode.
51c82d4776SVinod Koul        items:
52c82d4776SVinod Koul          oneOf:
535c706971SKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$"
54c82d4776SVinod Koul            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
55c82d4776SVinod Koul        minItems: 1
56c82d4776SVinod Koul        maxItems: 36
57c82d4776SVinod Koul
58c82d4776SVinod Koul      function:
59c82d4776SVinod Koul        description:
60c82d4776SVinod Koul          Specify the alternative function to be configured for the specified
61c82d4776SVinod Koul          pins. Functions are only valid for gpio pins.
62c82d4776SVinod Koul        enum: [ adsp_ext, atest, audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1,
63c82d4776SVinod Koul                blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_spi1, blsp_spi2,
64c82d4776SVinod Koul                blsp_spi3, blsp_spi4, blsp_uart1, blsp_uart2, blsp_uart3,
65c82d4776SVinod Koul                blsp_uart4, char_exec, coex_uart, coex_uart2, cri_trng,
66c82d4776SVinod Koul                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0,
67c82d4776SVinod Koul                ebi0_wrcdc, ebi2_a, ebi2_lcd, emac_gcc0, emac_gcc1,
68c82d4776SVinod Koul                emac_pps0, emac_pps1, ext_dbg, gcc_gp1, gcc_gp2, gcc_gp3,
69c82d4776SVinod Koul                gcc_plltest, gpio, i2s_mclk, jitter_bist, ldo_en, ldo_update,
70c82d4776SVinod Koul                mgpi_clk, m_voc, native_char, native_char0, native_char1,
71c82d4776SVinod Koul                native_char2, native_char3, native_tsens, native_tsense,
72c82d4776SVinod Koul                nav_gpio, pa_indicator, pcie_clkreq, pci_e, pll_bist, pll_ref,
73c82d4776SVinod Koul                pll_test, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio,
74c82d4776SVinod Koul                qdss_gpio0, qdss_gpio1, qdss_gpio2, qdss_gpio3, qdss_gpio4,
75c82d4776SVinod Koul                qdss_gpio5, qdss_gpio6, qdss_gpio7, qdss_gpio8, qdss_gpio9,
76c82d4776SVinod Koul                qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13,
77c82d4776SVinod Koul                qdss_gpio14, qdss_gpio15, qdss_stm0, qdss_stm1, qdss_stm2,
78c82d4776SVinod Koul                qdss_stm3, qdss_stm4, qdss_stm5, qdss_stm6, qdss_stm7,
79c82d4776SVinod Koul                qdss_stm8, qdss_stm9, qdss_stm10, qdss_stm11, qdss_stm12,
80c82d4776SVinod Koul                qdss_stm13, qdss_stm14, qdss_stm15, qdss_stm16, qdss_stm17,
81c82d4776SVinod Koul                qdss_stm18, qdss_stm19, qdss_stm20, qdss_stm21, qdss_stm22,
82c82d4776SVinod Koul                qdss_stm23, qdss_stm24, qdss_stm25, qdss_stm26, qdss_stm27,
83c82d4776SVinod Koul                qdss_stm28, qdss_stm29, qdss_stm30, qdss_stm31, qlink0_en,
84c82d4776SVinod Koul                qlink0_req, qlink0_wmss, qlink1_en, qlink1_req, qlink1_wmss,
85c82d4776SVinod Koul                spmi_coex, sec_mi2s, spmi_vgi, tgu_ch0, uim1_clk, uim1_data,
86c82d4776SVinod Koul                uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present,
87c82d4776SVinod Koul                uim2_reset, usb2phy_ac, vsense_trigger ]
88c82d4776SVinod Koul
89c82d4776SVinod Koul    required:
90c82d4776SVinod Koul      - pins
91c82d4776SVinod Koul
92c09acbc4SRafał MiłeckiallOf:
93fd583a4fSKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
94c09acbc4SRafał Miłecki
95c82d4776SVinod Koulrequired:
96c82d4776SVinod Koul  - compatible
97c82d4776SVinod Koul  - reg
98c82d4776SVinod Koul
99*b22794c0SKrzysztof KozlowskiunevaluatedProperties: false
100c82d4776SVinod Koul
101c82d4776SVinod Koulexamples:
102c82d4776SVinod Koul  - |
103c82d4776SVinod Koul    #include <dt-bindings/interrupt-controller/arm-gic.h>
104c82d4776SVinod Koul    tlmm: pinctrl@1f00000 {
105c82d4776SVinod Koul        compatible = "qcom,sdx55-pinctrl";
106c82d4776SVinod Koul        reg = <0x0f100000 0x300000>;
107c82d4776SVinod Koul        gpio-controller;
108c82d4776SVinod Koul        #gpio-cells = <2>;
109c82d4776SVinod Koul        gpio-ranges = <&tlmm 0 0 108>;
110c82d4776SVinod Koul        interrupt-controller;
111c82d4776SVinod Koul        #interrupt-cells = <2>;
112c82d4776SVinod Koul        interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
113c82d4776SVinod Koul
1148cd7d9e1SKrzysztof Kozlowski        serial-state {
115c82d4776SVinod Koul            pins = "gpio8", "gpio9";
116c82d4776SVinod Koul            function = "blsp_uart3";
117c82d4776SVinod Koul            drive-strength = <8>;
118c82d4776SVinod Koul            bias-disable;
119c82d4776SVinod Koul        };
120c82d4776SVinod Koul    };
121c82d4776SVinod Koul
122c82d4776SVinod Koul...
123