1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pinctrl/qcom,tlmm-common.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Technologies, Inc. Top Level Mode Multiplexer (TLMM) definitions
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description:
13  This defines the common properties used to describe all Qualcomm Top Level
14  Mode Multiplexer bindings and pinconf/pinmux states for these.
15
16properties:
17  interrupts:
18    description:
19      Specifies the TLMM summary IRQ
20    maxItems: 1
21
22  interrupt-controller: true
23
24  '#interrupt-cells':
25    description:
26      Specifies the PIN numbers and Flags, as defined in defined in
27      include/dt-bindings/interrupt-controller/irq.h
28    const: 2
29
30  gpio-controller: true
31
32  '#gpio-cells':
33    description:
34      Specifying the pin number and flags, as defined in
35      include/dt-bindings/gpio/gpio.h
36    const: 2
37
38  gpio-ranges:
39    maxItems: 1
40
41  wakeup-parent:
42    description:
43      Specifying the interrupt-controller used to wake up the system when the
44      TLMM block has been powered down.
45
46  gpio-reserved-ranges:
47    description:
48      Pins can be reserved for trusted applications and thereby unaccessible
49      from the OS.  This property can be used to mark the pins which resources
50      should not be accessed by the OS. Please see the ../gpio/gpio.txt for more
51      information.
52
53allOf:
54  - $ref: "pinctrl.yaml#"
55
56required:
57  - interrupts
58  - interrupt-controller
59  - '#interrupt-cells'
60  - gpio-controller
61  - '#gpio-cells'
62  - gpio-ranges
63
64additionalProperties: true
65
66$defs:
67  qcom-tlmm-state:
68    properties:
69      drive-strength:
70        enum: [2, 4, 6, 8, 10, 12, 14, 16]
71        description:
72          Selects the drive strength for the specified pins, in mA.
73
74      bias-pull-down: true
75      bias-pull-up: true
76      bias-disable: true
77      input-enable: true
78      output-high: true
79      output-low: true
80
81    allOf:
82      - $ref: pincfg-node.yaml#
83      - $ref: pinmux-node.yaml#
84
85      - if:
86          properties:
87            pins:
88              items:
89                pattern: "^gpio"
90        then:
91          required:
92            - function
93        else:
94          properties:
95            function: false
96
97    additionalProperties: true
98...
99