linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: viresh.kumar@st.com (Viresh Kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] SPEAr: Add SMI NOR partition info in dts files
Date: Thu, 3 May 2012 16:07:09 +0530	[thread overview]
Message-ID: <bd96eb0df2e50de1293a8df60d30ceea920fe2b0.1336041348.git.viresh.kumar@st.com> (raw)

This patch adds NOR partitions in all SPEAr boards dts files.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
---
Arnd,

I will have it in my pull request for SPEAr13xx. These mails are only for
review.

 arch/arm/boot/dts/spear1310-evb.dts |   25 +++++++++++++++++++++++++
 arch/arm/boot/dts/spear1340-evb.dts |   25 +++++++++++++++++++++++++
 arch/arm/boot/dts/spear300-evb.dts  |   25 +++++++++++++++++++++++++
 arch/arm/boot/dts/spear310-evb.dts  |   20 ++++++++++++++++++--
 arch/arm/boot/dts/spear320-evb.dts  |   25 +++++++++++++++++++++++++
 arch/arm/boot/dts/spear600-evb.dts  |   29 +++++++++++++++++++++++++++++
 6 files changed, 147 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/spear1310-evb.dts b/arch/arm/boot/dts/spear1310-evb.dts
index 12cce81..c090833 100644
--- a/arch/arm/boot/dts/spear1310-evb.dts
+++ b/arch/arm/boot/dts/spear1310-evb.dts
@@ -121,6 +121,31 @@
 
 		smi: flash at ea000000 {
 			status = "okay";
+			clock-rate=<50000000>;
+
+			flash at e6000000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0xe6000000 0x800000>;
+				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
+			};
 		};
 
 		spi0: spi at e0100000 {
diff --git a/arch/arm/boot/dts/spear1340-evb.dts b/arch/arm/boot/dts/spear1340-evb.dts
index e52b23f..0bf9d8f 100644
--- a/arch/arm/boot/dts/spear1340-evb.dts
+++ b/arch/arm/boot/dts/spear1340-evb.dts
@@ -133,6 +133,31 @@
 
 		smi: flash at ea000000 {
 			status = "okay";
+			clock-rate=<50000000>;
+
+			flash at e6000000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0xe6000000 0x800000>;
+				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
+			};
 		};
 
 		spi0: spi at e0100000 {
diff --git a/arch/arm/boot/dts/spear300-evb.dts b/arch/arm/boot/dts/spear300-evb.dts
index 910e264..cb66ba2 100644
--- a/arch/arm/boot/dts/spear300-evb.dts
+++ b/arch/arm/boot/dts/spear300-evb.dts
@@ -87,6 +87,31 @@
 
 		smi: flash at fc000000 {
 			status = "okay";
+			clock-rate=<50000000>;
+
+			flash at f8000000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0xf8000000 0x800000>;
+				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
+			};
 		};
 
 		spi0: spi at d0100000 {
diff --git a/arch/arm/boot/dts/spear310-evb.dts b/arch/arm/boot/dts/spear310-evb.dts
index eb9f19e..12ac5ed 100644
--- a/arch/arm/boot/dts/spear310-evb.dts
+++ b/arch/arm/boot/dts/spear310-evb.dts
@@ -103,11 +103,27 @@
 			clock-rate=<50000000>;
 
 			flash at f8000000 {
-				label = "m25p64";
-				reg = <0xf8000000 0x800000>;
 				#address-cells = <1>;
 				#size-cells = <1>;
+				reg = <0xf8000000 0x800000>;
 				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
 			};
 		};
 
diff --git a/arch/arm/boot/dts/spear320-evb.dts b/arch/arm/boot/dts/spear320-evb.dts
index 96280fe..a2115aa 100644
--- a/arch/arm/boot/dts/spear320-evb.dts
+++ b/arch/arm/boot/dts/spear320-evb.dts
@@ -110,6 +110,31 @@
 
 		smi: flash at fc000000 {
 			status = "okay";
+			clock-rate=<50000000>;
+
+			flash at f8000000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0xf8000000 0x800000>;
+				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
+			};
 		};
 
 		spi0: spi at d0100000 {
diff --git a/arch/arm/boot/dts/spear600-evb.dts b/arch/arm/boot/dts/spear600-evb.dts
index 790a7a8..1872cb0 100644
--- a/arch/arm/boot/dts/spear600-evb.dts
+++ b/arch/arm/boot/dts/spear600-evb.dts
@@ -33,6 +33,35 @@
 			status = "okay";
 		};
 
+		smi: flash at fc000000 {
+			status = "okay";
+			clock-rate=<50000000>;
+
+			flash at f8000000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0xf8000000 0x800000>;
+				st,smi-fast-mode;
+
+				partition at 0 {
+					label = "xloader";
+					reg = <0x0 0x10000>;
+				};
+				partition at 10000 {
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;
+				};
+			};
+		};
+
 		apb {
 			serial at d0000000 {
 				status = "okay";
-- 
1.7.9

             reply	other threads:[~2012-05-03 10:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-03 10:37 Viresh Kumar [this message]
2012-05-03 10:37 ` [PATCH 2/2] SPEAr: Update defconfigs Viresh Kumar
2012-05-03 11:02 ` [PATCH 1/2] SPEAr: Add SMI NOR partition info in dts files Arnd Bergmann
2012-05-03 11:11   ` Stefan Roese
2012-05-04  2:41 ` walimis
2012-05-04  3:52   ` Viresh Kumar

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=bd96eb0df2e50de1293a8df60d30ceea920fe2b0.1336041348.git.viresh.kumar@st.com \
    --to=viresh.kumar@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).