NVMEM layout for fixed NVMEM cells

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/layouts/fixed-layout.yaml#"

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

Many NVMEM devices have hardcoded cells layout (offset and size of defined NVMEM content doesn't change). This binding allows defining such NVMEM layout with its cells. It can be used on top of any NVMEM device.

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fixed-layout"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

@[a-f0-9]+(,[0-7])?$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): fixed-cell.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    mac@100 {
        compatible = "mac-base";
        reg = <0x100 0x6>;
        #nvmem-cell-cells = <1>;
    };

    mac@110 {
        compatible = "mac-base";
        reg = <0x110 0x11>;
        #nvmem-cell-cells = <1>;
    };

    calibration@4000 {
        reg = <0x4000 0x100>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page