summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-02-28 23:20:48 +0300
committerGregory CLEMENT <gregory.clement@free-electrons.com>2015-03-04 16:32:13 +0300
commit924361249de339123e15d78c1d95dd450a6e3f03 (patch)
tree88814ff63ed95cf138cd27a9ba4d1d877f0485d4 /arch/arm/boot/dts/armada-xp-linksys-mamba.dts
parentef34481712067205ca3a9ca52c8484550702b4e2 (diff)
downloadlinux-924361249de339123e15d78c1d95dd450a6e3f03.tar.xz
ARM: ARMADA XP: WRT1900AC: Add support for the Ethernet switch
Add a DSA section to the DT blob representing the Ethernet switch. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/armada-xp-linksys-mamba.dts')
-rw-r--r--arch/arm/boot/dts/armada-xp-linksys-mamba.dts45
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
index 485a6eb86910..a2cf2154dcdb 100644
--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
@@ -327,6 +327,51 @@
gpio-fan,speed-map = <0 0
4500 1>;
};
+
+ dsa@0 {
+ compatible = "marvell,dsa";
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ dsa,ethernet = <&eth0>;
+ dsa,mii-bus = <&mdio>;
+
+ switch@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x0 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 = "internet";
+ };
+
+ port@5 {
+ reg = <5>;
+ label = "cpu";
+ };
+ };
+ };
};
&pinctrl {