Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1908381iog; Tue, 14 Jun 2022 16:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcRfzh/2AzpVd+e7BDaMTtZ0sRRPrT82RwP/3iAhvHgjGwzxYxPX8GX6g+8R2y8fEjZ7++ X-Received: by 2002:a05:6a00:1c8c:b0:51c:4b1e:61b3 with SMTP id y12-20020a056a001c8c00b0051c4b1e61b3mr7039065pfw.65.1655249669994; Tue, 14 Jun 2022 16:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655249669; cv=none; d=google.com; s=arc-20160816; b=ix7N9dHNKUSf9PaMrv0GfDd/s3yLKPWcY8FmfKTvccUT6pBo8qJHPPiSSVPd/7os6f 3+iky/GaJoJ0/7sY/Qdd1YDAAIazoWNtzp56q6HD90cQHtAUxuv1YoZQH3bJkmxXQjl8 2qVKOIXk0ii6Dx/dEVflqTn8rpwJ3Tpi1Ue+SvC70avxJCqugHhz5CJ4ck+cr70rYxAb vz55E1z7YC65fCMYituDkhp2ZsM9xeQAPV/W2xIQerCYGrwyIaJieuq+91WrL1g4DYvW yzw0pQV1RZ2k8M8sW7g7yVxHtD22Hgl84ss41IiiVfHk8hFBdXDU+lc485auHQREShI/ d8xg== 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; bh=nfvtIdPgiXULHnvZfVP5vqYcUUa4+OVCxD93E+5pMPc=; b=iqAYJy0HG9EUF4SZE3BqLMv5x7mv32SMn4V3DVIL2Tj0vBXWI/0fXpmBNDMHScMJga Gr0DBih2JSVEcokOPpD2fBBjKBOAVtp97oF7w4ht+qTnrNHo70SbmBmDte+uvqm/V/NU AdR/KopmtdK+XpVIKXi+vHJ0kHovCOWZ9qHUEtHTuLUDg+9RUTjsPIWP1N2JVr3yOwM1 Y7uK3ODQI34TZHGMA5lYp0BX+aZ8TRDtu7wQn0TZJWE70ExQyl4SVeV5vGByQxjE9qMi rdbw+4pWIGHqZLG6gYPE6Cqn1ZzA0kToOEtjFJZWNhfmamKMViVCiQY5GRkPvmi3gWLb KCHg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00088f00b0050ab6783001si16962168pfj.152.2022.06.14.16.34.17; Tue, 14 Jun 2022 16:34: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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345634AbiFNWej (ORCPT + 99 others); Tue, 14 Jun 2022 18:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236535AbiFNWei (ORCPT ); Tue, 14 Jun 2022 18:34:38 -0400 Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38ED44D277; Tue, 14 Jun 2022 15:34:37 -0700 (PDT) Received: by mail-io1-f44.google.com with SMTP id b138so4100507iof.13; Tue, 14 Jun 2022 15:34:37 -0700 (PDT) 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=nfvtIdPgiXULHnvZfVP5vqYcUUa4+OVCxD93E+5pMPc=; b=xCQkU0PiBqeHIsmHf2eT6Co6Lym+Uso9g5MbI9LxyXueL3Pcs5eCJVSUKJmDNhRL9m T6d3tyslSlghnbmtETjT8yBKw+/6kum73fQXykuzTlo0PWoerlVDtfhnG+M42N4GIbA9 ZHFE6tzI6xjq6yomIvSzJtsde72pT5r7llW/H9YcwtX0w0ANHFK59ZffuXVPtUm2luR8 5zoA1aCkNtSLhwclqci/MS77RLnmFbX/bASo6rLatDJLLThdDeSkDZo1AnoMId9IYn3w x9hDn8GtmXSCuudUtGQb8A3OuqSIyuC2J5nhLR17qd8PxRCfuE76TxgVIvhzHJXMvlkH FGww== X-Gm-Message-State: AOAM531US2dkqtnUGoWX4jCdY88orGBi2ly1wGy1xjaT61SANUmzqvJN m7oYYkRAAFvUOqR0EIK/sfA0gh57Vg== X-Received: by 2002:a6b:6a07:0:b0:66a:2e5f:2058 with SMTP id x7-20020a6b6a07000000b0066a2e5f2058mr1167288iog.72.1655246076467; Tue, 14 Jun 2022 15:34:36 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id n11-20020a02710b000000b003315c00e885sm5402674jac.0.2022.06.14.15.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 15:34:36 -0700 (PDT) Received: (nullmailer pid 2853736 invoked by uid 1000); Tue, 14 Jun 2022 22:34:33 -0000 Date: Tue, 14 Jun 2022 16:34:33 -0600 From: Rob Herring To: Frank Wunderlich Cc: Greg Ungerer , DENG Qingfang , netdev@vger.kernel.org, =?iso-8859-1?Q?Ren=E9?= van Dorst , linux-arm-kernel@lists.infradead.org, Matthias Brugger , Vladimir Oltean , Florian Fainelli , Jakub Kicinski , linux-kernel@vger.kernel.org, Vivien Didelot , linux-rockchip@lists.infradead.org, Krzysztof Kozlowski , linux-mediatek@lists.infradead.org, Sean Wang , Peter Geis , Mauro Carvalho Chehab , Rob Herring , Andrew Lunn , Landen Chao , Heiko Stuebner , Paolo Abeni , Frank Wunderlich , Eric Dumazet , devicetree@vger.kernel.org, "David S. Miller" Subject: Re: [PATCH v4 5/6] dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 Message-ID: <20220614223433.GA2853676-robh@kernel.org> References: <20220610170541.8643-1-linux@fw-web.de> <20220610170541.8643-6-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610170541.8643-6-linux@fw-web.de> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,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 On Fri, 10 Jun 2022 19:05:40 +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > A board may have no independent reset-line, so reset cannot be used > inside switch driver. > > E.g. on Bananapi-R2 Pro switch and gmac are connected to same reset-line. > > Resets should be acquired only to 1 device/driver. This prevents reset to > be bound to switch-driver if reset is already used for gmac. If reset is > only used by switch driver it resets the switch *and* the gmac after the > mdio bus comes up resulting in mdio bus goes down. It takes some time > until all is up again, switch driver tries to read from mdio, will fail > and defer the probe. On next try the reset does the same again. > > Make reset optional for such boards. > > Allow port 5 as cpu-port and phy-mode rgmii for mt7531. > > - MT7530 supports RGMII on port 5 and RGMII/TRGMII on port 6. > - MT7531 supports on port 5 RGMII and SGMII (dual-sgmii) and > SGMII on port 6. > > Signed-off-by: Frank Wunderlich > --- > v4: > - add port 5 as CPU-Port > - change description > --- > .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > Reviewed-by: Rob Herring