summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij2026-01-23 15:32:10 +0000
committerLinus Walleij2026-02-11 07:47:45 +0000
commit62818bda833d89f8d87fec66c4f54f6879693afc (patch)
tree42cacf4b6ba630dc2b005e142d16b067b47316b8
parent08cba4608e88aa5f0f31f7a55151ea5b92849ff4 (diff)
downloadopenwrt-62818bda833d89f8d87fec66c4f54f6879693afc.tar.gz
gemini: Add DTS fix from upstream kernel
This contains small but important DTS fixes for the RedBoot partitions. Link: https://github.com/openwrt/openwrt/pull/21662 (cherry picked from commit 92682593d53104f43f8b06c52faa5d05d471dea8) Link: https://github.com/openwrt/openwrt/pull/21973 Signed-off-by: Linus Walleij <linusw@kernel.org>
-rw-r--r--target/linux/gemini/patches-6.12/0001-ARM-dts-gemini-Fix-partition-offsets.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-6.12/0001-ARM-dts-gemini-Fix-partition-offsets.patch b/target/linux/gemini/patches-6.12/0001-ARM-dts-gemini-Fix-partition-offsets.patch
new file mode 100644
index 0000000000..45cf889f8e
--- /dev/null
+++ b/target/linux/gemini/patches-6.12/0001-ARM-dts-gemini-Fix-partition-offsets.patch
@@ -0,0 +1,41 @@
+From 771db4a77c5fb6da4908825e65f500ad67f86e5f Mon Sep 17 00:00:00 2001
+From: Linus Walleij <linusw@kernel.org>
+Date: Fri, 23 Jan 2026 16:24:49 +0100
+Subject: [PATCH] ARM: dts: gemini: Fix partition offsets
+
+These FIS partition offsets were never right: the comment clearly
+states the FIS index is at 0xfe0000 and 0x7f * 0x200000 is
+0xfe0000.
+
+Tested on the iTian SQ201.
+
+Fixes: d88b11ef91b1 ("ARM: dts: Fix up SQ201 flash access")
+Fixes: b5a923f8c739 ("ARM: dts: gemini: Switch to redboot partition parsing")
+Signed-off-by: Linus Walleij <linusw@kernel.org>
+---
+ arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 2 +-
+ arch/arm/boot/dts/gemini/gemini-sq201.dts | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/arm/boot/dts/gemini/gemini-sl93512r.dts
++++ b/arch/arm/boot/dts/gemini/gemini-sl93512r.dts
+@@ -146,7 +146,7 @@
+ partitions {
+ compatible = "redboot-fis";
+ /* Eraseblock at 0xfe0000 */
+- fis-index-block = <0x1fc>;
++ fis-index-block = <0x7f>;
+ };
+ };
+
+--- a/arch/arm/boot/dts/gemini/gemini-sq201.dts
++++ b/arch/arm/boot/dts/gemini/gemini-sq201.dts
+@@ -134,7 +134,7 @@
+ partitions {
+ compatible = "redboot-fis";
+ /* Eraseblock at 0xfe0000 */
+- fis-index-block = <0x1fc>;
++ fis-index-block = <0x7f>;
+ };
+ };
+