Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4716779iob; Sun, 8 May 2022 23:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYMQW2zbMzoCAJr2rLdSLzmL+q6tr0kmLAb/Fm8u+SzzBEB3V6K81BXH3n4IvIUXimGdBb X-Received: by 2002:a05:6a00:114e:b0:4c8:55f7:faad with SMTP id b14-20020a056a00114e00b004c855f7faadmr14640494pfm.86.1652076295259; Sun, 08 May 2022 23:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652076295; cv=none; d=google.com; s=arc-20160816; b=indX7zzo54qbDgGpRhv9VG2A09aLGXWqdLokDukIjyPcBotiwtmx2R/4ZyJefttCxN ScmjdlmBnyI1nGSwGvBkslR+eePNR8qitE+fECTrisGEi+yzHPHYLT/xJSGX3SK/Vb69 AtrcBwVxxzuNrFOvAnP1EARQ64wP/YuV1+visabQLfnsaFJTclyUP4ttK0GMr09+eP6o Inz+Isti/zcvwWTD/MVB/re/Jxn4qY+6L3WZluhGYPlpYeBvhIgGiIymQGQKnaqPrt1n Eqqyia6JZMvHsJilWR75B1h01mbhMLGLBRb+caViqXONnPMnmYmtUNHOTExFyWQU2dmo ynGg== 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=ztXbd80xozaI47bUw9fR7hUTHlVlOWP8CEepv0mY5ag=; b=n8aDOOBGD0yAn7SuDNzpBQlGp+63i7FEMzLEqnFPFfXRNAYHCPGGasCRl16a1W3NK1 cwzdBSwQjb1UVm61jlu76CMnRFl49quStraM2/O/u1a+hd5CTntaub4bSrmdvcpgkXob Q/iQ+n4Mcmkz/xXL93XL9cFLuwt3lFcv4wH/HyJ+oeFoi1/LEzTLwjcEWDupS7eFswIR Y3p3Lrn1aMeK4e3EX5azhyIRatW0i8JsuCxPas09sYKZo6ZwWqxVScm+IcVTcxcGdMXc PpJDLZwz5Dt0kd8Aoa+rJy2zdXgXB1yCNEXrgb1DvfFJchi34Ddas0TyYi0QMnNgVg6o I8qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=hjvBnIMg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d5-20020a170902cec500b00153b2d164bcsi13218874plg.196.2022.05.08.23.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:04:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=hjvBnIMg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 274DF170676; Sun, 8 May 2022 23:04:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446710AbiEGRKJ (ORCPT + 99 others); Sat, 7 May 2022 13:10:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446666AbiEGRIp (ORCPT ); Sat, 7 May 2022 13:08:45 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 810F31B781; Sat, 7 May 2022 10:04:58 -0700 (PDT) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout4.routing.net (Postfix) with ESMTP id 588691004CD; Sat, 7 May 2022 17:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1651943096; 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=ztXbd80xozaI47bUw9fR7hUTHlVlOWP8CEepv0mY5ag=; b=hjvBnIMgtNv5Y0TtmliGNJFJJyvdDsncrvJxS5hh75rBbCmxjMTKkmF5kSJ/IZJIhIVBxu KAcTaTa1v55y4ouhZLrtwSouLWL7hwn4+7s6xDyx6APX46UEv5ziI2TFDLH7xmHpa0A80f uyeMuJIlnOxrQ/cPrv/C1mg3oJMlAzE= Received: from localhost.localdomain (fttx-pool-80.245.74.2.bambit.de [80.245.74.2]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 415B1800AB; Sat, 7 May 2022 17:04:55 +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" , 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 v3 6/6] arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board Date: Sat, 7 May 2022 19:04:40 +0200 Message-Id: <20220507170440.64005-7-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220507170440.64005-1-linux@fw-web.de> References: <20220507170440.64005-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 744a8d14-3188-4f88-af20-b041c28fd74e X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 235cb7405d9b..e517712f5d8d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -454,6 +454,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.25.1