Skip to contentSkip to conversation

MPC8360E-RDK: device tree, board file and defconfig

PATCH Superseded Anton Vorontsov 2 participants 5 messages Jan 23, 2008 – Jan 25, 2008

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPC8360E-RDK: device tree, board file and defconfig

This is new board made by Freescale Semiconductor Inc. and Logic Product Development.

Currently supported:
1. UEC{1,2,7,4};
2. I2C;
3. SPI;
4. NS16550 serial;
5. PCI and miniPCI;
6. Intel NOR StrataFlash X16 64Mbit PC28F640P30T85;
7. Graphics controller, Fujitsu MB86277.

Not supported so far:
1. StMICRO NAND512W3A2BN6E, 512 Mbit (supported with FSL UPM patches);
2. QE Serial UCCs (tested to not work with ucc_uart driver, reason unknown, yet);
3. ADC AD7843 (tested to work, but support via device tree depends on major SPI rework, GPIO API, etc);
4. FHCI USB (will send RFC patches soon).

---

Hello Kumar,

...if there will no further comments regarding this board, it would be great if you will merge it for 2.6.25. I've reworked that patch so today it doesn't depend on the cleanup queue. That is, the device tree includes device_type and other cruft that will be removed along with other boards.

Another change is: "display" node addition. It could be not fully correct regarding device_type etc, but that's what offb driver understands for today.

Thanks,

 arch/powerpc/boot/dts/mpc836x_rdk.dts      |  380 ++++++++++
 arch/powerpc/configs/mpc836x_rdk_defconfig | 1054 ++++++++++++++++++++++++++++
 arch/powerpc/platforms/83xx/Kconfig        |   11 +-
 arch/powerpc/platforms/83xx/Makefile       |    1 +
 arch/powerpc/platforms/83xx/mpc836x_rdk.c  |  114 +++
 5 files changed, 1559 insertions(+), 1 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mpc836x_rdk.dts
 create mode 100644 arch/powerpc/configs/mpc836x_rdk_defconfig
 create mode 100644 arch/powerpc/platforms/83xx/mpc836x_rdk.c
