xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sdx55-pinctrl.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sdx55-pinctrl.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Qualcomm Technologies, Inc. SDX55 TLMM block
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Vinod Koul <vkoul@kernel.org>
115def4c47SEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription:
138bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SDX55 SoC.
145def4c47SEmmanuel Vadot
155def4c47SEmmanuel Vadotproperties:
165def4c47SEmmanuel Vadot  compatible:
175def4c47SEmmanuel Vadot    const: qcom,sdx55-pinctrl
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadot  reg:
205def4c47SEmmanuel Vadot    description: Specifies the base address and size of the TLMM register space
215def4c47SEmmanuel Vadot    maxItems: 1
225def4c47SEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  interrupts:
24cb7aa33aSEmmanuel Vadot    maxItems: 1
25cb7aa33aSEmmanuel Vadot
265def4c47SEmmanuel Vadot  gpio-reserved-ranges:
275def4c47SEmmanuel Vadot    maxItems: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel VadotpatternProperties:
308bab661aSEmmanuel Vadot  "-state$":
318bab661aSEmmanuel Vadot    oneOf:
328bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-sdx55-tlmm-state"
338bab661aSEmmanuel Vadot      - patternProperties:
348bab661aSEmmanuel Vadot          "-pins$":
358bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-sdx55-tlmm-state"
368bab661aSEmmanuel Vadot        additionalProperties: false
378bab661aSEmmanuel Vadot
388bab661aSEmmanuel Vadot$defs:
398bab661aSEmmanuel Vadot  qcom-sdx55-tlmm-state:
405def4c47SEmmanuel Vadot    type: object
415def4c47SEmmanuel Vadot    description:
425def4c47SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
435def4c47SEmmanuel Vadot      Client device subnodes use below standard properties.
448bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
45fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadot    properties:
485def4c47SEmmanuel Vadot      pins:
495def4c47SEmmanuel Vadot        description:
505def4c47SEmmanuel Vadot          List of gpio pins affected by the properties specified in this subnode.
515def4c47SEmmanuel Vadot        items:
525def4c47SEmmanuel Vadot          oneOf:
53cb7aa33aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$"
545def4c47SEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
555def4c47SEmmanuel Vadot        minItems: 1
565def4c47SEmmanuel Vadot        maxItems: 36
575def4c47SEmmanuel Vadot
585def4c47SEmmanuel Vadot      function:
595def4c47SEmmanuel Vadot        description:
605def4c47SEmmanuel Vadot          Specify the alternative function to be configured for the specified
615def4c47SEmmanuel Vadot          pins. Functions are only valid for gpio pins.
625def4c47SEmmanuel Vadot        enum: [ adsp_ext, atest, audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1,
635def4c47SEmmanuel Vadot                blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_spi1, blsp_spi2,
645def4c47SEmmanuel Vadot                blsp_spi3, blsp_spi4, blsp_uart1, blsp_uart2, blsp_uart3,
655def4c47SEmmanuel Vadot                blsp_uart4, char_exec, coex_uart, coex_uart2, cri_trng,
665def4c47SEmmanuel Vadot                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0,
675def4c47SEmmanuel Vadot                ebi0_wrcdc, ebi2_a, ebi2_lcd, emac_gcc0, emac_gcc1,
685def4c47SEmmanuel Vadot                emac_pps0, emac_pps1, ext_dbg, gcc_gp1, gcc_gp2, gcc_gp3,
695def4c47SEmmanuel Vadot                gcc_plltest, gpio, i2s_mclk, jitter_bist, ldo_en, ldo_update,
705def4c47SEmmanuel Vadot                mgpi_clk, m_voc, native_char, native_char0, native_char1,
715def4c47SEmmanuel Vadot                native_char2, native_char3, native_tsens, native_tsense,
725def4c47SEmmanuel Vadot                nav_gpio, pa_indicator, pcie_clkreq, pci_e, pll_bist, pll_ref,
735def4c47SEmmanuel Vadot                pll_test, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio,
745def4c47SEmmanuel Vadot                qdss_gpio0, qdss_gpio1, qdss_gpio2, qdss_gpio3, qdss_gpio4,
755def4c47SEmmanuel Vadot                qdss_gpio5, qdss_gpio6, qdss_gpio7, qdss_gpio8, qdss_gpio9,
765def4c47SEmmanuel Vadot                qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13,
775def4c47SEmmanuel Vadot                qdss_gpio14, qdss_gpio15, qdss_stm0, qdss_stm1, qdss_stm2,
785def4c47SEmmanuel Vadot                qdss_stm3, qdss_stm4, qdss_stm5, qdss_stm6, qdss_stm7,
795def4c47SEmmanuel Vadot                qdss_stm8, qdss_stm9, qdss_stm10, qdss_stm11, qdss_stm12,
805def4c47SEmmanuel Vadot                qdss_stm13, qdss_stm14, qdss_stm15, qdss_stm16, qdss_stm17,
815def4c47SEmmanuel Vadot                qdss_stm18, qdss_stm19, qdss_stm20, qdss_stm21, qdss_stm22,
825def4c47SEmmanuel Vadot                qdss_stm23, qdss_stm24, qdss_stm25, qdss_stm26, qdss_stm27,
835def4c47SEmmanuel Vadot                qdss_stm28, qdss_stm29, qdss_stm30, qdss_stm31, qlink0_en,
845def4c47SEmmanuel Vadot                qlink0_req, qlink0_wmss, qlink1_en, qlink1_req, qlink1_wmss,
855def4c47SEmmanuel Vadot                spmi_coex, sec_mi2s, spmi_vgi, tgu_ch0, uim1_clk, uim1_data,
865def4c47SEmmanuel Vadot                uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present,
875def4c47SEmmanuel Vadot                uim2_reset, usb2phy_ac, vsense_trigger ]
885def4c47SEmmanuel Vadot
895def4c47SEmmanuel Vadot    required:
905def4c47SEmmanuel Vadot      - pins
915def4c47SEmmanuel Vadot
92e67e8565SEmmanuel VadotallOf:
938bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
94e67e8565SEmmanuel Vadot
955def4c47SEmmanuel Vadotrequired:
965def4c47SEmmanuel Vadot  - compatible
975def4c47SEmmanuel Vadot  - reg
985def4c47SEmmanuel Vadot
99*8d13bc63SEmmanuel VadotunevaluatedProperties: false
1005def4c47SEmmanuel Vadot
1015def4c47SEmmanuel Vadotexamples:
1025def4c47SEmmanuel Vadot  - |
1035def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1045def4c47SEmmanuel Vadot    tlmm: pinctrl@1f00000 {
1055def4c47SEmmanuel Vadot        compatible = "qcom,sdx55-pinctrl";
1065def4c47SEmmanuel Vadot        reg = <0x0f100000 0x300000>;
1075def4c47SEmmanuel Vadot        gpio-controller;
1085def4c47SEmmanuel Vadot        #gpio-cells = <2>;
1095def4c47SEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 108>;
1105def4c47SEmmanuel Vadot        interrupt-controller;
1115def4c47SEmmanuel Vadot        #interrupt-cells = <2>;
1125def4c47SEmmanuel Vadot        interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
1135def4c47SEmmanuel Vadot
1148bab661aSEmmanuel Vadot        serial-state {
1155def4c47SEmmanuel Vadot            pins = "gpio8", "gpio9";
1165def4c47SEmmanuel Vadot            function = "blsp_uart3";
1175def4c47SEmmanuel Vadot            drive-strength = <8>;
1185def4c47SEmmanuel Vadot            bias-disable;
1195def4c47SEmmanuel Vadot        };
1205def4c47SEmmanuel Vadot    };
1215def4c47SEmmanuel Vadot
1225def4c47SEmmanuel Vadot...
123