summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Lee <yang.lee@starfivetech.com>2023-02-21 08:36:54 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2023-12-04 06:00:14 +0300
commit722ab92fa2657af3bc4aa9728f2cffd59da91149 (patch)
treeda0ae72820695266d8f42e385573d18eac6fc3f0
parentbe7e888028cff2b005119644733226ca03f7807d (diff)
downloadlinux-722ab92fa2657af3bc4aa9728f2cffd59da91149.tar.xz
riscv: dts: starfive: dubhe: Add flash partition patch
This patch includes flash partition changes. Signed-off-by: Yang Lee <yang.lee@starfivetech.com>
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe_fpga.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
index 3e0e0c1c79a2..a8e1995eff7a 100644
--- a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
+++ b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
@@ -76,6 +76,31 @@
&qspi1 {
status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <20000000>;
+ m25p,fast-read;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <1>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x000000 0x1730000>;
+ label = "Boot images";
+ };
+
+ partition@1730000 {
+ reg = <0x1730000 0x68D0000>;
+ label = "Rootfs";
+ };
+ };
+ };
};
&uart0 {