MTD (Memory Technology Device)
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mtd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>", "Richard Weinberger <richard@nod.at>"
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^(flash|.*sram|nand)(@.*)?$"
label — not listed as required here #
User-defined MTD device name. Can be used to assign user friendly names to MTD devices (instead of the flash model or flash controller based name) in order to ease flash device identification and/or describe what they are used for.
#address-cells — not listed as required here #
Deprecated (deprecated): true
#size-cells — not listed as required here #
Deprecated (deprecated): true
partitions — not listed as required here #
Value type (type): "object"
Required in this object (required): "compatible"
Properties matching a name pattern (patternProperties) #
(^partition)?@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/mtd/partitions/partition.yaml#/$defs/partition-node
Deprecated (deprecated): true
^otp(-[0-9]+)?$ — name matches this regular expression #
Value type (type): "object"
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):/schemas/nvmem/nvmem.yaml#
Rule 2
Shared schema rule (
$ref):/schemas/nvmem/nvmem-deprecated-cells.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
An OTP memory region. Some flashes provide a one-time-programmable memory whose content can either be programmed by a user or is already pre-programmed by the factory. Some flashes might provide both.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "user-otp", "factory-otp"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
label = "System-firmware";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
otp-1 {
compatible = "factory-otp";
#address-cells = <1>;
#size-cells = <1>;
electronic-serial-number@0 {
reg = <0 8>;
};
};
otp-2 {
compatible = "user-otp";
#address-cells = <1>;
#size-cells = <1>;
mac-address@0 {
reg = <0 6>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 66: This is a generic file other binding inherit from