octeon: fix snic10e SPI NOR flash
authorStijn Tintel <stijn@linux-ipv6.be>
Sun, 14 Nov 2021 18:33:32 +0000 (20:33 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 9 Nov 2023 12:35:03 +0000 (14:35 +0200)
Add bank-width, device-width and correct environment partition offset.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/snic10e.dts

index 08f7f6ef44d99edc9dcfe1dc4e79210ea8615ad7..c9a3c7ae810ad9e34e568ac891782542f84af5c1 100644 (file)
                        flash0: nor@0,0 {
                                compatible = "cfi-flash";
                                reg = <0 0 0x800000>;
+                               bank-width = <1>;
+                               device-width = <1>;
                                #address-cells = <1>;
                                #size-cells = <1>;
 
                                partition@0 {
                                        label = "bootloader";
-                                       reg = <0x0 0x1c0000>;
+                                       reg = <0x0 0x300000>;
                                        read-only;
                                };
                                partition@1c0000 {
-                                       label = "kernel";
-                                       reg = <0x1c0000 0x63e000>;
+                                       label = "rootfs_data";
+                                       reg = <0x300000 0x4f0000>;
                                };
-                               partition@7fe000 {
+                               partition@7f0000 {
                                        label = "environment";
-                                       reg = <0x7fe0000 0x2000>;
-                                       read-only;
+                                       reg = <0x7f0000 0x10000>;
                                };
                        };
                        psram0: psram@2,0 {