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