1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/qco 4 $id: http://devicetree.org/schemas/pinctrl/qcom,ipq4019-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Qualcomm Technologies, Inc. IPQ4019 TLM 7 title: Qualcomm Technologies, Inc. IPQ4019 TLMM block 8 8 9 maintainers: 9 maintainers: 10 - Bjorn Andersson <bjorn.andersson@linaro.org 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 11 12 description: | 12 description: | 13 Top Level Mode Multiplexer pin controller in 13 Top Level Mode Multiplexer pin controller in Qualcomm IPQ4019 SoC. 14 14 15 allOf: 15 allOf: 16 - $ref: /schemas/pinctrl/qcom,tlmm-common.ya 16 - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17 17 18 properties: 18 properties: 19 compatible: 19 compatible: 20 const: qcom,ipq4019-pinctrl 20 const: qcom,ipq4019-pinctrl 21 21 22 reg: 22 reg: 23 maxItems: 1 23 maxItems: 1 24 24 25 interrupts: 25 interrupts: 26 maxItems: 1 26 maxItems: 1 27 27 28 gpio-reserved-ranges: true 28 gpio-reserved-ranges: true 29 29 30 patternProperties: 30 patternProperties: 31 "-state$": 31 "-state$": 32 oneOf: 32 oneOf: 33 - $ref: "#/$defs/qcom-ipq4019-tlmm-state 33 - $ref: "#/$defs/qcom-ipq4019-tlmm-state" 34 - patternProperties: 34 - patternProperties: 35 "-pins$": 35 "-pins$": 36 $ref: "#/$defs/qcom-ipq4019-tlmm-s 36 $ref: "#/$defs/qcom-ipq4019-tlmm-state" 37 additionalProperties: false 37 additionalProperties: false 38 38 39 "-hog(-[0-9]+)?$": 39 "-hog(-[0-9]+)?$": 40 type: object 40 type: object 41 required: 41 required: 42 - gpio-hog 42 - gpio-hog 43 43 44 $defs: 44 $defs: 45 qcom-ipq4019-tlmm-state: 45 qcom-ipq4019-tlmm-state: 46 type: object 46 type: object 47 description: 47 description: 48 Pinctrl node's client devices use subnod 48 Pinctrl node's client devices use subnodes for desired pin configuration. 49 Client device subnodes use below standar 49 Client device subnodes use below standard properties. 50 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tl 50 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51 unevaluatedProperties: false 51 unevaluatedProperties: false 52 52 53 properties: 53 properties: 54 pins: 54 pins: 55 description: 55 description: 56 List of gpio pins affected by the pr 56 List of gpio pins affected by the properties specified in this 57 subnode. 57 subnode. 58 items: 58 items: 59 pattern: "^gpio([0-9]|[1-9][0-9])$" 59 pattern: "^gpio([0-9]|[1-9][0-9])$" 60 minItems: 1 60 minItems: 1 61 maxItems: 36 61 maxItems: 36 62 62 63 function: 63 function: 64 description: 64 description: 65 Specify the alternative function to 65 Specify the alternative function to be configured for the specified 66 pins. 66 pins. 67 enum: [ aud_pin, audio_pwm, blsp_i2c0, 67 enum: [ aud_pin, audio_pwm, blsp_i2c0, blsp_i2c1, blsp_spi0, 68 blsp_spi1, blsp_uart0, blsp_ua 68 blsp_spi1, blsp_uart0, blsp_uart1, chip_rst, gpio, 69 i2s_rx, i2s_spdif_in, i2s_spdi 69 i2s_rx, i2s_spdif_in, i2s_spdif_out, i2s_td, i2s_tx, 70 jtag, led0, led1, led2, led3, 70 jtag, led0, led1, led2, led3, led4, led5, led6, led7, 71 led8, led9, led10, led11, mdc, 71 led8, led9, led10, led11, mdc, mdio, pcie, pmu, 72 prng_rosc, qpic, rgmii, rmii, 72 prng_rosc, qpic, rgmii, rmii, sdio, smart0, smart1, 73 smart2, smart3, tm, wifi0, wif 73 smart2, smart3, tm, wifi0, wifi1 ] 74 74 75 required: 75 required: 76 - pins 76 - pins 77 77 78 required: 78 required: 79 - compatible 79 - compatible 80 - reg 80 - reg 81 81 82 unevaluatedProperties: false 82 unevaluatedProperties: false 83 83 84 examples: 84 examples: 85 - | 85 - | 86 #include <dt-bindings/interrupt-controller 86 #include <dt-bindings/interrupt-controller/arm-gic.h> 87 tlmm: pinctrl@1000000 { 87 tlmm: pinctrl@1000000 { 88 compatible = "qcom,ipq4019-pinctrl"; 88 compatible = "qcom,ipq4019-pinctrl"; 89 reg = <0x01000000 0x300000>; 89 reg = <0x01000000 0x300000>; 90 90 91 gpio-controller; 91 gpio-controller; 92 #gpio-cells = <2>; 92 #gpio-cells = <2>; 93 gpio-ranges = <&tlmm 0 0 100>; 93 gpio-ranges = <&tlmm 0 0 100>; 94 interrupt-controller; 94 interrupt-controller; 95 #interrupt-cells = <2>; 95 #interrupt-cells = <2>; 96 interrupts = <GIC_SPI 208 IRQ_TYPE_LEV 96 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 97 97 98 uart-state { 98 uart-state { 99 pins = "gpio16", "gpio17"; 99 pins = "gpio16", "gpio17"; 100 function = "blsp_uart0"; 100 function = "blsp_uart0"; 101 bias-disable; 101 bias-disable; 102 }; 102 }; 103 }; 103 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.