[PATCH] powerpc/p2041rdb: add NAND node in device tree

2012-06-29 Thread Shaohui Xie
NAND on p2041 uses CS1 as chip select.

Signed-off-by: Shaohui Xie shaohui@freescale.com
---
 arch/powerpc/boot/dts/p2041rdb.dts |   41 +++-
 1 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/p2041rdb.dts 
b/arch/powerpc/boot/dts/p2041rdb.dts
index 2852139..baab034 100644
--- a/arch/powerpc/boot/dts/p2041rdb.dts
+++ b/arch/powerpc/boot/dts/p2041rdb.dts
@@ -121,7 +121,8 @@
 
lbc: localbus@ffe124000 {
reg = 0xf 0xfe124000 0 0x1000;
-   ranges = 0 0 0xf 0xe800 0x0800;
+   ranges = 0 0 0xf 0xe800 0x0800
+ 1 0 0xf 0xffa0 0x0004;
 
flash@0,0 {
compatible = cfi-flash;
@@ -129,6 +130,44 @@
bank-width = 2;
device-width = 2;
};
+
+   nand@1,0 {
+   #address-cells = 1;
+   #size-cells = 1;
+   compatible = fsl,elbc-fcm-nand;
+   reg = 0x1 0x0 0x4;
+
+   partition@0 {
+   label = NAND U-Boot Image;
+   reg = 0x0 0x0200;
+   read-only;
+   };
+
+   partition@200 {
+   label = NAND Root File System;
+   reg = 0x0200 0x1000;
+   };
+
+   partition@1200 {
+   label = NAND Compressed RFS Image;
+   reg = 0x1200 0x0800;
+   };
+
+   partition@1a00 {
+   label = NAND Linux Kernel Image;
+   reg = 0x1a00 0x0400;
+   };
+
+   partition@1e00 {
+   label = NAND DTB Image;
+   reg = 0x1e00 0x0100;
+   };
+
+   partition@1f00 {
+   label = NAND Writable User area;
+   reg = 0x1f00 0x0100;
+   };
+   };
};
 
pci0: pcie@ffe20 {
-- 
1.6.4


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH] powerpc/p2041rdb: add NAND node in device tree

2012-06-29 Thread Kumar Gala

On Jun 29, 2012, at 4:41 AM, Shaohui Xie wrote:

 NAND on p2041 uses CS1 as chip select.
 
 Signed-off-by: Shaohui Xie shaohui@freescale.com
 ---
 arch/powerpc/boot/dts/p2041rdb.dts |   41 +++-
 1 files changed, 40 insertions(+), 1 deletions(-)

applied

- k
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev