Skip to contentSkip to conversation

powerpc/85xx: Board support for ppa8548

PATCH Superseded Stef van Os 3 participants 4 messages Feb 3, 2013 – Feb 13, 2013

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc/85xx: Board support for ppa8548

Initial board support for the Prodrive PPA8548 AMC module. Board is an MPC8548 AMC platform used in RapidIO systems. This module is also used to test/work on mainline linux RapidIO software.

PPA8548 overview:
- 1.3 GHz Freescale PowerQUICC III MPC8548 processor
- 1 GB DDR2 @ 266 MHz
- 8 MB NOR flash
- Serial RapidIO 1.2
- 1 x 10/100/1000 BASE-T front ethernet
- 1 x 1000 BASE-BX ethernet on AMC connector

---
 arch/powerpc/boot/dts/ppa8548.dts           |  163 +++++++++++++++++++++++++++
 arch/powerpc/configs/85xx/ppa8548_defconfig |   65 +++++++++++
 arch/powerpc/platforms/85xx/Kconfig         |    7 +
 arch/powerpc/platforms/85xx/Makefile        |    1 +
 arch/powerpc/platforms/85xx/ppa8548.c       |   98 ++++++++++++++++
 5 files changed, 334 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/ppa8548.dts
 create mode 100644 arch/powerpc/configs/85xx/ppa8548_defconfig
 create mode 100644 arch/powerpc/platforms/85xx/ppa8548.c
arch/powerpc/boot/dts/ppa8548.dts new file +163 -0
new file mode 100644
index 0000000..b5f5220
@@ -0,0 +1,163 @@
+/*
+ * PPA8548 Device Tree Source (36-bit address map)
+ * Copyright 2013 Prodrive B.V.
+ *
+ * Based on:
+ * MPC8548 CDS Device Tree Source (36-bit address map)
+ * Copyright 2012 Freescale Semiconductor Inc.
+ *
+ * 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.
+ */
+
+/include/ "fsl/mpc8548si-pre.dtsi"
+
+/ {
+	model = "ppa8548";
+	compatible = "ppa8548";
+	#address-cells = <2>;
+	#size-cells = <2>;
+	interrupt-parent = <&mpic>;
+
+	memory {
+		device_type = "memory";
+		reg = <0 0 0x0 0x40000000>;
+	};
+
+	lbc: localbus@fe0005000 {
+		reg = <0xf 0xe0005000 0 0x1000>;
+		ranges = <0x0 0x0 0xf 0xff800000 0x00800000>;
+	};
+
+	soc: soc8548@fe0000000 {
+		ranges = <0 0xf 0xe0000000 0x100000>;
+	};
+
+	pci0: pci@fe0008000 {
+		status = "disabled";
+	};
+
+	pci1: pci@fe0009000 {
+		status = "disabled";
+	};
+
+	pci2: pcie@fe000a000 {
+		status = "disabled";
+	};
+
+	rio: rapidio@fe00c0000 {
+		reg = <0xf 0xe00c0000 0x0 0x11000>;
+		port1 {
+			ranges = <0x0 0x0 0x0 0x80000000 0x0 0x40000000>;
+		};
+	};
+};
+
+&lbc {
+	nor@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "cfi-flash";
+		reg = <0x0 0x0 0x00800000>;
+		bank-width = <2>;
+		device-width = <2>;
+
+		partition@0 {
+			reg = <0x0 0x7A0000>;
+			label = "user";
+		};
+
+		partition@7A0000 {
+			reg = <0x7A0000 0x20000>;
+			label = "env";
+			read-only;
+		};
+
+		partition@7C0000 {
+			reg = <0x7C0000 0x40000>;
+			label = "u-boot";
+			read-only;
+		};
+	};
+};
+
+&soc {
+	i2c@3000 {
+		rtc@6f {
+			compatible = "intersil,isl1208";
+			reg = <0x6f>;
+		};
+	};
+
+	i2c@3100 {
+	};
+
+	/*
+	 * Only ethernet controller @25000 and @26000 are used.
+	 * Use alias enet2 and enet3 for the remainig controllers,
+	 * to stay compatible with mpc8548si-pre.dtsi.
+	 */
+	enet2: ethernet@24000 {
+		status = "disabled";
+	};
+
+	mdio@24520 {
+		phy0: ethernet-phy@0 {
+			interrupts = <7 1 0 0>;
+			reg = <0x0>;
+			device_type = "ethernet-phy";
+		};
+		phy1: ethernet-phy@1 {
+			interrupts = <8 1 0 0>;
+			reg = <0x1>;
+			device_type = "ethernet-phy";
+		};
+		tbi0: tbi-phy@11 {
+			reg = <0x11>;
+			device_type = "tbi-phy";
+		};
+	};
+
+	enet0: ethernet@25000 {
+		tbi-handle = <&tbi1>;
+		phy-handle = <&phy0>;
+	};
+
+	mdio@25520 {
+		tbi1: tbi-phy@11 {
+			reg = <0x11>;
+			device_type = "tbi-phy";
+		};
+	};
+
+	enet1: ethernet@26000 {
+		tbi-handle = <&tbi2>;
+		phy-handle = <&phy1>;
+	};
+
+	mdio@26520 {
+		tbi2: tbi-phy@11 {
+			reg = <0x11>;
+			device_type = "tbi-phy";
+		};
+	};
+
+	enet3: ethernet@27000 {
+		status = "disabled";
+	};
+
+	mdio@27520 {
+		tbi3: tbi-phy@11 {
+			reg = <0x11>;
+			device_type = "tbi-phy";
+		};
+	};
+
+	crypto@30000 {
+		status = "disabled";
+	};
+};
+
+/include/ "fsl/mpc8548si-post.dtsi"
arch/powerpc/configs/85xx/ppa8548_defconfig new file +65 -0

