All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger.com>
To: wg@grandegger.com
Subject: [PATCH RFC] tqm8560.dts: add local bus devices
Date: Sun, 06 Apr 2008 14:29:36 +0200	[thread overview]
Message-ID: <47F8C230.4090607@grandegger.com> (raw)

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.

             reply	other threads:[~2008-04-06 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-06 12:29 Wolfgang Grandegger [this message]
     [not found] ` <0d57d42da9d29cc240be9d38de29ed96@kernel.crashing.org>
2008-04-06 17:42   ` [PATCH RFC] tqm8560.dts: add local bus devices Wolfgang Grandegger
2008-04-06 18:45     ` Wolfgang Grandegger

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=47F8C230.4090607@grandegger.com \
    --to=wg@grandegger.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.