arch/powerpc/boot/dts/mpc836x_rdk.dts new file +380 -0
new file mode 100644
index 0000000..b8f87ac
@@ -0,0 +1,380 @@
+/*
+ * MPC8360E RDK Device Tree Source
+ *
+ * Copyright 2006 Freescale Semiconductor Inc.
+ * Copyright 2007 MontaVista Software, Inc.
+ * 		  Anton Vorontsov <[email protected]>
+ *
+ * This program is free software; you can redistribute  it and/or modify it
+ * under  the terms of  the GNU General  Public License as published by the
+ * Free Software Foundation;  either version 2 of the  License, or (at your
+ * option) any later version.
+ */
+
+/dts-v1/;
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	compatible = "MPC8360ERDK", "MPC836xRDK", "MPC83xxRDK";
+	model = "MPC8360RDK";
+
+	aliases {
+		serial0 = &serial0;
+		serial1 = &serial1;
+		serial2 = &serial2;
+		serial3 = &serial3;
+		ethernet0 = &enet0;
+		ethernet1 = &enet1;
+		ethernet2 = &enet2;
+		ethernet3 = &enet3;
+		pci0 = &pci0;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		PowerPC,8360@0 {
+			device_type = "cpu";
+			reg = <0>;
+			d-cache-line-size = <32>;
+			i-cache-line-size = <32>;
+			d-cache-size = <32768>;
+			i-cache-size = <32768>;
+			/* filled by u-boot */
+			timebase-frequency = <0>;
+			bus-frequency = <0>;
+			clock-frequency = <0>;
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		/* filled by u-boot */
+		reg = <0 0>;
+	};
+
+	soc@e0000000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "soc";
+		compatible = "fsl,mpc8360-soc", "fsl,soc", "soc";
+		ranges = <0 0xe0000000 0x100000>;
+		reg = <0xe0000000 0x200>;
+		/* filled by u-boot */
+		bus-frequency = <0>;
+
+		wdt@200 {
+			compatible = "mpc83xx_wdt";
+			reg = <0x200 0x100>;
+		};
+
+		i2c@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <0>;
+			compatible = "fsl-i2c";
+			reg = <0x3000 0x100>;
+			interrupts = <14 8>;
+			interrupt-parent = <&ipic>;
+			dfsrr;
+		};
+
+		i2c@3100 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <1>;
+			compatible = "fsl-i2c";
+			reg = <0x3100 0x100>;
+			interrupts = <16 8>;
+			interrupt-parent = <&ipic>;
+			dfsrr;
+		};
+
+		serial0: serial@4500 {
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4500 0x100>;
+			interrupts = <9 8>;
+			interrupt-parent = <&ipic>;
+			/* filled by u-boot */
+			clock-frequency = <0>;
+		};
+
+		serial1: serial@4600 {
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4600 0x100>;
+			interrupts = <10 8>;
+			interrupt-parent = <&ipic>;
+			/* filled by u-boot */
+			clock-frequency = <0>;
+		};
+
+		crypto@30000 {
+			compatible = "fsl,sec2-crypto";
+			reg = <0x30000 0x10000>;
+			interrupts = <11 8>;
+			interrupt-parent = <&ipic>;
+			num-channels = <4>;
+			channel-fifo-len = <24>;
+			exec-units-mask = <0x7e>;
+			/*
+			 * desc mask is for rev1.x, we need runtime fixup
+			 * for >=2.x
+			 */
+			descriptor-types-mask = <0x1010ebf>;
+		};
+
+		ipic: interrupt-controller@700 {
+			#address-cells = <0>;
+			#interrupt-cells = <2>;
+			compatible = "fsl,pq2pro-pic", "fsl,ipic";
+			interrupt-controller;
+			reg = <0x700 0x100>;
+		};
+
+		par_io@1400 {
+			compatible = "fsl,qe-pario";
+			reg = <0x1400 0x100>;
+			num-ports = <7>;
+		};
+	};
+
+	qe@e0100000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "qe";
+		compatible = "fsl,qe";
+		ranges = <0 0xe0100000 0x100000>;
+		reg = <0xe0100000 0x480>;
+		/* filled by u-boot */
+		clock-frequency = <0>;
+		bus-frequency = <0>;
+		brg-frequency = <0>;
+
+		muram@10000 {
+			compatible = "fsl,qe-muram", "fsl,cpm-muram";
+			ranges = <0 0x10000 0xc000>;
+
+			data-only@0 {
+				compatible = "fsl,qe-muram-data",
+					     "fsl,cpm-muram-data";
+				reg = <0 0xc000>;
+			};
+		};
+
+		spi@4c0 {
+			device_type = "spi";
+			cell-index = <0>;
+			compatible = "fsl,spi", "fsl_spi";
+			reg = <0x4c0 0x40>;
+			interrupts = <2>;
+			interrupt-parent = <&qeic>;
+			mode = "cpu-qe";
+		};
+
+		spi@500 {
+			device_type = "spi";
+			cell-index = <1>;
+			compatible = "fsl,spi", "fsl_spi";
+			reg = <0x500 0x40>;
+			interrupts = <1>;
+			interrupt-parent = <&qeic>;
+			mode = "cpu-qe";
+		};
+
+		enet0: ucc@2000 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			model = "UCC";
+			device-id = <1>;
+			reg = <0x2000 0x200>;
+			interrupts = <32>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <0>;
+			tx-clock = <25>;
+			phy-handle = <&phy2>;
+			phy-connection-type = "rgmii-id";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet1: ucc@3000 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			model = "UCC";
+			device-id = <2>;
+			reg = <0x3000 0x200>;
+			interrupts = <33>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <0>;
+			tx-clock = <20>;
+			phy-handle = <&phy4>;
+			phy-connection-type = "rgmii-id";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet2: ucc@2600 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			model = "UCC";
+			device-id = <7>;
+			reg = <0x2600 0x200>;
+			interrupts = <42>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <36>;
+			tx-clock = <35>;
+			phy-handle = <&phy1>;
+			phy-connection-type = "mii";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet3: ucc@3200 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			model = "UCC";
+			device-id = <4>;
+			reg = <0x3200 0x200>;
+			interrupts = <35>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <24>;
+			tx-clock = <23>;
+			phy-handle = <&phy3>;
+			phy-connection-type = "mii";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		mdio@2120 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			device_type = "mdio";
+			compatible = "fsl,ucc-mdio", "ucc_geth_phy";
+			reg = <0x2120 0x18>;
+
+			phy1: ethernet-phy@1 {
+				device_type = "ethernet-phy";
+				compatible = "national,DP83848VV";
+				reg = <1>;
+			};
+
+			phy2: ethernet-phy@2 {
+				device_type = "ethernet-phy";
+				compatible = "broadcom,BCM5481UA2KMLG";
+				reg = <2>;
+			};
+
+			phy3: ethernet-phy@3 {
+				device_type = "ethernet-phy";
+				compatible = "national,DP83848VV";
+				reg = <3>;
+			};
+
+			phy4: ethernet-phy@4 {
+				device_type = "ethernet-phy";
+				compatible = "broadcom,BCM5481UA2KMLG";
+				reg = <4>;
+			};
+		};
+
+		serial2: ucc@2400 {
+			device_type = "serial";
+			compatible = "ucc_uart";
+			reg = <0x2400 0x200>;
+			device-id = <5>;
+			port-number = <0>;
+			rx-clock-name = "brg7";
+			tx-clock-name = "brg8";
+			interrupts = <40>;
+			interrupt-parent = <&qeic>;
+			soft-uart;
+		};
+
+		serial3: ucc@3400 {
+			device_type = "serial";
+			compatible = "ucc_uart";
+			reg = <0x3400 0x200>;
+			device-id = <6>;
+			port-number = <1>;
+			rx-clock-name = "brg13";
+			tx-clock-name = "brg14";
+			interrupts = <41>;
+			interrupt-parent = <&qeic>;
+			soft-uart;
+		};
+
+		qeic: interrupt-controller@80 {
+			#address-cells = <0>;
+			#interrupt-cells = <1>;
+			compatible = "fsl,qe-ic";
+			interrupt-controller;
+			reg = <0x80 0x80>;
+			big-endian;
+			interrupts = <32 8 33 8>;
+			interrupt-parent = <&ipic>;
+		};
+	};
+
+	localbus@e0005000 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		compatible = "fsl,mpc8360-localbus",
+			     "fsl,pq2pro-localbus";
+		reg = <0xe0005000 0xd8>;
+		ranges = <0 0 0xff800000 0x0800000
+			  2 0 0x70000000 0x4000000>;
+
+		nor-flash@0,0 {
+			compatible = "intel,PC28F640P30T85", "cfi-flash";
+			reg = <0 0 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
+
+		display@2,0 {
+			device_type = "display";
+			compatible = "fujitsu,MB86277", "fujitsu,mint";
+			reg = <2 0 0x4000000>;
+			fujitsu,sh3;
+			little-endian;
+			/* filled by u-boot */
+			address = <0>;
+			depth = <0>;
+			width = <0>;
+			height = <0>;
+			linebytes = <0>;
+			/* linux,opened; - added by uboot */
+		};
+	};
+
+	pci0: pci@e0008500 {
+		#address-cells = <3>;
+		#size-cells = <2>;
+		#interrupt-cells = <1>;
+		device_type = "pci";
+		compatible = "fsl,mpc8360-pci", "fsl,mpc8349-pci";
+		reg = <0xe0008500 0x100>;
+		ranges = <0x02000000 0 0x90000000 0x90000000 0 0x10000000
+			  0x42000000 0 0x80000000 0x80000000 0 0x10000000
+			  0x01000000 0 0xe0300000 0xe0300000 0 0x00100000>;
+		interrupts = <66 8>;
+		interrupt-parent = <&ipic>;
+		interrupt-map-mask = <0xf800 0 0 7>;
+		interrupt-map = </* miniPCI0 IDSEL 0x14 AD20 */
+				 0xa000 0 0 1 &ipic 18 8
+				 0xa000 0 0 2 &ipic 19 8
+
+				 /* PCI1 IDSEL 0x15 AD21 */
+				 0xa800 0 0 1 &ipic 19 8
+				 0xa800 0 0 2 &ipic 20 8
+				 0xa800 0 0 3 &ipic 21 8
+				 0xa800 0 0 4 &ipic 18 8>;
+		/* filled by u-boot */
+		bus-range = <0 0>;
+		clock-frequency = <0>;
+	};
+};
arch/powerpc/configs/mpc836x_rdk_defconfig new file +1054 -0

