From patchwork Thu Dec 16 16:03:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12696502 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76AA5C4332F for ; Thu, 16 Dec 2021 16:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+Ro3AGYZwF8nHF3NegnDRndeH0BPWEUs84XpZGROA/s=; b=BOlfg6szkoizrp cODvNcG+zlg9DvrIj2FNUy3ZSL0qV8arWqAyPmwXuvKT4MQzzOikN48nGG0THIV1plrOMJVI4heR7 zrnZDQaMA6Q9gh71uLYLzCo2ONupcYhFeDOLmVH/X2UvR8B1NrwzoJH6dDAPcOq9IjT0phWulCZAe /HNcgMgF19Cpvz/hrv49mqUMrut6/S5z+TTliBep61C33gD9/WbK/ngWcT3auRQyQQAS6yhan+THC tbLWb8JmVbkYnoA7ldigEP5t4y2cT+FIy0DDUZU6UFlLby0OEy3lJg/5f4vj2FAnXA6gtOttS4GBF UOIDJoaDhLE7cvreM/jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxtFG-006T9z-BS; Thu, 16 Dec 2021 16:04:38 +0000 Received: from sender3-op-o11.zoho.com ([136.143.184.11]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxtFC-006T9K-O1 for linux-arm-kernel@lists.infradead.org; Thu, 16 Dec 2021 16:04:36 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1639670656; cv=none; d=zohomail.com; s=zohoarc; b=AYLEoDzKB5Her5Lf/dAxn73Nmc/sR7amB1lLQvDRq1lOoWhkkdUJtJHjbqAC18kK7YIEHxaWr+6LjcgvjqTk2EXbSxsC3SAYdTsYSG/26S4y4GT58U8lO1kbHD5YquKH5AkaGC9ThW6W2dw7pUTm3/JXdOIp9o594kenYRE6GQM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639670656; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=0znMVt2nT4vGVbuBGHFlNVR1cvwHOwympZTT84tk5PA=; b=dwTdCF2k1WlsvUuV65QClA5XDFDCqv2rHDKUonVzW7rxPclXJtj71+P6DbzghClY8NskhTkuXK4ukiXjcCa459K4uYyP9jgUfpfeigNZAzbuTPrzr7XS3MedVgLkODXu+0phAtXjePBgHK2Sci4njTgOPMbmhf7f4R3XMUK3Fp0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1639670656; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=0znMVt2nT4vGVbuBGHFlNVR1cvwHOwympZTT84tk5PA=; b=iW1olyh405n5gWXa88eYASv1itKDou5u0lSvhl3mBqXx/xP32o919n9By6LbykSX LZ4e35dRl9hv28s+SHW2GpqO/Yq71TIuoA4G864ktmPq0wRqMi7sr9Vkp0CWxVPT4PS eNCBYGUselz0bE6tpvsDsKMslZlq8R5HG5qVyLro= Received: from localhost.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1639670654768605.1685326086817; Thu, 16 Dec 2021 08:04:14 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Florian Fainelli Cc: =?utf-8?q?Alvin_=C5=A0ipraga?= , Luiz Angelo Daros de Luca , =?utf-8?b?UmFmYcWCIE1pxYJl?= =?utf-8?b?Y2tp?= , Hauke Mehrtens , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH] ARM: dts: BCM5301X: correct rx-internal-delay-ps & enable flow control on extsw on Asus RT-AC88U Date: Fri, 17 Dec 2021 00:03:19 +0800 Message-Id: <20211216160319.2373-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211216_080434_881834_421DF376 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The current rx-internal-delay-ps value on the Realtek switch node, 2000, will be divided by 300, resulting in 6.66, which will be rounded to the closest step value, 7. Change it to 2100 anyway to be accurate. Commit ef136837aaf6 ("net: dsa: rtl8365mb: set RGMII RX delay in steps of 0.3 ns") Flow control needs to be enabled on both sides. It's already enabled on the CPU port of the Realtek switch. Enable it on the extsw port of the Broadcom switch as well. Signed-off-by: Arınç ÜNAL --- arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts index 16dea851719f..df8199fd4eb4 100644 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts @@ -138,7 +138,7 @@ port@6 { ethernet = <&sw0_p5>; phy-mode = "rgmii"; tx-internal-delay-ps = <2000>; - rx-internal-delay-ps = <2000>; + rx-internal-delay-ps = <2100>; fixed-link { speed = <1000>; @@ -213,6 +213,7 @@ sw0_p5: port@5 { fixed-link { speed = <1000>; full-duplex; + pause; }; };