17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
27ef62cebSEmmanuel Vadot%YAML 1.2
37ef62cebSEmmanuel Vadot---
47ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/partitions/u-boot.yaml#
57ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
67ef62cebSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: U-Boot bootloader partition
87ef62cebSEmmanuel Vadot
97ef62cebSEmmanuel Vadotdescription: |
10*8d13bc63SEmmanuel Vadot  U-Boot is a bootloader commonly used in embedded devices. It's almost always
117ef62cebSEmmanuel Vadot  located on some kind of flash device.
127ef62cebSEmmanuel Vadot
137ef62cebSEmmanuel Vadot  Device configuration is stored as a set of environment variables that are
147ef62cebSEmmanuel Vadot  located in a (usually standalone) block of data.
157ef62cebSEmmanuel Vadot
167ef62cebSEmmanuel Vadotmaintainers:
177ef62cebSEmmanuel Vadot  - Rafał Miłecki <rafal@milecki.pl>
187ef62cebSEmmanuel Vadot
197ef62cebSEmmanuel VadotallOf:
207ef62cebSEmmanuel Vadot  - $ref: partition.yaml#
217ef62cebSEmmanuel Vadot
227ef62cebSEmmanuel Vadotproperties:
237ef62cebSEmmanuel Vadot  compatible:
247ef62cebSEmmanuel Vadot    oneOf:
257ef62cebSEmmanuel Vadot      - const: brcm,u-boot
267ef62cebSEmmanuel Vadot        description: |
277ef62cebSEmmanuel Vadot          Broadcom stores environment variables inside a U-Boot partition. They
287ef62cebSEmmanuel Vadot          can be identified by a custom header with magic value.
297ef62cebSEmmanuel Vadot
308bab661aSEmmanuel VadotpatternProperties:
318bab661aSEmmanuel Vadot  "^partition-.*$":
328bab661aSEmmanuel Vadot    $ref: partition.yaml#
338bab661aSEmmanuel Vadot
347ef62cebSEmmanuel VadotunevaluatedProperties: false
357ef62cebSEmmanuel Vadot
367ef62cebSEmmanuel Vadotexamples:
377ef62cebSEmmanuel Vadot  - |
387ef62cebSEmmanuel Vadot    partitions {
397ef62cebSEmmanuel Vadot        compatible = "fixed-partitions";
407ef62cebSEmmanuel Vadot        #address-cells = <1>;
417ef62cebSEmmanuel Vadot        #size-cells = <1>;
427ef62cebSEmmanuel Vadot
437ef62cebSEmmanuel Vadot        partition@0 {
447ef62cebSEmmanuel Vadot            compatible = "brcm,u-boot";
457ef62cebSEmmanuel Vadot            reg = <0x0 0x100000>;
467ef62cebSEmmanuel Vadot            label = "u-boot";
478bab661aSEmmanuel Vadot
488bab661aSEmmanuel Vadot            partition-u-boot-env {
498bab661aSEmmanuel Vadot            };
507ef62cebSEmmanuel Vadot        };
517ef62cebSEmmanuel Vadot
527ef62cebSEmmanuel Vadot        partition@100000 {
537ef62cebSEmmanuel Vadot            reg = <0x100000 0x1ff00000>;
547ef62cebSEmmanuel Vadot            label = "firmware";
557ef62cebSEmmanuel Vadot        };
567ef62cebSEmmanuel Vadot    };
57