xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
16bdafceaSBjorn Andersson# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26bdafceaSBjorn Andersson%YAML 1.2
36bdafceaSBjorn Andersson---
46bdafceaSBjorn Andersson$id: http://devicetree.org/schemas/pinctrl/qcom,tlmm-common.yaml#
56bdafceaSBjorn Andersson$schema: http://devicetree.org/meta-schemas/core.yaml#
66bdafceaSBjorn Andersson
76bdafceaSBjorn Anderssontitle: Qualcomm Technologies, Inc. Top Level Mode Multiplexer (TLMM) definitions
86bdafceaSBjorn Andersson
96bdafceaSBjorn Anderssonmaintainers:
106bdafceaSBjorn Andersson  - Bjorn Andersson <bjorn.andersson@linaro.org>
116bdafceaSBjorn Andersson
126bdafceaSBjorn Anderssondescription:
136bdafceaSBjorn Andersson  This defines the common properties used to describe all Qualcomm Top Level
146bdafceaSBjorn Andersson  Mode Multiplexer bindings and pinconf/pinmux states for these.
156bdafceaSBjorn Andersson
166bdafceaSBjorn Anderssonproperties:
176bdafceaSBjorn Andersson  interrupts:
186bdafceaSBjorn Andersson    description:
1912a18bb7SKrzysztof Kozlowski      TLMM summary IRQ and dirconn interrupts.
2012a18bb7SKrzysztof Kozlowski    minItems: 1
2112a18bb7SKrzysztof Kozlowski    maxItems: 9
226bdafceaSBjorn Andersson
236bdafceaSBjorn Andersson  interrupt-controller: true
246bdafceaSBjorn Andersson
256bdafceaSBjorn Andersson  '#interrupt-cells':
266bdafceaSBjorn Andersson    description:
276bdafceaSBjorn Andersson      Specifies the PIN numbers and Flags, as defined in defined in
286bdafceaSBjorn Andersson      include/dt-bindings/interrupt-controller/irq.h
296bdafceaSBjorn Andersson    const: 2
306bdafceaSBjorn Andersson
316bdafceaSBjorn Andersson  gpio-controller: true
326bdafceaSBjorn Andersson
336bdafceaSBjorn Andersson  '#gpio-cells':
346bdafceaSBjorn Andersson    description:
356bdafceaSBjorn Andersson      Specifying the pin number and flags, as defined in
366bdafceaSBjorn Andersson      include/dt-bindings/gpio/gpio.h
376bdafceaSBjorn Andersson    const: 2
386bdafceaSBjorn Andersson
396bdafceaSBjorn Andersson  gpio-ranges:
406bdafceaSBjorn Andersson    maxItems: 1
416bdafceaSBjorn Andersson
426bdafceaSBjorn Andersson  wakeup-parent:
436bdafceaSBjorn Andersson    description:
446bdafceaSBjorn Andersson      Specifying the interrupt-controller used to wake up the system when the
456bdafceaSBjorn Andersson      TLMM block has been powered down.
466bdafceaSBjorn Andersson
476bdafceaSBjorn Andersson  gpio-reserved-ranges:
486bdafceaSBjorn Andersson    description:
496bdafceaSBjorn Andersson      Pins can be reserved for trusted applications and thereby unaccessible
506bdafceaSBjorn Andersson      from the OS.  This property can be used to mark the pins which resources
516bdafceaSBjorn Andersson      should not be accessed by the OS. Please see the ../gpio/gpio.txt for more
526bdafceaSBjorn Andersson      information.
536bdafceaSBjorn Andersson
54c09acbc4SRafał MiłeckiallOf:
55*49cd1dd1SRob Herring  - $ref: pinctrl.yaml#
56c09acbc4SRafał Miłecki
576bdafceaSBjorn Anderssonrequired:
586bdafceaSBjorn Andersson  - interrupts
596bdafceaSBjorn Andersson  - interrupt-controller
606bdafceaSBjorn Andersson  - '#interrupt-cells'
616bdafceaSBjorn Andersson  - gpio-controller
626bdafceaSBjorn Andersson  - '#gpio-cells'
636bdafceaSBjorn Andersson  - gpio-ranges
646bdafceaSBjorn Andersson
656bdafceaSBjorn AnderssonadditionalProperties: true
666bdafceaSBjorn Andersson
676bdafceaSBjorn Andersson$defs:
686bdafceaSBjorn Andersson  qcom-tlmm-state:
696bdafceaSBjorn Andersson    properties:
706bdafceaSBjorn Andersson      drive-strength:
716bdafceaSBjorn Andersson        enum: [2, 4, 6, 8, 10, 12, 14, 16]
726bdafceaSBjorn Andersson        description:
736bdafceaSBjorn Andersson          Selects the drive strength for the specified pins, in mA.
746bdafceaSBjorn Andersson
756bdafceaSBjorn Andersson      bias-pull-down: true
766bdafceaSBjorn Andersson      bias-pull-up: true
776bdafceaSBjorn Andersson      bias-disable: true
78c4a48b0dSDouglas Anderson      input-enable: false
79c4a48b0dSDouglas Anderson      output-disable: true
80988a9eabSDouglas Anderson      output-enable: true
816bdafceaSBjorn Andersson      output-high: true
826bdafceaSBjorn Andersson      output-low: true
836bdafceaSBjorn Andersson
841b88672eSKrzysztof Kozlowski    allOf:
851b88672eSKrzysztof Kozlowski      - $ref: pincfg-node.yaml#
861b88672eSKrzysztof Kozlowski      - $ref: pinmux-node.yaml#
871b88672eSKrzysztof Kozlowski
881b88672eSKrzysztof Kozlowski      - if:
891b88672eSKrzysztof Kozlowski          properties:
901b88672eSKrzysztof Kozlowski            pins:
911b88672eSKrzysztof Kozlowski              items:
921b88672eSKrzysztof Kozlowski                pattern: "^gpio"
931b88672eSKrzysztof Kozlowski        then:
941b88672eSKrzysztof Kozlowski          required:
951b88672eSKrzysztof Kozlowski            - function
961b88672eSKrzysztof Kozlowski        else:
971b88672eSKrzysztof Kozlowski          properties:
981b88672eSKrzysztof Kozlowski            function: false
991b88672eSKrzysztof Kozlowski
1006bdafceaSBjorn Andersson    additionalProperties: true
1016bdafceaSBjorn Andersson...
102