From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] ARM: Kirkwood: DIR665: Instantiate Distributed Switch Architecture
Date: Fri, 31 Oct 2014 23:13:31 +0100 [thread overview]
Message-ID: <1414793613-11798-3-git-send-email-andrew@lunn.ch> (raw)
In-Reply-To: <1414793613-11798-1-git-send-email-andrew@lunn.ch>
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>
---
arch/arm/boot/dts/kirkwood-dir665.dts | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/arch/arm/boot/dts/kirkwood-dir665.dts b/arch/arm/boot/dts/kirkwood-dir665.dts
index ac945ea49940..656e61ce414d 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 at 0 {
+ compatible = "marvell,dsa";
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ dsa,ethernet = <ð0port>;
+ dsa,mii-bus = <&mdio>;
+
+ switch at 0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0 0>; /* MDIO address 0, switch 0 in tree */
+
+ port at 0 {
+ reg = <0>;
+ label = "lan4";
+ };
+
+ port at 1 {
+ reg = <1>;
+ label = "lan3";
+ };
+
+ port at 2 {
+ reg = <2>;
+ label = "lan2";
+ };
+
+ port at 3 {
+ reg = <3>;
+ label = "lan1";
+ };
+
+ port at 4 {
+ reg = <4>;
+ label = "wan";
+ };
+
+ port at 6 {
+ reg = <6>;
+ label = "cpu";
+ };
+ };
+ };
};
&mdio {
--
2.1.1
next prev parent reply other threads:[~2014-10-31 22:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-31 22:13 [PATCH 0/4] Support for DLINK DIR665 Andrew Lunn
2014-10-31 22:13 ` [PATCH 1/4] ARM: Kirkwood: Add support for DLink DIR665 Andrew Lunn
2014-10-31 22:45 ` Claudio Leite
2014-11-01 16:03 ` Jason Cooper
2014-11-01 20:11 ` Andrew Lunn
2014-11-01 20:16 ` Jason Cooper
2014-10-31 22:13 ` Andrew Lunn [this message]
2014-10-31 22:13 ` [PATCH 3/4] ARM: mvebu: Add DLINK DIR665 options to mvebu_v5_defconfig Andrew Lunn
2014-10-31 22:13 ` [PATCH 4/4] ARM: config: Add DLINK DIR665 options to multi_v5_defconfig Andrew Lunn
2014-11-01 23:42 ` Jason Cooper
2014-11-02 21:41 ` Olof Johansson
2014-11-01 23:40 ` [PATCH 0/4] Support for DLINK DIR665 Jason Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414793613-11798-3-git-send-email-andrew@lunn.ch \
--to=andrew@lunn.ch \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).