65 lines not on this page · raw message

arch/powerpc/platforms/85xx/Kconfig +7 -0
index 02d02a0..803bfed 100644
@@ -191,6 +191,13 @@ config SBC8548
 	help
 	  This option enables support for the Wind River SBC8548 board
 
+config PPA8548
+	bool "Prodrive PPA8548"
+	help
+	  This option enables support for the Prodrive PPA8548 board.
+	select DEFAULT_UIMAGE
+	select HAS_RAPIDIO
+
 config GE_IMP3A
 	bool "GE Intelligent Platforms IMP3A"
 	select DEFAULT_UIMAGE
arch/powerpc/platforms/85xx/Makefile +1 -0
index 76f679c..d5f4195 100644
@@ -25,6 +25,7 @@ obj-$(CONFIG_P5040_DS)    += p5040_ds.o corenet_ds.o
 obj-$(CONFIG_STX_GP3)	  += stx_gp3.o
 obj-$(CONFIG_TQM85xx)	  += tqm85xx.o
 obj-$(CONFIG_SBC8548)     += sbc8548.o
+obj-$(CONFIG_PPA8548)     += ppa8548.o
 obj-$(CONFIG_SOCRATES)    += socrates.o socrates_fpga_pic.o
 obj-$(CONFIG_KSI8560)	  += ksi8560.o
 obj-$(CONFIG_XES_MPC85xx) += xes_mpc85xx.o
arch/powerpc/platforms/85xx/ppa8548.c new file +98 -0

98 lines not on this page · raw message

Signature · 1 line
1.7.2.5
#1 lore raw

arch/powerpc/boot/dts/ppa8548.dts line 48

Quoted 11 lines · Stef van Os
arch/powerpc/boot/dts/ppa8548.dts new file +11 -0
+	pci0: pci@fe0008000 {
+		status = "disabled";
+	};
+
+	pci1: pci@fe0009000 {
+		status = "disabled";
+	};
+
+	pci2: pcie@fe000a000 {
+		status = "disabled";
+	};

I was hoping you'd follow my example and include a comment indicating why the PCI devices are all disabled.

arch/powerpc/platforms/85xx/ppa8548.c line 49

Quoted 3 lines
arch/powerpc/platforms/85xx/ppa8548.c new file +3 -0
+static void ppa8548_show_cpuinfo(struct seq_file *m)
+{
+	uint svid, phid1;

Please don't used unsized integers for hardware registers.

	uint32_t svid, phid1;
Signature · 1 line
Timur Tabi
#2 lore raw
Quoted 15 lines · Timur Tabi

On 02/03/2013 01:39 PM, Stef van Os wrote:
=20

arch/powerpc/boot/dts/ppa8548.dts line 48

Quoted 11 lines
arch/powerpc/boot/dts/ppa8548.dts new file +11 -0
+	pci0: pci@fe0008000 {
+		status =3D "disabled";
+	};
+
+	pci1: pci@fe0009000 {
+		status =3D "disabled";
+	};
+
+	pci2: pcie@fe000a000 {
+		status =3D "disabled";
+	};

=20
I was hoping you'd follow my example and include a comment indicating =

why the PCI devices are all disabled.

Quoted 8 lines

=20

arch/powerpc/platforms/85xx/ppa8548.c line 49

Quoted 3 lines
arch/powerpc/platforms/85xx/ppa8548.c new file +3 -0
+static void ppa8548_show_cpuinfo(struct seq_file *m)
+{
+	uint svid, phid1;

=20
Please don't used unsized integers for hardware registers. =20

	uint32_t svid, phid1;

Stef,

If you'd like this included for 3.9, please make the minor updates.

thanks

- k=

#3 lore raw
Quoted 28 lines · Kumar Gala
Quoted 16 lines · Timur Tabi

arch/powerpc/boot/dts/ppa8548.dts line 48

Quoted 11 lines · Stef van Os
arch/powerpc/boot/dts/ppa8548.dts new file +11 -0
+	pci0: pci@fe0008000 {
+		status = "disabled";
+	};
+
+	pci1: pci@fe0009000 {
+		status = "disabled";
+	};
+
+	pci2: pcie@fe000a000 {
+		status = "disabled";
+	};

I was hoping you'd follow my example and include a comment indicating why the PCI devices are all disabled.

Quoted 7 lines

arch/powerpc/platforms/85xx/ppa8548.c line 49

Quoted 3 lines
arch/powerpc/platforms/85xx/ppa8548.c new file +3 -0
+static void ppa8548_show_cpuinfo(struct seq_file *m)
+{
+	uint svid, phid1;

Please don't used unsized integers for hardware registers.

	uint32_t svid, phid1;
Quoted 7 lines

Stef,

If you'd like this included for 3.9, please make the minor updates.

thanks

- k

Patches are on their way. Thanks!

Stef.