[PATCH 3/7] ARM: dts: nuvoton: gbs: Split SPI flash partition
David Wang
tomato1220 at gmail.com
Thu Mar 2 22:34:31 PST 2023
Split the primary and secondary BIOS SPI EEPROMs in 2 partitions
Signed-off-by: David Wang <davidwang at quantatw.com>
---
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 29 ++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index 9e9eba8bad5e..a33766e430d7 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -414,7 +414,20 @@ flash at 0 {
spi-max-frequency = <50000000>;
spi-rx-bus-width = <2>;
m25p,fast-read;
- label = "pnor";
+ label = "bios";
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ bios-primary at 0 {
+ label = "bios-primary";
+ reg = <0x0000000 0x2000000>;
+ };
+ bios-secondary at 2000000 {
+ label = "bios-secondary";
+ reg = <0x2000000 0x2000000>;
+ };
+ };
};
flash at 1 {
compatible = "jedec,spi-nor";
@@ -424,6 +437,20 @@ flash at 1 {
spi-max-frequency = <50000000>;
spi-rx-bus-width = <2>;
m25p,fast-read;
+ label = "bios-2";
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ bios-2-primary at 0 {
+ label = "bios-2-primary";
+ reg = <0x0000000 0x2000000>;
+ };
+ bios-2-secondary at 2000000 {
+ label = "bios-2-secondary";
+ reg = <0x2000000 0x2000000>;
+ };
+ };
};
};
--
2.25.1
More information about the linux-arm-kernel
mailing list