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 2312a18bb7SKrzysztof Kozlowski interrupts: 2412a18bb7SKrzysztof Kozlowski maxItems: 1 2512a18bb7SKrzysztof Kozlowski 26a4c54f83SKrzysztof Kozlowski gpio-reserved-ranges: 27a4c54f83SKrzysztof Kozlowski minItems: 1 28a4c54f83SKrzysztof Kozlowski maxItems: 35 29a4c54f83SKrzysztof Kozlowski 30a4c54f83SKrzysztof Kozlowski gpio-line-names: 31a4c54f83SKrzysztof Kozlowski maxItems: 70 32a4c54f83SKrzysztof Kozlowski 33a4c54f83SKrzysztof KozlowskipatternProperties: 34a4c54f83SKrzysztof Kozlowski "-state$": 35a4c54f83SKrzysztof Kozlowski oneOf: 36a4c54f83SKrzysztof Kozlowski - $ref: "#/$defs/qcom-ipq8074-tlmm-state" 37a4c54f83SKrzysztof Kozlowski - patternProperties: 38a4c54f83SKrzysztof Kozlowski "-pins$": 39a4c54f83SKrzysztof Kozlowski $ref: "#/$defs/qcom-ipq8074-tlmm-state" 40a4c54f83SKrzysztof Kozlowski additionalProperties: false 41a4c54f83SKrzysztof Kozlowski 42a4c54f83SKrzysztof Kozlowski$defs: 43a4c54f83SKrzysztof Kozlowski qcom-ipq8074-tlmm-state: 44a4c54f83SKrzysztof Kozlowski type: object 45a4c54f83SKrzysztof Kozlowski description: 46a4c54f83SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 47a4c54f83SKrzysztof Kozlowski Client device subnodes use below standard properties. 48a4c54f83SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 4942842d91SKrzysztof Kozlowski unevaluatedProperties: false 50a4c54f83SKrzysztof Kozlowski 51a4c54f83SKrzysztof Kozlowski properties: 52a4c54f83SKrzysztof Kozlowski pins: 53a4c54f83SKrzysztof Kozlowski description: 54a4c54f83SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 55a4c54f83SKrzysztof Kozlowski subnode. 56a4c54f83SKrzysztof Kozlowski items: 57a4c54f83SKrzysztof Kozlowski pattern: "^gpio([0-9]|[1-6][0-9]|70)$" 58a4c54f83SKrzysztof Kozlowski minItems: 1 59a4c54f83SKrzysztof Kozlowski maxItems: 36 60a4c54f83SKrzysztof Kozlowski 61a4c54f83SKrzysztof Kozlowski function: 62a4c54f83SKrzysztof Kozlowski description: 63a4c54f83SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 64a4c54f83SKrzysztof Kozlowski pins. 65a4c54f83SKrzysztof Kozlowski 66a4c54f83SKrzysztof Kozlowski enum: [ gpio, atest_char, atest_char0, atest_char1, atest_char2, 67a4c54f83SKrzysztof Kozlowski atest_char3, audio_rxbclk, audio_rxd, audio_rxfsync, 68a4c54f83SKrzysztof Kozlowski audio_rxmclk, audio_txbclk, audio_txd, audio_txfsync, 69a4c54f83SKrzysztof Kozlowski audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart, blsp1_i2c, 70a4c54f83SKrzysztof Kozlowski blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, blsp2_uart, 71a4c54f83SKrzysztof Kozlowski blsp3_i2c, blsp3_spi, blsp3_spi0, blsp3_spi1, blsp3_spi2, 72a4c54f83SKrzysztof Kozlowski blsp3_spi3, blsp3_uart, blsp4_i2c0, blsp4_i2c1, blsp4_spi0, 73a4c54f83SKrzysztof Kozlowski blsp4_spi1, blsp4_uart0, blsp4_uart1, blsp5_i2c, blsp5_spi, 74a4c54f83SKrzysztof Kozlowski blsp5_uart, burn0, burn1, cri_trng, cri_trng0, cri_trng1, cxc0, 75a4c54f83SKrzysztof Kozlowski cxc1, dbg_out, gcc_plltest, gcc_tlmm, ldo_en, ldo_update, led0, 76a4c54f83SKrzysztof Kozlowski led1, led2, mac0_sa0, mac0_sa1, mac1_sa0, mac1_sa1, mac1_sa2, 77a4c54f83SKrzysztof Kozlowski mac1_sa3, mac2_sa0, mac2_sa1, mdc, mdio, pcie0_clk, pcie0_rst, 78a4c54f83SKrzysztof Kozlowski pcie0_wake, pcie1_clk, pcie1_rst, pcie1_wake, pcm_drx, pcm_dtx, 79a4c54f83SKrzysztof Kozlowski pcm_fsync, pcm_pclk, pcm_zsi0, pcm_zsi1, prng_rosc, pta1_0, 80a4c54f83SKrzysztof Kozlowski pta1_1, pta1_2, pta2_0, pta2_1, pta2_2, pwm0, pwm1, pwm2, pwm3, 81a4c54f83SKrzysztof Kozlowski qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, 82a4c54f83SKrzysztof Kozlowski qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, 83a4c54f83SKrzysztof Kozlowski qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, 84a4c54f83SKrzysztof Kozlowski qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, 85a4c54f83SKrzysztof Kozlowski qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, 86a4c54f83SKrzysztof Kozlowski qdss_tracedata_b, qpic, rx0, rx1, rx2, sd_card, sd_write, 87a4c54f83SKrzysztof Kozlowski tsens_max, wci2a, wci2b, wci2c, wci2d ] 88a4c54f83SKrzysztof Kozlowski 89a4c54f83SKrzysztof Kozlowski required: 90a4c54f83SKrzysztof Kozlowski - pins 91a4c54f83SKrzysztof Kozlowski 92a4c54f83SKrzysztof KozlowskiallOf: 93a4c54f83SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 94a4c54f83SKrzysztof Kozlowski 95a4c54f83SKrzysztof Kozlowskirequired: 96a4c54f83SKrzysztof Kozlowski - compatible 97a4c54f83SKrzysztof Kozlowski - reg 98a4c54f83SKrzysztof Kozlowski 99*79d770afSKrzysztof KozlowskiunevaluatedProperties: false 100a4c54f83SKrzysztof Kozlowski 101a4c54f83SKrzysztof Kozlowskiexamples: 102a4c54f83SKrzysztof Kozlowski - | 103a4c54f83SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 104a4c54f83SKrzysztof Kozlowski 105a4c54f83SKrzysztof Kozlowski tlmm: pinctrl@1000000 { 106a4c54f83SKrzysztof Kozlowski compatible = "qcom,ipq8074-pinctrl"; 107a4c54f83SKrzysztof Kozlowski reg = <0x01000000 0x300000>; 108a4c54f83SKrzysztof Kozlowski gpio-controller; 109a4c54f83SKrzysztof Kozlowski #gpio-cells = <0x2>; 110a4c54f83SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 70>; 111a4c54f83SKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 112a4c54f83SKrzysztof Kozlowski interrupt-controller; 113a4c54f83SKrzysztof Kozlowski #interrupt-cells = <0x2>; 114a4c54f83SKrzysztof Kozlowski 115a4c54f83SKrzysztof Kozlowski serial4-state { 116a4c54f83SKrzysztof Kozlowski pins = "gpio23", "gpio24"; 117a4c54f83SKrzysztof Kozlowski function = "blsp4_uart1"; 118a4c54f83SKrzysztof Kozlowski drive-strength = <8>; 119a4c54f83SKrzysztof Kozlowski bias-disable; 120a4c54f83SKrzysztof Kozlowski }; 121a4c54f83SKrzysztof Kozlowski }; 122