xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/apple,spmi-nvmem.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/apple,spmi-nvmem.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Apple SPMI NVMEM
8
9description: Exports a series of SPMI registers as NVMEM cells
10
11maintainers:
12  - Sasha Finkelstein <fnkl.kernel@gmail.com>
13
14allOf:
15  - $ref: nvmem.yaml#
16
17properties:
18  compatible:
19    items:
20      - enum:
21          - apple,maverick-pmic
22          - apple,sera-pmic
23          - apple,stowe-pmic
24      - const: apple,spmi-nvmem
25
26  reg:
27    maxItems: 1
28
29required:
30  - compatible
31  - reg
32
33unevaluatedProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/spmi/spmi.h>
38
39    pmic@f {
40        compatible = "apple,maverick-pmic", "apple,spmi-nvmem";
41        reg = <0xf SPMI_USID>;
42
43        nvmem-layout {
44            compatible = "fixed-layout";
45            #address-cells = <1>;
46            #size-cells = <1>;
47
48            boot_stage: boot-stage@6001 {
49                reg = <0x6001 0x1>;
50            };
51        };
52    };
53
54...
55