Skip to contentSkip to conversation

powerpc/p1010rdb:add P1010RDB-PB platform support

PATCH In review Zhao Qiang 2 participants 4 messages Nov 7, 2013 – Nov 13, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Zhao Qiang

author
#0 lore raw

PATCH 1/3 powerpc/p1010rdb:add P1010RDB-PB platform support

The P1010RDB-PB is similar to P1010RDB(P1010RDB-PA). So, P1010RDB-PB use the same platform file as P1010RDB. Then Add support for P1010RDB-PB platform.

---
 arch/powerpc/platforms/85xx/p1010rdb.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/platforms/85xx/p1010rdb.c +2 -0
index 0252961..d6a3dd3 100644
@@ -66,6 +66,8 @@ static int __init p1010_rdb_probe(void)
 
 	if (of_flat_dt_is_compatible(root, "fsl,P1010RDB"))
 		return 1;
+	if (of_flat_dt_is_compatible(root, "fsl,P1010RDB-PB"))
+		return 1;
 	return 0;
 }
 
Signature · 7 lines
1.8.4


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#2 lore raw

PATCH 2/3 powerpc/p1010rdb:update dts to adapt to both old and new p1010rdb

In reply to a message not in the archive

P1010rdb-pa and p1010rdb-pb have different phy interrupts. So update dts to adapt to both p1010rdb-pa and p1010rdb-pb.

---
 arch/powerpc/boot/dts/p1010rdb-pa.dts     | 35 ++++++++++++
 arch/powerpc/boot/dts/p1010rdb-pa_36b.dts | 58 ++++++++++++++++++++
 arch/powerpc/boot/dts/p1010rdb-pb.dts     | 35 ++++++++++++
 arch/powerpc/boot/dts/p1010rdb-pb_36b.dts | 58 ++++++++++++++++++++
 arch/powerpc/boot/dts/p1010rdb.dts        | 66 -----------------------
 arch/powerpc/boot/dts/p1010rdb.dtsi       |  3 --
 arch/powerpc/boot/dts/p1010rdb_32b.dtsi   | 79 +++++++++++++++++++++++++++
 arch/powerpc/boot/dts/p1010rdb_36b.dts    | 89 -------------------------------
 arch/powerpc/boot/dts/p1010rdb_36b.dtsi   | 79 +++++++++++++++++++++++++++
 9 files changed, 344 insertions(+), 158 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa.dts
 create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa_36b.dts
 create mode 100644 arch/powerpc/boot/dts/p1010rdb-pb.dts
 create mode 100644 arch/powerpc/boot/dts/p1010rdb-pb_36b.dts
 delete mode 100644 arch/powerpc/boot/dts/p1010rdb.dts
 create mode 100644 arch/powerpc/boot/dts/p1010rdb_32b.dtsi
 delete mode 100644 arch/powerpc/boot/dts/p1010rdb_36b.dts
 create mode 100644 arch/powerpc/boot/dts/p1010rdb_36b.dtsi
