ramips: fix mtd partition node names for Phicomm PSG1208
authorShiji Yang <yangshiji66@qq.com>
Mon, 2 Oct 2023 03:54:59 +0000 (11:54 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 17 Oct 2023 10:07:26 +0000 (12:07 +0200)
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@qq.com>
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts

index 4e123c32bde5c0eae9a8ef5cb02b2365afa50159..fc4f1d6258546d2e4bf815cc34364c85b09dfec0 100644 (file)
                                read-only;
                        };
 
-                       partition@20000 {
+                       partition@30000 {
                                label = "u-boot-env";
                                reg = <0x30000 0x10000>;
                                read-only;
                        };
 
-                       factory: partition@30000 {
+                       factory: partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
                        };
 
-                       partition@40000 {
+                       partition@50000 {
                                compatible = "denx,uimage";
                                label = "firmware";
                                reg = <0x50000 0x7b0000>;