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/binman.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Binman entries
8
9description: |
10  This corresponds to a binman 'entry'. It is a single partition which holds
11  data of a defined type.
12
13  Binman uses the type to indicate what data file / type to place in the
14  partition. There are quite a number of binman-specific entry types, such as
15  section, fill and files, to be added later.
16
17maintainers:
18  - Simon Glass <sjg@chromium.org>
19
20allOf:
21  - $ref: /schemas/mtd/partitions/partition.yaml#
22
23properties:
24  compatible:
25    enum:
26      - u-boot       # u-boot.bin from U-Boot project
27      - tfa-bl31     # bl31.bin or bl31.elf from TF-A project
28
29required:
30  - compatible
31
32unevaluatedProperties: false
33
34examples:
35  - |
36    partitions {
37        compatible = "fixed-partitions";
38        #address-cells = <1>;
39        #size-cells = <1>;
40
41        partition@100000 {
42            compatible = "u-boot";
43            reg = <0x100000 0xf00000>;
44            align-size = <0x1000>;
45            align-end = <0x10000>;
46        };
47
48        partition@200000 {
49            compatible = "tfa-bl31";
50            reg = <0x200000 0x100000>;
51            align = <0x4000>;
52        };
53    };
54