Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1614946iol; Fri, 10 Jun 2022 10:59:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8luu3Y1Jl0ys1CUnfYqgjdNbo/9gDhoXv1P+g/vQnYjhgx3n3czkYeZ9BJu7gfgK4DUW9 X-Received: by 2002:a63:2a47:0:b0:3fe:2437:5d25 with SMTP id q68-20020a632a47000000b003fe24375d25mr15749005pgq.539.1654883968145; Fri, 10 Jun 2022 10:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654883968; cv=none; d=google.com; s=arc-20160816; b=BNMItPgkBo03mOamFpXsneB75o2IsWEMAE/HN5QJnKxwOodnQRoTZB305UMtbAPRLE ZZ+hC6Mh/Ah/gCeHC25JKZd4uyOKsgVT1XI8Qs4/utUHGuFdzFcoJDNSEoMHnPecA3EJ eOMLbhCeFj2vBlJwkHGjUC+THkGX4pcoBaxt8Atsck+OoWakSxclhM7p8QKlkSqp5ipV dneJXMVEk233vGhPzsdc4g4XYUH1ARknyloVwnqncEYTy9bovDXj8FhOa1u690pLq/bQ pAPmwtq3USAnY18RXoepSaT/0N41hwA61XBepEdtKvlDzPRaT/X6gMlC6MbuRHWFg8zZ 0IOA== 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=muhHy3u6o7qlrEhJK4TIIhDI8FS0kFjcupuOglkyEww=; b=OPzGd7HFmbwy36MYr7o9jNDJa00NHGsgUpRQpGBuK2oKl6+3hm8u2kHp6PwrUDgqVT cGELPi1jdwLK1XYpPlPM8+OZwSSm+U0BE4Sd/nK1MaWq7XcGKH9S0aYGXzS5fSTtvvWZ 1dEKIWq0NvkTYgMmctLVtuI54E62dtWM6RwDdjYZhURDD0+bu9RFfHLbYw3gZ9t3pF5+ 7struxqj6U+WPENoIKE5V13Po1QUX5iONo0lSXqCZFJ/u5DJGF3MwBs4Hnkm2WP3MjF6 oeyUJEfOwfEnFByyR2OEMkdPjm48/Gyk+ZSfkST2mqDuMqCsbGfnB2CwuFlncp7g/T53 UF6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=Ea8GWlil; 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 v12-20020a170902b7cc00b001615a62cf93si34238854plz.544.2022.06.10.10.59.13; Fri, 10 Jun 2022 10:59:28 -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=Ea8GWlil; 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 S1350081AbiFJRG5 (ORCPT + 99 others); Fri, 10 Jun 2022 13:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349135AbiFJRGS (ORCPT ); Fri, 10 Jun 2022 13:06:18 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998C627FE2; Fri, 10 Jun 2022 10:06:14 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 015A060407; Fri, 10 Jun 2022 17:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654880773; 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=muhHy3u6o7qlrEhJK4TIIhDI8FS0kFjcupuOglkyEww=; b=Ea8GWlilsZRa7b9SZmJA/cus7/asdVVglnpJSOV5gEioGqrq7ZHA/W15M3iYNfAjiKHvaX Qsot5FRIG+5R8x2m/yr1E/9CBG22RHvZyFf1KqCRMDsimU4aHz4B7M8l/KaVCWBuwyJ22B 3MWLvHbscK4z429CMe8yfYt27RMcPJU= Received: from frank-G5.. (fttx-pool-217.61.154.155.bambit.de [217.61.154.155]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id BA712100863; Fri, 10 Jun 2022 17:06:11 +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 5/6] dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 Date: Fri, 10 Jun 2022 19:05:40 +0200 Message-Id: <20220610170541.8643-6-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: 608a6b67-0651-4348-8dfb-93f736e41a27 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 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(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 112cfaa7e3f6..a3bf432960d8 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -55,6 +55,7 @@ description: | On mt7531: - "1000base-x" - "2500base-x" + - "rgmii" - "sgmii" @@ -124,8 +125,8 @@ patternProperties: properties: reg: description: - Port address described must be 6 for CPU port and from 0 to - 5 for user ports. + Port address described must be 5 or 6 for CPU port and from 0 + to 5 for user ports. allOf: - $ref: dsa-port.yaml# @@ -152,9 +153,6 @@ allOf: required: - resets - reset-names - else: - required: - - reset-gpios - dependencies: interrupt-controller: [ interrupts ] -- 2.34.1