From dcf62cb24efb2fd69eca921085c3f4306e76e8a2 Mon Sep 17 00:00:00 2001
From: Mathias Kresin <dev@kresin.me>
Date: Mon, 23 Oct 2017 08:17:44 +0200
Subject: [PATCH] ramips: don't enable usb for the WT3020-4M

That device does not have a USB port. It as the same board as the
WT3020-8M, but without soldered USB port port. Also the case lacks the
opening for the port.

Reported-by: Alberto Bursi <alberto.bursi@outlook.it>
Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 target/linux/ramips/dts/WT3020-8M.dts | 8 ++++++++
 target/linux/ramips/dts/WT3020.dtsi   | 9 ---------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/target/linux/ramips/dts/WT3020-8M.dts b/target/linux/ramips/dts/WT3020-8M.dts
index 05ade7c5a4..b2397d2cd5 100644
--- a/target/linux/ramips/dts/WT3020-8M.dts
+++ b/target/linux/ramips/dts/WT3020-8M.dts
@@ -7,6 +7,14 @@
 	model = "Nexx WT3020 (8M)";
 };
 
+&ehci {
+	status = "okay";
+};
+
+&ohci {
+	status = "okay";
+};
+
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/WT3020.dtsi b/target/linux/ramips/dts/WT3020.dtsi
index 6bea6cc1f3..91720e32c9 100644
--- a/target/linux/ramips/dts/WT3020.dtsi
+++ b/target/linux/ramips/dts/WT3020.dtsi
@@ -37,15 +37,6 @@
 	status = "okay";
 };
 
-
-&ehci {
-	status = "okay";
-};
-
-&ohci {
-	status = "okay";
-};
-
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
 	mediatek,portmap = "wllll";