NVMEM layout of the Kontron SMARC-sAL28 vital product data

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml#"

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

Maintainers (maintainers): "Michael Walle <michael@walle.cc>"

The vital product data (VPD) of the sl28 boards contains a serial number and a base MAC address. The actual MAC addresses for the on-board ethernet devices are derived from this base MAC address by adding an offset.

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "kontron,sa67-vpd"

Item 2

Exact value (const): "kontron,sl28-vpd"

Rule 2

Exact value (const): "kontron,sl28-vpd"

serial-number — not listed as required here #

Value type (type): "object"

The board's serial number

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

false

Not allowed by this rule.

base-mac-address — not listed as required here #

Value type (type): "object"

Base MAC address for all on-module network interfaces. The first argument of the phandle will be treated as an offset.

Properties and child nodes (properties) #

#nvmem-cell-cells — not listed as required here

Exact value (const): 1

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

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) #

otp-1 {
    compatible = "user-otp";

    nvmem-layout {
        compatible = "kontron,sl28-vpd";

        serial_number: serial-number {
        };

        base_mac_address: base-mac-address {
            #nvmem-cell-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page