[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 3 Mar 2023 14:34:31 +0800
From: David Wang <tomato1220@...il.com>
To: arnd@...db.de, olof@...om.net, soc@...nel.org, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org
Cc: avifishman70@...il.com, tmaimon77@...il.com, tali.perry1@...il.com,
venture@...gle.com, yuenn@...gle.com, benjaminfair@...gle.com,
linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, openbmc@...ts.ozlabs.org,
fran.hsu@...ntatw.com, David Wang <davidwang@...ntatw.com>
Subject: [PATCH 3/7] ARM: dts: nuvoton: gbs: Split SPI flash partition
Split the primary and secondary BIOS SPI EEPROMs in 2 partitions
Signed-off-by: David Wang <davidwang@...ntatw.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@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@0 {
+ label = "bios-primary";
+ reg = <0x0000000 0x2000000>;
+ };
+ bios-secondary@...0000 {
+ label = "bios-secondary";
+ reg = <0x2000000 0x2000000>;
+ };
+ };
};
flash@1 {
compatible = "jedec,spi-nor";
@@ -424,6 +437,20 @@ flash@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@0 {
+ label = "bios-2-primary";
+ reg = <0x0000000 0x2000000>;
+ };
+ bios-2-secondary@...0000 {
+ label = "bios-2-secondary";
+ reg = <0x2000000 0x2000000>;
+ };
+ };
};
};
--
2.25.1
Powered by blists - more mailing lists