gemini: Add v4.19 kernel patches
[openwrt/openwrt.git] / target / linux / gemini / patches-4.19 / 0009-mtd-partitions-Add-RedBoot-FIS-DT-bindings.patch
1 From 3dfe7ff875a64b83de21dad6365225f41f3cdb17 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Fri, 19 Oct 2018 08:22:18 +0200
4 Subject: [PATCH 09/18] mtd: partitions: Add RedBoot FIS DT bindings
5
6 This adds device tree bindings for the RedBoot FIS partition
7 format.
8
9 Cc: devicetree@vger.kernel.org
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 ---
12 .../bindings/mtd/partitions/redboot-fis.txt | 27 +++++++++++++++++++
13 1 file changed, 27 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
15
16 diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
17 new file mode 100644
18 index 000000000000..fd0ebe4e3415
19 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
21 @@ -0,0 +1,27 @@
22 +RedBoot FLASH Image System (FIS) Partitions
23 +===========================================
24 +
25 +The FLASH Image System (FIS) directory is a flash description
26 +format closely associated with the RedBoot boot loader.
27 +
28 +It uses one single flash eraseblock in the flash to store an index of
29 +all images in the flash.
30 +
31 +This block size will vary depending on flash but is typically
32 +32 KB in size.
33 +
34 +Required properties:
35 +- compatible : (required) must be "redboot-fis"
36 +- fis-index-block : (required) a index to the eraseblock containing
37 + the FIS directory on this device. On a flash memory with 32KB
38 + eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the
39 + second eraseblock at 0x00008000 and so on.
40 +
41 +Example:
42 +
43 +flash@0 {
44 + partitions {
45 + compatible = "redboot-fis";
46 + fis-index-block = <0>;
47 + };
48 +};
49 --
50 2.19.2
51