xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/partitions/redboot-fis.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/partitions/redboot-fis.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: RedBoot FLASH Image System (FIS) Partitions
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotdescription: The FLASH Image System (FIS) directory is a flash description
10354d7675SEmmanuel Vadot    format closely associated with the RedBoot boot loader.
11354d7675SEmmanuel Vadot    It uses one single flash eraseblock in the flash to store an index of
12354d7675SEmmanuel Vadot    all images in the flash.
13354d7675SEmmanuel Vadot    This block size will vary depending on flash but is typically
14354d7675SEmmanuel Vadot    32 KB in size.
15354d7675SEmmanuel Vadot
16354d7675SEmmanuel Vadotmaintainers:
17354d7675SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
18354d7675SEmmanuel Vadot
19*8bab661aSEmmanuel Vadotselect: false
20*8bab661aSEmmanuel Vadot
21354d7675SEmmanuel Vadotproperties:
22354d7675SEmmanuel Vadot  compatible:
23354d7675SEmmanuel Vadot    const: redboot-fis
24354d7675SEmmanuel Vadot
25354d7675SEmmanuel Vadot  fis-index-block:
26354d7675SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
27354d7675SEmmanuel Vadot    description: a index to the eraseblock containing the FIS directory on this
28354d7675SEmmanuel Vadot      device. On a flash memory with 32KB eraseblocks, 0 means the first
29354d7675SEmmanuel Vadot      eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
30354d7675SEmmanuel Vadot
31*8bab661aSEmmanuel Vadot  '#address-cells': false
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot  '#size-cells': false
34*8bab661aSEmmanuel Vadot
35354d7675SEmmanuel Vadotrequired:
36354d7675SEmmanuel Vadot  - compatible
37354d7675SEmmanuel Vadot  - fis-index-block
38354d7675SEmmanuel Vadot
39354d7675SEmmanuel VadotadditionalProperties: false
40354d7675SEmmanuel Vadot
41354d7675SEmmanuel Vadotexamples:
42354d7675SEmmanuel Vadot  - |
43354d7675SEmmanuel Vadot    flash {
44354d7675SEmmanuel Vadot      partitions {
45354d7675SEmmanuel Vadot        compatible = "redboot-fis";
46354d7675SEmmanuel Vadot        fis-index-block = <0>;
47354d7675SEmmanuel Vadot      };
48354d7675SEmmanuel Vadot    };
49