ARM: dts: Let Gemini NS2502 parse redboot partitions
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Apr 2022 22:03:58 +0000 (00:03 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Aug 2022 11:38:35 +0000 (13:38 +0200)
The NS2502 uses hardcoded partitions but parsing the RedBoot
FIS should work fine, given that this flash seems to be using
0x200000 erase blocks.

Cc: Corentin Labbe <clabbe.montjoie@gmail.com>
Link: https://lore.kernel.org/r/20220412220358.3674598-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini-ns2502.dts

index 508bb5846e296519477fa938d37f6cbb64f54e1b..e6eeb35e88198118d442fc581c68a84c889b67c6 100644 (file)
        pinctrl-1 = <&pflash_disabled_pins>;
 
        partitions {
-               compatible = "fixed-partitions";
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               partition@0 {
-                       label = "RedBoot";
-                       reg = <0x00000000 0x00020000>;
-               };
-               partition@20000 {
-                       label = "kernel";
-                       reg = <0x00020000 0x00700000>;
-               };
-               partition@720000 {
-                       label = "VCTL";
-                       reg = <0x00720000 0x00020000>;
-               };
-               partition@740000 {
-                       label = "CurConf";
-                       reg = <0x00740000 0x000a0000>;
-               };
-               partition@7e0000 {
-                       label = "FIS";
-                       reg = <0x007e0000 0x00010000>;
-               };
+               compatible = "redboot-fis";
+               /* Eraseblock at 0x7e0000 */
+               fis-index-block = <0x3f>;
        };
 };