1,054 lines not on this page · raw message

arch/powerpc/platforms/83xx/Kconfig +10 -1
index 2430ac8..89155aa 100644
@@ -50,11 +50,20 @@ config MPC836x_MDS
 	help
 	  This option enables support for the MPC836x MDS Processor Board.
 
+config MPC836x_RDK
+	bool "Freescale/Logic MPC836x RDK"
+	select DEFAULT_UIMAGE
+	select QUICC_ENGINE
+	help
+	  This option enables support for the MPC836x RDK Processor Board,
+	  also known as ZOOM PowerQUICC Kit.
+
 config MPC837x_MDS
 	bool "Freescale MPC837x MDS"
 	select DEFAULT_UIMAGE
 	help
 	  This option enables support for the MPC837x MDS Processor Board.
+
 endchoice
 
 config PPC_MPC831x
@@ -79,7 +88,7 @@ config PPC_MPC836x
 	bool
 	select PPC_UDBG_16550
 	select PPC_INDIRECT_PCI
-	default y if MPC836x_MDS
+	default y if MPC836x_MDS || MPC836x_RDK
 
 config PPC_MPC837x
 	bool
arch/powerpc/platforms/83xx/Makefile +1 -0
index df46629..1e4c95f 100644
@@ -8,5 +8,6 @@ obj-$(CONFIG_MPC832x_RDB)	+= mpc832x_rdb.o
 obj-$(CONFIG_MPC834x_MDS)	+= mpc834x_mds.o
 obj-$(CONFIG_MPC834x_ITX)	+= mpc834x_itx.o
 obj-$(CONFIG_MPC836x_MDS)	+= mpc836x_mds.o
+obj-$(CONFIG_MPC836x_RDK)	+= mpc836x_rdk.o
 obj-$(CONFIG_MPC832x_MDS)	+= mpc832x_mds.o
 obj-$(CONFIG_MPC837x_MDS)	+= mpc837x_mds.o
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +114 -0

114 lines not on this page · raw message

Signature · 1 line
1.5.2.2
#1 lore raw

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 30

Quoted 5 lines · On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov <[email protected]>…

+++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c

arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static int __init mpc836x_rdk_declare_of_platform_devices(void)
+{
+	const struct of_device_id mpc836x_rdk_ids[] = {

Please change this to static, __initdata and not const, thanks. These arrays are usually defined outside a function, but that is not really a problem.

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 43

Quoted 3 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static void __init mpc836x_rdk_setup_arch(void)
+{
+	struct device_node *np;

!defined(CONFIG_PCI) && !defined(CONFIG_QUICC_ENGINE) will produce a warning here.

Quoted 5 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +5 -0
+	if (ppc_md.progress)
+		ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
+
+#ifdef CONFIG_PCI
+	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 59

Quoted 10 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +10 -0
+		mpc83xx_add_bridge(np);
+#endif
+
+#ifdef CONFIG_QUICC_ENGINE
+	qe_reset();
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,qe-pario");
+	if (!np) {
+		pr_warning("QE PIO not initialized!\n");
+		return;

You need an of_node_put(np) before the return.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#2 lore raw
Quoted 10 lines · Stephen Rothwell

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 30

Quoted 5 lines · On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov <[email protected]>…

+++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c

arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static int __init mpc836x_rdk_declare_of_platform_devices(void)
+{
+	const struct of_device_id mpc836x_rdk_ids[] = {

Please change this to static, __initdata and not const, thanks. These arrays are usually defined outside a function, but that is not really a problem.

Pity... we don't need these _ids anywhere outside that function. But looking into objdump output I see the problem now.

Will change this back, thanks.

Quoted 6 lines

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 43

Quoted 3 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static void __init mpc836x_rdk_setup_arch(void)
+{
+	struct device_node *np;

!defined(CONFIG_PCI) && !defined(CONFIG_QUICC_ENGINE) will produce a warning here.

Good catch, thanks.

Quoted 9 lines
Quoted 9 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +9 -0
+	if (ppc_md.progress)
+		ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
+
+#ifdef CONFIG_PCI
+	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
+		mpc83xx_add_bridge(np);
+#endif
+
+#ifdef CONFIG_QUICC_ENGINE
Quoted 8 lines

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 59

Quoted 6 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +6 -0
+	qe_reset();
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,qe-pario");
+	if (!np) {
+		pr_warning("QE PIO not initialized!\n");
+		return;

You need an of_node_put(np) before the return.

Hm, really? I think I don't. But if you insist... :-)

Signature · 4 lines
Anton Vorontsov
email: [email protected]
backup email: [email protected]
irc://irc.freenode.net/bd2
#3 lore raw

Hi Anton,

Quoted 45 lines · On Thu, 24 Jan 2008 16:29:01 +0300 Anton Vorontsov <[email protected]>…
Quoted 10 lines · Stephen Rothwell

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 30

Quoted 5 lines · On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov <[email protected]>…

+++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c

arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static int __init mpc836x_rdk_declare_of_platform_devices(void)
+{
+	const struct of_device_id mpc836x_rdk_ids[] = {

Please change this to static, __initdata and not const, thanks. These arrays are usually defined outside a function, but that is not really a problem.

Pity... we don't need these _ids anywhere outside that function. But looking into objdump output I see the problem now.

Will change this back, thanks.

Quoted 6 lines

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 43

Quoted 3 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +3 -0
+static void __init mpc836x_rdk_setup_arch(void)
+{
+	struct device_node *np;

!defined(CONFIG_PCI) && !defined(CONFIG_QUICC_ENGINE) will produce a warning here.

Good catch, thanks.

Quoted 9 lines
Quoted 9 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +9 -0
+	if (ppc_md.progress)
+		ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
+
+#ifdef CONFIG_PCI
+	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
+		mpc83xx_add_bridge(np);
+#endif
+
+#ifdef CONFIG_QUICC_ENGINE
Quoted 8 lines

arch/powerpc/platforms/83xx/mpc836x_rdk.c line 59

Quoted 6 lines
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +6 -0
+	qe_reset();
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,qe-pario");
+	if (!np) {
+		pr_warning("QE PIO not initialized!\n");
+		return;

You need an of_node_put(np) before the return.

Quoted 1 line

Hm, really? I think I don't. But if you insist... :-)

Sorry, I don't know what I was thinking - of course you don't need it.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#4 lore raw

PATCH v3 1/1 MPC8360E-RDK: device tree, board file and defconfig

In reply to Anton Vorontsov

On Wed, Jan 23, 2008 at 11:45:07PM +0300, Anton Vorontsov wrote:
[...]

Quoted 11 lines

Hello Kumar,

...if there will no further comments regarding this board, it would be great if you will merge it for 2.6.25. I've reworked that patch so today it doesn't depend on the cleanup queue. That is, the device tree includes device_type and other cruft that will be removed along with other boards.

Another change is: "display" node addition. It could be not fully correct regarding device_type etc, but that's what offb driver understands for today.

New version below.

Changes:

- Thanks to Stephen Rothwell few glitches found and fixed.
- Got rid of model = "MPC8360RDK" in the root node and changed compatible to fsl,mpc8360erdk (idea of that cleanup shamelessly stolen from the Kim Phillips' MPC8315E-RDB patches).
- model = "UCC" removed from the ucc nodes.

- - - -
From: Anton Vorontsov <[email protected]>
Subject: [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

This is new board made by Freescale Semiconductor Inc. and Logic Product Development.

Currently supported:
1. UEC{1,2,7,4};
2. I2C;
3. SPI;
4. NS16550 serial;
5. PCI and miniPCI;
6. Intel NOR StrataFlash X16 64Mbit PC28F640P30T85;
7. Graphics controller, Fujitsu MB86277.

Not supported so far:
1. StMICRO NAND512W3A2BN6E, 512 Mbit (supported with FSL UPM patches);
2. QE Serial UCCs (tested to not work with ucc_uart driver, reason unknown, yet);
3. ADC AD7843 (tested to work, but support via device tree depends on major SPI rework, GPIO API, etc);
4. FHCI USB (will send RFC patches soon).

---
 arch/powerpc/boot/dts/mpc836x_rdk.dts      |  375 ++++++++++
 arch/powerpc/configs/mpc836x_rdk_defconfig | 1054 ++++++++++++++++++++++++++++
 arch/powerpc/platforms/83xx/Kconfig        |   11 +-
 arch/powerpc/platforms/83xx/Makefile       |    1 +
 arch/powerpc/platforms/83xx/mpc836x_rdk.c  |  116 +++
 5 files changed, 1556 insertions(+), 1 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mpc836x_rdk.dts
 create mode 100644 arch/powerpc/configs/mpc836x_rdk_defconfig
 create mode 100644 arch/powerpc/platforms/83xx/mpc836x_rdk.c
arch/powerpc/boot/dts/mpc836x_rdk.dts new file +375 -0
new file mode 100644
index 0000000..4b38e0b
@@ -0,0 +1,375 @@
+/*
+ * MPC8360E RDK Device Tree Source
+ *
+ * Copyright 2006 Freescale Semiconductor Inc.
+ * Copyright 2007 MontaVista Software, Inc.
+ * 		  Anton Vorontsov <[email protected]>
+ *
+ * This program is free software; you can redistribute  it and/or modify it
+ * under  the terms of  the GNU General  Public License as published by the
+ * Free Software Foundation;  either version 2 of the  License, or (at your
+ * option) any later version.
+ */
+
+/dts-v1/;
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	compatible = "fsl,mpc8360erdk";
+
+	aliases {
+		serial0 = &serial0;
+		serial1 = &serial1;
+		serial2 = &serial2;
+		serial3 = &serial3;
+		ethernet0 = &enet0;
+		ethernet1 = &enet1;
+		ethernet2 = &enet2;
+		ethernet3 = &enet3;
+		pci0 = &pci0;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		PowerPC,8360@0 {
+			device_type = "cpu";
+			reg = <0>;
+			d-cache-line-size = <32>;
+			i-cache-line-size = <32>;
+			d-cache-size = <32768>;
+			i-cache-size = <32768>;
+			/* filled by u-boot */
+			timebase-frequency = <0>;
+			bus-frequency = <0>;
+			clock-frequency = <0>;
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		/* filled by u-boot */
+		reg = <0 0>;
+	};
+
+	soc@e0000000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "soc";
+		compatible = "fsl,mpc8360-soc", "fsl,soc", "soc";
+		ranges = <0 0xe0000000 0x100000>;
+		reg = <0xe0000000 0x200>;
+		/* filled by u-boot */
+		bus-frequency = <0>;
+
+		wdt@200 {
+			compatible = "mpc83xx_wdt";
+			reg = <0x200 0x100>;
+		};
+
+		i2c@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <0>;
+			compatible = "fsl-i2c";
+			reg = <0x3000 0x100>;
+			interrupts = <14 8>;
+			interrupt-parent = <&ipic>;
+			dfsrr;
+		};
+
+		i2c@3100 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <1>;
+			compatible = "fsl-i2c";
+			reg = <0x3100 0x100>;
+			interrupts = <16 8>;
+			interrupt-parent = <&ipic>;
+			dfsrr;
+		};
+
+		serial0: serial@4500 {
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4500 0x100>;
+			interrupts = <9 8>;
+			interrupt-parent = <&ipic>;
+			/* filled by u-boot */
+			clock-frequency = <0>;
+		};
+
+		serial1: serial@4600 {
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4600 0x100>;
+			interrupts = <10 8>;
+			interrupt-parent = <&ipic>;
+			/* filled by u-boot */
+			clock-frequency = <0>;
+		};
+
+		crypto@30000 {
+			compatible = "fsl,sec2-crypto";
+			reg = <0x30000 0x10000>;
+			interrupts = <11 8>;
+			interrupt-parent = <&ipic>;
+			num-channels = <4>;
+			channel-fifo-len = <24>;
+			exec-units-mask = <0x7e>;
+			/*
+			 * desc mask is for rev1.x, we need runtime fixup
+			 * for >=2.x
+			 */
+			descriptor-types-mask = <0x1010ebf>;
+		};
+
+		ipic: interrupt-controller@700 {
+			#address-cells = <0>;
+			#interrupt-cells = <2>;
+			compatible = "fsl,pq2pro-pic", "fsl,ipic";
+			interrupt-controller;
+			reg = <0x700 0x100>;
+		};
+
+		par_io@1400 {
+			compatible = "fsl,qe-pario";
+			reg = <0x1400 0x100>;
+			num-ports = <7>;
+		};
+	};
+
+	qe@e0100000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "qe";
+		compatible = "fsl,qe";
+		ranges = <0 0xe0100000 0x100000>;
+		reg = <0xe0100000 0x480>;
+		/* filled by u-boot */
+		clock-frequency = <0>;
+		bus-frequency = <0>;
+		brg-frequency = <0>;
+
+		muram@10000 {
+			compatible = "fsl,qe-muram", "fsl,cpm-muram";
+			ranges = <0 0x10000 0xc000>;
+
+			data-only@0 {
+				compatible = "fsl,qe-muram-data",
+					     "fsl,cpm-muram-data";
+				reg = <0 0xc000>;
+			};
+		};
+
+		spi@4c0 {
+			device_type = "spi";
+			cell-index = <0>;
+			compatible = "fsl,spi", "fsl_spi";
+			reg = <0x4c0 0x40>;
+			interrupts = <2>;
+			interrupt-parent = <&qeic>;
+			mode = "cpu-qe";
+		};
+
+		spi@500 {
+			device_type = "spi";
+			cell-index = <1>;
+			compatible = "fsl,spi", "fsl_spi";
+			reg = <0x500 0x40>;
+			interrupts = <1>;
+			interrupt-parent = <&qeic>;
+			mode = "cpu-qe";
+		};
+
+		enet0: ucc@2000 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			device-id = <1>;
+			reg = <0x2000 0x200>;
+			interrupts = <32>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <0>;
+			tx-clock = <25>;
+			phy-handle = <&phy2>;
+			phy-connection-type = "rgmii-id";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet1: ucc@3000 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			device-id = <2>;
+			reg = <0x3000 0x200>;
+			interrupts = <33>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <0>;
+			tx-clock = <20>;
+			phy-handle = <&phy4>;
+			phy-connection-type = "rgmii-id";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet2: ucc@2600 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			device-id = <7>;
+			reg = <0x2600 0x200>;
+			interrupts = <42>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <36>;
+			tx-clock = <35>;
+			phy-handle = <&phy1>;
+			phy-connection-type = "mii";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		enet3: ucc@3200 {
+			device_type = "network";
+			compatible = "ucc_geth";
+			device-id = <4>;
+			reg = <0x3200 0x200>;
+			interrupts = <35>;
+			interrupt-parent = <&qeic>;
+			rx-clock = <24>;
+			tx-clock = <23>;
+			phy-handle = <&phy3>;
+			phy-connection-type = "mii";
+			/* filled by u-boot */
+			local-mac-address = [ 00 00 00 00 00 00 ];
+		};
+
+		mdio@2120 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			device_type = "mdio";
+			compatible = "fsl,ucc-mdio", "ucc_geth_phy";
+			reg = <0x2120 0x18>;
+
+			phy1: ethernet-phy@1 {
+				device_type = "ethernet-phy";
+				compatible = "national,DP83848VV";
+				reg = <1>;
+			};
+
+			phy2: ethernet-phy@2 {
+				device_type = "ethernet-phy";
+				compatible = "broadcom,BCM5481UA2KMLG";
+				reg = <2>;
+			};
+
+			phy3: ethernet-phy@3 {
+				device_type = "ethernet-phy";
+				compatible = "national,DP83848VV";
+				reg = <3>;
+			};
+
+			phy4: ethernet-phy@4 {
+				device_type = "ethernet-phy";
+				compatible = "broadcom,BCM5481UA2KMLG";
+				reg = <4>;
+			};
+		};
+
+		serial2: ucc@2400 {
+			device_type = "serial";
+			compatible = "ucc_uart";
+			reg = <0x2400 0x200>;
+			device-id = <5>;
+			port-number = <0>;
+			rx-clock-name = "brg7";
+			tx-clock-name = "brg8";
+			interrupts = <40>;
+			interrupt-parent = <&qeic>;
+			soft-uart;
+		};
+
+		serial3: ucc@3400 {
+			device_type = "serial";
+			compatible = "ucc_uart";
+			reg = <0x3400 0x200>;
+			device-id = <6>;
+			port-number = <1>;
+			rx-clock-name = "brg13";
+			tx-clock-name = "brg14";
+			interrupts = <41>;
+			interrupt-parent = <&qeic>;
+			soft-uart;
+		};
+
+		qeic: interrupt-controller@80 {
+			#address-cells = <0>;
+			#interrupt-cells = <1>;
+			compatible = "fsl,qe-ic";
+			interrupt-controller;
+			reg = <0x80 0x80>;
+			big-endian;
+			interrupts = <32 8 33 8>;
+			interrupt-parent = <&ipic>;
+		};
+	};
+
+	localbus@e0005000 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		compatible = "fsl,mpc8360-localbus",
+			     "fsl,pq2pro-localbus";
+		reg = <0xe0005000 0xd8>;
+		ranges = <0 0 0xff800000 0x0800000
+			  2 0 0x70000000 0x4000000>;
+
+		nor-flash@0,0 {
+			compatible = "intel,PC28F640P30T85", "cfi-flash";
+			reg = <0 0 0x800000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
+
+		display@2,0 {
+			device_type = "display";
+			compatible = "fujitsu,MB86277", "fujitsu,mint";
+			reg = <2 0 0x4000000>;
+			fujitsu,sh3;
+			little-endian;
+			/* filled by u-boot */
+			address = <0>;
+			depth = <0>;
+			width = <0>;
+			height = <0>;
+			linebytes = <0>;
+			/* linux,opened; - added by uboot */
+		};
+	};
+
+	pci0: pci@e0008500 {
+		#address-cells = <3>;
+		#size-cells = <2>;
+		#interrupt-cells = <1>;
+		device_type = "pci";
+		compatible = "fsl,mpc8360-pci", "fsl,mpc8349-pci";
+		reg = <0xe0008500 0x100>;
+		ranges = <0x02000000 0 0x90000000 0x90000000 0 0x10000000
+			  0x42000000 0 0x80000000 0x80000000 0 0x10000000
+			  0x01000000 0 0xe0300000 0xe0300000 0 0x00100000>;
+		interrupts = <66 8>;
+		interrupt-parent = <&ipic>;
+		interrupt-map-mask = <0xf800 0 0 7>;
+		interrupt-map = </* miniPCI0 IDSEL 0x14 AD20 */
+				 0xa000 0 0 1 &ipic 18 8
+				 0xa000 0 0 2 &ipic 19 8
+
+				 /* PCI1 IDSEL 0x15 AD21 */
+				 0xa800 0 0 1 &ipic 19 8
+				 0xa800 0 0 2 &ipic 20 8
+				 0xa800 0 0 3 &ipic 21 8
+				 0xa800 0 0 4 &ipic 18 8>;
+		/* filled by u-boot */
+		bus-range = <0 0>;
+		clock-frequency = <0>;
+	};
+};
arch/powerpc/configs/mpc836x_rdk_defconfig new file +1054 -0

1,054 lines not on this page · raw message

arch/powerpc/platforms/83xx/Kconfig +10 -1
index 2430ac8..89155aa 100644
@@ -50,11 +50,20 @@ config MPC836x_MDS
 	help
 	  This option enables support for the MPC836x MDS Processor Board.
 
+config MPC836x_RDK
+	bool "Freescale/Logic MPC836x RDK"
+	select DEFAULT_UIMAGE
+	select QUICC_ENGINE
+	help
+	  This option enables support for the MPC836x RDK Processor Board,
+	  also known as ZOOM PowerQUICC Kit.
+
 config MPC837x_MDS
 	bool "Freescale MPC837x MDS"
 	select DEFAULT_UIMAGE
 	help
 	  This option enables support for the MPC837x MDS Processor Board.
+
 endchoice
 
 config PPC_MPC831x
@@ -79,7 +88,7 @@ config PPC_MPC836x
 	bool
 	select PPC_UDBG_16550
 	select PPC_INDIRECT_PCI
-	default y if MPC836x_MDS
+	default y if MPC836x_MDS || MPC836x_RDK
 
 config PPC_MPC837x
 	bool
arch/powerpc/platforms/83xx/Makefile +1 -0
index df46629..1e4c95f 100644
@@ -8,5 +8,6 @@ obj-$(CONFIG_MPC832x_RDB)	+= mpc832x_rdb.o
 obj-$(CONFIG_MPC834x_MDS)	+= mpc834x_mds.o
 obj-$(CONFIG_MPC834x_ITX)	+= mpc834x_itx.o
 obj-$(CONFIG_MPC836x_MDS)	+= mpc836x_mds.o
+obj-$(CONFIG_MPC836x_RDK)	+= mpc836x_rdk.o
 obj-$(CONFIG_MPC832x_MDS)	+= mpc832x_mds.o
 obj-$(CONFIG_MPC837x_MDS)	+= mpc837x_mds.o
arch/powerpc/platforms/83xx/mpc836x_rdk.c new file +116 -0

116 lines not on this page · raw message

Signature · 1 line
1.5.2.2