netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: xiaofeis <xiaofeis@codeaurora.org>
To: davem@davemloft.net
Cc: vkoul@kernel.org, netdev@vger.kernel.org, andrew@lunn.ch,
	linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org,
	vivien.didelot@gmail.com, f.fainelli@gmail.com,
	niklas.cassel@linaro.org, xiazha@codeaurora.org,
	xiaofeis <xiaofeis@codeaurora.org>
Subject: [PATCH] net: dsa: Add support for port mac address
Date: Tue,  5 Mar 2019 16:16:53 +0800	[thread overview]
Message-ID: <1551773813-34925-1-git-send-email-xiaofeis@codeaurora.org> (raw)

Allow port network device's mac address to be retrieved from the
device tree.

Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>
---
 Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt
index cfe8f64..8415f41 100644
--- a/Documentation/devicetree/bindings/net/dsa/dsa.txt
+++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt
@@ -71,6 +71,10 @@ properties, described in binding documents:
 			  Documentation/devicetree/bindings/net/fixed-link.txt
 			  for details.
 
+- local-mac-address	: See
+			  Documentation/devicetree/bindings/net/ethernet.txt
+			  for details.
+
 Example
 
 The following example shows three switches on three MDIO busses,
@@ -99,6 +103,7 @@ linked into one DSA cluster.
 			port@1 {
 				reg = <1>;
 				label = "lan1";
+				local-mac-address = [00 00 00 00 00 00];
 			};
 
 			port@2 {
-- 
1.9.1


             reply	other threads:[~2019-03-05  8:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05  8:16 xiaofeis [this message]
2019-03-05  8:58 ` [PATCH] net: dsa: Add support for port mac address Vinod Koul
2019-03-08 19:46 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2019-03-05  7:37 xiaofeis

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=1551773813-34925-1-git-send-email-xiaofeis@codeaurora.org \
    --to=xiaofeis@codeaurora.org \
    --cc=andrew@lunn.ch \
    --cc=bjorn.andersson@linaro.org \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=niklas.cassel@linaro.org \
    --cc=vivien.didelot@gmail.com \
    --cc=vkoul@kernel.org \
    --cc=xiazha@codeaurora.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).