Unsorted Block Images
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
UBI ("Unsorted Block Images") is a volume management system for raw flash devices which manages multiple logical volumes on a single physical flash device and spreads the I/O load (i.e wear-leveling) across the whole flash chip.
Maintainers (maintainers): "Daniel Golle <daniel@makrotopia.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "linux,ubi"
volumes — not listed as required here #
Value type (type): "object"
UBI Volumes
Properties matching a name pattern (patternProperties) #
^ubi-volume-.*$ — name matches this regular expression
Shared schema rule ($ref): /schemas/mtd/partitions/ubi-volume.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
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) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
reg = <0x0 0x100000>;
label = "bootloader";
read-only;
};
partition@100000 {
reg = <0x100000 0x1ff00000>;
label = "ubi";
compatible = "linux,ubi";
volumes {
ubi-volume-caldata {
volid = <2>;
volname = "rf";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom@0 {
reg = <0x0 0x1000>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause