| # 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 <k@chaosmail.tech> | |
| 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>; | |
| }; | |
| }; | |
| }; | |
| ... |