Debian Codegraph @

Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml

raw
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
7 title: Apple SPMI NVMEM
8
9 description: Exports a series of SPMI registers as NVMEM cells
10
11 maintainers:
12 - Sasha Finkelstein <[email protected]>
13
14 allOf:
15 - $ref: nvmem.yaml#
16
17 properties:
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
29 required:
30 - compatible
31 - reg
32
33 unevaluatedProperties: false
34
35 examples:
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 ...