LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC] tqm8560.dts: add local bus devices
@ 2008-04-06 12:29 Wolfgang Grandegger
       [not found] ` <0d57d42da9d29cc240be9d38de29ed96@kernel.crashing.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Grandegger @ 2008-04-06 12:29 UTC (permalink / raw)
  To: wg

Hello,

this is my first attempt to add local bus nodes to the DTS file 
of the TQM8560 for the following devices:

  CS1: 128 MB NOR FLASH at 0xf8000000
  CS2: Two Intel 82527 CAN controller at 0xe3000000
  CS3: 128 MB NAND FLASH at 0xe3010000

Index: linux-2.6-denx/arch/powerpc/boot/dts/tqm8560.dts
===================================================================
--- linux-2.6-denx.orig/arch/powerpc/boot/dts/tqm8560.dts
+++ linux-2.6-denx/arch/powerpc/boot/dts/tqm8560.dts
@@ -221,6 +221,77 @@
 		};
 	};
 
+	localbus@e0005000 {
+		compatible = "fsl,mpc8560-localbus";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		reg = <0xe0005000 0x100>;	// BRx, ORx, etc.
+
+		ranges = <
+			0x0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
+			0x1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
+			0x2 0x0 0xe3000000 0x00008000	// CAN (2 x i82527)
+			0x3 0x0 0xe3010000 0x00008000	// NAND FLASH
+		>;
+
+		flash@1,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <0x1 0x0 0x8000000>;
+			bank-width = <4>;
+			device-width = <1>;
+
+			partition@0 {
+                                label = "kernel";
+                                reg = <0x00000000 0x00300000>;
+                        };
+                        partition@300000 {
+                                label = "fs";
+                                reg = <0x00300000 0x07c00000>;
+                        };
+                        partition@7700000 {
+                                label = "firmware";
+                                reg = <0x07700000 0x00100000>;
+                                read-only;
+                        };
+
+		};
+
+		can@2,0 {
+			device_type = "can";
+			compatible = "i82527";	// Intel 82527 or Bosch CC770
+			reg = <0x2 0x0 0x100>;
+			interrupts = <0x9 0x2>;
+			interrupt-parent = <&mpic>;
+		}
+
+		can@2,100 {
+			device_type = "can";
+			compatible = "i82527";	// Intel 82527 or Bosch CC770
+			reg = <0x2 0x100 0x100>;
+			interrupts = <0x9 0x2>;
+			interrupt-parent = <&mpic>;
+		}
+
+		nand@3,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "fsl,mpc8560-fcm-nand",
+			             "fsl,elbc-fcm-nand";
+			reg = <0x3 0x0 0x8000>;
+
+			kernel@0 {
+                                label = "kernel";
+				reg = <0x000000 0x0300000>;
+			};
+			fs@300000 {
+                                label = "fs";
+				reg = <0x300000 0x7d00000>;
+			};
+		};
+	};
+
 	pci0: pci@e0008000 {
 		cell-index = <0>;
 		#interrupt-cells = <1>;


Do these entries make sense?

TIA.

Wolfgang.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-06 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-06 12:29 [PATCH RFC] tqm8560.dts: add local bus devices Wolfgang Grandegger
     [not found] ` <0d57d42da9d29cc240be9d38de29ed96@kernel.crashing.org>
2008-04-06 17:42   ` Wolfgang Grandegger
2008-04-06 18:45     ` Wolfgang Grandegger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox