xref: /linux/Documentation/devicetree/bindings/spmi/apple,spmi.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spmi/apple,spmi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Apple SPMI controller
8
9maintainers:
10  - Sasha Finkelstein <fnkl.kernel@gmail.com>
11
12description: A SPMI controller present on most Apple SoCs
13
14allOf:
15  - $ref: spmi.yaml#
16
17properties:
18  compatible:
19    oneOf:
20      - items:
21          - enum:
22              - apple,t6020-spmi
23              - apple,t8012-spmi
24              - apple,t8015-spmi
25          - const: apple,t8103-spmi
26      - items:
27          - enum:
28              # Do not add additional SoC to this list.
29              - apple,t8103-spmi
30              - apple,t6000-spmi
31              - apple,t8112-spmi
32          - const: apple,spmi
33
34  reg:
35    maxItems: 1
36
37required:
38  - compatible
39  - reg
40
41unevaluatedProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/spmi/spmi.h>
46
47    spmi@920a1300 {
48        compatible = "apple,t6000-spmi", "apple,spmi";
49        reg = <0x920a1300 0x100>;
50        #address-cells = <2>;
51        #size-cells = <0>;
52
53        pmic@f {
54            reg = <0xf SPMI_USID>;
55            /* PMIC-specific properties */
56        };
57    };
58