summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2017-09-14 10:25:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-18 08:40:18 +0200
commit4864aa95176288ae6893f7f6075c23bbb3f92341 (patch)
tree7d5bf68ffe264d742b84fe9b7934c1de8269ae12
parent266141c2ba061fb44ad5e419dfcb277fde32d6c0 (diff)
downloadbarebox-4864aa95176288ae6893f7f6075c23bbb3f92341.tar.gz
add ar9331.dtsi and enable mac0
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/mips/dts/ar9331.dtsi12
-rw-r--r--arch/mips/dts/tplink-mr3020.dts5
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi
new file mode 100644
index 0000000..b4b8b76
--- /dev/null
+++ b/arch/mips/dts/ar9331.dtsi
@@ -0,0 +1,12 @@
+/ {
+ ahb {
+ mac0: mac@19000000 {
+ compatible = "qca,ar9331-ge0";
+ reg = <0x18070000 0x00000100>,
+ <0x19000000 0x01000000>;
+ reg-names = "gmac", "ge0";
+ phy-mode = "mii";
+ status = "disabled";
+ };
+ };
+};
diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index eaae11e..6f1ad13 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -1,4 +1,5 @@
#include <mips/qca/ar9331_tl_mr3020.dts>
+#include "ar9331.dtsi"
/ {
aliases {
@@ -24,3 +25,7 @@
reg = <0x80000 0x10000>;
};
};
+
+&mac0 {
+ status = "okay";
+};