Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Nvmem bindings

Single-page view · as markdown

Fixed offset & size NVMEM cell

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

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

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

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "mac-base"

Cell with base MAC address to be used for calculating extra relative addresses. It can be stored in a plain binary format (cell length 6) or as an ASCII text like "00:11:22:33:44:55" (cell length 17).

reg — required here #

Maximum number of items (maxItems): 1

bits — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items) #

Item 1

Minimum value (minimum): 0

Maximum value (maximum): 31

Offset in bit within the address range specified by reg.

Item 2

Minimum value (minimum): 1

Size in bit within the address range specified by reg.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — required here

Rule for matching array elements (contains)

Exact value (const): "mac-base"

Required in this object (required): "compatible"

When the condition matches (then) #

Properties and child nodes (properties)

#nvmem-cell-cells — required here

The first argument is a MAC address offset.

Exact value (const): 1

Required in this object (required): "#nvmem-cell-cells"

Required in this object (required): "reg"

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

NVMEM layout for fixed NVMEM cells

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

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)

NVMEM layout of the Kontron SMARC-sAL28 vital product data

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

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)

NVMEM (Non Volatile Memory) layouts

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

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

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>", "Michael Walle <michael@walle.cc>", "Miquel Raynal <miquel.raynal@bootlin.com>"

Most NVMEM layouts are static and thus do not require additional description besides the bytes/bits offset and length. Other layouts can be less statically define and might require dynamic reading of the NVMEM device in order to perform their parsing. The nvmem-layout container is here to describe these.

Exactly one of these rules must match (oneOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): kontron,sl28-vpd.yaml

Rule 3 #

Shared schema rule ($ref): onie,tlv-layout.yaml

Rule 4 #

Shared schema rule ($ref): u-boot,env.yaml

Properties and child nodes (properties) #

compatible — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

NVMEM layout of the ONIE tlv table

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

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

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

Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"

Modern networking hardware implementing the Open Compute Project ONIE infrastructure shall provide a non-volatile memory with a table whose the content is well specified and gives many information about the manufacturer (name, country of manufacture, etc) as well as device caracteristics (serial number, hardware version, mac addresses, etc). The underlying device type (flash, EEPROM,...) is not specified. The exact location of each value is also dynamic and should be discovered at run time because it depends on the parameters the manufacturer decided to embed.

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "onie,tlv-layout"

product-name — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

part-number — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

serial-number — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

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.

manufacture-date — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

device-version — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

label-revision — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

platform-name — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

onie-version — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

num-macs — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

manufacturer — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

country-code — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

vendor — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

diag-version — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

service-tag — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

vendor-extension — not listed as required here #

