xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,ipq8074-pinctrl.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28bab661aSEmmanuel Vadot%YAML 1.2
38bab661aSEmmanuel Vadot---
48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,ipq8074-pinctrl.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm IPQ8074 TLMM pin controller
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Bjorn Andersson <andersson@kernel.org>
118bab661aSEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
128bab661aSEmmanuel Vadot
138bab661aSEmmanuel Vadotdescription:
148bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm IPQ8074 SoC.
158bab661aSEmmanuel Vadot
168bab661aSEmmanuel Vadotproperties:
178bab661aSEmmanuel Vadot  compatible:
188bab661aSEmmanuel Vadot    const: qcom,ipq8074-pinctrl
198bab661aSEmmanuel Vadot
208bab661aSEmmanuel Vadot  reg:
218bab661aSEmmanuel Vadot    maxItems: 1
228bab661aSEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  interrupts:
24cb7aa33aSEmmanuel Vadot    maxItems: 1
25cb7aa33aSEmmanuel Vadot
268bab661aSEmmanuel Vadot  interrupt-controller: true
278bab661aSEmmanuel Vadot  "#interrupt-cells": true
288bab661aSEmmanuel Vadot  gpio-controller: true
298bab661aSEmmanuel Vadot  "#gpio-cells": true
308bab661aSEmmanuel Vadot  gpio-ranges: true
318bab661aSEmmanuel Vadot  wakeup-parent: true
328bab661aSEmmanuel Vadot
338bab661aSEmmanuel Vadot  gpio-reserved-ranges:
348bab661aSEmmanuel Vadot    minItems: 1
358bab661aSEmmanuel Vadot    maxItems: 35
368bab661aSEmmanuel Vadot
378bab661aSEmmanuel Vadot  gpio-line-names:
388bab661aSEmmanuel Vadot    maxItems: 70
398bab661aSEmmanuel Vadot
408bab661aSEmmanuel VadotpatternProperties:
418bab661aSEmmanuel Vadot  "-state$":
428bab661aSEmmanuel Vadot    oneOf:
438bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-ipq8074-tlmm-state"
448bab661aSEmmanuel Vadot      - patternProperties:
458bab661aSEmmanuel Vadot          "-pins$":
468bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-ipq8074-tlmm-state"
478bab661aSEmmanuel Vadot        additionalProperties: false
488bab661aSEmmanuel Vadot
498bab661aSEmmanuel Vadot$defs:
508bab661aSEmmanuel Vadot  qcom-ipq8074-tlmm-state:
518bab661aSEmmanuel Vadot    type: object
528bab661aSEmmanuel Vadot    description:
538bab661aSEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
548bab661aSEmmanuel Vadot      Client device subnodes use below standard properties.
558bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
56*fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
578bab661aSEmmanuel Vadot
588bab661aSEmmanuel Vadot    properties:
598bab661aSEmmanuel Vadot      pins:
608bab661aSEmmanuel Vadot        description:
618bab661aSEmmanuel Vadot          List of gpio pins affected by the properties specified in this
628bab661aSEmmanuel Vadot          subnode.
638bab661aSEmmanuel Vadot        items:
648bab661aSEmmanuel Vadot          pattern: "^gpio([0-9]|[1-6][0-9]|70)$"
658bab661aSEmmanuel Vadot        minItems: 1
668bab661aSEmmanuel Vadot        maxItems: 36
678bab661aSEmmanuel Vadot
688bab661aSEmmanuel Vadot      function:
698bab661aSEmmanuel Vadot        description:
708bab661aSEmmanuel Vadot          Specify the alternative function to be configured for the specified
718bab661aSEmmanuel Vadot          pins.
728bab661aSEmmanuel Vadot
738bab661aSEmmanuel Vadot        enum: [ gpio, atest_char, atest_char0, atest_char1, atest_char2,
748bab661aSEmmanuel Vadot                atest_char3, audio_rxbclk, audio_rxd, audio_rxfsync,
758bab661aSEmmanuel Vadot                audio_rxmclk, audio_txbclk, audio_txd, audio_txfsync,
768bab661aSEmmanuel Vadot                audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart, blsp1_i2c,
778bab661aSEmmanuel Vadot                blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, blsp2_uart,
788bab661aSEmmanuel Vadot                blsp3_i2c, blsp3_spi, blsp3_spi0, blsp3_spi1, blsp3_spi2,
798bab661aSEmmanuel Vadot                blsp3_spi3, blsp3_uart, blsp4_i2c0, blsp4_i2c1, blsp4_spi0,
808bab661aSEmmanuel Vadot                blsp4_spi1, blsp4_uart0, blsp4_uart1, blsp5_i2c, blsp5_spi,
818bab661aSEmmanuel Vadot                blsp5_uart, burn0, burn1, cri_trng, cri_trng0, cri_trng1, cxc0,
828bab661aSEmmanuel Vadot                cxc1, dbg_out, gcc_plltest, gcc_tlmm, ldo_en, ldo_update, led0,
838bab661aSEmmanuel Vadot                led1, led2, mac0_sa0, mac0_sa1, mac1_sa0, mac1_sa1, mac1_sa2,
848bab661aSEmmanuel Vadot                mac1_sa3, mac2_sa0, mac2_sa1, mdc, mdio, pcie0_clk, pcie0_rst,
858bab661aSEmmanuel Vadot                pcie0_wake, pcie1_clk, pcie1_rst, pcie1_wake, pcm_drx, pcm_dtx,
868bab661aSEmmanuel Vadot                pcm_fsync, pcm_pclk, pcm_zsi0, pcm_zsi1, prng_rosc, pta1_0,
878bab661aSEmmanuel Vadot                pta1_1, pta1_2, pta2_0, pta2_1, pta2_2, pwm0, pwm1, pwm2, pwm3,
888bab661aSEmmanuel Vadot                qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0,
898bab661aSEmmanuel Vadot                qdss_cti_trig_in_b1, qdss_cti_trig_out_a0,
908bab661aSEmmanuel Vadot                qdss_cti_trig_out_a1, qdss_cti_trig_out_b0,
918bab661aSEmmanuel Vadot                qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b,
928bab661aSEmmanuel Vadot                qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a,
938bab661aSEmmanuel Vadot                qdss_tracedata_b, qpic, rx0, rx1, rx2, sd_card, sd_write,
948bab661aSEmmanuel Vadot                tsens_max, wci2a, wci2b, wci2c, wci2d ]
958bab661aSEmmanuel Vadot
968bab661aSEmmanuel Vadot    required:
978bab661aSEmmanuel Vadot      - pins
988bab661aSEmmanuel Vadot
998bab661aSEmmanuel VadotallOf:
1008bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
1018bab661aSEmmanuel Vadot
1028bab661aSEmmanuel Vadotrequired:
1038bab661aSEmmanuel Vadot  - compatible
1048bab661aSEmmanuel Vadot  - reg
1058bab661aSEmmanuel Vadot
1068bab661aSEmmanuel VadotadditionalProperties: false
1078bab661aSEmmanuel Vadot
1088bab661aSEmmanuel Vadotexamples:
1098bab661aSEmmanuel Vadot  - |
1108bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1118bab661aSEmmanuel Vadot
1128bab661aSEmmanuel Vadot    tlmm: pinctrl@1000000 {
1138bab661aSEmmanuel Vadot        compatible = "qcom,ipq8074-pinctrl";
1148bab661aSEmmanuel Vadot        reg = <0x01000000 0x300000>;
1158bab661aSEmmanuel Vadot        gpio-controller;
1168bab661aSEmmanuel Vadot        #gpio-cells = <0x2>;
1178bab661aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 70>;
1188bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1198bab661aSEmmanuel Vadot        interrupt-controller;
1208bab661aSEmmanuel Vadot        #interrupt-cells = <0x2>;
1218bab661aSEmmanuel Vadot
1228bab661aSEmmanuel Vadot        serial4-state {
1238bab661aSEmmanuel Vadot            pins = "gpio23", "gpio24";
1248bab661aSEmmanuel Vadot            function = "blsp4_uart1";
1258bab661aSEmmanuel Vadot            drive-strength = <8>;
1268bab661aSEmmanuel Vadot            bias-disable;
1278bab661aSEmmanuel Vadot        };
1288bab661aSEmmanuel Vadot    };
129