[PATCH] ramips: fix mtd partition node names for Phicomm PSG1208

Shiji Yang yangshiji66 at outlook.com
Sun Oct 1 20:54:59 PDT 2023


From: Shiji Yang <yangshiji66 at qq.com>

The mtd partition node name should be "partition@${offset}".
However, the offsets of the PSG1208 don't match the partition
'reg' properties. This patch correct the wrong offsets.

Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
 target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
index 4e123c32bd..fc4f1d6258 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
@@ -67,19 +67,19 @@
 				read-only;
 			};
 
-			partition at 20000 {
+			partition at 30000 {
 				label = "u-boot-env";
 				reg = <0x30000 0x10000>;
 				read-only;
 			};
 
-			factory: partition at 30000 {
+			factory: partition at 40000 {
 				label = "factory";
 				reg = <0x40000 0x10000>;
 				read-only;
 			};
 
-			partition at 40000 {
+			partition at 50000 {
 				compatible = "denx,uimage";
 				label = "firmware";
 				reg = <0x50000 0x7b0000>;
-- 
2.39.2




More information about the openwrt-devel mailing list