15f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25f62a964SEmmanuel Vadot%YAML 1.2 35f62a964SEmmanuel Vadot--- 45f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5424-tlmm.yaml# 55f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65f62a964SEmmanuel Vadot 75f62a964SEmmanuel Vadottitle: Qualcomm IPQ5424 TLMM pin controller 85f62a964SEmmanuel Vadot 95f62a964SEmmanuel Vadotmaintainers: 105f62a964SEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 115f62a964SEmmanuel Vadot 125f62a964SEmmanuel Vadotdescription: 135f62a964SEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm IPQ5424 SoC. 145f62a964SEmmanuel Vadot 155f62a964SEmmanuel VadotallOf: 165f62a964SEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 175f62a964SEmmanuel Vadot 185f62a964SEmmanuel Vadotproperties: 195f62a964SEmmanuel Vadot compatible: 205f62a964SEmmanuel Vadot const: qcom,ipq5424-tlmm 215f62a964SEmmanuel Vadot 225f62a964SEmmanuel Vadot reg: 235f62a964SEmmanuel Vadot maxItems: 1 245f62a964SEmmanuel Vadot 255f62a964SEmmanuel Vadot interrupts: 265f62a964SEmmanuel Vadot maxItems: 1 275f62a964SEmmanuel Vadot 285f62a964SEmmanuel Vadot gpio-reserved-ranges: 295f62a964SEmmanuel Vadot minItems: 1 305f62a964SEmmanuel Vadot maxItems: 25 315f62a964SEmmanuel Vadot 325f62a964SEmmanuel Vadot gpio-line-names: 335f62a964SEmmanuel Vadot maxItems: 50 345f62a964SEmmanuel Vadot 355f62a964SEmmanuel VadotpatternProperties: 365f62a964SEmmanuel Vadot "-state$": 375f62a964SEmmanuel Vadot oneOf: 385f62a964SEmmanuel Vadot - $ref: "#/$defs/qcom-ipq5424-tlmm-state" 395f62a964SEmmanuel Vadot - patternProperties: 405f62a964SEmmanuel Vadot "-pins$": 415f62a964SEmmanuel Vadot $ref: "#/$defs/qcom-ipq5424-tlmm-state" 425f62a964SEmmanuel Vadot additionalProperties: false 435f62a964SEmmanuel Vadot 445f62a964SEmmanuel Vadot$defs: 455f62a964SEmmanuel Vadot qcom-ipq5424-tlmm-state: 465f62a964SEmmanuel Vadot type: object 475f62a964SEmmanuel Vadot description: 485f62a964SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 495f62a964SEmmanuel Vadot Client device subnodes use below standard properties. 505f62a964SEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 515f62a964SEmmanuel Vadot unevaluatedProperties: false 525f62a964SEmmanuel Vadot 535f62a964SEmmanuel Vadot properties: 545f62a964SEmmanuel Vadot pins: 555f62a964SEmmanuel Vadot description: 565f62a964SEmmanuel Vadot List of gpio pins affected by the properties specified in this 575f62a964SEmmanuel Vadot subnode. 585f62a964SEmmanuel Vadot items: 595f62a964SEmmanuel Vadot pattern: "^gpio([0-9]|[1-4][0-9])$" 605f62a964SEmmanuel Vadot minItems: 1 615f62a964SEmmanuel Vadot maxItems: 50 625f62a964SEmmanuel Vadot 635f62a964SEmmanuel Vadot function: 645f62a964SEmmanuel Vadot description: 655f62a964SEmmanuel Vadot Specify the alternative function to be configured for the specified 665f62a964SEmmanuel Vadot pins. 675f62a964SEmmanuel Vadot 685f62a964SEmmanuel Vadot enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, 695f62a964SEmmanuel Vadot atest_tic, audio_pri, audio_pri0, audio_pri1, audio_sec, 705f62a964SEmmanuel Vadot audio_sec0, audio_sec1, core_voltage, cri_trng0, cri_trng1, 715f62a964SEmmanuel Vadot cri_trng2, cri_trng3, cxc_clk, cxc_data, dbg_out, gcc_plltest, 725f62a964SEmmanuel Vadot gcc_tlmm, gpio, i2c0_scl, i2c0_sda, i2c1_scl, i2c1_sda, i2c11, 735f62a964SEmmanuel Vadot mac0, mac1, mdc_mst, mdc_slv, mdio_mst, mdio_slv, pcie0_clk, 745f62a964SEmmanuel Vadot pcie0_wake, pcie1_clk, pcie1_wake, pcie2_clk, pcie2_wake, 755f62a964SEmmanuel Vadot pcie3_clk, pcie3_wake, pll_test, prng_rosc0, prng_rosc1, 765f62a964SEmmanuel Vadot prng_rosc2, prng_rosc3, PTA0_0, PTA0_1, PTA0_2, PTA10, PTA11, 775f62a964SEmmanuel Vadot pwm0, pwm1, pwm2, qdss_cti_trig_in_a0, qdss_cti_trig_out_a0, 785f62a964SEmmanuel Vadot qdss_cti_trig_in_a1, qdss_cti_trig_out_a1, qdss_cti_trig_in_b0, 795f62a964SEmmanuel Vadot qdss_cti_trig_out_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_b1, 805f62a964SEmmanuel Vadot qdss_traceclk_a, qdss_tracectl_a, qdss_tracedata_a, qspi_clk, 815f62a964SEmmanuel Vadot qspi_cs, qspi_data, resout, rx0, rx1, rx2, sdc_clk, sdc_cmd, 82*2846c905SEmmanuel Vadot sdc_data, spi0_cs, spi0_clk, spi0_miso, spi0_mosi, spi1, spi10, 83*2846c905SEmmanuel Vadot spi11, tsens_max, uart0, uart1, wci_txd, wci_rxd, wsi_clk, wsi_data ] 845f62a964SEmmanuel Vadot 855f62a964SEmmanuel Vadot required: 865f62a964SEmmanuel Vadot - pins 875f62a964SEmmanuel Vadot 885f62a964SEmmanuel Vadotrequired: 895f62a964SEmmanuel Vadot - compatible 905f62a964SEmmanuel Vadot - reg 915f62a964SEmmanuel Vadot 925f62a964SEmmanuel VadotunevaluatedProperties: false 935f62a964SEmmanuel Vadot 945f62a964SEmmanuel Vadotexamples: 955f62a964SEmmanuel Vadot - | 965f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 975f62a964SEmmanuel Vadot 985f62a964SEmmanuel Vadot tlmm: pinctrl@1000000 { 995f62a964SEmmanuel Vadot compatible = "qcom,ipq5424-tlmm"; 1005f62a964SEmmanuel Vadot reg = <0x01000000 0x300000>; 1015f62a964SEmmanuel Vadot gpio-controller; 1025f62a964SEmmanuel Vadot #gpio-cells = <0x2>; 1035f62a964SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 50>; 1045f62a964SEmmanuel Vadot interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; 1055f62a964SEmmanuel Vadot interrupt-controller; 1065f62a964SEmmanuel Vadot #interrupt-cells = <0x2>; 1075f62a964SEmmanuel Vadot 1085f62a964SEmmanuel Vadot uart1_pins: uart1-state { 1095f62a964SEmmanuel Vadot pins = "gpio43", "gpio44"; 1105f62a964SEmmanuel Vadot function = "uart1"; 1115f62a964SEmmanuel Vadot drive-strength = <8>; 1125f62a964SEmmanuel Vadot bias-pull-up; 1135f62a964SEmmanuel Vadot }; 1145f62a964SEmmanuel Vadot }; 115