summaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-dts/gbpc1.dts
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2019-03-12 10:09:37 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-18 07:55:55 +0100
commit4420a5611ea5d42c16628d01784dda7a8260d738 (patch)
treea1a1fb569872e65acb38c1ec8f0d60cbc3d8208a /drivers/staging/mt7621-dts/gbpc1.dts
parentbd31342f0046077e92062a6c09eae6c8f1676916 (diff)
downloadlinux-4420a5611ea5d42c16628d01784dda7a8260d738.tar.bz2
staging: mt7621-dts: update ethernet settings.
The ethernet in mt7621 is now supported by drivers/net/ethernet/mediatek/ which provides support for the integrated switch through DSA. This requires some devicetree changes, and particularly allows a board dts to identify which switch ports are present. The second CPU interface - gmac1 - doesn't work yet, so the device tree information may not be correct. The phy (which is present on the gnubee-pc2) can negotiate and report connection speed etc, but no traffic flows. The gnubee-pc1 has two network ports which are 'black' and 'blue'. There are connected to switch ports 0 and 4 respectively. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-dts/gbpc1.dts')
-rw-r--r--drivers/staging/mt7621-dts/gbpc1.dts29
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/staging/mt7621-dts/gbpc1.dts b/drivers/staging/mt7621-dts/gbpc1.dts
index b73385540216..250c15ace2a7 100644
--- a/drivers/staging/mt7621-dts/gbpc1.dts
+++ b/drivers/staging/mt7621-dts/gbpc1.dts
@@ -117,22 +117,6 @@
status = "okay";
};
-&ethernet {
- //mtd-mac-address = <&factory 0xe000>;
- gmac1: mac@0 {
- compatible = "mediatek,eth-mac";
- reg = <0>;
- phy-handle = <&phy1>;
- };
-
- mdio-bus {
- phy1: ethernet-phy@1 {
- reg = <1>;
- phy-mode = "rgmii";
- };
- };
-};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
@@ -141,3 +125,16 @@
};
};
};
+
+&switch0 {
+ ports {
+ port@0 {
+ label = "ethblack";
+ status = "ok";
+ };
+ port@4 {
+ label = "ethblue";
+ status = "ok";
+ };
+ };
+};