GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / mtd / partitions / u-boot.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mtd/partitions/u-boot.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: U-Boot bootloader partition
8
9 description: |
10   U-Boot is a bootlodaer commonly used in embedded devices. It's almost always
11   located on some kind of flash device.
12
13   Device configuration is stored as a set of environment variables that are
14   located in a (usually standalone) block of data.
15
16 maintainers:
17   - Rafał Miłecki <rafal@milecki.pl>
18
19 allOf:
20   - $ref: partition.yaml#
21
22 properties:
23   compatible:
24     oneOf:
25       - const: brcm,u-boot
26         description: |
27           Broadcom stores environment variables inside a U-Boot partition. They
28           can be identified by a custom header with magic value.
29
30 unevaluatedProperties: false
31
32 examples:
33   - |
34     partitions {
35         compatible = "fixed-partitions";
36         #address-cells = <1>;
37         #size-cells = <1>;
38
39         partition@0 {
40             compatible = "brcm,u-boot";
41             reg = <0x0 0x100000>;
42             label = "u-boot";
43         };
44
45         partition@100000 {
46             reg = <0x100000 0x1ff00000>;
47             label = "firmware";
48         };
49     };