summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml
blob: 80b5a6cdcec91c8eed8b66f745e91ee07ba9683d (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
50
51
52
53
54
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/nvmem/apple,spmi-nvmem.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple SPMI NVMEM

description: Exports a series of SPMI registers as NVMEM cells

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

allOf:
  - $ref: nvmem.yaml#

properties:
  compatible:
    items:
      - enum:
          - apple,maverick-pmic
          - apple,sera-pmic
          - apple,stowe-pmic
      - const: apple,spmi-nvmem

  reg:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

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

    pmic@f {
        compatible = "apple,maverick-pmic", "apple,spmi-nvmem";
        reg = <0xf SPMI_USID>;

        nvmem-layout {
            compatible = "fixed-layout";
            #address-cells = <1>;
            #size-cells = <1>;

            boot_stage: boot-stage@6001 {
                reg = <0x6001 0x1>;
            };
        };
    };

...