openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: George Hung <ghung.quanta@gmail.com>
To: Joel Stanley <joel@jms.id.au>
Cc: kwliu@nuvoton.com, Fran.Hsu@quantatw.com,
	benjaminfair@google.com, wltu@google.com,
	openbmc@lists.ozlabs.org, brandonkim@google.com,
	Avi.Fishman@nuvoton.com, tomer.maimon@nuvoton.com
Subject: [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition
Date: Fri,  8 Oct 2021 13:30:06 +0800	[thread overview]
Message-ID: <20211008053006.31961-1-george.hung@quantatw.com> (raw)

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


             reply	other threads:[~2021-10-08  5:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-08  5:30 George Hung [this message]
2021-10-11  5:14 ` [PATCH dev-5.14 v1] ARM: dts: nuvoton: gbs: split SPI flash partition Joel Stanley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211008053006.31961-1-george.hung@quantatw.com \
    --to=ghung.quanta@gmail.com \
    --cc=Avi.Fishman@nuvoton.com \
    --cc=Fran.Hsu@quantatw.com \
    --cc=benjaminfair@google.com \
    --cc=brandonkim@google.com \
    --cc=joel@jms.id.au \
    --cc=kwliu@nuvoton.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=tomer.maimon@nuvoton.com \
    --cc=wltu@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).