From patchwork Tue Mar 5 08:16:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaofeis X-Patchwork-Id: 10839139 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 619B3922 for ; Tue, 5 Mar 2019 08:23:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C4162BEDA for ; Tue, 5 Mar 2019 08:23:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BECE2BEDD; Tue, 5 Mar 2019 08:23:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB94A2BEDA for ; Tue, 5 Mar 2019 08:23:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbfCEIXM (ORCPT ); Tue, 5 Mar 2019 03:23:12 -0500 Received: from alexa-out-tai-01.qualcomm.com ([103.229.16.226]:30292 "EHLO alexa-out-tai-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfCEIXL (ORCPT ); Tue, 5 Mar 2019 03:23:11 -0500 X-Greylist: delayed 373 seconds by postgrey-1.27 at vger.kernel.org; Tue, 05 Mar 2019 03:23:11 EST X-IronPort-AV: E=Sophos;i="5.58,443,1544457600"; d="scan'208";a="2010826" Received: from ironmsg01-tai.qualcomm.com ([10.249.140.6]) by alexa-out-tai-01.qualcomm.com with ESMTP; 05 Mar 2019 16:16:57 +0800 X-IronPort-AV: E=McAfee;i="5900,7806,9185"; a="24507701" Received: from akronite-sh-dev01.ap.qualcomm.com ([10.231.215.213]) by ironmsg01-tai.qualcomm.com with ESMTP; 05 Mar 2019 16:16:56 +0800 Received: by akronite-sh-dev01.ap.qualcomm.com (Postfix, from userid 206661) id 7B1011F302; Tue, 5 Mar 2019 16:16:55 +0800 (CST) From: xiaofeis 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 Subject: [PATCH] net: dsa: Add support for port mac address Date: Tue, 5 Mar 2019 16:16:53 +0800 Message-Id: <1551773813-34925-1-git-send-email-xiaofeis@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allow port network device's mac address to be retrieved from the device tree. Signed-off-by: xiaofeis Reviewed-by: Vinod Koul --- 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 {