summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
blob: 16bd7eb2b7af2c0b176f0e5b1970f4670af691da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spmi/apple,spmi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple SPMI controller

maintainers:
  - Sasha Finkelstein <fnkl.kernel@gmail.com>

description: A SPMI controller present on most Apple SoCs

allOf:
  - $ref: spmi.yaml#

properties:
  compatible:
    items:
      - enum:
          - apple,t8103-spmi
          - apple,t6000-spmi
          - apple,t8112-spmi
      - const: apple,spmi

  reg:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/spmi/spmi.h>

    spmi@920a1300 {
        compatible = "apple,t6000-spmi", "apple,spmi";
        reg = <0x920a1300 0x100>;
        #address-cells = <2>;
        #size-cells = <0>;

        pmic@f {
            reg = <0xf SPMI_USID>;
            /* PMIC-specific properties */
        };
    };