summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2019-10-01 10:15:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-14 12:52:11 +0200
commitc2cf9442bbaae379a29ff4c4d00870e204759282 (patch)
tree89cbb0fc2a5da0f4a73b471df20d2b72a4c062df /arch/mips
parent5ff1859d9b0eb7db67ed81ae22bdd86002d350ab (diff)
downloadbarebox-c2cf9442bbaae379a29ff4c4d00870e204759282.tar.gz
barebox-c2cf9442bbaae379a29ff4c4d00870e204759282.tar.xz
MIPS: net: ag71xx/ar9331: partially sync network support with upstream
Ethernet support for ar9331 is upstream now. So, drop every thing what is provided by upstream devicetree and rename compatible in the driver. barebox network driver will need more work to be upstream compliant. For example we should not request or touch the gmac register directly. Since currently it is not clear how this should be implemented, patch the upstream dts with reg-names = "ge0", "gmac". Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/dts/ar9331-dptechnics-dpt-module.dts6
-rw-r--r--arch/mips/dts/ar9331.dtsi15
-rw-r--r--arch/mips/dts/tplink-mr3020.dts2
3 files changed, 8 insertions, 15 deletions
diff --git a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
index 315589aab9..cbaf5ab39e 100644
--- a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
+++ b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
@@ -15,7 +15,7 @@
art@0 {
compatible = "qca,art-ar9331", "qca,art";
device-path = &spiflash_art;
- barebox,provide-mac-address = <&mac0>;
+ barebox,provide-mac-address = <&eth0>;
};
};
@@ -48,7 +48,3 @@
reg = <0x7f0000 0x10000>;
};
};
-
-&mac0 {
- status = "okay";
-};
diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi
index 42baae1e89..72f029754e 100644
--- a/arch/mips/dts/ar9331.dtsi
+++ b/arch/mips/dts/ar9331.dtsi
@@ -5,14 +5,11 @@
reg = <0x18060008 0x8>;
clocks = <&pll ATH79_CLK_CPU>;
};
-
- mac0: mac@19000000 {
- compatible = "qca,ar9331-ge0";
- reg = <0x18070000 0x00000100>,
- <0x19000000 0x01000000>;
- reg-names = "gmac", "ge0";
- phy-mode = "mii";
- status = "disabled";
- };
};
};
+
+&eth0 {
+ reg = <0x19000000 0x200>,
+ <0x18070000 0x00000100>;
+ reg-names = "ge0", "gmac";
+};
diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index e30eae1578..c6ae154f4f 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -28,6 +28,6 @@
};
};
-&mac0 {
+&eth0 {
status = "okay";
};