* [PATCH] powerpc/p1023rds: Add nand flash node support in the dts
@ 2011-08-15 8:43 Chunhe Lan
0 siblings, 0 replies; only message in thread
From: Chunhe Lan @ 2011-08-15 8:43 UTC (permalink / raw)
To: linuxppc-dev; +Cc: scottwood, kumar.gala, Chunhe Lan
In the p1023rds, accessing exclusively nor flash or nand flash
device by BR0/OR0. When booting from nor flash, nand node is
disabled and nor node is enabled in the default dts. So, when
booting from nand flash, u-boot should do some operations:
o The "status" property of nand node should be enabled.
o The "status" property of nor node should be disabled.
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
---
arch/powerpc/boot/dts/p1023rds.dts | 46 +++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/boot/dts/p1023rds.dts b/arch/powerpc/boot/dts/p1023rds.dts
index d9b7767..aa63b81 100644
--- a/arch/powerpc/boot/dts/p1023rds.dts
+++ b/arch/powerpc/boot/dts/p1023rds.dts
@@ -58,6 +58,9 @@
rtic_b = &rtic_b;
rtic_c = &rtic_c;
rtic_d = &rtic_d;
+
+ nor_flash = &nor_flash;
+ nand_flash = &nand_flash;
};
cpus {
@@ -378,11 +381,12 @@
interrupts = <19 2>;
interrupt-parent = <&mpic>;
- /* NOR Flash, BCSR */
+ /* NOR Flash, BCSR, NAND Flash */
ranges = <0x0 0x0 0x0 0xee000000 0x02000000
- 0x1 0x0 0x0 0xe0000000 0x00008000>;
+ 0x1 0x0 0x0 0xe0000000 0x00008000
+ 0x2 0x0 0x0 0xffa00000 0x00040000>;
- nor@0,0 {
+ nor_flash: nor@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
@@ -425,6 +429,42 @@
reg = <0x20 0x20>;
};
};
+
+ nand_flash: nand@2,0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "fsl,p1023-fcm-nand",
+ "fsl,elbc-fcm-nand";
+ reg = <0x2 0x0 0x00040000>;
+ status = "disabled";
+
+ u-boot-nand@0 {
+ /* This location must not be altered */
+ /* 1MB for u-boot Bootloader Image */
+ reg = <0x0 0x00100000>;
+ read-only;
+ };
+
+ dtb-nand@100000 {
+ /* 1MB for DTB Image */
+ reg = <0x00100000 0x00100000>;
+ };
+
+ kernel-nand@200000 {
+ /* 4MB for Linux Kernel Image */
+ reg = <0x00200000 0x00400000>;
+ };
+
+ ramdisk-nand@600000 {
+ /* 57MB for Compressed Root file System Image */
+ reg = <0x00600000 0x03900000>;
+ };
+
+ empty-nand@3f00000 {
+ /* 1MB for reserved space */
+ reg = <0x03f00000 0x00100000>;
+ };
+ };
};
pci0: pcie@ff60a000 {
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-15 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 8:43 [PATCH] powerpc/p1023rds: Add nand flash node support in the dts Chunhe Lan
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).