Patchwork [2/4] Add localbus node and MTD partitions for SBC834x

login
register
mail settings
Submitter Paul Gortmaker
Date Aug. 12, 2009, 1:34 p.m.
Message ID <22f17c810cb3e567a842300c553121a574d9b139.1250036189.git.paul.gortmaker@windriver.com>
Download mbox | patch
Permalink /patch/31189/
State Accepted, archived
Commit 31ff09b7a60bbc80b5df941ec1a12502861b4da9
Delegated to: Kumar Gala
Headers show

Comments

Paul Gortmaker - Aug. 12, 2009, 1:34 p.m.
From: Liang Li <liang.li@windriver.com>

There is 8MB flash, 8kB EEPROM and 128MB SDRAM on the sbc834x
local bus, so add a localbus node in DTS with MTD partitions.

The recent U-boot commit fe613cdd4eb moves u-boot to the beginning
of flash, hence the legacy label on the partition at the end of flash.

Signed-off-by: Liang Li <liang.li@windriver.com>
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/powerpc/boot/dts/sbc8349.dts |   40 +++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)
Kumar Gala - Aug. 14, 2009, 8:32 p.m.
On Aug 12, 2009, at 8:34 AM, Paul Gortmaker wrote:

> From: Liang Li <liang.li@windriver.com>
>
> There is 8MB flash, 8kB EEPROM and 128MB SDRAM on the sbc834x
> local bus, so add a localbus node in DTS with MTD partitions.
>
> The recent U-boot commit fe613cdd4eb moves u-boot to the beginning
> of flash, hence the legacy label on the partition at the end of flash.
>
> Signed-off-by: Liang Li <liang.li@windriver.com>
> Signed-off-by: Yang Shi <yang.shi@windriver.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
> arch/powerpc/boot/dts/sbc8349.dts |   40 ++++++++++++++++++++++++++++ 
> +++++++++
> 1 files changed, 40 insertions(+), 0 deletions(-)


applied to next

- k

Patch

diff --git a/arch/powerpc/boot/dts/sbc8349.dts b/arch/powerpc/boot/dts/sbc8349.dts
index d93e5be..b83036a 100644
--- a/arch/powerpc/boot/dts/sbc8349.dts
+++ b/arch/powerpc/boot/dts/sbc8349.dts
@@ -265,6 +265,46 @@ 
 		};
 	};
 
+	localbus@e0005000 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		compatible = "fsl,mpc8349-localbus", "simple-bus";
+		reg = <0xe0005000 0x1000>;
+		interrupts = <77 0x8>;
+		interrupt-parent = <&ipic>;
+		ranges = <0x0 0x0 0xff800000 0x00800000		/* 8MB Flash */
+			  0x1 0x0 0xf8000000 0x00002000		/* 8KB EEPROM */
+			  0x2 0x0 0x10000000 0x04000000		/* 64MB SDRAM */
+			  0x3 0x0 0x10000000 0x04000000>;	/* 64MB SDRAM */
+
+		flash@0,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "intel,28F640J3A", "cfi-flash";
+			reg = <0x0 0x0 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+
+			partition@0 {
+				label = "u-boot";
+				reg = <0x00000000 0x00040000>;
+				read-only;
+			};
+
+			partition@40000 {
+				label = "user";
+				reg = <0x00040000 0x006c0000>;
+			};
+
+			partition@700000 {
+				label = "legacy u-boot";
+				reg = <0x00700000 0x00100000>;
+				read-only;
+			};
+
+		};
+	};
+
 	pci0: pci@e0008500 {
 		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
 		interrupt-map = <