Value type (type): "object"

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

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    eeprom@56 {
        compatible = "atmel,24c64";
        read-only;
        reg = <0x56>;

        nvmem-layout {
            compatible = "onie,tlv-layout";

            serial-number {
            };
        };
    };
};
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    flash@0 {
        compatible = "m25p80", "jedec,spi-nor";
        reg = <0>;

        otp {
            compatible = "user-otp";

            nvmem-layout {
                compatible = "onie,tlv-layout";

                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)

U-Boot environment variables layout

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings / layouts

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/layouts/u-boot,env.yaml#"

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

U-Boot uses environment variables to store device parameters and configuration. They may be used for booting process, setup or keeping end user info.

Data is stored using U-Boot specific formats (variant specific header and NUL separated key-value pairs).

Environment data can be stored on various storage entities, e.g.: 1. Raw flash partition 2. UBI volume

This binding allows marking storage device (as containing env data) and specifying used format.

Variables can be defined as NVMEM device subnodes.

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

A standalone env data block

Exact value (const): "u-boot,env"

Rule 2

Two redundant blocks with active one flagged

Exact value (const): "u-boot,env-redundant-bool"

Rule 3

Two redundant blocks with active having higher counter

Exact value (const): "u-boot,env-redundant-count"

Rule 4

Broadcom's variant with custom header

Exact value (const): "brcm,env"

reg — not listed as required here #

Partition offset and size for env on top of MTD

Maximum number of items (maxItems): 1

bootcmd — not listed as required here #

Value type (type): "object"

Command to use for automatic booting

env-size — not listed as required here #

Size in bytes of the environment data used by U-Boot for CRC calculation. If omitted, the full NVMEM region size is used.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ethaddr — not listed as required here #

Value type (type): "object"

Ethernet interfaces base MAC address.

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

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

The first argument is a MAC address offset.

Exact value (const): 1

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

$nodename — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

String pattern (pattern): "^partition@[0-9a-f]+$"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

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

    partition@0 {
        reg = <0x0 0x40000>;
        label = "u-boot";
        read-only;
    };

    env: partition@40000 {
        compatible = "u-boot,env";
        reg = <0x40000 0x10000>;

        mac: ethaddr {
            #nvmem-cell-cells = <1>;
        };
    };
};
partitions {
    compatible = "fixed-partitions";
    #address-cells = <1>;
    #size-cells = <1>;

    partition@0 {
        reg = <0x0 0x100000>;
        compatible = "brcm,u-boot";
        label = "u-boot";

        partition-u-boot-env {
            compatible = "brcm,env";
            env-size = <0x20000>;

            ethaddr {
            };
        };
    };
};
partition@0 {
    reg = <0x0 0x100000>;
    label = "ubi";
    compatible = "linux,ubi";

    volumes {
        ubi-volume-u-boot-env {
            volname = "env";

            nvmem-layout {
                compatible = "u-boot,env";

                ethaddr {
                    #nvmem-cell-cells = <1>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Airoha AN8855 Switch EFUSE

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/airoha,an8855-efuse.yaml#"

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

Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"

Airoha AN8855 EFUSE used to calibrate internal PHYs and store additional configuration info.

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "airoha,an8855-efuse"

#nvmem-cell-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "#nvmem-cell-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

efuse {
    compatible = "airoha,an8855-efuse";

    #nvmem-cell-cells = <0>;

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

        shift_sel_port0_tx_a: shift-sel-port0-tx-a@c {
           reg = <0xc 0x4>;
        };

        shift_sel_port0_tx_b: shift-sel-port0-tx-b@10 {
            reg = <0x10 0x4>;
        };

        shift_sel_port0_tx_c: shift-sel-port0-tx-c@14 {
            reg = <0x14 0x4>;
        };

        shift_sel_port0_tx_d: shift-sel-port0-tx-d@18 {
           reg = <0x18 0x4>;
        };

        shift_sel_port1_tx_a: shift-sel-port1-tx-a@1c {
           reg = <0x1c 0x4>;
        };

        shift_sel_port1_tx_b: shift-sel-port1-tx-b@20 {
           reg = <0x20 0x4>;
        };

        shift_sel_port1_tx_c: shift-sel-port1-tx-c@24 {
           reg = <0x24 0x4>;
        };

        shift_sel_port1_tx_d: shift-sel-port1-tx-d@28 {
           reg = <0x28 0x4>;
        };

        shift_sel_port2_tx_a: shift-sel-port2-tx-a@2c {
            reg = <0x2c 0x4>;
        };

        shift_sel_port2_tx_b: shift-sel-port2-tx-b@30 {
            reg = <0x30 0x4>;
        };

        shift_sel_port2_tx_c: shift-sel-port2-tx-c@34 {
            reg = <0x34 0x4>;
        };

        shift_sel_port2_tx_d: shift-sel-port2-tx-d@38 {
            reg = <0x38 0x4>;
        };

        shift_sel_port3_tx_a: shift-sel-port3-tx-a@4c {
            reg = <0x4c 0x4>;
        };

        shift_sel_port3_tx_b: shift-sel-port3-tx-b@50 {
            reg = <0x50 0x4>;
        };

        shift_sel_port3_tx_c: shift-sel-port3-tx-c@54 {
           reg = <0x54 0x4>;
        };

        shift_sel_port3_tx_d: shift-sel-port3-tx-d@58 {
           reg = <0x58 0x4>;
        };

        shift_sel_port4_tx_a: shift-sel-port4-tx-a@5c {
            reg = <0x5c 0x4>;
        };

        shift_sel_port4_tx_b: shift-sel-port4-tx-b@60 {
            reg = <0x60 0x4>;
        };

        shift_sel_port4_tx_c: shift-sel-port4-tx-c@64 {
            reg = <0x64 0x4>;
        };

        shift_sel_port4_tx_d: shift-sel-port4-tx-d@68 {
            reg = <0x68 0x4>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Allwinner A10 Security ID

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/allwinner,sun4i-a10-sid.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-sid"

Rule 2

Exact value (const): "allwinner,sun7i-a20-sid"

Rule 3

Exact value (const): "allwinner,sun8i-a83t-sid"

Rule 4

Exact value (const): "allwinner,sun8i-h3-sid"

Rule 5

Exact value (const): "allwinner,sun20i-d1-sid"

Rule 6

Exact value (const): "allwinner,sun50i-a64-sid"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun50i-a100-sid", "allwinner,sun50i-h616-sid", "allwinner,sun55i-a523-sid"

Item 2

Exact value (const): "allwinner,sun50i-a64-sid"

Rule 8

Exact value (const): "allwinner,sun50i-h5-sid"

Rule 9

Exact value (const): "allwinner,sun50i-h6-sid"

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

efuse@1c23800 {
    compatible = "allwinner,sun4i-a10-sid";
    reg = <0x01c23800 0x10>;
};
efuse@1c23800 {
    compatible = "allwinner,sun7i-a20-sid";
    reg = <0x01c23800 0x200>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Amlogic Meson GX eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/amlogic,meson-gxbb-efuse.yaml#"

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,meson-gxbb-efuse"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-efuse"

Item 2

Exact value (const): "amlogic,meson-gxbb-efuse"

clocks — required here #

Maximum number of items (maxItems): 1

secure-monitor — required here #

phandle to the secure-monitor node

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "secure-monitor"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

efuse: efuse {
    compatible = "amlogic,meson-gxbb-efuse";
    clocks = <&clk_efuse>;
    #address-cells = <1>;
    #size-cells = <1>;
    secure-monitor = <&sm>;

    sn: sn@14 {
        reg = <0x14 0x10>;
    };

    eth_mac: mac@34 {
        reg = <0x34 0x10>;
    };

    bid: bid@46 {
        reg = <0x46 0x30>;
    };
};

Source notes #

Annotations retained from the schema source

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

Amlogic Meson6 eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/amlogic,meson6-efuse.yaml#"

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Martin Blumenstingl <martin.blumenstingl@googlemail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson6-efuse", "amlogic,meson8-efuse", "amlogic,meson8b-efuse"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "core"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

efuse: efuse@0 {
    compatible = "amlogic,meson6-efuse";
    reg = <0x0 0x2000>;
    clocks = <&clk_efuse>;
    clock-names = "core";
    #address-cells = <1>;
    #size-cells = <1>;

    ethernet_mac_address: mac@1b4 {
        reg = <0x1b4 0x6>;
    };

    temperature_calib: calib@1f4 {
        reg = <0x1f4 0x4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Apple SoC eFuse-based NVMEM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Apple SoCs such as the M1 contain factory-programmed eFuses used to e.g. store calibration data for the PCIe and the Type-C PHY or unique chip identifiers such as the ECID.

Maintainers (maintainers): "Sven Peter <sven@svenpeter.dev>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "apple,t8103-efuses", "apple,t6000-efuses"

Item 2

Exact value (const): "apple,efuses"

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

efuse@3d2bc000 {
    compatible = "apple,t8103-efuses", "apple,efuses";
    reg = <0x3d2bc000 0x1000>;
    #address-cells = <1>;
    #size-cells = <1>;

    ecid: efuse@500 {
        reg = <0x500 0x8>;
    };
};

Source notes #

Annotations retained from the schema source

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

Apple SPMI NVMEM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

Broadcom's NVRAM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/brcm,nvram.yaml#"

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

Broadcom's NVRAM is a structure containing device specific environment variables. It is used for storing device configuration, booting parameters and calibration data.

NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9 devices usiong I/O mapped memory.

NVRAM variables can be defined as NVMEM device subnodes.

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "brcm,nvram"

reg — not listed as required here #

Maximum number of items (maxItems): 1

board_id — not listed as required here #

Value type (type): "object"

Board identification name

et0macaddr — not listed as required here #

Value type (type): "object"

First Ethernet interface's MAC address

Properties and child nodes (properties) #

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

The first argument is a MAC address offset.

Exact value (const): 1

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

false

Not allowed by this rule.

et1macaddr — not listed as required here #

Value type (type): "object"

Second Ethernet interface's MAC address

Properties and child nodes (properties) #

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

The first argument is a MAC address offset.

Exact value (const): 1

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

false

Not allowed by this rule.

et2macaddr — not listed as required here #

Value type (type): "object"

Third Ethernet interface's MAC address

Properties and child nodes (properties) #

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

The first argument is a MAC address offset.

Exact value (const): 1

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

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

nvram@1eff0000 {
    compatible = "brcm,nvram";
    reg = <0x1eff0000 0x10000>;

    mac: et0macaddr {
    };
};

Source notes #

Annotations retained from the schema source

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

Broadcom OTP memory controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/brcm,ocotp.yaml#"

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

Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,ocotp", "brcm,ocotp-v2"

reg — required here #

Maximum number of items (maxItems): 1

brcm,ocotp-size — required here #

Amount of memory available, in 32-bit words

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "brcm,ocotp-size"

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

false

Not allowed by this rule.

Examples (examples) #

otp@301c800 {
    compatible = "brcm,ocotp";
    reg = <0x0301c800 0x2c>;
    brcm,ocotp-size = <2048>;
};

Source notes #

Annotations retained from the schema source

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

Freescale Layerscape Security Fuse Processor

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/fsl,layerscape-sfp.yaml#"

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

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

SFP is the security fuse processor which among other things provides a unique identifier per part.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): nvmem-deprecated-cells.yaml

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Trust architecture 2.1 SFP

Array item rules (items)

Item 1

Exact value (const): "fsl,ls1021a-sfp"

Rule 2

Trust architecture 3.0 SFP

Array item rules (items)

Item 1

Exact value (const): "fsl,ls1028a-sfp"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

The SFP clock. Typically, this is the platform clock divided by 4.

clock-names — required here #

Exact value (const): "sfp"

ta-prog-sfp-supply — not listed as required here #

The regulator for the TA_PROG_SFP pin. It will be enabled for programming and disabled for reading.

Required in this object (required): "compatible", "reg", "clock-names", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/fsl,qoriq-clockgen.h>
efuse@1e80000 {
    compatible = "fsl,ls1028a-sfp";
    reg = <0x1e80000 0x8000>;
    clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
                        QORIQ_CLK_PLL_DIV(4)>;
    clock-names = "sfp";
};

Source notes #

Annotations retained from the schema source

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

i.MX SCU Client Device Node - OCOTP Based on SCU Message Protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#"

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

Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"

i.MX SCU Client Device Node Client nodes are maintained as children of the relevant IMX-SCU device node.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qm-scu-ocotp", "fsl,imx8qxp-scu-ocotp"

Properties matching a name pattern (patternProperties) #

^mac@[0-9a-f]*$ — name matches this regular expression #

Value type (type): "object"

MAC address.

Properties and child nodes (properties) #

reg — required here

Byte offset within OCOTP where the MAC address is stored

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

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 evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ocotp {
    compatible = "fsl,imx8qxp-scu-ocotp";
    #address-cells = <1>;
    #size-cells = <1>;

    fec_mac0: mac@2c4 {
        reg = <0x2c4 6>;
    };
};

Source notes #

Annotations retained from the schema source

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

NXP QorIQ eFuse support

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/fsl,t1023-sfp.yaml#"

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

Maintainers (maintainers): "Richard Alpe <richard@bit42.se>"

Read support for the eFuses (SFP) on NXP QorIQ series SoC's.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,t1023-sfp"

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

efuse@e8000 {
    compatible = "fsl,t1023-sfp";
    reg = <0xe8000 0x1000>;
};

Source notes #

Annotations retained from the schema source

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

On-Chip OTP Memory for Freescale Vybrid

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): nvmem-deprecated-cells.yaml

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,vf610-ocotp"

Item 2

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

ipg clock we associate with the OCOTP peripheral

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/vf610-clock.h>

ocotp@400a5000 {
    compatible = "fsl,vf610-ocotp", "syscon";
    reg = <0x400a5000 0xcf0>;
    #address-cells = <1>;
    #size-cells = <1>;
    clocks = <&clks VF610_CLK_OCOTP>;
};

Source notes #

Annotations retained from the schema source

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

Google GS101 OTP Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/google,gs101-otp.yaml#"

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

Maintainers (maintainers): "Tudor Ambarus <tudor.ambarus@linaro.org>"

OTP controller drives a NVMEM memory where system or user specific data can be stored. The OTP controller register space is of interest as well because it contains dedicated registers where it stores the Product ID and the Chip ID (apart other things like TMU or ASV info).

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

Exact value (const): "google,gs101-otp"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "pclk"

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/google,gs101.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

efuse@10000000 {
    compatible = "google,gs101-otp";
    reg = <0x10000000 0xf084>;
    clocks = <&cmu_misc CLK_GOUT_MISC_OTP_CON_TOP_PCLK>;
    clock-names = "pclk";
    interrupts = <GIC_SPI 752 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Freescale i.MX IC Identification Module (IIM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/imx-iim.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

This binding represents the IC Identification Module (IIM) found on i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and i.MX53 SoCs.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx25-iim", "fsl,imx27-iim", "fsl,imx31-iim", "fsl,imx35-iim", "fsl,imx51-iim", "fsl,imx53-iim"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx5-clock.h>

iim: efuse@63f98000 {
    compatible = "fsl,imx53-iim";
    reg = <0x63f98000 0x4000>;
    interrupts = <69>;
    clocks = <&clks IMX5_CLK_IIM_GATE>;
};

Source notes #

Annotations retained from the schema source

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

Freescale i.MX On-Chip OTP Controller (OCOTP)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/imx-ocotp.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

This binding represents the on-chip eFuse OTP controller found on i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM, i.MX8MN i.MX8MP, i.MX93, i.MX94, and i.MX95.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

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): "fsl,imx6q-ocotp", "fsl,imx6sl-ocotp", "fsl,imx6sx-ocotp", "fsl,imx6ul-ocotp", "fsl,imx6ull-ocotp", "fsl,imx7d-ocotp", "fsl,imx6sll-ocotp", "fsl,imx7ulp-ocotp", "fsl,imx8mq-ocotp", "fsl,imx8mm-ocotp", "fsl,imx93-ocotp", "fsl,imx94-ocotp", "fsl,imx95-ocotp"

Item 2

Exact value (const): "syscon"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mn-ocotp", "fsl,imx8mp-ocotp"

Item 2

Exact value (const): "fsl,imx8mm-ocotp"

Item 3

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6sx-clock.h>

ocotp: efuse@21bc000 {
    #address-cells = <1>;
    #size-cells = <1>;
    compatible = "fsl,imx6sx-ocotp", "syscon";
    reg = <0x021bc000 0x4000>;
    clocks = <&clks IMX6SX_CLK_OCOTP>;

    cpu_speed_grade: speed-grade@10 {
        reg = <0x10 4>;
    };

    tempmon_calib: calib@38 {
        reg = <0x38 4>;
    };

    tempmon_temp_grade: temp-grade@20 {
        reg = <0x20 4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 46: i.MX8MP not really compatible with fsl,imx8mm-ocotp, however

Line 47: the code for getting SoC revision depends on fsl,imx8mm-ocotp

Line 48: compatible.

Ingenic JZ EFUSE driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/ingenic,jz4780-efuse.yaml#"

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

Maintainers (maintainers): "PrasannaKumar Muralidharan <prasannatsmkumar@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 #

Allowed values (enum): "ingenic,jz4780-efuse"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4780-cgu.h>

efuse@134100d0 {
    compatible = "ingenic,jz4780-efuse";
    reg = <0x134100d0 0x2c>;

    clocks = <&cgu JZ4780_CLK_AHB2>;
};

Source notes #

Annotations retained from the schema source

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

Line 24: Handle for the ahb for the efuse.

Maxim Integrated MAX77759 Non Volatile Memory

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Maintainers (maintainers): "André Draszik <andre.draszik@linaro.org>"

This module is part of the MAX77759 PMIC. For additional information, see Documentation/devicetree/bindings/mfd/maxim,max77759.yaml.

The MAX77759 is a PMIC integrating, amongst others, Non Volatile Memory (NVMEM) with 30 bytes of storage which can be used by software to store information or communicate with a boot loader.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77759-nvmem"

wp-gpios — not listed as required here #

false — Not permitted by this property rule.

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

MediaTek efuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml#"

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

MediaTek's efuse is used for storing calibration data, it can be accessed on ARM devices usiong I/O mapped memory.

Maintainers (maintainers): "Andrew-CT Chen <andrew-ct.chen@mediatek.com>", "Lala Lin <lala.lin@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^efuse@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8188-efuse", "mediatek,mt8189-efuse", "mediatek,mt8196-efuse"

Item 2

Exact value (const): "mediatek,mt8186-efuse"

Rule 2

Exact value (const): "mediatek,mt8186-efuse"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8186-efuse", "mediatek,mt8188-efuse"

Item 2

Exact value (const): "mediatek,efuse"

Deprecated (deprecated): true

Some compatibles also imply a decoding scheme for the "gpu-speedbin" cell, and thus are not backward compatible to the generic "mediatek,efuse" compatible.

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7622-efuse", "mediatek,mt7623-efuse", "mediatek,mt7981-efuse", "mediatek,mt7986-efuse", "mediatek,mt7988-efuse", "mediatek,mt8173-efuse", "mediatek,mt8183-efuse", "mediatek,mt8189-efuse", "mediatek,mt8192-efuse", "mediatek,mt8195-efuse", "mediatek,mt8516-efuse"

Item 2

Exact value (const): "mediatek,efuse"

Rule 5

Exact value (const): "mediatek,mt8173-efuse"

Deprecated (deprecated): true

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

efuse@11c10000 {
    compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
    reg = <0x11c10000 0x1000>;
    #address-cells = <1>;
    #size-cells = <1>;

    u3_tx_imp_p0: usb3-tx-imp@184,1 {
        reg = <0x184 0x1>;
        bits = <0 5>;
    };
    u3_rx_imp_p0: usb3-rx-imp@184,2 {
        reg = <0x184 0x2>;
        bits = <5 5>;
    };
    u3_intr_p0: usb3-intr@185 {
        reg = <0x185 0x1>;
        bits = <2 6>;
    };
    comb_tx_imp_p1: usb3-tx-imp@186,1 {
        reg = <0x186 0x1>;
        bits = <0 5>;
    };
    comb_rx_imp_p1: usb3-rx-imp@186,2 {
        reg = <0x186 0x2>;
        bits = <5 5>;
    };
    comb_intr_p1: usb3-intr@187 {
        reg = <0x187 0x1>;
        bits = <2 6>;
    };
    u2_intr_p0: usb2-intr-p0@188,1 {
        reg = <0x188 0x1>;
        bits = <0 5>;
    };
    u2_intr_p1: usb2-intr-p1@188,2 {
        reg = <0x188 0x2>;
        bits = <5 5>;
    };
};

Source notes #

Annotations retained from the schema source

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

Microchip LAN9662 OTP Controller (OTPC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/microchip,lan9662-otpc.yaml#"

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

Maintainers (maintainers): "Horatiu Vultur <horatiu.vultur@microchip.com>"

OTP controller drives a NVMEM memory where system specific data (e.g. hardware configuration settings, chip identifiers) or user specific data could be stored.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "microchip,lan9668-otpc"

Item 2

Exact value (const): "microchip,lan9662-otpc"

Rule 2

Allowed values (enum): "microchip,lan9662-otpc"

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

otpc: otp@e0021000 {
    compatible = "microchip,lan9662-otpc";
    reg = <0xe0021000 0x300>;
};

Source notes #

Annotations retained from the schema source

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

Microchip SAMA7G5 OTP Controller (OTPC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/microchip,sama7g5-otpc.yaml#"

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

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"

OTP controller drives a NVMEM memory where system specific data (e.g. calibration data for analog cells, hardware configuration settings, chip identifiers) or user specific data could be stored.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "microchip,sama7g5-otpc"

Item 2

Exact value (const): "syscon"

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/nvmem/microchip,sama7g5-otpc.h>

otpc: efuse@e8c00000 {
    compatible = "microchip,sama7g5-otpc", "syscon";
    reg = <0xe8c00000 0xec>;
    #address-cells = <1>;
    #size-cells = <1>;

    temperature_calib: calib@1 {
        reg = <OTP_PKT(1) 76>;
    };
};

Source notes #

Annotations retained from the schema source

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

On-Chip OTP Memory for Freescale i.MX23/i.MX28

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/mxs-ocotp.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx23-ocotp", "fsl,imx28-ocotp"

Item 2

Exact value (const): "fsl,ocotp"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ocotp: efuse@8002c000 {
    compatible = "fsl,imx28-ocotp", "fsl,ocotp";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0x8002c000 0x2000>;
    clocks = <&clks 25>;
};

Source notes #

Annotations retained from the schema source

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

Nintendo Wii and Wii U OTP

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/nintendo-otp.yaml#"

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

This binding represents the OTP memory as found on a Nintendo Wii or Wii U, which contains common and per-console keys, signatures and related data required to access peripherals.

See https://wiiubrew.org/wiki/Hardware/OTP

Maintainers (maintainers): "Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nintendo,hollywood-otp", "nintendo,latte-otp"

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

otp@d8001ec {
    compatible = "nintendo,latte-otp";
    reg = <0x0d8001ec 0x8>;
};

Source notes #

Annotations retained from the schema source

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

NVMEM (Non Volatile Memory) Consumer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

nvmem — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

List of phandle to the nvmem providers.

nvmem-cells — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

List of phandle to the nvmem data cells.

nvmem-names — not listed as required here #

Names for the each nvmem provider.

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

Names for each nvmem-cells specified.

Property dependencies (dependencies) #

nvmem-names — applies when this property is present #

Also requires: "nvmem"

nvmem-cell-names — applies when this property is present #

Also requires: "nvmem-cells"

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

true

Allowed by this rule.

Examples (examples) #

tsens {
    /* ... */
    nvmem-cells = <&tsens_calibration>;
    nvmem-cell-names = "calibration";
};

Source notes #

Annotations retained from the schema source

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

NVMEM old syntax for fixed cells

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/nvmem-deprecated-cells.yaml#"

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Before introducing NVMEM layouts all NVMEM (fixed) cells were defined as direct device subnodes. That syntax was replaced by "fixed-layout" and is deprecated now. No new bindings should use it.

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1

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

Rule 2

Properties and child nodes (properties)

compatible — not listed as required here

false — Not permitted by this property rule.

Deprecated (deprecated): true

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

NVMEM (Non Volatile Memory) Provider

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

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

Allowed values (enum): 0, 1

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

NVMEM (Non Volatile Memory)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This binding is intended to represent the location of hardware configuration data stored in NVMEMs like eeprom, efuses and so on.

On a significant proportion of boards, the manufacturer has stored some data on NVMEM, for the OS to be able to retrieve these information and act upon it. Obviously, the OS has to know about where to retrieve these data from, and where they are stored on the storage device.

Properties and child nodes (properties) #

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 1

read-only — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Mark the provider as read only.

wp-gpios — not listed as required here #

GPIO to which the write-protect pin of the chip is connected. The write-protect GPIO is asserted, when it's driven high (logical '1') to block the write operation. It's deasserted, when it's driven low (logical '0') to allow writing.

Maximum number of items (maxItems): 1

nvmem-layout — not listed as required here #

Shared schema rule ($ref): /schemas/nvmem/layouts/nvmem-layout.yaml

Alternative to the statically defined nvmem cells, this container may reference more advanced (dynamic) layout parsers.

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

true

Allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

qfprom: eeprom@700000 {
    compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0x00700000 0x100000>;

    wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;

    /* ... */

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

        /* Data cells */
        tsens_calibration: calib@404 {
            reg = <0x404 0x10>;
        };

        tsens_calibration_bckp: calib_bckp@504 {
            reg = <0x504 0x11>;
            bits = <6 128>;
        };

        pvs_version: pvs-version@6 {
            reg = <0x6 0x2>;
            bits = <7 2>;
        };

        speed_bin: speed-bin@c{
            reg = <0xc 0x1>;
            bits = <2 3>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP LPC18xx EEPROM memory

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/nxp,lpc1857-eeprom.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc1857-eeprom"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "mem"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "eeprom"

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts", "resets"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc18xx-ccu.h>

eeprom@4000e000 {
    compatible = "nxp,lpc1857-eeprom";
    reg = <0x4000e000 0x1000>,
          <0x20040000 0x4000>;
    reg-names = "reg", "mem";
    clocks = <&ccu1 CLK_CPU_EEPROM>;
    clock-names = "eeprom";
    resets = <&rgu 27>;
    interrupts = <4>;
};

Source notes #

Annotations retained from the schema source

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

NXP S32G OCOTP NVMEM driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/nxp,s32g-ocotp-nvmem.yaml#"

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

Maintainers (maintainers): "Ciprian Costea <ciprianmarian.costea@nxp.com>"

The drivers provides an interface to access One Time Programmable memory pages, such as TMU fuse values.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nxp,s32g2-ocotp"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,s32g3-ocotp", "nxp,s32r45-ocotp"

Item 2

Exact value (const): "nxp,s32g2-ocotp"

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.

All of these rules must match (allOf) #

Rule 1 #

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

Examples (examples) #

nvmem@400a4000 {
  compatible = "nxp,s32g2-ocotp";
  reg = <0x400a4000 0x400>;
  #address-cells = <1>;
  #size-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Technologies Inc, QFPROM Efuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/qcom,qfprom.yaml#"

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,apq8064-qfprom", "qcom,apq8084-qfprom", "qcom,ipq5018-qfprom", "qcom,ipq5332-qfprom", "qcom,ipq5424-qfprom", "qcom,ipq6018-qfprom", "qcom,ipq8064-qfprom", "qcom,ipq8074-qfprom", "qcom,ipq9574-qfprom", "qcom,msm8226-qfprom", "qcom,msm8916-qfprom", "qcom,msm8917-qfprom", "qcom,msm8937-qfprom", "qcom,msm8960-qfprom", "qcom,msm8974-qfprom", "qcom,msm8976-qfprom", "qcom,msm8996-qfprom", "qcom,msm8998-qfprom", "qcom,qcm2290-qfprom", "qcom,qcs404-qfprom", "qcom,qcs615-qfprom", "qcom,qcs8300-qfprom", "qcom,sa8775p-qfprom", "qcom,sar2130p-qfprom", "qcom,sc7180-qfprom", "qcom,sc7280-qfprom", "qcom,sc8280xp-qfprom", "qcom,sdm630-qfprom", "qcom,sdm670-qfprom", "qcom,sdm845-qfprom", "qcom,sm6115-qfprom", "qcom,sm6350-qfprom", "qcom,sm6375-qfprom", "qcom,sm8150-qfprom", "qcom,sm8250-qfprom", "qcom,sm8450-qfprom", "qcom,sm8550-qfprom", "qcom,sm8650-qfprom", "qcom,sm8750-qfprom", "qcom,x1e80100-qfprom"

Item 2

Exact value (const): "qcom,qfprom"

reg — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

The corrected region.

Rule 2

Array item rules (items)

Item 1

The corrected region.

Item 2

The raw region.

Item 3

The config region.

Item 4

The security control region.

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "core"

vcc-supply — not listed as required here #

Our power supply.

power-domains — not listed as 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/clock/qcom,gcc-sc7180.h>

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  efuse@784000 {
    compatible = "qcom,sc7180-qfprom", "qcom,qfprom";
    reg = <0 0x00784000 0 0x8ff>,
          <0 0x00780000 0 0x7a0>,
          <0 0x00782000 0 0x100>,
          <0 0x00786000 0 0x1fff>;
    clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>;
    clock-names = "core";
    #address-cells = <1>;
    #size-cells = <1>;

    vcc-supply = <&vreg_l11a_1p8>;

    hstx-trim-primary@25b {
      reg = <0x25b 0x1>;
      bits = <1 3>;
    };
  };
};
soc {
  #address-cells = <2>;
  #size-cells = <2>;

  efuse@784000 {
    compatible = "qcom,sdm845-qfprom", "qcom,qfprom";
    reg = <0 0x00784000 0 0x8ff>;
    #address-cells = <1>;
    #size-cells = <1>;

    hstx-trim-primary@1eb {
      reg = <0x1eb 0x1>;
      bits = <1 4>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 63: If the QFPROM is read-only OS image then only the corrected region

Line 64: needs to be provided. If the QFPROM is writable then all 4 regions

Line 65: must be provided.

Line 75: Clock must be provided if QFPROM is writable from the OS image.

Line 81: Supply reference must be provided if QFPROM is writable from the OS image.

Qualcomm Technologies Inc, Secure QFPROM Efuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/qcom,sec-qfprom.yaml#"

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

Maintainers (maintainers): "Komal Bajaj <quic_kbajaj@quicinc.com>"

For some of the Qualcomm SoC's, it is possible that the qfprom region is protected from non-secure access. In such situations, the OS have to use secure calls to read the region.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,qdu1000-sec-qfprom"

Item 2

Exact value (const): "qcom,sec-qfprom"

reg — required here #

Array item rules (items) #

Item 1

The secure qfprom corrected region.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  efuse@221c8000 {
    compatible = "qcom,qdu1000-sec-qfprom", "qcom,sec-qfprom";
    reg = <0 0x221c8000 0 0x1000>;
    #address-cells = <1>;
    #size-cells = <1>;

    multi_chan_ddr: multi-chan-ddr@12b {
      reg = <0x12b 0x1>;
      bits = <0 2>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Technologies, Inc. SPMI SDAM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

Maintainers (maintainers): "David Collins <quic_collinsd@quicinc.com>"

The SDAM provides scratch register space for the PMIC clients. This memory can be used by software to store information or communicate to/from the PBUS.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,spmi-sdam"

reg — required here #

Maximum number of items (maxItems): 1

ranges — required here #

true — No constraints added by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pmic {
    #address-cells = <1>;
    #size-cells = <0>;

    sdam_1: nvram@b000 {
        compatible = "qcom,spmi-sdam";
        reg = <0xb000>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0xb000 0x100>;

        /* Data cells */
        restart_reason: restart@50 {
            reg = <0x50 0x1>;
            bits = <6 2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

R-Car E-FUSE connected to PFC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/renesas,rcar-efuse.yaml#"

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"

The E-FUSE is a type of non-volatile memory, which is accessible through the Pin Function Controller (PFC) on some R-Car Gen4 SoCs.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,r8a779a0-efuse", "renesas,r8a779f0-efuse"

reg — required here #

Maximum number of items (maxItems): 1

PFC System Group Fuse Control and Monitor register block

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "power-domains", "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a779f0-cpg-mssr.h>
#include <dt-bindings/power/r8a779f0-sysc.h>

fuse@e6078800 {
    compatible = "renesas,r8a779f0-efuse";
    reg = <0xe6078800 0x200>;
    clocks = <&cpg CPG_MOD 915>;
    power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
    resets = <&cpg 915>;

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

        calib@144 {
            reg = <0x144 0x08>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 22: R-Car V3U

Line 23: R-Car S4-8

R-Car E-FUSE connected to OTP_MEM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/renesas,rcar-otp.yaml#"

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"

The E-FUSE is a type of non-volatile memory, which is accessible through the One-Time Programmable Memory (OTP_MEM) module on some R-Car Gen4 SoCs.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,r8a779g0-otp", "renesas,r8a779h0-otp"

reg — required here #

Array item rules (items) #

Item 1

OTP_MEM_0

Item 2

OTP_MEM_1. The addresses of cells defined under the optional nvmem-layout subnode are relative to this register bank.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

otp@e61be000 {
    compatible = "renesas,r8a779g0-otp";
    reg = <0xe61be000 0x1000>, <0xe61bf000 0x1000>;
};

Source notes #

Annotations retained from the schema source

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

Line 22: R-CarV4H

Line 23: R-CarV4M

Reserved Memory Based nvmem Device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/rmem.yaml#"

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

Maintainers (maintainers): "Nicolas Saenz Julienne <nsaenzjulienne@suse.de>"

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): "mobileye,eyeq5-bootloader-config", "raspberrypi,bootloader-config", "raspberrypi,bootloader-public-key"

Item 2

Exact value (const): "nvmem-rmem"

reg — not listed as required here #

Maximum number of items (maxItems): 1

no-map — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Avoid creating a virtual mapping of the region as part of the OS' standard mapping of system memory.

Required in this object (required): "compatible", "no-map"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
        #address-cells = <1>;
        #size-cells = <1>;

        blconfig: nvram@10000000 {
                compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
                #address-cells = <1>;
                #size-cells = <1>;
                reg = <0x10000000 0x1000>;
                no-map;
        };
};

Source notes #

Annotations retained from the schema source

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

Rockchip internal OTP (One Time Programmable) memory

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/rockchip,otp.yaml#"

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,px30-otp", "rockchip,rk3308-otp", "rockchip,rk3576-otp", "rockchip,rk3588-otp"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb_pclk"

Item 3

Exact value (const): "phy"

Item 4

Exact value (const): "arb"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reset-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,px30-otp", "rockchip,rk3308-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Maximum number of items (maxItems): 3

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "phy"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3576-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Maximum number of items (maxItems): 3

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3588-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

clock-names — not listed as required here

Minimum number of items (minItems): 4

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "arb"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/px30-cru.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    otp: efuse@ff290000 {
        compatible = "rockchip,px30-otp";
        reg = <0x0 0xff290000 0x0 0x4000>;
        clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>,
                 <&cru PCLK_OTP_PHY>;
        clock-names = "otp", "apb_pclk", "phy";
        resets = <&cru SRST_OTP_PHY>;
        reset-names = "phy";
        #address-cells = <1>;
        #size-cells = <1>;

        cpu_id: id@7 {
            reg = <0x07 0x10>;
        };

        cpu_leakage: cpu-leakage@17 {
            reg = <0x17 0x1>;
        };

        performance: performance@1e {
            reg = <0x1e 0x1>;
            bits = <4 3>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Rockchip eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml#"

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3066a-efuse", "rockchip,rk3188-efuse", "rockchip,rk3228-efuse", "rockchip,rk3288-efuse", "rockchip,rk3328-efuse", "rockchip,rk3368-efuse", "rockchip,rk3399-efuse", "rockchip,rockchip-efuse"

reg — required here #

Registers location and eFuse size.

Maximum number of items (maxItems): 1

clocks — required here #

eFuse clock id.

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "pclk_efuse"

rockchip,efuse-size — not listed as required here #

eFuse size in bytes. The eFuse size in property <reg> will be invalid if this property is defined.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
efuse: efuse@ffb40000 {
        compatible = "rockchip,rk3288-efuse";
        reg = <0xffb40000 0x20>;
        #address-cells = <1>;
        #size-cells = <1>;
        clocks = <&cru PCLK_EFUSE256>;
        clock-names = "pclk_efuse";

        /* Data cells */
        cpu_leakage: cpu_leakage@17 {
                reg = <0x17 0x1>;
        };
};

Source notes #

Annotations retained from the schema source

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

Line 27: Deprecated: old compatible value for rk3066a, rk3188 and rk3288

Low Power General Purpose Register found in i.MX Secure Non-Volatile Storage

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/snvs-lpgpr.yaml#"

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

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): "fsl,imx8mm-snvs-lpgpr", "fsl,imx8mn-snvs-lpgpr", "fsl,imx8mp-snvs-lpgpr", "fsl,imx8mq-snvs-lpgpr"

Item 2

Exact value (const): "fsl,imx7d-snvs-lpgpr"

Rule 2

Allowed values (enum): "fsl,imx6q-snvs-lpgpr", "fsl,imx6ul-snvs-lpgpr", "fsl,imx7d-snvs-lpgpr"

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

snvs@20cc000 {
    compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
    reg = <0x20cc000 0x4000>;

    snvs_lpgpr: snvs-lpgpr {
        compatible = "fsl,imx6q-snvs-lpgpr";
    };
};

Source notes #

Annotations retained from the schema source

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

Socionext UniPhier eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/socionext,uniphier-efuse.yaml#"

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

Maintainers (maintainers): "Keiji Hayashibara <hayashibara.keiji@socionext.com>", "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,uniphier-efuse"

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

efuse@100 {
    compatible = "socionext,uniphier-efuse";
    reg = <0x100 0x28>;
};

efuse@200 {
    compatible = "socionext,uniphier-efuse";
    reg = <0x200 0x68>;
    #address-cells = <1>;
    #size-cells = <1>;

    /* Data cells */
    usb_rterm0: trim@54,4 {
        reg = <0x54 1>;
        bits = <4 2>;
    };
    usb_rterm1: trim@55,4 {
        reg = <0x55 1>;
        bits = <4 2>;
    };
    usb_rterm2: trim@58,4 {
        reg = <0x58 1>;
        bits = <4 2>;
    };
    usb_rterm3: trim@59,4 {
        reg = <0x59 1>;
        bits = <4 2>;
    };
    usb_sel_t0: trim@54,0 {
        reg = <0x54 1>;
        bits = <0 4>;
    };
    usb_sel_t1: trim@55,0 {
        reg = <0x55 1>;
        bits = <0 4>;
    };
    usb_sel_t2: trim@58,0 {
        reg = <0x58 1>;
        bits = <0 4>;
    };
    usb_sel_t3: trim@59,0 {
        reg = <0x59 1>;
        bits = <0 4>;
    };
    usb_hs_i0: trim@56,0 {
        reg = <0x56 1>;
        bits = <0 4>;
    };
    usb_hs_i2: trim@5a,0 {
        reg = <0x5a 1>;
        bits = <0 4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Spreadtrum SC27XX PMIC eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/sprd,sc2731-efuse.yaml#"

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sprd,sc2720-efuse", "sprd,sc2721-efuse", "sprd,sc2723-efuse", "sprd,sc2730-efuse", "sprd,sc2731-efuse"

reg — required here #

Maximum number of items (maxItems): 1

hwlocks — required here #

Maximum number of items (maxItems): 1

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Spreadtrum UMS312 eFuse

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/sprd,ums312-efuse.yaml#"

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,ums312-efuse"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "enable"

hwlocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "hwlocks"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sprd,ums512-clk.h>

efuse@32240000 {
  compatible = "sprd,ums312-efuse";
  reg = <0x32240000 0x10000>;
  clocks = <&aonapb_gate CLK_EFUSE_EB>;
  clock-names = "enable";
  hwlocks = <&hwlock 8>;
  #address-cells = <1>;
  #size-cells = <1>;

  /* Data cells */
  thermal_calib: calib@10 {
    reg = <0x10 0x2>;
  };
};

Source notes #

Annotations retained from the schema source

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

STMicroelectronics STM32 Factory-programmed data

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/st,stm32-romem.yaml#"

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

This represents STM32 Factory-programmed read only non-volatile area: locked flash, OTP, read-only HW regs... This contains various information such as: analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2), internal vref (VREFIN_CAL), unique device ID...

Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32f4-otp", "st,stm32mp13-bsec", "st,stm32mp15-bsec", "st,stm32mp25-bsec"

reg — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

st,non-secure-otp — not listed as required here

This property explicits a factory programmed area that both secure and non-secure worlds can access. It is needed when, by default, the related area can only be reached by the secure world.

Value type (type): "boolean"

Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

efuse@1fff7800 {
  compatible = "st,stm32f4-otp";
  reg = <0x1fff7800 0x400>;
  #address-cells = <1>;
  #size-cells = <1>;

  calib@22c {
    reg = <0x22c 0x2>;
  };

  mac_addr@e4 {
    reg = <0xe4 0x8>;
    st,non-secure-otp;
  };
};

Source notes #

Annotations retained from the schema source

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

On-Chip OTP Memory for Sunplus SP7021

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#"

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

Maintainers (maintainers): "Vincent Shih <vincent.sunplus@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sunplus,sp7021-ocotp"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hb_gpio"

Item 2

Exact value (const): "otprx"

clocks — required here #

Maximum number of items (maxItems): 1

thermal-calibration — not listed as required here #

Value type (type): "object"

thermal calibration values

disconnect-voltage — not listed as required here #

Value type (type): "object"

disconnect voltages of usb2 port 0 and port 1

mac-address0 — not listed as required here #

Value type (type): "object"

MAC address of ethernet port 0

mac-address1 — not listed as required here #

Value type (type): "object"

MAC address of ethernet port 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

otp: otp@9c00af00 {
    compatible = "sunplus,sp7021-ocotp";
    reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
    reg-names = "hb_gpio", "otprx";
    clocks = <&clkc 0x15>;

    #address-cells = <1>;
    #size-cells = <1>;
    therm_calib: thermal-calibration@14 {
      reg = <0x14 0x3>;
    };
    disc_vol: disconnect-voltage@18 {
      reg = <0x18 0x2>;
    };
    mac_addr0: mac-address0@34 {
      reg = <0x34 0x6>;
    };
    mac_addr1: mac-address1@3a {
      reg = <0x3a 0x6>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) Sunplus Co., Ltd. 2021

Zynq UltraScale+ MPSoC Non Volatile Memory interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

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

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

The ZynqMP MPSoC provides access to the hardware related data like SOC revision, IDCODE and specific purpose efuses.

Maintainers (maintainers): "Kalyani Akula <kalyani.akula@amd.com>", "Praveen Teja Kundanala <praveen.teja.kundanala@amd.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,zynqmp-nvmem-fw"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc-nvmem {
    compatible = "xlnx,zynqmp-nvmem-fw";
    nvmem-layout {
        compatible = "fixed-layout";
        #address-cells = <1>;
        #size-cells = <1>;

        soc_revision: soc-revision@0 {
            reg = <0x0 0x4>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Zodiac Inflight Innovations RAVE EEPROM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Nvmem bindings

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/zii,rave-sp-eeprom.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM attached to RAVE Supervisory Processor. It is expected that its Device Tree node is specified as a child of the node corresponding to the parent RAVE SP device (as documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml)

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "zii,rave-sp-eeprom"

reg — not listed as required here #

Maximum number of items (maxItems): 1

zii,eeprom-name — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Unique EEPROM identifier describing its function in the system. Will be used as created NVMEM deivce's name.

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

eeprom@a4 {
    compatible = "zii,rave-sp-eeprom";
    reg = <0xa4 0x4000>;
    #address-cells = <1>;
    #size-cells = <1>;
    zii,eeprom-name = "main-eeprom";

    wdt-timeout@81 {
        reg = <0x81 2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.