Commit 4862a4d7 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Rob Herring

dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions

U-Boot partition may contain subpartitions. For example Broadcom
includes environment data block in the middle of its U-Boot partition.

This allows describing Broadcom's U-Boot env data and will allow
referencing its NVMEM cell in the future.

Ref: 118f3fbe ("dt-bindings: mtd: partitions: support label/name only partition")
Ref: dd638202 ("dt-bindings: mtd: partitions: add additional example for qcom,smem-part")
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20221018154202.4634-1-zajec5@gmail.comSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent c2741cbe
......@@ -27,6 +27,10 @@ properties:
Broadcom stores environment variables inside a U-Boot partition. They
can be identified by a custom header with magic value.
patternProperties:
"^partition-.*$":
$ref: partition.yaml#
unevaluatedProperties: false
examples:
......@@ -40,6 +44,9 @@ examples:
compatible = "brcm,u-boot";
reg = <0x0 0x100000>;
label = "u-boot";
partition-u-boot-env {
};
};
partition@100000 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment