1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8bab661aSEmmanuel Vadot%YAML 1.2 3*8bab661aSEmmanuel Vadot--- 4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,ipq8074-pinctrl.yaml# 5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8bab661aSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Qualcomm IPQ8074 TLMM pin controller 8*8bab661aSEmmanuel Vadot 9*8bab661aSEmmanuel Vadotmaintainers: 10*8bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 11*8bab661aSEmmanuel Vadot - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 12*8bab661aSEmmanuel Vadot 13*8bab661aSEmmanuel Vadotdescription: 14*8bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm IPQ8074 SoC. 15*8bab661aSEmmanuel Vadot 16*8bab661aSEmmanuel Vadotproperties: 17*8bab661aSEmmanuel Vadot compatible: 18*8bab661aSEmmanuel Vadot const: qcom,ipq8074-pinctrl 19*8bab661aSEmmanuel Vadot 20*8bab661aSEmmanuel Vadot reg: 21*8bab661aSEmmanuel Vadot maxItems: 1 22*8bab661aSEmmanuel Vadot 23*8bab661aSEmmanuel Vadot interrupts: true 24*8bab661aSEmmanuel Vadot interrupt-controller: true 25*8bab661aSEmmanuel Vadot "#interrupt-cells": true 26*8bab661aSEmmanuel Vadot gpio-controller: true 27*8bab661aSEmmanuel Vadot "#gpio-cells": true 28*8bab661aSEmmanuel Vadot gpio-ranges: true 29*8bab661aSEmmanuel Vadot wakeup-parent: true 30*8bab661aSEmmanuel Vadot 31*8bab661aSEmmanuel Vadot gpio-reserved-ranges: 32*8bab661aSEmmanuel Vadot minItems: 1 33*8bab661aSEmmanuel Vadot maxItems: 35 34*8bab661aSEmmanuel Vadot 35*8bab661aSEmmanuel Vadot gpio-line-names: 36*8bab661aSEmmanuel Vadot maxItems: 70 37*8bab661aSEmmanuel Vadot 38*8bab661aSEmmanuel VadotpatternProperties: 39*8bab661aSEmmanuel Vadot "-state$": 40*8bab661aSEmmanuel Vadot oneOf: 41*8bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-ipq8074-tlmm-state" 42*8bab661aSEmmanuel Vadot - patternProperties: 43*8bab661aSEmmanuel Vadot "-pins$": 44*8bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-ipq8074-tlmm-state" 45*8bab661aSEmmanuel Vadot additionalProperties: false 46*8bab661aSEmmanuel Vadot 47*8bab661aSEmmanuel Vadot$defs: 48*8bab661aSEmmanuel Vadot qcom-ipq8074-tlmm-state: 49*8bab661aSEmmanuel Vadot type: object 50*8bab661aSEmmanuel Vadot description: 51*8bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 52*8bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 53*8bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 54*8bab661aSEmmanuel Vadot 55*8bab661aSEmmanuel Vadot properties: 56*8bab661aSEmmanuel Vadot pins: 57*8bab661aSEmmanuel Vadot description: 58*8bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 59*8bab661aSEmmanuel Vadot subnode. 60*8bab661aSEmmanuel Vadot items: 61*8bab661aSEmmanuel Vadot pattern: "^gpio([0-9]|[1-6][0-9]|70)$" 62*8bab661aSEmmanuel Vadot minItems: 1 63*8bab661aSEmmanuel Vadot maxItems: 36 64*8bab661aSEmmanuel Vadot 65*8bab661aSEmmanuel Vadot function: 66*8bab661aSEmmanuel Vadot description: 67*8bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 68*8bab661aSEmmanuel Vadot pins. 69*8bab661aSEmmanuel Vadot 70*8bab661aSEmmanuel Vadot enum: [ gpio, atest_char, atest_char0, atest_char1, atest_char2, 71*8bab661aSEmmanuel Vadot atest_char3, audio_rxbclk, audio_rxd, audio_rxfsync, 72*8bab661aSEmmanuel Vadot audio_rxmclk, audio_txbclk, audio_txd, audio_txfsync, 73*8bab661aSEmmanuel Vadot audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart, blsp1_i2c, 74*8bab661aSEmmanuel Vadot blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, blsp2_uart, 75*8bab661aSEmmanuel Vadot blsp3_i2c, blsp3_spi, blsp3_spi0, blsp3_spi1, blsp3_spi2, 76*8bab661aSEmmanuel Vadot blsp3_spi3, blsp3_uart, blsp4_i2c0, blsp4_i2c1, blsp4_spi0, 77*8bab661aSEmmanuel Vadot blsp4_spi1, blsp4_uart0, blsp4_uart1, blsp5_i2c, blsp5_spi, 78*8bab661aSEmmanuel Vadot blsp5_uart, burn0, burn1, cri_trng, cri_trng0, cri_trng1, cxc0, 79*8bab661aSEmmanuel Vadot cxc1, dbg_out, gcc_plltest, gcc_tlmm, ldo_en, ldo_update, led0, 80*8bab661aSEmmanuel Vadot led1, led2, mac0_sa0, mac0_sa1, mac1_sa0, mac1_sa1, mac1_sa2, 81*8bab661aSEmmanuel Vadot mac1_sa3, mac2_sa0, mac2_sa1, mdc, mdio, pcie0_clk, pcie0_rst, 82*8bab661aSEmmanuel Vadot pcie0_wake, pcie1_clk, pcie1_rst, pcie1_wake, pcm_drx, pcm_dtx, 83*8bab661aSEmmanuel Vadot pcm_fsync, pcm_pclk, pcm_zsi0, pcm_zsi1, prng_rosc, pta1_0, 84*8bab661aSEmmanuel Vadot pta1_1, pta1_2, pta2_0, pta2_1, pta2_2, pwm0, pwm1, pwm2, pwm3, 85*8bab661aSEmmanuel Vadot qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, 86*8bab661aSEmmanuel Vadot qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, 87*8bab661aSEmmanuel Vadot qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, 88*8bab661aSEmmanuel Vadot qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, 89*8bab661aSEmmanuel Vadot qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, 90*8bab661aSEmmanuel Vadot qdss_tracedata_b, qpic, rx0, rx1, rx2, sd_card, sd_write, 91*8bab661aSEmmanuel Vadot tsens_max, wci2a, wci2b, wci2c, wci2d ] 92*8bab661aSEmmanuel Vadot 93*8bab661aSEmmanuel Vadot bias-pull-down: true 94*8bab661aSEmmanuel Vadot bias-pull-up: true 95*8bab661aSEmmanuel Vadot bias-disable: true 96*8bab661aSEmmanuel Vadot drive-strength: true 97*8bab661aSEmmanuel Vadot input-enable: true 98*8bab661aSEmmanuel Vadot output-high: true 99*8bab661aSEmmanuel Vadot output-low: true 100*8bab661aSEmmanuel Vadot 101*8bab661aSEmmanuel Vadot required: 102*8bab661aSEmmanuel Vadot - pins 103*8bab661aSEmmanuel Vadot 104*8bab661aSEmmanuel Vadot additionalProperties: false 105*8bab661aSEmmanuel Vadot 106*8bab661aSEmmanuel VadotallOf: 107*8bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 108*8bab661aSEmmanuel Vadot 109*8bab661aSEmmanuel Vadotrequired: 110*8bab661aSEmmanuel Vadot - compatible 111*8bab661aSEmmanuel Vadot - reg 112*8bab661aSEmmanuel Vadot 113*8bab661aSEmmanuel VadotadditionalProperties: false 114*8bab661aSEmmanuel Vadot 115*8bab661aSEmmanuel Vadotexamples: 116*8bab661aSEmmanuel Vadot - | 117*8bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 118*8bab661aSEmmanuel Vadot 119*8bab661aSEmmanuel Vadot tlmm: pinctrl@1000000 { 120*8bab661aSEmmanuel Vadot compatible = "qcom,ipq8074-pinctrl"; 121*8bab661aSEmmanuel Vadot reg = <0x01000000 0x300000>; 122*8bab661aSEmmanuel Vadot gpio-controller; 123*8bab661aSEmmanuel Vadot #gpio-cells = <0x2>; 124*8bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 70>; 125*8bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 126*8bab661aSEmmanuel Vadot interrupt-controller; 127*8bab661aSEmmanuel Vadot #interrupt-cells = <0x2>; 128*8bab661aSEmmanuel Vadot 129*8bab661aSEmmanuel Vadot serial4-state { 130*8bab661aSEmmanuel Vadot pins = "gpio23", "gpio24"; 131*8bab661aSEmmanuel Vadot function = "blsp4_uart1"; 132*8bab661aSEmmanuel Vadot drive-strength = <8>; 133*8bab661aSEmmanuel Vadot bias-disable; 134*8bab661aSEmmanuel Vadot }; 135*8bab661aSEmmanuel Vadot }; 136