gemini: Add kernel v6.1 patches
[openwrt/openwrt.git] / target / linux / gemini / patches-6.1 / 0026-ARM-dts-gemini-wbd111-Use-RedBoot-partion-parser.patch
1 From 0e733f5af628210f372585e431504a7024e7b571 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Sun, 4 Dec 2022 20:02:29 +0100
4 Subject: [PATCH 26/29] ARM: dts: gemini: wbd111: Use RedBoot partion parser
5
6 This is clearly a RedBoot partitioned device with 0x20000
7 sized erase blocks.
8
9 Link: https://lore.kernel.org/r/20221204190230.3345590-2-linus.walleij@linaro.org
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 ---
12 --- a/arch/arm/boot/dts/gemini-wbd111.dts
13 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
14 @@ -86,36 +86,11 @@
15 status = "okay";
16 /* 8MB of flash */
17 reg = <0x30000000 0x00800000>;
18 - #address-cells = <1>;
19 - #size-cells = <1>;
20
21 - partition@0 {
22 - label = "RedBoot";
23 - reg = <0x00000000 0x00020000>;
24 - read-only;
25 - };
26 - partition@20000 {
27 - label = "kernel";
28 - reg = <0x00020000 0x00100000>;
29 - };
30 - partition@120000 {
31 - label = "rootfs";
32 - reg = <0x00120000 0x006a0000>;
33 - };
34 - partition@7c0000 {
35 - label = "VCTL";
36 - reg = <0x007c0000 0x00010000>;
37 - read-only;
38 - };
39 - partition@7d0000 {
40 - label = "cfg";
41 - reg = <0x007d0000 0x00010000>;
42 - read-only;
43 - };
44 - partition@7e0000 {
45 - label = "FIS";
46 - reg = <0x007e0000 0x00010000>;
47 - read-only;
48 + partitions {
49 + compatible = "redboot-fis";
50 + /* Eraseblock at 0x7e0000 */
51 + fis-index-block = <0x3f>;
52 };
53 };
54