Skip to contentSkip to conversation

Kirkwood RD88F6192 and RD88F6281 DT conversion

PATCH New Andrew Lunn 2 participants 4 messages Feb 15, 2014 – Feb 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Kirkwood RD88F6192 and RD88F6281 DT conversion

These two patches convert two Marvell Reference designs from old style setup files to DT. No testing has been performed other than that they compile.

Andrew Lunn (2):
ARM: Kirkwood: Add DT description of rd88f6192.
ARM: Kirkwood: convert rd88f6281-setup.c to DT.

 arch/arm/boot/dts/Makefile                  |   3 +
 arch/arm/boot/dts/kirkwood-rd88f6192.dts    | 112 ++++++++++++++++++++
 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts |  26 +++++
 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts |  31 ++++++
 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi   | 152 ++++++++++++++++++++++++++++
 5 files changed, 324 insertions(+)
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6192.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 1/2 ARM: Kirkwood: Add DT description of rd88f6192.

Mechanically translate rd88f6192-nas-setup.c into DT equivelent.

---
 arch/arm/boot/dts/Makefile               |   1 +
 arch/arm/boot/dts/kirkwood-rd88f6192.dts | 112 +++++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6192.dts
arch/arm/boot/dts/Makefile +1 -0
index b9d6a8b485e0..e6ddcba5f35d 100644
@@ -111,6 +111,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-cloudbox.dtb \
 	kirkwood-nsa310a.dtb \
 	kirkwood-openblocks_a6.dtb \
 	kirkwood-openblocks_a7.dtb \
+	kirkwood-rd88f6192.dtb \
 	kirkwood-sheevaplug.dtb \
 	kirkwood-sheevaplug-esata.dtb \
 	kirkwood-topkick.dtb \
arch/arm/boot/dts/kirkwood-rd88f6192.dts new file +112 -0

113 lines not on this page · raw message

Signature · 1 line
1.8.5.3
#2 lore raw

PATCH 2/2 ARM: Kirkwood: convert rd88f6281-setup.c to DT.

In reply to Andrew Lunn

Perform a mechanical translation of rd88f6281-setup.c into DT. Since the hardware differs between the A0 and A1 stepping, two dts files are used, and a .dtsi file for the common parts. The A0 part does not have a "wan" port on the switch and uses PHY address 10 to address the switch. The A1 part does have the "wan" port and uses address 0.

---
 arch/arm/boot/dts/Makefile                  |   2 +
 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts |  26 +++++
 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts |  31 ++++++
 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi   | 152 ++++++++++++++++++++++++++++
 4 files changed, 211 insertions(+)
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
arch/arm/boot/dts/Makefile +2 -0
index e6ddcba5f35d..5a0165b4d996 100644
@@ -112,6 +112,8 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-cloudbox.dtb \
 	kirkwood-openblocks_a6.dtb \
 	kirkwood-openblocks_a7.dtb \
 	kirkwood-rd88f6192.dtb \
+	kirkwood-rd88f6281-a0.dtb \
+	kirkwood-rd88f6281-a1.dtb \
 	kirkwood-sheevaplug.dtb \
 	kirkwood-sheevaplug-esata.dtb \
 	kirkwood-topkick.dtb \
arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts new file +26 -0
new file mode 100644
index 000000000000..a803bbb70bc8
@@ -0,0 +1,26 @@
+/*
+ * Marvell RD88F6181 A0 Board descrition
+ *
+ * Andrew Lunn <[email protected]>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ *
+ * This file contains the definitions for the board with the A0 variant of
+ * the SoC. The ethernet switch does not have a "wan" port.
+ */
+
+/dts-v1/;
+#include "kirkwood-rd88f6281.dtsi"
+
+/ {
+	model = "Marvell RD88f6281 Reference design, with A0 SoC";
+	compatible = "marvell,rd88f6281-a0", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";
+
+	dsa at 0 {
+		switch at 0 {
+			reg = <10 0>;    /* MDIO address 10, switch 0 in tree */
+		};
+	};
+};
\ No newline at end of file
arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts new file +31 -0
new file mode 100644
index 000000000000..baeebbf1d8c7
@@ -0,0 +1,31 @@
+/*
+ * Marvell RD88F6181 A1 Board descrition
+ *
+ * Andrew Lunn <[email protected]>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ *
+ * This file contains the definitions for the board with the A1 variant of
+ * the SoC. The ethernet switch has a "wan" port.
+ */
+
+/dts-v1/;
+
+#include "kirkwood-rd88f6281.dtsi"
+
+/ {
+	model = "Marvell RD88f6281 Reference design, with A1 SoC";
+	compatible = "marvell,rd88f6281-a1", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";
+
+	dsa at 0 {
+		switch at 0 {
+			reg = <0 0>;    /* MDIO address 0, switch 0 in tree */
+			port at 4 {
+				reg = <4>;
+				label = "wan";
+			};
+		};
+	};
+};
\ No newline at end of file
arch/arm/boot/dts/kirkwood-rd88f6281.dtsi new file +152 -0

152 lines not on this page · raw message

Signature · 1 line
1.8.5.3
#3 lore raw

cover Kirkwood RD88F6192 and RD88F6281 DT conversion

In reply to Andrew Lunn
Quoted 8 lines · Andrew Lunn

These two patches convert two Marvell Reference designs from old style setup files to DT. No testing has been performed other than that they compile.

Andrew Lunn (2):
ARM: Kirkwood: Add DT description of rd88f6192.
ARM: Kirkwood: convert rd88f6281-setup.c to DT.

Quoted 10 lines
 arch/arm/boot/dts/Makefile                  |   3 +
 arch/arm/boot/dts/kirkwood-rd88f6192.dts    | 112 ++++++++++++++++++++
 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts |  26 +++++
 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts |  31 ++++++
 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi   | 152 ++++++++++++++++++++++++++++
 5 files changed, 324 insertions(+)
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6192.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a0.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281-a1.dts
 create mode 100644 arch/arm/boot/dts/kirkwood-rd88f6281.dtsi

Series applied to mvebu/dt

thx,

Jason.