xref: /linux/Documentation/devicetree/bindings/mfd/ti,twl.yaml (revision 0c8ea05e9b3d8e5287e2a968f2a2e744dfd31b99)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/ti,twl.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments TWL family
8
9maintainers:
10  - Andreas Kemnade <andreas@kemnade.info>
11
12description: |
13  The TWLs are Integrated Power Management Chips.
14  Some version might contain much more analog function like
15  USB transceiver or Audio amplifier.
16  These chips are connected to an i2c bus.
17
18allOf:
19  - if:
20      properties:
21        compatible:
22          contains:
23            const: ti,twl4030
24    then:
25      properties:
26        madc:
27          type: object
28          $ref: /schemas/iio/adc/ti,twl4030-madc.yaml
29          unevaluatedProperties: false
30
31        bci:
32          type: object
33          $ref: /schemas/power/supply/twl4030-charger.yaml
34          unevaluatedProperties: false
35
36        pwrbutton:
37          type: object
38          additionalProperties: false
39          properties:
40            compatible:
41              const: ti,twl4030-pwrbutton
42            interrupts:
43              items:
44                - items:
45                    const: 8
46
47        watchdog:
48          type: object
49          additionalProperties: false
50          properties:
51            compatible:
52              const: ti,twl4030-wdt
53
54  - if:
55      properties:
56        compatible:
57          contains:
58            const: ti,twl6030
59    then:
60      properties:
61        gpadc:
62          type: object
63          properties:
64            compatible:
65              const: ti,twl6030-gpadc
66  - if:
67      properties:
68        compatible:
69          contains:
70            const: ti,twl6032
71    then:
72      properties:
73        gpadc:
74          type: object
75          properties:
76            compatible:
77              const: ti,twl6032-gpadc
78
79properties:
80  compatible:
81    description:
82      TWL4030 for integrated power-management/audio CODEC device used in OMAP3
83      based boards
84      TWL6030/32 for integrated power-management used in OMAP4 based boards
85    enum:
86      - ti,twl4030
87      - ti,twl6030
88      - ti,twl6032
89
90  reg:
91    maxItems: 1
92
93  interrupts:
94    maxItems: 1
95
96  interrupt-controller: true
97
98  system-power-controller: true
99
100  "#interrupt-cells":
101    const: 1
102
103  "#clock-cells":
104    const: 1
105
106  rtc:
107    type: object
108    additionalProperties: false
109    properties:
110      compatible:
111        const: ti,twl4030-rtc
112      interrupts:
113        maxItems: 1
114
115unevaluatedProperties: false
116
117required:
118  - compatible
119  - reg
120  - interrupts
121  - interrupt-controller
122  - "#interrupt-cells"
123
124examples:
125  - |
126    i2c {
127      #address-cells = <1>;
128      #size-cells = <0>;
129
130      pmic@48 {
131        compatible = "ti,twl6030";
132        reg = <0x48>;
133        interrupts = <39>; /* IRQ_SYS_1N cascaded to gic */
134        interrupt-controller;
135        #interrupt-cells = <1>;
136        interrupt-parent = <&gic>;
137      };
138    };
139
140