Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp973479iob; Wed, 4 May 2022 11:48:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfkQh1WgSJQv2qJzakK4OTXIl8xUlTvrcdjetyK0OMXc43J8KuAHX4eiViyCzNXBPcbV7G X-Received: by 2002:a17:906:cb09:b0:6f3:87ca:1351 with SMTP id lk9-20020a170906cb0900b006f387ca1351mr21324499ejb.674.1651690128986; Wed, 04 May 2022 11:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651690128; cv=none; d=google.com; s=arc-20160816; b=GQ3RKXub9popBPr25Jv5Q/jtOTUDrFlaVg94UTJT449IKuAqnqTr3TpNH+UPHu/UUY saGG0wiXHGNhIZUadUE03QWQyTIGGdo0TBsli3UjAlHxB9wILk940YQ4dMhPDfrQN53p h2ihZV2tek1atRTKsmKSPu/DFJkJggH7iisUw1v9p8OjlkGtFsP9RhL68EoDMIaOe5yn T7A8Z638HwMPFAvUYeyDbeOo98jwHZqQ7W+JY06S93pbTpxtMCXStN57Cd5JYKnoNE+K JT5q2+TzprmydsyBsCLReRhYKH3fAKBKqxSrdWu+fyiUoiviQOojCF57GOVJGQcU3tM3 E8WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wOYVxYLL6+BG3TePrLsXdWjDVPS5GIUfbLWvSKSl8h4=; b=G3XWU1Gst4KRf2gLUWmbqXkGFS4YgdGTZX4ooSkHhqy0OJjm43FHkqKiWwKvCTOWWP PcWVyUoQ7sUi+T+jGLpLgpWJN2TpXLZKv0zoPosrmWp482rhjNNmQxsif4le30DI0CY9 xcjsrDTckuMcMNcYT5tFLeBGyqmnV7WOrbLJfxzvAxdMvw5tcWziAQdVoQmVo/0mXKcg ckzzlZOAGvvvIJzqSIeF8O6Olsj+ztLyUyU33I2Xjr7l9B+wlEfqLXyZYJAAnrLqSxOW zdmHETy0Qb+gTULoDbOWgM4WIxhbX81GNSLrZbVi44utao6FV9y9Dq/ZQGQyJFsFBVwW e6eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="E7T0aF/B"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dv18-20020a170906b81200b006f3aca672ebsi15552536ejb.1.2022.05.04.11.48.24; Wed, 04 May 2022 11:48:48 -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=@gmail.com header.s=20210112 header.b="E7T0aF/B"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352464AbiEDP2l (ORCPT + 99 others); Wed, 4 May 2022 11:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352359AbiEDP2a (ORCPT ); Wed, 4 May 2022 11:28:30 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC3B644A07; Wed, 4 May 2022 08:24:53 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id a21so2115149edb.1; Wed, 04 May 2022 08:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wOYVxYLL6+BG3TePrLsXdWjDVPS5GIUfbLWvSKSl8h4=; b=E7T0aF/BXgKfjiVEfL+S2vuOTV2X2yNSlckCr6+J5M7W+t5VoAN+Og/Yv5P36CGu74 VvkDxRjgzUKvk2WA0JTA5u6U/m+zPkvpUSM+bFtCUQNpjrhvSusOBZAipF95jlUXSeid oZ1vPEHG/g/L1B4fu1ZmNQjZlqqUv13WaosS+SE2TWD24vArT8f8QwQ1uFAliabkCjSQ S7HStKY/EqJRikDQe1JuWbZdS0JxTZrL5Iu4AFJTkhE3CQDiB8JRyoIr2f6YTzBwQUGM nVE4bRY+sKyuRdsof4VCxH9EtrcwyOcKFWC5vdaDWVbtygWvvchlxdy60RA6dKapoO6Z 2aaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wOYVxYLL6+BG3TePrLsXdWjDVPS5GIUfbLWvSKSl8h4=; b=sowuu9VbqstQa2SS5fXdy25X4vTTzpwXd9j4eYHylbA5RlwkYSCjHKSIX155RGNKhf i3s1/j9b9cQgKVYIPMYTeLGPmoc2lhEaOqjMZN22CjtR4q8WXzJAh7M1z85DsvuaBhoG LFgQTK9pOOLisbumT1UCzxbFDwQR0ZLn34DZXTMGZVHMxZ+ueu9gjJ8rqM3nsijKs0/J Rm4XAY3YhRQN4J+DdfLfDX0AtEXNdVoc7HuKS36DEjxgsfxqcfGiWJCLT5DWa+Cq9MB5 fRXKn3I6lvgu9h6copcMg9/6DFd9/OsQu4PkJ7F6sb+QUxwtzCUsppMikQiYRgzj2BoU bh0g== X-Gm-Message-State: AOAM530ZM/2dmYXkG2GvgsF+15KN5e7NMnAvoT96EFwK6HPFqXGPLyiM I2B49Wbc2EvO7nZc2HjhX/mlthBgVAE= X-Received: by 2002:aa7:dcc1:0:b0:427:e1ae:d822 with SMTP id w1-20020aa7dcc1000000b00427e1aed822mr9129036edu.353.1651677892502; Wed, 04 May 2022 08:24:52 -0700 (PDT) Received: from skbuf ([188.25.160.86]) by smtp.gmail.com with ESMTPSA id k6-20020aa7d8c6000000b0042617ba63d0sm9311741eds.90.2022.05.04.08.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 08:24:51 -0700 (PDT) Date: Wed, 4 May 2022 18:24:50 +0300 From: Vladimir Oltean To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC v2 4/4] arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board Message-ID: <20220504152450.cs2afa4hwkqp5b5m@skbuf> References: <20220430130347.15190-1-linux@fw-web.de> <20220430130347.15190-5-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220430130347.15190-5-linux@fw-web.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sat, Apr 30, 2022 at 03:03:47PM +0200, Frank Wunderlich wrote: > 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 ed2f2bd9a016..f0ffbe818170 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts > @@ -437,6 +437,54 @@ &i2c5 { > status = "disabled"; > }; > > +&mdio0 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + switch@0 { I think the preferable names are the newer "ethernet-switch@0", "ethernet-ports", "ethernet-port@0". Otherwise Reviewed-by: Vladimir Oltean > + 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 >