From f485f6d852696d4cd9a2cc1c8e3dd8dba75a3e17 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Wed, 13 Apr 2022 00:03:58 +0200 Subject: [PATCH] ARM: dts: Let Gemini NS2502 parse redboot partitions 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 Link: https://lore.kernel.org/r/20220412220358.3674598-1-linus.walleij@linaro.org Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-ns2502.dts | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/gemini-ns2502.dts b/arch/arm/boot/dts/gemini-ns2502.dts index 508bb5846e296..e6eeb35e88198 100644 --- a/arch/arm/boot/dts/gemini-ns2502.dts +++ b/arch/arm/boot/dts/gemini-ns2502.dts @@ -61,30 +61,9 @@ 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>; }; }; -- 2.30.2