diff mbox series

[3/3] add armada-3720-expressobin-v7.dts, overlays armada-3720-expressobin.dts with changes for new model

Message ID 20190211055350.22181-3-kelly@xilka.com (mailing list archive)
State New, archived
Headers show
Series [1/3] Add mtdparts for expressobin with current u-boot | expand

Commit Message

Kelly Anderson Feb. 11, 2019, 5:53 a.m. UTC
Signed-off-by: Kelly Anderson <kelly@xilka.com>
---
 arch/arm64/boot/dts/marvell/Makefile          |  1 +
 .../marvell/armada-3720-espressobin-v7.dts    | 42 +++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile
index 2eff1f927471..f5feaea4db53 100644
--- a/arch/arm64/boot/dts/marvell/Makefile
+++ b/arch/arm64/boot/dts/marvell/Makefile
@@ -2,6 +2,7 @@ 
 # Mvebu SoC Family
 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-db.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-espressobin.dtb
+dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-espressobin-v7.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-clearfog-gt-8k.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb
diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts
new file mode 100644
index 000000000000..583db1f5ffa3
--- /dev/null
+++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts
@@ -0,0 +1,42 @@ 
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for Globalscale Marvell ESPRESSOBin Board
+ * Copyright (C) 2016 Marvell
+ *
+ * Kelly Anderson <kelly@xilka.com>
+ *
+ */
+/*
+ * Schematic available at http://wiki.espressobin.net/tiki-download_file.php?fileId=200
+ */
+
+#include "armada-3720-espressobin.dts"
+
+/ {
+	model = "Globalscale Marvell ESPRESSOBin Board rev.7";
+	compatible = "globalscale,espressobin-rev7", "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710";
+};
+
+&spi0 {
+	flash@0 {
+		compatible = "mxicy,mx25u3235f", "jedec,spi-nor";
+	};
+};
+
+&mdio {
+	/* for ESPRESSObin HW rev.7, we swapped the wan and lan1 port */
+	switch0: switch0@1 {
+		ports {
+			port@1 {
+				reg = <1>;
+				label = "lan1";
+				phy-handle = <&switch0phy0>;
+			};
+			port@3 {
+				reg = <3>;
+				label = "wan";
+				phy-handle = <&switch0phy2>;
+			};
+		};
+	};
+};