[PATCH] ARM: dts: Let Gemini NS2502 parse redboot partitions

Linus Walleij linus.walleij at linaro.org
Tue Apr 12 15:03:58 PDT 2022


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 at gmail.com>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 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 704abd212df5..e75b1e9be6d5 100644
--- a/arch/arm/boot/dts/gemini-ns2502.dts
+++ b/arch/arm/boot/dts/gemini-ns2502.dts
@@ -65,30 +65,9 @@ &flash {
 	pinctrl-1 = <&pflash_disabled_pins>;
 
 	partitions {
-		compatible = "fixed-partitions";
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		partition at 0 {
-			label = "RedBoot";
-			reg = <0x00000000 0x00020000>;
-		};
-		partition at 20000 {
-			label = "kernel";
-			reg = <0x00020000 0x00700000>;
-		};
-		partition at 720000 {
-			label = "VCTL";
-			reg = <0x00720000 0x00020000>;
-		};
-		partition at 740000 {
-			label = "CurConf";
-			reg = <0x00740000 0x000a0000>;
-		};
-		partition at 7e0000 {
-			label = "FIS";
-			reg = <0x007e0000 0x00010000>;
-		};
+		compatible = "redboot-fis";
+		/* Eraseblock at 0x7e0000 */
+		fis-index-block = <0x3f>;
 	};
 };
 
-- 
2.35.1




More information about the linux-arm-kernel mailing list