summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/kirkwood-dir665.dts
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2014-10-31 23:13:31 +0100
committerJason Cooper <jason@lakedaemon.net>2014-11-02 00:35:30 +0100
commitdd5dc02e679c33b74a918faff596a7381e6bce5e (patch)
treea79cc0092213aebce106e051888cafbc57b230fd /arch/arm/boot/dts/kirkwood-dir665.dts
parentARM: Kirkwood: Add support for DLink DIR665 (diff)
downloadlinux-dd5dc02e679c33b74a918faff596a7381e6bce5e.tar.xz
linux-dd5dc02e679c33b74a918faff596a7381e6bce5e.zip
ARM: Kirkwood: DIR665: Instantiate Distributed Switch Architecture
The DIR665 has an 8 port Ethernet Switch, a Marvell mv88e6171. Add a DSA node in DT, to instantiate DSA support for the 4 back panel ports, the Internet port, and the port to the CPU which is connected to eth0. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Link: https://lkml.kernel.org/r/1414793613-11798-3-git-send-email-andrew@lunn.ch Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-dir665.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-dir665.dts45
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dir665.dts b/arch/arm/boot/dts/kirkwood-dir665.dts
index d5ca9284db13..786959ee9cbe 100644
--- a/arch/arm/boot/dts/kirkwood-dir665.dts
+++ b/arch/arm/boot/dts/kirkwood-dir665.dts
@@ -202,6 +202,51 @@
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
};
+
+ dsa@0 {
+ compatible = "marvell,dsa";
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ dsa,ethernet = <&eth0port>;
+ dsa,mii-bus = <&mdio>;
+
+ switch@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0 0>; /* MDIO address 0, switch 0 in tree */
+
+ port@0 {
+ reg = <0>;
+ label = "lan4";
+ };
+
+ port@1 {
+ reg = <1>;
+ label = "lan3";
+ };
+
+ port@2 {
+ reg = <2>;
+ label = "lan2";
+ };
+
+ port@3 {
+ reg = <3>;
+ label = "lan1";
+ };
+
+ port@4 {
+ reg = <4>;
+ label = "wan";
+ };
+
+ port@6 {
+ reg = <6>;
+ label = "cpu";
+ };
+ };
+ };
};
&mdio {