From nobody Thu Nov 14 06:54:27 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