summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi Sheng Teoh <jisheng.teoh@starfivetech.com>2023-10-18 12:52:57 +0300
committerJi Sheng Teoh <jisheng.teoh@starfivetech.com>2023-10-19 08:27:14 +0300
commit62797e2aaba7a30ff58a49744cbf62394f03d8be (patch)
tree89974b0c6001249514afdf2e9e93ed034ababd76
parent2ba29fa7a8d1a50297384df0f0a56ba02cfb4e22 (diff)
downloadlinux-62797e2aaba7a30ff58a49744cbf62394f03d8be.tar.xz
riscv: dts: starfive: dubhe: Update QSPI partition
This patch updates QSPI partition to allow MTD util to update the content inside the QSPI flash. The QSPI partition are arranged as follow: QSPI Flash content | Start Addr | End Addr | Size | -------------------------------------------------------- Boot Copier(RO) | 0x00000000 | 0x00000fff | 4KB | Boot Jump Code(RO) | 0x00001000 | 0x00001fff | 4KB | U-Boot SPL | 0x00002000 | 0x00041fff | 256KB | U-Boot FIT Image | 0x00042000 | 0x00141fff | 1MB | Linux + Rootfs | 0x00142000 | 0x07ffffff | 126MB | Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe_fpga_common.dtsi27
1 files changed, 22 insertions, 5 deletions
diff --git a/arch/riscv/boot/dts/starfive/dubhe_fpga_common.dtsi b/arch/riscv/boot/dts/starfive/dubhe_fpga_common.dtsi
index b310a1faf661..1e552ee0401e 100644
--- a/arch/riscv/boot/dts/starfive/dubhe_fpga_common.dtsi
+++ b/arch/riscv/boot/dts/starfive/dubhe_fpga_common.dtsi
@@ -94,13 +94,30 @@
#size-cells = <1>;
partition@0 {
- reg = <0x000000 0x2000000>;
- label = "Boot images";
+ reg = <0x00000000 0x00001000>;
+ label = "Boot Copier";
+ read-only;
};
- partition@2000000 {
- reg = <0x2000000 0x6000000>;
- label = "Rootfs";
+ partition@1000 {
+ reg = <0x00001000 0x00001000>;
+ label = "Boot Jump Code";
+ read-only;
+ };
+
+ partition@2000 {
+ reg = <0x00002000 0x00040000>;
+ label = "U-Boot SPL";
+ };
+
+ partition@42000 {
+ reg = <0x00042000 0x00100000>;
+ label = "U-Boot FIT Image";
+ };
+
+ partition@142000 {
+ reg = <0x00142000 0x07ebe000>;
+ label = "User";
};
};
};