arch/powerpc/boot/dts/p1010rdb-pa.dts new file +35 -0
new file mode 100644
index 0000000..8a74700
@@ -0,0 +1,35 @@
+/*
+ * P1010 RDB Device Tree Source
+ *
+ * Copyright 2011 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/p1010si-pre.dtsi"
+
+/ {
+	model = "fsl,P1010RDB";
+	compatible = "fsl,P1010RDB";
+
+	/include/ "p1010rdb_32b.dtsi"
+};
+
+/include/ "p1010rdb.dtsi"
+
+&phy0 {
+	interrupts = <3 1 0 0>;
+};
+
+&phy1 {
+	interrupts = <2 1 0 0>;
+};
+
+&phy2 {
+	interrupts = <2 1 0 0>;
+};
+
+/include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb-pa_36b.dts new file +58 -0

58 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb-pb.dts new file +35 -0
new file mode 100644
index 0000000..6eeb7d3
@@ -0,0 +1,35 @@
+/*
+ * P1010 RDB Device Tree Source
+ *
+ * Copyright 2011 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/p1010si-pre.dtsi"
+
+/ {
+	model = "fsl,P1010RDB-PB";
+	compatible = "fsl,P1010RDB-PB";
+
+	/include/ "p1010rdb_32b.dtsi"
+};
+
+/include/ "p1010rdb.dtsi"
+
+&phy0 {
+	interrupts = <0 1 0 0>;
+};
+
+&phy1 {
+	interrupts = <2 1 0 0>;
+};
+
+&phy2 {
+	interrupts = <1 1 0 0>;
+};
+
+/include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb-pb_36b.dts new file +58 -0

58 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb.dts deleted +0 -66

66 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb.dtsi +0 -3
index ec7c27a..4853399 100644
@@ -193,17 +193,14 @@
 
 	mdio@24000 {
 		phy0: ethernet-phy@0 {
-			interrupts = <3 1 0 0>;
 			reg = <0x1>;
 		};
 
 		phy1: ethernet-phy@1 {
-			interrupts = <2 1 0 0>;
 			reg = <0x0>;
 		};
 
 		phy2: ethernet-phy@2 {
-			interrupts = <2 1 0 0>;
 			reg = <0x2>;
 		};
 
arch/powerpc/boot/dts/p1010rdb_32b.dtsi new file +79 -0

79 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb_36b.dts deleted +0 -89

89 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb_36b.dtsi new file +79 -0

79 lines not on this page · raw message

Signature · 7 lines
1.8.4


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#3 lore raw

PATCH 3/3 powerpc/p1010rdb:update mtd of nand to adapt to both old and new p1010rdb

In reply to a message not in the archive

P1010rdb-pa and p1010rdb-pb have different mtd of nand. So update dts to adapt to both p1010rdb-pa and p1010rdb-pb.

Move the nand-mtd from p1010rdb.dtsi to p1010rdb-pa*.dts. Remove nand-mtd for p1010rdb-pb, whick will use mtdparts from u-boot instead of nand-mtd in device tree.

---
 arch/powerpc/boot/dts/p1010rdb-pa.dts     | 14 +----
 arch/powerpc/boot/dts/p1010rdb-pa.dtsi    | 85 +++++++++++++++++++++++++++++++
 arch/powerpc/boot/dts/p1010rdb-pa_36b.dts | 14 +----
 arch/powerpc/boot/dts/p1010rdb.dtsi       | 40 +--------------
 4 files changed, 88 insertions(+), 65 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa.dtsi
arch/powerpc/boot/dts/p1010rdb-pa.dts +1 -13
index 8a74700..767d4c0 100644
@@ -19,17 +19,5 @@
 };
 
 /include/ "p1010rdb.dtsi"
-
-&phy0 {
-	interrupts = <3 1 0 0>;
-};
-
-&phy1 {
-	interrupts = <2 1 0 0>;
-};
-
-&phy2 {
-	interrupts = <2 1 0 0>;
-};
-
+/include/ "p1010rdb-pa.dtsi"
 /include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb-pa.dtsi new file +85 -0

85 lines not on this page · raw message

arch/powerpc/boot/dts/p1010rdb-pa_36b.dts +1 -13
index 2004ee7..3033371 100644
@@ -42,17 +42,5 @@
 };
 
 /include/ "p1010rdb.dtsi"
-
-&phy0 {
-	interrupts = <3 1 0 0>;
-};
-
-&phy1 {
-	interrupts = <2 1 0 0>;
-};
-
-&phy2 {
-	interrupts = <2 1 0 0>;
-};
-
+/include/ "p1010rdb-pa.dtsi"
 /include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb.dtsi +1 -39
index 4853399..ea534ef 100644
@@ -69,49 +69,11 @@
 		};
 	};
 
-	nand@1,0 {
+	ifc_nand: nand@1,0 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "fsl,ifc-nand";
 		reg = <0x1 0x0 0x10000>;
-
-		partition@0 {
-			/* This location must not be altered  */
-			/* 1MB for u-boot Bootloader Image */
-			reg = <0x0 0x00100000>;
-			label = "NAND U-Boot Image";
-			read-only;
-		};
-
-		partition@100000 {
-			/* 1MB for DTB Image */
-			reg = <0x00100000 0x00100000>;
-			label = "NAND DTB Image";
-		};
-
-		partition@200000 {
-			/* 4MB for Linux Kernel Image */
-			reg = <0x00200000 0x00400000>;
-			label = "NAND Linux Kernel Image";
-		};
-
-		partition@600000 {
-			/* 4MB for Compressed Root file System Image */
-			reg = <0x00600000 0x00400000>;
-			label = "NAND Compressed RFS Image";
-		};
-
-		partition@a00000 {
-			/* 15MB for JFFS2 based Root file System */
-			reg = <0x00a00000 0x00f00000>;
-			label = "NAND JFFS2 Root File System";
-		};
-
-		partition@1900000 {
-			/* 7MB for User Area */
-			reg = <0x01900000 0x00700000>;
-			label = "NAND User area";
-		};
 	};
 
 	cpld@3,0 {
Signature · 7 lines
1.8.4


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive
Quoted 14 lines · Zhao Qiang

The P1010RDB-PB is similar to P1010RDB(P1010RDB-PA). So, P1010RDB-PB use the same platform file as P1010RDB. Then Add support for P1010RDB-PB platform.

---
 arch/powerpc/platforms/85xx/p1010rdb.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/platforms/85xx/p1010rdb.c +0 -0
index 0252961..d6a3dd3 100644

arch/powerpc/platforms/85xx/p1010rdb.c static int __init p1010_rdb_probe(void) · line 73

Quoted 8 lines
arch/powerpc/platforms/85xx/p1010rdb.c +2 -0
@@ -66,6 +66,8 @@ static int __init p1010_rdb_probe(void)
 
 	if (of_flat_dt_is_compatible(root, "fsl,P1010RDB"))
 		return 1;
+	if (of_flat_dt_is_compatible(root, "fsl,P1010RDB-PB"))
+		return 1;
 	return 0;
 }
 

This had already been merged into Ben's tree when you reposted it (without any indication that it was a repost/respin), and is now in Linus's tree.

-Scott

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html