openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition
@ 2021-10-08  5:30 George Hung
  2021-10-11  5:14 ` Joel Stanley
  0 siblings, 1 reply; 2+ messages in thread
From: George Hung @ 2021-10-08  5:30 UTC (permalink / raw)
  To: Joel Stanley
  Cc: kwliu, Fran.Hsu, benjaminfair, wltu, openbmc, brandonkim,
	Avi.Fishman, tomer.maimon

Split the primary and secondary BIOS SPI EEPROMs in 2 partitions

Signed-off-by: George Hung <george.hung@quantatw.com>
---
 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 27 +++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index eb6eb21cb2a4..f20c2ae4f576 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -415,6 +415,19 @@ spi-nor@0 {
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
 		label = "pnor";
+		partitions@a0000000 {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			pnor-primary@0 {
+				label = "pnor-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			pnor-scratch@2000000 {
+				label = "pnor-scratch";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 	spi-nor@1 {
 		compatible = "jedec,spi-nor";
@@ -424,6 +437,20 @@ spi-nor@1 {
 		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
+		label = "pnor-2";
+		partitions@a0000000 {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			pnor-primary@0 {
+				label = "pnor-2-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			pnor-scratch@2000000 {
+				label = "pnor-2-scratch";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 };
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition
  2021-10-08  5:30 [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition George Hung
@ 2021-10-11  5:14 ` Joel Stanley
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Stanley @ 2021-10-11  5:14 UTC (permalink / raw)
  To: George Hung
  Cc: kwliu, Fran Hsu (徐誌謙),
	Benjamin Fair, Willy Tu, OpenBMC Maillist, Brandon Kim,
	Avi Fishman, Tomer Maimon

On Fri, 8 Oct 2021 at 05:40, George Hung <ghung.quanta@gmail.com> wrote:
>
> Split the primary and secondary BIOS SPI EEPROMs in 2 partitions
>
> Signed-off-by: George Hung <george.hung@quantatw.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-11  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  5:30 [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition George Hung
2021-10-11  5:14 ` Joel Stanley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).