From patchwork Fri Jan 20 20:53:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13110530 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCD28C27C76 for ; Fri, 20 Jan 2023 20:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version: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=mo0XtEtZuaBqdua1qIZ1sK0YUF6ygLe9GsQG9g8NAj8=; b=XCIbTwMaqc4SPJ gE+ieHATjok1zFjYMQLiu9jUai+Gdbi4GQOqYbhenqhfoGsNL+KeBp33txrnSBi7P0WSbsjS3JPTd H1n0xysvRFEuryAs5VobbLI2AWzgPkpN1V5KqnF+GcsAnVep3/yUhnzf/DU1B7PfvNGntc9MY7nOs 0vxwLRC41d0hvmsuyCNXY+v1sf92JliHNAtWD66Q+V3GCJgmMkZHibKJ5sOn751jBuKwif8DzKDDb lD2RKZuSUg6YVXtakuVpdCnig5rHzUfJh0Xr93KVcSMW8UKUqu4yO7PJssBeA/ePXwEWLs9ZFhs33 8fNLN9XL9xXXfgJa183w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOX-00CLGu-7V; Fri, 20 Jan 2023 20:53:53 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOR-00CLF9-1U; Fri, 20 Jan 2023 20:53:48 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1674248023; cv=none; d=zohomail.com; s=zohoarc; b=as2IOHIY22MlZCGk7lYm3DC6A+OgTgYg+EACAXiwQzR7PMhM6ynXN/B8z5OnO4UxhkUpSfgx2G1oeOaRaoELcpzcZ3844X1SCuh96ptXMHwfM7Wm8uxwmbZEPUdLV3Ix5z0yNvlh7rKcbdlpO79D0kheunr3Od214eSiwHtEYuI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674248023; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=mo0XtEtZuaBqdua1qIZ1sK0YUF6ygLe9GsQG9g8NAj8=; b=kWCf3utaoKDeHL6u6xwNwbRtU6/HGP1IpZVEza9T8HceDEwdI29+/StuWsLdvVwUGuE0tAaAjeU9M4tex1trmiQfOkQovq8QWZseSri7g2y5uMw+181zq4KSpEatE/QonyBwlFCbbYaiLaMPT6BTEi0tOjUo/mZrZmuurciQtxc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674248023; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=mo0XtEtZuaBqdua1qIZ1sK0YUF6ygLe9GsQG9g8NAj8=; b=ZirWshWvkEHInpvKM4YIncotZj7BnPOW/CZSQLRQSgzI9oyH4oTmbIfKi/pmzAtu Lo6e494W4Sj02vX6NuBWCteKuOLW/cvR1PUEB7x7Q7pWTTpHDnbUtF9s84v1rmQU5dM eR4KG9Yv86sUXq2vUQmIKdA2mgCBXFMj9VWAz07Q= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1674248021604362.0248329748873; Fri, 20 Jan 2023 12:53:41 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Subject: [PATCH 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi Date: Fri, 20 Jan 2023 23:53:14 +0300 Message-Id: <20230120205318.519493-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com> References: <20230120205318.519493-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230120_125347_184428_1621B456 X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Wang , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-kernel@vger.kernel.org, DENG Qingfang , linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org There are two gigabit MACs on the MT7623AI and MT7623NI SoCs. Add them to mt7623.dtsi and adjust the DTs that call mt7623.dtsi. Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/mt7623.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 4 +--- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 4 +--- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 4 +--- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 8 ++------ 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 25d31e40a553..5eb698a90d34 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -981,6 +981,20 @@ eth: ethernet@1b100000 { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "trgmii"; + status = "disabled"; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + status = "disabled"; + }; }; crypto: crypto@1b240000 { diff --git a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts index e8b4b6d30d19..8297123f9d09 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts @@ -116,9 +116,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>; diff --git a/arch/arm/boot/dts/mt7623a-rfb-nand.dts b/arch/arm/boot/dts/mt7623a-rfb-nand.dts index 61f5da68d4b0..9ee859b8eea7 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-nand.dts @@ -120,9 +120,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index 5008115d2494..a5800a524302 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -175,9 +175,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>; diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts index bf67a8e9be59..2a869a6476eb 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -160,9 +160,7 @@ ð { status = "okay"; gmac0: mac@0 { - compatible = "mediatek,eth-mac"; - reg = <0>; - phy-mode = "trgmii"; + status = "okay"; fixed-link { speed = <1000>; @@ -172,9 +170,7 @@ fixed-link { }; mac@1 { - compatible = "mediatek,eth-mac"; - reg = <1>; - phy-mode = "rgmii"; + status = "okay"; phy-handle = <&phy5>; }; From patchwork Fri Jan 20 20:53:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13110531 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF258C25B50 for ; Fri, 20 Jan 2023 20:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version: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=ZQqyEY4OZlOoxvPwc5KGMQiYCSGmPkLpP4A57mM096Y=; b=HkbiBq0rXFTGlK 1qs7GZh1dCBN1rD3wjwqdJ8eM1M12GYMy/gAqUAOlrp22H+OO/5KQlNg1ZFvXjLq2Njn+2OYnif9S KdAv06MVJ6ThP4obCW3urm9n5sbsyAC50GOC8tQgkAbDw1ZBKDU48nDBXxv9uA22BoV8ZEQkE0AXR 4L/lxc0toQ2wvEWYWW1rmhHArN8I8uSmSjDEdTEJdcJ2jEEn4WgMZh6n8moOyjPJCRq5PZ77TiGMp ZvktDqgLblPny0UDE8ydOoBgviEPv6O/+BThah37j7gkPA/VFvInOWrStra3tSkjMWB2/o78BxpBI UzI1/haboD4syEGK9qOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOZ-00CLHl-Gq; Fri, 20 Jan 2023 20:53:55 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOV-00CLGI-LI; Fri, 20 Jan 2023 20:53:53 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1674248027; cv=none; d=zohomail.com; s=zohoarc; b=BlfhdIEVfBMi6VSHi7jQb9C25jZqfFBp2X2z4s/uec9glKLrFAxnwHvVgH9qAcZtqqaUrxE+AJAXvdDOBe/Ecng0ciYO7fB+ApDwmq9OPHyzpGTPgP+NyDy0W/ZAJX6FTztpjVd8HkypyZZJeOcIWYyunIWktJDZq6CnuwgdxJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674248027; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ZQqyEY4OZlOoxvPwc5KGMQiYCSGmPkLpP4A57mM096Y=; b=Pkc7ZadrPQezN1krK66aHKoWfF2ACN8DRXgfOnjZCV3gjvDIdj55AInK9FEh8AkckV/HU6yDyfZTMBwsXPcO3Vt1unH6/FzfdktIuDDYqpL5chSnHcHGJvAKJclrU1vYyIwd20aCNqv1TSHLBuhk+GO4i2jrT4iI5IAyknln7ZA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674248027; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=ZQqyEY4OZlOoxvPwc5KGMQiYCSGmPkLpP4A57mM096Y=; b=bF0YBcsuUdwuhiQeTh6qXDJTRqWuPEmtfJ3YkFs7pQrk5yFrEdSPQJqdh3ZpxDhK U1JDn/9q62cmHf+VQ1mVW1ggOPZRqlgfpHhUf9jpiDdkFwbp8gunvH4YeyW4OrMnQP5 YcS4mKHS0AMCcM2bi3CCIBycuq5trjUr6Ab3RhVI= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1674248025497958.0689686974733; Fri, 20 Jan 2023 12:53:45 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Subject: [PATCH 2/5] arm: dts: mt7623: add mt7530 switch to mt7623a.dtsi Date: Fri, 20 Jan 2023 23:53:15 +0300 Message-Id: <20230120205318.519493-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com> References: <20230120205318.519493-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230120_125352_033777_B5DFA83B X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Wang , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-kernel@vger.kernel.org, DENG Qingfang , linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT7530 switch is included as a part of the multi-chip module on the MT7623AI SoC. Add it to mt7623a.dtsi and adjust DTs that call mt7623a.dtsi. Signed-off-by: Arınç ÜNAL --- I don’t know if there’s a pin wired for interrupt. The switch is going to work with polling for the time being. Folks from MediaTek, feel free to fill me in on this. Arınç --- arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 84 +++++++------------------- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 84 +++++++------------------- arch/arm/boot/dts/mt7623a.dtsi | 73 ++++++++++++++++++++++ 3 files changed, 115 insertions(+), 126 deletions(-) diff --git a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts index 8297123f9d09..5654284bab01 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts @@ -112,73 +112,31 @@ &crypto { status = "okay"; }; -ð { - status = "okay"; +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan0"; + }; - gmac0: mac@0 { - status = "okay"; + port@1 { + status = "okay"; + label = "lan1"; + }; - fixed-link { - speed = <1000>; - full-duplex; - pause; + port@2 { + status = "okay"; + label = "lan2"; + }; + + port@3 { + status = "okay"; + label = "lan3"; }; - }; - mdio-bus { - #address-cells = <1>; - #size-cells = <0>; - - switch@0 { - compatible = "mediatek,mt7530"; - reg = <0>; - mediatek,mcm; - resets = <ðsys MT2701_ETHSYS_MCM_RST>; - reset-names = "mcm"; - core-supply = <&mt6323_vpa_reg>; - io-supply = <&mt6323_vemc3v3_reg>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - label = "lan0"; - }; - - port@1 { - reg = <1>; - label = "lan1"; - }; - - port@2 { - reg = <2>; - label = "lan2"; - }; - - port@3 { - reg = <3>; - label = "lan3"; - }; - - port@4 { - reg = <4>; - label = "wan"; - }; - - port@6 { - reg = <6>; - label = "cpu"; - ethernet = <&gmac0>; - phy-mode = "trgmii"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - }; + port@4 { + status = "okay"; + label = "wan"; }; }; }; diff --git a/arch/arm/boot/dts/mt7623a-rfb-nand.dts b/arch/arm/boot/dts/mt7623a-rfb-nand.dts index 9ee859b8eea7..afd177b3b516 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-nand.dts @@ -116,73 +116,31 @@ &crypto { status = "okay"; }; -ð { - status = "okay"; +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan0"; + }; - gmac0: mac@0 { - status = "okay"; + port@1 { + status = "okay"; + label = "lan1"; + }; - fixed-link { - speed = <1000>; - full-duplex; - pause; + port@2 { + status = "okay"; + label = "lan2"; }; - }; - mdio-bus { - #address-cells = <1>; - #size-cells = <0>; - - switch@0 { - compatible = "mediatek,mt7530"; - reg = <0>; - mediatek,mcm; - resets = <ðsys MT2701_ETHSYS_MCM_RST>; - reset-names = "mcm"; - core-supply = <&mt6323_vpa_reg>; - io-supply = <&mt6323_vemc3v3_reg>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - label = "lan0"; - }; - - port@1 { - reg = <1>; - label = "lan1"; - }; - - port@2 { - reg = <2>; - label = "lan2"; - }; - - port@3 { - reg = <3>; - label = "lan3"; - }; - - port@4 { - reg = <4>; - label = "wan"; - }; - - port@6 { - reg = <6>; - label = "cpu"; - ethernet = <&gmac0>; - phy-mode = "trgmii"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - }; + port@3 { + status = "okay"; + label = "lan3"; + }; + + port@4 { + status = "okay"; + label = "wan"; }; }; }; diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index d304b62d24b5..5207e0183f3a 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -18,7 +18,80 @@ &crypto { }; ð { + status = "okay"; power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; + + gmac0: mac@0 { + status = "okay"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + + mdio: mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + + switch0: switch@0 { + compatible = "mediatek,mt7530"; + reg = <0>; + mediatek,mcm; + resets = <ðsys MT2701_ETHSYS_MCM_RST>; + reset-names = "mcm"; + core-supply = <&mt6323_vpa_reg>; + io-supply = <&mt6323_vemc3v3_reg>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + status = "disabled"; + reg = <0>; + label = "swp0"; + }; + + port@1 { + status = "disabled"; + reg = <1>; + label = "swp1"; + }; + + port@2 { + status = "disabled"; + reg = <2>; + label = "swp2"; + }; + + port@3 { + status = "disabled"; + reg = <3>; + label = "swp3"; + }; + + port@4 { + status = "disabled"; + reg = <4>; + label = "swp4"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "trgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; + }; }; &nandc { From patchwork Fri Jan 20 20:53:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13110532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 552D6C25B50 for ; Fri, 20 Jan 2023 20:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version: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=dKH2wn+0gz7vBfBaUG+NFMrHFQ5k4jFbG7iDREyDosg=; b=gvtKQWpVRXmaix dn32m+xRWqow4cyjU/kyr3QtD4vxFM1jPTj0iJ07sHmbs/f0aL1os3xgpg2sQwX14a6Bg/VfRU4ww mJ2DH1jJoK3Tqt4tiph+L+q4L/mBhivMG/WaXmTYSxtEAD5LXB2gY00FKDS7oIimwNpLyePHEo6Oz U99DbeAFZJtn+xNUhF0T71jX+DL3RVDbclbVHhnUKxjW3zgG4pi2JnO7mgTvw5PaU4Dj6rJNGCX1s RWf1dQVD5I2dyUCBHSxol4rr/FDG9Gj9i7UcvTKQnEItzZKqZBxvmTFGyErIAB9btIgKeiwu7es2z MkSFU1KJvR8vf1jDT8Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOg-00CLLP-2n; Fri, 20 Jan 2023 20:54:02 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOc-00CLIu-7D; Fri, 20 Jan 2023 20:53:59 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1674248031; cv=none; d=zohomail.com; s=zohoarc; b=Ln38ROi2fbT6ShQpnFVy/0nOzJsfavMPxDdkFM3Q90OZS8Kryrir8kNCEeAkEpY0zz1LKL6SOOi/rIemVefiNOxHTgOOBLwuC3h3rtZ3LpSL9LjbtjeT109J1eLtXMdhC5Cv2gJImBlnu8EsZU6txqSL7IZTwCJnG0m2ITSzuG0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674248031; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=dKH2wn+0gz7vBfBaUG+NFMrHFQ5k4jFbG7iDREyDosg=; b=CoQFbOqvjjjewE70cP2d/vpWg/mnGd6dVRxxYa7wUtYrdEo4QhFDUNAxvW1dj0v/tSiIQ+t0Rp3ntTs9BzISIYTUBPaYzxgft3slsxwFK++7bPBFXIk5P0rHadTgHCLOBLE9TWKBC+ixVWzgVTagNRH+p0UhVOC8t0UwOwHSKQU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674248031; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=dKH2wn+0gz7vBfBaUG+NFMrHFQ5k4jFbG7iDREyDosg=; b=Y1WgMvKZhY6Erbdyi/+ICnWJQAgSPS5avuDzvznUpumel8OeGxidOB+KJGBgWQKb UJAFRaS3NNb0OZ73CH3pgmDVbLrxGXmUeCaW37gOSJveT0iv5Ou2A+n6R7wKs/UqLHf j3RFhlHzhL7aq45nrZ3qBdKmqYzPz5kL7kW3JhyA= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1674248029220735.8863556192579; Fri, 20 Jan 2023 12:53:49 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Subject: [PATCH 3/5] arm: dts: mt7623: change mt7530 switch address Date: Fri, 20 Jan 2023 23:53:16 +0300 Message-Id: <20230120205318.519493-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com> References: <20230120205318.519493-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230120_125358_507790_D2798C40 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Wang , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-kernel@vger.kernel.org, DENG Qingfang , linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org In the case of muxing phy0 of the MT7530 switch, the switch and the phy will have the same address on the mdio bus, 0. This causes the ethernet driver to fail since devices on the mdio bus cannot share an address. Any address can be used for the switch, therefore, change the switch address to 0x1f. Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/mt7623a.dtsi | 4 ++-- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 4 ++-- arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 5207e0183f3a..a1a393028629 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -35,9 +35,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch0: switch@0 { + switch0: switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <ðsys MT2701_ETHSYS_MCM_RST>; reset-names = "mcm"; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index a5800a524302..94174cb2b7e1 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -188,9 +188,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; reset-gpios = <&pio 33 0>; core-supply = <&mt6323_vpa_reg>; io-supply = <&mt6323_vemc3v3_reg>; diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts index 2a869a6476eb..7c3298a92887 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -183,9 +183,9 @@ phy5: ethernet-phy@5 { phy-mode = "rgmii-rxid"; }; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; reset-gpios = <&pio 33 0>; core-supply = <&mt6323_vpa_reg>; io-supply = <&mt6323_vemc3v3_reg>; From patchwork Fri Jan 20 20:53:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13110533 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D293EC25B50 for ; Fri, 20 Jan 2023 20:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version: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=5YvsubmY8tgaR4DoiSQWtSTX5lD/XiceQv1q0csqgsg=; b=Y5bINv0OxPCU2u TSJkK85Vi2/lGvCzSVEnswVCN4neGbbs7kAwTDMOQfBd2KPWxYbjbN/szXlPjUoJ7roL+rg6OuDon im7xj9GSoxKKEcumGew1UWW/oubGdhuCbhNzv85lBAR8DeSCPBvpDOhempxW9pnHfxdXN8zsvR/c0 yxGSFX/MCkvLA5wiBurZVfvj9bL1UDO6bgan4UZg9dEv784lO0Razo4ZkHnwyTd4LBdpz0WTkFTgf Dy6HwFJ9ValJh/ShxyCfUWBLUL/2XKOyTnalLCmGqMqiEzD4Lv8Bxv0DHCYDgCDU0CBD0QS6e8D7m O8xpbDo0B9QmNh71YM2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOk-00CLO6-A5; Fri, 20 Jan 2023 20:54:06 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOd-00CLJb-6y; Fri, 20 Jan 2023 20:54:00 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1674248035; cv=none; d=zohomail.com; s=zohoarc; b=SUCoACN7Px4/FNgrHahnYY8C0yCAX5tR6idgwqoXKzMHWnCHIROC/tKeTMcu4QSREIH7GY6WxDwODPFuPI0K09jnVkdTt+FYDwNlzY9Dtyd0jpBYBt5vDVDbxz+dca77dd6M28rfFv4PZf5Rx1zXcdRPkXSHMD4ror5TS2H8dXk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674248035; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=5YvsubmY8tgaR4DoiSQWtSTX5lD/XiceQv1q0csqgsg=; b=WZu7hbBZYXRdyHb4Aazjfv0CSrSp15CVYySpp5Mw5XHDMxy9OIj6WiRLYK3RbK7sOW1xmmQ5zM5ZyMaJ8Pd1wjqlgXfqAF4Anbs/s5ev1ZYnNeKdtXxatEkYqqFhZLWCPbILd9pISQ7LEXvAXseusmcN6s0+dtuQtsnJYRerB6s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674248035; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=5YvsubmY8tgaR4DoiSQWtSTX5lD/XiceQv1q0csqgsg=; b=Pnk0k7ZlvCO8Ggm8ie0d77RIn30aY9BgDkjtUCHKjk47ObjcPdRQRJClxc40+qtf 95ClAfhNR2JdyuwjuSfgxajG+093Lqz9JRBWeoxE89zd4zUExrBgC1giY/02JmyAMib 7dWfP6PrEH48CHsY8SU7yw4olg10JPBpnsVM8CuI= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1674248033074652.0041030895701; Fri, 20 Jan 2023 12:53:53 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Subject: [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2 Date: Fri, 20 Jan 2023 23:53:17 +0300 Message-Id: <20230120205318.519493-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com> References: <20230120205318.519493-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230120_125359_358560_65FCC8EC X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Wang , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-kernel@vger.kernel.org, DENG Qingfang , linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Mux the MT7530 switch's phy0 to gmac5 which is wired to the SoC's gmac1. This achieves 2 Gbps total bandwidth to the CPU using the second RGMII. Tested-by: Arınç ÜNAL Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index 94174cb2b7e1..28051136c4e2 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -184,10 +184,19 @@ fixed-link { }; }; + gmac1: mac@1 { + status = "okay"; + phy-handle = <ðphy0>; + }; + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; + ethphy0: ethernet-phy@0 { + reg = <0>; + }; + switch@1f { compatible = "mediatek,mt7530"; reg = <0x1f>; @@ -199,11 +208,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { - reg = <0>; - label = "wan"; - }; - port@1 { reg = <1>; label = "lan0"; From patchwork Fri Jan 20 20:53:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13110534 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01D83C05027 for ; Fri, 20 Jan 2023 20:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version: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=SPyrNEbNLMWHFahjxQdIqcNPsnlOeM92Wq1ZSo0WTWk=; b=h0d5UcQCscc2pp 6b69DKdm0Aib2Ubol+uRegzvhem7oBZn3MighniwrrqePM0UaaVwXpqhPFsyUrBlwOppsS0WI+TpY OURikzRnnMhGoIOhHX8AyvV6Kp0ww+7Fcf1NiSggFyztsfaDBfshadHyB29HenFY8B+42JXjDLcul 251C0a8zRZFhT7lNpvLhdomCkWXLkmZIhb2tUKfNkVFExDyswudVElUCkpmW05+nc7Uq2mQ4opy+m 3XmgZDpVy48VLsOkeO6fYIRkuaASE6s2Ra+a4otvN/jhCGEtuttcARudKw4UChtovsfjkjMjwVqON MF4UXsaRlLW1/pr3n9ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOm-00CLPc-VD; Fri, 20 Jan 2023 20:54:09 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIyOh-00CLM1-JI; Fri, 20 Jan 2023 20:54:05 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1674248039; cv=none; d=zohomail.com; s=zohoarc; b=J/1jSSeMLnGOpdk9Zv4q+4WvlUbhklh3pF6K2K5znR/CDQGGTzpnVWuunr7/9l6ckGn6vGAYLIlcoqzUGZOabKdP6Azp7BvYOeVpBaGdabmVuc06mZQ3tIPwBSh1/6DafBJuvF2ssiTLKJiHvFF9a9kl+9RuBNYyi9/KWTbogpM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674248039; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=SPyrNEbNLMWHFahjxQdIqcNPsnlOeM92Wq1ZSo0WTWk=; b=jJZYR6A97K0KZhDV+ZPbySyuNrl5ER9RKn9YDWo8en5YDy6HliVfCra0Vu7iW0/MQ+diI8fpYWMy4NXsi9+zhPyQoDXSoDS8Qo7rbnYNE1qryB7eCNBedwT9UloiS2eakF50tuI+CtvjCu+PdHUSnfIWnnIECm+d4qgvCBBHor0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674248039; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=SPyrNEbNLMWHFahjxQdIqcNPsnlOeM92Wq1ZSo0WTWk=; b=OVJsNpj0cCWTWLCHZjJdf9L6b8H0t3ak/JYcdYhs3ZuSj/1KsqxLFGGKi+kOtURz pBhM9cBk4DkcilpfBcfL5whVsP6eOQjAUCReG6lS5TMXwoPkEyt96olFhzBONsLsZIo Ea9XOYrvYeautp8BX7Kk6mm3i7yIFV/OlU84dk3o= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1674248036766892.7602944834606; Fri, 20 Jan 2023 12:53:56 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Subject: [PATCH 5/5] arm: dts: mt7623: enable flow control on port@6 Date: Fri, 20 Jan 2023 23:53:18 +0300 Message-Id: <20230120205318.519493-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com> References: <20230120205318.519493-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230120_125403_860858_0373FE7F X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Wang , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , linux-kernel@vger.kernel.org, DENG Qingfang , linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Flow control needs to be enabled on both sides to work. It is already enabled on gmac0, enable it on port@6 too. Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/mt7623a.dtsi | 1 + arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index a1a393028629..a522a00ab67e 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -87,6 +87,7 @@ port@6 { fixed-link { speed = <1000>; full-duplex; + pause; }; }; }; diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts index 7c3298a92887..96c46f766e6e 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -228,6 +228,7 @@ port@6 { fixed-link { speed = <1000>; full-duplex; + pause; }; }; };