Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1596669iol; Fri, 10 Jun 2022 10:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjHzqbsYw+6pVBiirUBmWPmevCv3UAdHU9SKyPCxz/dCMFWnxB4+3SKcOY1a6MkIAIblrw X-Received: by 2002:aa7:d9d9:0:b0:42d:f9e4:49e0 with SMTP id v25-20020aa7d9d9000000b0042df9e449e0mr51846402eds.299.1654882529459; Fri, 10 Jun 2022 10:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654882529; cv=none; d=google.com; s=arc-20160816; b=FFiM38Fw1fr2RBetf5CvLTMbVC3uilU9hK+NzG0DVlvNAk9hvODk3F5Rakoudxbom6 SL2Kbr/QEb7l5Yq4+KdarPhygGZmrW3A7PzAdH6V0SFNA/tvNNJd2sumJ5OCU8cn2IVL zyk4WrRMkNh1RDg9cLXutLZFC81QHelQMofDlFCDxN4WDi1C3OTRpNeilaQVMxRcxYDy yxJKHiAwdrqLIoNfxX+jLRZZWz+RvlHa66kKE7SdOn3n3Xnyb4IMD8imuhZhE9T038m9 /2mF6ZgiUCv3dHLgEH1pTp52w+xWj8vGIKzXcc0ElCofAewVb0HSWLEY8FyjN2v7Dei3 15rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=js+mZvUFXnwqGgCGciplzUqL6UKY6LhPbZ2QpREU94c=; b=jvThf0E+ojWYjD/P24nlalyu6tg5UBaqx1UtFXyZlZFZqtK9e8NOkm6guGHyvmTRQR u8YGUdz+sp/gzboFfFQO72jXGn3NjwmhQYFZm2rPyGzYhK5/QnyJfAXwoCIFdLU/h18t kNPwAqBHukl2RaVspYBy4wOwM25RJ5vlYrmnpn9hOFujkxcPXZ9LC+z7DQ+0Y5s6HnZT XnvgO8eWZkhV67zQbPESZ/UsFDxQIuPuhmJ3jsRZF9GP5+VX7rPBBt3RdGxBtHXtCc09 0ERDQQUpq48lXe8efDQs9kax2OdtI56PmIvrtImUJLq00WxK8Tzwp2ghatObnC8XuGgb AO0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=c+phttVD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa42-20020a17090786aa00b006dff4dd30f9si13996464ejc.862.2022.06.10.10.35.03; Fri, 10 Jun 2022 10:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=c+phttVD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350123AbiFJRHH (ORCPT + 99 others); Fri, 10 Jun 2022 13:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350068AbiFJRGn (ORCPT ); Fri, 10 Jun 2022 13:06:43 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A893631E; Fri, 10 Jun 2022 10:06:15 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 08C30100770; Fri, 10 Jun 2022 17:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654880774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=js+mZvUFXnwqGgCGciplzUqL6UKY6LhPbZ2QpREU94c=; b=c+phttVDs2fWl3s6ahHslf2+Zvj3eT2b+FSpol1ryEn0w3JazB48GH+tXK5Buy9cTElBAD AzjKzybdS/FnFOFIbl2NaaKhNNfoWFD4SiLxyFkZvJ5ztxjtOku1/d9uIiS4siMtj8nuS5 maTDYHnXfX5hvDCy+N2NSuTMVHFbC9Y= Received: from frank-G5.. (fttx-pool-217.61.154.155.bambit.de [217.61.154.155]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id D4D61100394; Fri, 10 Jun 2022 17:06:12 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Peter Geis , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Ungerer , =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= , "Mauro Carvalho Chehab" Subject: [PATCH v4 6/6] arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board Date: Fri, 10 Jun 2022 19:05:41 +0200 Message-Id: <20220610170541.8643-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220610170541.8643-1-linux@fw-web.de> References: <20220610170541.8643-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 44a36d37-a351-4272-a63f-a3dc4cfe27d1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich Add Device Tree node for mt7531 switch connected to gmac0. Signed-off-by: Frank Wunderlich --- v2: - drop status=disabled --- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 40cf2236c0b6..7df8cfb1d3b9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -394,6 +394,54 @@ &i2c5 { status = "disabled"; }; +&mdio0 { + #address-cells = <1>; + #size-cells = <0>; + + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + label = "lan0"; + }; + + port@2 { + reg = <2>; + label = "lan1"; + }; + + port@3 { + reg = <3>; + label = "lan2"; + }; + + port@4 { + reg = <4>; + label = "lan3"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + }; +}; + &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.34.1