Apple SPMI NVMEM

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/apple,spmi-nvmem.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Exports a series of SPMI registers as NVMEM cells

Maintainers (maintainers): "Sasha Finkelstein <fnkl.kernel@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvmem.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "apple,maverick-pmic", "apple,sera-pmic", "apple,stowe-pmic"

Item 2

Exact value (const): "apple,spmi-nvmem"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (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>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page