From nobody Thu Nov 14 06:58:09 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BA6AC64EC4 for ; Fri, 10 Feb 2023 18:25:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233055AbjBJSZZ (ORCPT ); Fri, 10 Feb 2023 13:25:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbjBJSZV (ORCPT ); Fri, 10 Feb 2023 13:25:21 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F3E61D2B; Fri, 10 Feb 2023 10:25:19 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id p26so18117816ejx.13; Fri, 10 Feb 2023 10:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XuwRMKnXVYShc3P97jDcb26qSE0+haHJPdzfJ4jdlqw=; b=pSxAbA2+FG3gPP+UFueQU6KD/r1XwB9gdLl8GEWhj8qXxrmwgi3uvSkTVkH2nln/98 S2mpguECWVgHXrevhaIPbW7+EYm2lldR0Mw0FtvHEq6AaDQ7ZWIkEKYHLKrEzFZV2jBR nK3gotcHYrlLlpFLHHLOexSFRXeYddRXrTRCm/yqf3cGgY3OE/GrxeYHmvw3TfUoFw35 oLDMWekqp7TVLaruIbyrgQq4tmjlylboR0mvANrkypIHHirNVdCtIU59GIZopjJ9wL+C ++76MeI37cuDyqFHG2xG8wUB9GN9XogSgK80HhAHu1bcA6HOX+RKigT6iRUaLKM9sbXj QRuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XuwRMKnXVYShc3P97jDcb26qSE0+haHJPdzfJ4jdlqw=; b=AcEQvEXYTjXd3oNQGoAuRdkkJBhzuXzwUP58dsFXi2zj3xniwU5GRUgCcDndvIDAvC cHcTGCxmxxpaPTjY0uxfAKnAYUwa9Tsp1colONsQX0gtBV4RP9FQcWTYE5yKHgnbCS1a jdFW1Zk4Yh2kfuMgIhaMY6xcTuuh8SziUbmbPt6H1VivTUW90G+BKLlis+rA9Bx7xyOd n2qDHGj0+h0OAvhMsl+s5dPjymixJAovPVt9QUtTXhWgW6tZ3F/ZZceAldUSGJI07y01 XUyuIp3k9hRakM8sKpEGKYpzI3HtRCCNQRGQh+NmRdrVLpVNr+MFmYyZ1lRote2rm/E9 TjUw== X-Gm-Message-State: AO0yUKUP7pLmeuBKp74RKJVBp7h9dY8Wr+bQfM3aMq/v/pfsqQoT1Rqs A3guRYH1e8ac9wxOMbiuJTxgEEf13NyNRUAUFxY= X-Google-Smtp-Source: AK7set9KKmd/XMoxaSFG+41MnGmoEWfK0335H5K/dBcod/4BoKwJVmS9dtDaVS/wURUS+y5HMR0jXw== X-Received: by 2002:a17:907:20cb:b0:87f:89f2:c012 with SMTP id qq11-20020a17090720cb00b0087f89f2c012mr17409171ejb.24.1676053518552; Fri, 10 Feb 2023 10:25:18 -0800 (PST) Received: from arinc9-PC.lan ([37.120.152.236]) by smtp.gmail.com with ESMTPSA id 4-20020a170906024400b008aef19f678asm2708966ejl.165.2023.02.10.10.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:25:18 -0800 (PST) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , erkin.bozoglu@xeront.com Subject: [PATCH v3 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi Date: Fri, 10 Feb 2023 21:25:01 +0300 Message-Id: <20230210182505.24597-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230210182505.24597-1-arinc.unal@arinc9.com> References: <20230210182505.24597-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ar=C4=B1n=C3=A7 =C3=9CNAL There are two gigabit MACs on the MT7623AI and MT7623NI SoCs. Add them to mt7623.dtsi and adjust the DTs that call mt7623.dtsi. Now that there are labels for the MACs, remove them from under ð on the DTs that call mt7623.dtsi. Remove the unnecessary mdio label from Bananapi BPI-R2. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- arch/arm/boot/dts/mt7623.dtsi | 12 +++++++ arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 21 ++++++------ arch/arm/boot/dts/mt7623a-rfb-nand.dts | 21 ++++++------ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 23 +++++++------ arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 32 +++++++++---------- 5 files changed, 58 insertions(+), 51 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 25d31e40a553..2bc3c49dc3df 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -981,6 +981,18 @@ eth: ethernet@1b100000 { #address-cells =3D <1>; #size-cells =3D <0>; status =3D "disabled"; + + gmac0: mac@0 { + compatible =3D "mediatek,eth-mac"; + reg =3D <0>; + status =3D "disabled"; + }; + + gmac1: mac@1 { + compatible =3D "mediatek,eth-mac"; + reg =3D <1>; + status =3D "disabled"; + }; }; =20 crypto: crypto@1b240000 { diff --git a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts b/arch/arm/boot/dts/mt7= 623a-rfb-emmc.dts index e8b4b6d30d19..a64d68b6e165 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts @@ -112,20 +112,19 @@ &crypto { status =3D "okay"; }; =20 -ð { +&gmac0 { status =3D "okay"; + phy-mode =3D "trgmii"; =20 - gmac0: mac@0 { - compatible =3D "mediatek,eth-mac"; - reg =3D <0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; + fixed-link { + speed =3D <1000>; + full-duplex; + pause; }; +}; + +ð { + status =3D "okay"; =20 mdio-bus { #address-cells =3D <1>; diff --git a/arch/arm/boot/dts/mt7623a-rfb-nand.dts b/arch/arm/boot/dts/mt7= 623a-rfb-nand.dts index 61f5da68d4b0..fac3ca0322c8 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-nand.dts @@ -116,20 +116,19 @@ &crypto { status =3D "okay"; }; =20 -ð { +&gmac0 { status =3D "okay"; + phy-mode =3D "trgmii"; =20 - gmac0: mac@0 { - compatible =3D "mediatek,eth-mac"; - reg =3D <0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; + fixed-link { + speed =3D <1000>; + full-duplex; + pause; }; +}; + +ð { + status =3D "okay"; =20 mdio-bus { #address-cells =3D <1>; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/= dts/mt7623n-bananapi-bpi-r2.dts index 5008115d2494..1e03a3de654f 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -171,22 +171,21 @@ dpi0_out: endpoint { }; }; =20 -ð { +&gmac0 { status =3D "okay"; + phy-mode =3D "trgmii"; =20 - gmac0: mac@0 { - compatible =3D "mediatek,eth-mac"; - reg =3D <0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; + fixed-link { + speed =3D <1000>; + full-duplex; + pause; }; +}; + +ð { + status =3D "okay"; =20 - mdio: mdio-bus { + mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7= 623n-rfb-emmc.dts index bf67a8e9be59..5e328c2a6a6e 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -156,27 +156,25 @@ dpi0_out: endpoint { }; }; =20 -ð { +&gmac0 { status =3D "okay"; + phy-mode =3D "trgmii"; =20 - gmac0: mac@0 { - compatible =3D "mediatek,eth-mac"; - reg =3D <0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; + fixed-link { + speed =3D <1000>; + full-duplex; + pause; }; +}; =20 - mac@1 { - compatible =3D "mediatek,eth-mac"; - reg =3D <1>; - phy-mode =3D "rgmii"; - phy-handle =3D <&phy5>; - }; +&gmac1 { + status =3D "okay"; + phy-mode =3D "rgmii"; + phy-handle =3D <&phy5>; +}; + +ð { + status =3D "okay"; =20 mdio-bus { #address-cells =3D <1>; --=20 2.37.2 From nobody Thu Nov 14 06:58:09 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB341C636D7 for ; Fri, 10 Feb 2023 18:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233064AbjBJSZ1 (ORCPT ); Fri, 10 Feb 2023 13:25:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233014AbjBJSZW (ORCPT ); Fri, 10 Feb 2023 13:25:22 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7160261D24; Fri, 10 Feb 2023 10:25:21 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id lu11so18214170ejb.3; Fri, 10 Feb 2023 10:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=916XgVZ9fASoqPZFrOcZBdhhHsdFw2GVlGXOTRIHOcg=; b=HPVGsf5AoDNAGcwvHWXoIKJGcZehK5culQMeKU7O+QqHKQXZnw0SKmRZWWVghdeHlD iPohuCwptOedN1FwGCKUrBDgsyzxyJ51x/+rRlKU9XwxSuguE+a4RSErtzi2H1gYPK8P YdlLlQkTonP9ChuNfXIvc1DE1YKXKP3Nlb5W/XZ5jFXzSoTw4Mm9uYGzduspkFcWHaMd I2JwhjfnJY3bWtUzrUN/mxpybEYvkzMYBzmrBoIB/2FBqfvMRtGGtySyicAQ256K/RL6 tTD9YT8E+wq5HNADUtR8Lc6r1Bv/9mAkpn5yd+bmvoWGHIzYIok+iPih8DnqT/DdKO/7 Q9jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=916XgVZ9fASoqPZFrOcZBdhhHsdFw2GVlGXOTRIHOcg=; b=z/3P+YCy4Y2fC3Enylxat96w3IdUAfwO3Vnpygpge3wPBOFCdQknKC83OZHgbAMZPB iDyqPV1glVwP49EURTryM66gZ3ZR6LnBy40I1fGuFnmvJ3oKBy9F4xRTw4SlJwGIE7Ec FhXaiIwFi23evOWV+YJKN+95wkRZIhaTFdXdoq6oJ6pP2kqSiMwNT1XUXC3cs1rq6uIV HHUbtVQTRQpjDu3VZ4IDT9giXSagwpAirIAtCzEmHJ86A3SBJ/XK429impALAf0dGYOY mwMNVxaxJRIoRohFtpPrug8mmMSK6sY5lrqAIMK1uQspB0ALX0wUXLYbkjhARHxbstzf oQFw== X-Gm-Message-State: AO0yUKUPLry6QUrbBjmsm1ImwbbJh6uWYtocmJ0vkRJGwfPBnfGm5Ikz jJ8uuigL/OpXSnYg2j9DoF4= X-Google-Smtp-Source: AK7set/QOnGx6F5MPHmVFkQdlYm4poP8qmAhex/C7DuEuZcrrTjeoJoC8VePE7xv4RouyakS0boaGw== X-Received: by 2002:a17:906:3892:b0:88a:f42f:579c with SMTP id q18-20020a170906389200b0088af42f579cmr14485145ejd.77.1676053519888; Fri, 10 Feb 2023 10:25:19 -0800 (PST) Received: from arinc9-PC.lan ([37.120.152.236]) by smtp.gmail.com with ESMTPSA id 4-20020a170906024400b008aef19f678asm2708966ejl.165.2023.02.10.10.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:25:19 -0800 (PST) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , erkin.bozoglu@xeront.com Subject: [PATCH v3 2/5] arm: dts: mt7623: add mt7530 switch to mt7623a.dtsi Date: Fri, 10 Feb 2023 21:25:02 +0300 Message-Id: <20230210182505.24597-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230210182505.24597-1-arinc.unal@arinc9.com> References: <20230210182505.24597-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ar=C4=B1n=C3=A7 =C3=9CNAL 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=C4=B1n=C3=A7 =C3=9CNAL --- arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 87 +++++++------------------- arch/arm/boot/dts/mt7623a-rfb-nand.dts | 87 +++++++------------------- arch/arm/boot/dts/mt7623a.dtsi | 74 ++++++++++++++++++++++ 3 files changed, 118 insertions(+), 130 deletions(-) diff --git a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts b/arch/arm/boot/dts/mt7= 623a-rfb-emmc.dts index a64d68b6e165..5654284bab01 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts @@ -112,74 +112,31 @@ &crypto { status =3D "okay"; }; =20 -&gmac0 { - status =3D "okay"; - phy-mode =3D "trgmii"; +&switch0 { + ports { + port@0 { + status =3D "okay"; + label =3D "lan0"; + }; =20 - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; -}; + port@1 { + status =3D "okay"; + label =3D "lan1"; + }; =20 -ð { - status =3D "okay"; + port@2 { + status =3D "okay"; + label =3D "lan2"; + }; + + port@3 { + status =3D "okay"; + label =3D "lan3"; + }; =20 - mdio-bus { - #address-cells =3D <1>; - #size-cells =3D <0>; - - switch@0 { - compatible =3D "mediatek,mt7530"; - reg =3D <0>; - mediatek,mcm; - resets =3D <ðsys MT2701_ETHSYS_MCM_RST>; - reset-names =3D "mcm"; - core-supply =3D <&mt6323_vpa_reg>; - io-supply =3D <&mt6323_vemc3v3_reg>; - - ports { - #address-cells =3D <1>; - #size-cells =3D <0>; - - port@0 { - reg =3D <0>; - label =3D "lan0"; - }; - - port@1 { - reg =3D <1>; - label =3D "lan1"; - }; - - port@2 { - reg =3D <2>; - label =3D "lan2"; - }; - - port@3 { - reg =3D <3>; - label =3D "lan3"; - }; - - port@4 { - reg =3D <4>; - label =3D "wan"; - }; - - port@6 { - reg =3D <6>; - label =3D "cpu"; - ethernet =3D <&gmac0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - }; - }; - }; + port@4 { + status =3D "okay"; + label =3D "wan"; }; }; }; diff --git a/arch/arm/boot/dts/mt7623a-rfb-nand.dts b/arch/arm/boot/dts/mt7= 623a-rfb-nand.dts index fac3ca0322c8..afd177b3b516 100644 --- a/arch/arm/boot/dts/mt7623a-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623a-rfb-nand.dts @@ -116,74 +116,31 @@ &crypto { status =3D "okay"; }; =20 -&gmac0 { - status =3D "okay"; - phy-mode =3D "trgmii"; +&switch0 { + ports { + port@0 { + status =3D "okay"; + label =3D "lan0"; + }; =20 - fixed-link { - speed =3D <1000>; - full-duplex; - pause; - }; -}; + port@1 { + status =3D "okay"; + label =3D "lan1"; + }; =20 -ð { - status =3D "okay"; + port@2 { + status =3D "okay"; + label =3D "lan2"; + }; =20 - mdio-bus { - #address-cells =3D <1>; - #size-cells =3D <0>; - - switch@0 { - compatible =3D "mediatek,mt7530"; - reg =3D <0>; - mediatek,mcm; - resets =3D <ðsys MT2701_ETHSYS_MCM_RST>; - reset-names =3D "mcm"; - core-supply =3D <&mt6323_vpa_reg>; - io-supply =3D <&mt6323_vemc3v3_reg>; - - ports { - #address-cells =3D <1>; - #size-cells =3D <0>; - - port@0 { - reg =3D <0>; - label =3D "lan0"; - }; - - port@1 { - reg =3D <1>; - label =3D "lan1"; - }; - - port@2 { - reg =3D <2>; - label =3D "lan2"; - }; - - port@3 { - reg =3D <3>; - label =3D "lan3"; - }; - - port@4 { - reg =3D <4>; - label =3D "wan"; - }; - - port@6 { - reg =3D <6>; - label =3D "cpu"; - ethernet =3D <&gmac0>; - phy-mode =3D "trgmii"; - - fixed-link { - speed =3D <1000>; - full-duplex; - }; - }; - }; + port@3 { + status =3D "okay"; + label =3D "lan3"; + }; + + port@4 { + status =3D "okay"; + label =3D "wan"; }; }; }; diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index d304b62d24b5..fbb5731a3a53 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -17,8 +17,82 @@ &crypto { power-domains =3D <&scpsys MT7623A_POWER_DOMAIN_ETH>; }; =20 +&gmac0 { + status =3D "okay"; + phy-mode =3D "trgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; +}; + ð { + status =3D "okay"; power-domains =3D <&scpsys MT7623A_POWER_DOMAIN_ETH>; + + mdio: mdio-bus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + switch0: switch@0 { + compatible =3D "mediatek,mt7530"; + reg =3D <0>; + mediatek,mcm; + resets =3D <ðsys MT2701_ETHSYS_MCM_RST>; + reset-names =3D "mcm"; + core-supply =3D <&mt6323_vpa_reg>; + io-supply =3D <&mt6323_vemc3v3_reg>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + status =3D "disabled"; + reg =3D <0>; + label =3D "swp0"; + }; + + port@1 { + status =3D "disabled"; + reg =3D <1>; + label =3D "swp1"; + }; + + port@2 { + status =3D "disabled"; + reg =3D <2>; + label =3D "swp2"; + }; + + port@3 { + status =3D "disabled"; + reg =3D <3>; + label =3D "swp3"; + }; + + port@4 { + status =3D "disabled"; + reg =3D <4>; + label =3D "swp4"; + }; + + port@6 { + reg =3D <6>; + label =3D "cpu"; + ethernet =3D <&gmac0>; + phy-mode =3D "trgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + }; + }; + }; + }; + }; }; =20 &nandc { --=20 2.37.2 From nobody Thu Nov 14 06:58:09 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F652C636D4 for ; Fri, 10 Feb 2023 18:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233085AbjBJSZa (ORCPT ); Fri, 10 Feb 2023 13:25:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbjBJSZY (ORCPT ); Fri, 10 Feb 2023 13:25:24 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA2AA6359E; Fri, 10 Feb 2023 10:25:22 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id dr8so18101333ejc.12; Fri, 10 Feb 2023 10:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zQ2TcNqdLFOAVmLP5M0cy768AQ+LH1yHfkoCaBZyfHc=; b=P4Cyqdnd70mhdxO3RK9uEwrJUnV0pnLT7dy056n4u+u/+L9yzEAAUgn3U9LGa31Z4m D6nzdWRQNvoCNfApP/7ozpYabM/ETKwH0qZbVwdGWtwfNyreTUHv1SCG+cGOazHic+ma iSDRVWwnY9fe4OEWZ+psBH4mT2PsvuU1+7My8yv2DG6tlJizuhvWwxRFVoq9CPqUfrWV D/WqtDAAEZXnrBvoJ4HXZEqBdnlVo5ABTW19fIqyN/vC/SGP6wmmIf1P6EDyPRTb9ZIM V6bcmgegiX97MXVWNL/tjGXtGLVAWZH8OW2BjWA2eyt+kqB8sU6e0u6wLtlN1Vvq2tW6 bWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zQ2TcNqdLFOAVmLP5M0cy768AQ+LH1yHfkoCaBZyfHc=; b=HxOgv9wqzinQwgnS/Mdz8DbdHtSWkatxGMfPpBNvBn2yHWzjWiSEnaPrhV7CWt7LxU qZIHCxa68GVilGdnBa9F6P2yzRPQu4MPLeevYOqbdaaH77kRpgCOKiCuANgzrZ7EHqAW SgWBhJiy3nK5DLjoocb/r+HUA59QH9QT1TQMW0MXamXx9fdfCqnmgXzxeod0Qkg/xlGS BHNSVM0vj+YRyhq9wbqoaHTUHubfRgSNQ+jG1h2I2X+/Vul9XdzN8KpVJORTHa5CSeGN Xms6DQOfLdPwIF5SSHJbKS85b8VdXXb2YAt6ZFk31jOY4A5oRLRKV81CRK6Kq3U//VeY mgFQ== X-Gm-Message-State: AO0yUKWv8hqFJJrPkuVjpVSP51E7W4efFJFYDPWwsR1P2t8NZ2/SBZVW rwNA/QGSe53yt5MU+cFwgDI= X-Google-Smtp-Source: AK7set/jOf8U2uDeIMXN7sLu64zG4Q6TvF/CNq5kPekt86MNECu2qEg+gRlcIb9Fap72KoCeg3+edw== X-Received: by 2002:a17:906:29cb:b0:87f:5d0a:c610 with SMTP id y11-20020a17090629cb00b0087f5d0ac610mr16518249eje.32.1676053521286; Fri, 10 Feb 2023 10:25:21 -0800 (PST) Received: from arinc9-PC.lan ([37.120.152.236]) by smtp.gmail.com with ESMTPSA id 4-20020a170906024400b008aef19f678asm2708966ejl.165.2023.02.10.10.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:25:21 -0800 (PST) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , erkin.bozoglu@xeront.com Subject: [PATCH v3 3/5] arm: dts: mt7623: change mt7530 switch address Date: Fri, 10 Feb 2023 21:25:03 +0300 Message-Id: <20230210182505.24597-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230210182505.24597-1-arinc.unal@arinc9.com> References: <20230210182505.24597-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ar=C4=B1n=C3=A7 =C3=9CNAL 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=C4=B1n=C3=A7 =C3=9CNAL --- 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 fbb5731a3a53..dd522e508eb3 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -36,9 +36,9 @@ mdio: mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch0: switch@0 { + switch0: switch@1f { compatible =3D "mediatek,mt7530"; - reg =3D <0>; + reg =3D <0x1f>; mediatek,mcm; resets =3D <ðsys MT2701_ETHSYS_MCM_RST>; reset-names =3D "mcm"; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/= dts/mt7623n-bananapi-bpi-r2.dts index 1e03a3de654f..dc9b4f99eb8b 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -189,9 +189,9 @@ mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7530"; - reg =3D <0>; + reg =3D <0x1f>; reset-gpios =3D <&pio 33 0>; core-supply =3D <&mt6323_vpa_reg>; io-supply =3D <&mt6323_vemc3v3_reg>; diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7= 623n-rfb-emmc.dts index 5e328c2a6a6e..6b0c3d1006ab 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -185,9 +185,9 @@ phy5: ethernet-phy@5 { phy-mode =3D "rgmii-rxid"; }; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7530"; - reg =3D <0>; + reg =3D <0x1f>; reset-gpios =3D <&pio 33 0>; core-supply =3D <&mt6323_vpa_reg>; io-supply =3D <&mt6323_vemc3v3_reg>; --=20 2.37.2 From nobody Thu Nov 14 06:58:09 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACB5AC636CD for ; Fri, 10 Feb 2023 18:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233094AbjBJSZb (ORCPT ); Fri, 10 Feb 2023 13:25:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbjBJSZZ (ORCPT ); Fri, 10 Feb 2023 13:25:25 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D32E79B07; Fri, 10 Feb 2023 10:25:24 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id jg8so18182231ejc.6; Fri, 10 Feb 2023 10:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wCfu6pa2GszeTfCc5RgYlhyJYQ9sWCYCud+ludrzzVc=; b=X1mzrKM6r4a/0Ka+GQ11R1XnzzfmSUJuDFwVEfOo08zbxrh5eGXfBhrUVXrxpmR27K ESz9/uL0HnKtFzina5m6Z/BAMKvsH//osXITxksKCao5PYUe81/i4FNUpsNaq0UNc/PC sBb0gDowBHGWnBpF7V/c4nkq7j40Nmicx5jHub30Rs2HvL/20ueoWqNGyLxrhzR9gquG 826SR+3RHVHmHYFSzb7ph64Zb1JTQAt/bY3PvS5UDWsELvxxCFKWAScuC0V7fiaIDGml QIIHpo8kH6nJjpVnewHuAtl5NiRziv0Y1G5kSKrw6gsdZHQnBA0HwctVpuziyEOOa0cy Isng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wCfu6pa2GszeTfCc5RgYlhyJYQ9sWCYCud+ludrzzVc=; b=XGB5kRkR/S5p1w/uA0TRSkRCUrK9HsrhktXRvM/ndwZxzkPmhHLg504+gVGJ1GMSz1 faYp8KwjBqiqBN+IePlKgK8Saswhd4fbI7w7mUHlIYk5n6PXwIDf2N6YApZSQIZhtH/+ J1cU8q7/Ux+RcjY2oY2slnrniFY0X5IaxEASsCofS22SqdqLoCWDxfnsQPidwDBmWXDo G7E5yjnxGepciaxUQIwfdi0DSzucAQubujykJvSrE3WY7291dBF9KmrAur0ho+aIp0Mv UtfZva3eJ81R/YQHm6y+qKSxPKce+jlqeP0I8hIW096o6spQyOQSs53JB3hskiFptWZ+ kJ2A== X-Gm-Message-State: AO0yUKUymw5cV6jQBYSurzVwri1ZaYKGtX8EPmeU2s2+QUtm8TluPsk8 F0ekvDco2DLUCGVzvPvP6lQ= X-Google-Smtp-Source: AK7set8fq7wwpEhi5yAiF/pDQhfmzPRJ9oTHjWGWSPgYj3lO24PrEML/3qWsS/pdXPlcmVkz3lsgfg== X-Received: by 2002:a17:907:2495:b0:888:787d:2064 with SMTP id zg21-20020a170907249500b00888787d2064mr16908779ejb.75.1676053522615; Fri, 10 Feb 2023 10:25:22 -0800 (PST) Received: from arinc9-PC.lan ([37.120.152.236]) by smtp.gmail.com with ESMTPSA id 4-20020a170906024400b008aef19f678asm2708966ejl.165.2023.02.10.10.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:25:22 -0800 (PST) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , erkin.bozoglu@xeront.com Subject: [PATCH v3 4/5] arm: dts: mt7623: enable flow control on port@6 Date: Fri, 10 Feb 2023 21:25:04 +0300 Message-Id: <20230210182505.24597-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230210182505.24597-1-arinc.unal@arinc9.com> References: <20230210182505.24597-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ar=C4=B1n=C3=A7 =C3=9CNAL 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=C4=B1n=C3=A7 =C3=9CNAL --- 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 dd522e508eb3..2a50b5c0c933 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -88,6 +88,7 @@ port@6 { fixed-link { speed =3D <1000>; full-duplex; + pause; }; }; }; diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7= 623n-rfb-emmc.dts index 6b0c3d1006ab..34994f3f5a4b 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts @@ -230,6 +230,7 @@ port@6 { fixed-link { speed =3D <1000>; full-duplex; + pause; }; }; }; --=20 2.37.2 From nobody Thu Nov 14 06:58:09 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B91BC05027 for ; Fri, 10 Feb 2023 18:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232215AbjBJSZe (ORCPT ); Fri, 10 Feb 2023 13:25:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233051AbjBJSZ0 (ORCPT ); Fri, 10 Feb 2023 13:25:26 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DE4263582; Fri, 10 Feb 2023 10:25:25 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id ml19so18340305ejb.0; Fri, 10 Feb 2023 10:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YyBzoWonyroiVWOV9YyUOPxjVW7NIqHXUCfTqPDs494=; b=ebLy1htRwAGPgbF4vheWwt/5UYmixRi8gd57rvXUC7dUEqTvLJgMh3/BgPbUsv5XlY pmQ5wje3aKntpnAOSHtpUDeHVJsgmwHPtJzIUVFn4F5+t3wM2EIlqRH5QljT/bGupf1p YE/Jt3Q5CEeXA89z+ybYm0JqLb/L6qgFrY5rUD2vORu6X9rLrt4sfUCOcDP5lOEwPCSh Buvpt2eYPkxkPpDFn6abMQI42nxoXYz0SgnBqSQk5Dj/hQ4rTwXWz0RuBhaD8tWfU39V wf0o/hZzd1G6rfpYWdFoAhzSHF5/oMnwT9RU22FPp2/Gqv4iQjarvFf/EVDiJhOLv/6S /F2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YyBzoWonyroiVWOV9YyUOPxjVW7NIqHXUCfTqPDs494=; b=eIIUJQEdwQhN4csdvtjr8aD7PR+mD1tjyz0bIZOBRte+SDnnv/A78KnozhoCoYrnjG C+mNOyl7Ud3ajy1LHRbl18Ra/akCOQnF/Q8PDEYg/WrItBOubRQwTPdYMTJPbPOHiNXH znlvCU+E1J6UZbIQxH65cd73RdoUpnYFXud7JlCcRgnjTlZcn3zLcMikWyay4vrkK+kA ceUtUEM8QNwOPmRqnj60nh5am/Yh8O5AqDsoDnJAWUAlUONUJXP2LWK5xS1kzS/LU4T2 9CH7MnP2b8KsE7PNdbnvPhbSMwhJYWA5a0pKujhDRIZKtWHCq9RCyyjVBZdka/g50GXb o3ew== X-Gm-Message-State: AO0yUKVYtmk8HEJfH5ew0ZnZ9SK/r21MQ9FciD2KPzSdqC/qHeMUlzWV F3Ik5yApK1xzU14/CQKG+Ok= X-Google-Smtp-Source: AK7set9xA/Pdz2Tf7LtUnn5pvUgmMkZJr4RCfb4ZnexC6hSS+IRoYOLRpI/4WFVbv7fJ1z1XAThcng== X-Received: by 2002:a17:906:7952:b0:884:b467:ae4a with SMTP id l18-20020a170906795200b00884b467ae4amr20535503ejo.64.1676053524019; Fri, 10 Feb 2023 10:25:24 -0800 (PST) Received: from arinc9-PC.lan ([37.120.152.236]) by smtp.gmail.com with ESMTPSA id 4-20020a170906024400b008aef19f678asm2708966ejl.165.2023.02.10.10.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:25:23 -0800 (PST) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , erkin.bozoglu@xeront.com Subject: [PATCH v3 5/5] arm: dts: mt7623: add port@5 as CPU port Date: Fri, 10 Feb 2023 21:25:05 +0300 Message-Id: <20230210182505.24597-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230210182505.24597-1-arinc.unal@arinc9.com> References: <20230210182505.24597-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ar=C4=B1n=C3=A7 =C3=9CNAL On the MT7623AI SoC and Bananapi BPI-R2, port 5 of the MT7530 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- arch/arm/boot/dts/mt7623a.dtsi | 24 +++++++++++++++++++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 2a50b5c0c933..bcf909d58a1c 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -28,6 +28,17 @@ fixed-link { }; }; =20 +&gmac1 { + status =3D "okay"; + phy-mode =3D "rgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; +}; + ð { status =3D "okay"; power-domains =3D <&scpsys MT7623A_POWER_DOMAIN_ETH>; @@ -79,6 +90,19 @@ port@4 { label =3D "swp4"; }; =20 + port@5 { + reg =3D <5>; + label =3D "cpu"; + ethernet =3D <&gmac1>; + phy-mode =3D "rgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg =3D <6>; label =3D "cpu"; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/= dts/mt7623n-bananapi-bpi-r2.dts index dc9b4f99eb8b..642b1c0a96ba 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -182,6 +182,17 @@ fixed-link { }; }; =20 +&gmac1 { + status =3D "okay"; + phy-mode =3D "rgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; +}; + ð { status =3D "okay"; =20 @@ -225,6 +236,19 @@ port@4 { label =3D "lan3"; }; =20 + port@5 { + reg =3D <5>; + label =3D "cpu"; + ethernet =3D <&gmac1>; + phy-mode =3D "rgmii"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg =3D <6>; label =3D "cpu"; --=20 2.37.2