From patchwork Fri Dec 14 16:48:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10731447 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 3B90B158E for ; Fri, 14 Dec 2018 16:50:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2B502D85A for ; Fri, 14 Dec 2018 16:50:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 962BB2D865; Fri, 14 Dec 2018 16:50:28 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EC7D2D85A for ; Fri, 14 Dec 2018 16:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=IfGfbZRGFC0oEDh9xRY2RmQKcPISNrXrDGabM92cMBw=; b=oOA0kMVOaiDynWViBUxGksJOlf avUQnI8yT/tv/5ykADVgsyf5sKwqVALw3a5xxOVlf4USAOJ2HfZ/cXb9acp5odO1orMOcBDbkdJiv Yhz29OI7DNDrfWorBvwESkb/udSUOJSF3vo9c4Sn+YVxSAg+oFQIEvgmgOX7t2S5l2XSiH/0RyxQn o11hgSBcP3bGQcDDbXFL7VMXTpQIWycSqTohUI8qT8laumMFmsBTLPbZxkFBBGq5n2kC6y8QTz+sp N2ZGQobF6bmr8YGzri/bIbZR3HcUHmrGPS20NFJHk7tSPdQTrDtQdLk4CmjS/Y4XXRwcb2SqBri18 +V0C95xA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXqfS-0000so-IL; Fri, 14 Dec 2018 16:50:26 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXqfN-0008DU-1v for linux-mediatek@lists.infradead.org; Fri, 14 Dec 2018 16:50:23 +0000 Received: from localhost.localdomain ([91.14.94.237]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LoE4f-1h4PJb2wBN-00gG5y; Fri, 14 Dec 2018 17:49:14 +0100 From: Frank Wunderlich To: Matthias Brugger , netdev@vger.kernel.org, Sean Wang , Andrew Lunn , linux-mediatek@lists.infradead.org Subject: [PATCH 8/8] net: dsa: changes to dts Date: Fri, 14 Dec 2018 17:48:47 +0100 Message-Id: <20181214164847.4851-9-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181214164847.4851-1-frank-w@public-files.de> References: <20181214164847.4851-1-frank-w@public-files.de> X-Provags-ID: V03:K1:G2Z2G1q5nnvg/w0zv+b3rquTEOeAbnRszZkwSrpw9eN1leR5ZD9 aseofOWWaIUSemoeYgVs13Yb1Ul85ZPz1zQjwhCjLoZ2ZxtsJQsTKPhtcqG/xJmihnb7Yel 1NmZit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wdtCHcLUGi8TxoTlU9lNAOhBm8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181214_085021_532395_EABDA9E3 X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Wunderlich MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index 2b760f90f38c..64f3da148dbb 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -143,6 +143,18 @@ }; }; + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "trgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; @@ -161,29 +173,44 @@ port@0 { reg = <0>; label = "wan"; + default_cpu = <&cpu_port1>; }; port@1 { reg = <1>; label = "lan0"; + default_cpu = <&cpu_port0>; }; port@2 { reg = <2>; label = "lan1"; + default_cpu = <&cpu_port0>; }; port@3 { reg = <3>; label = "lan2"; + default_cpu = <&cpu_port0>; }; port@4 { reg = <4>; label = "lan3"; + default_cpu = <&cpu_port0>; }; - port@6 { + cpu_port1: port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac1>; + phy-mode = "trgmii"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + cpu_port0: port@6 { reg = <6>; label = "cpu"; ethernet = <&gmac0>;