From patchwork Tue Oct 26 16:57:06 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: 12585221 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92F90C433EF for ; Tue, 26 Oct 2021 16:59:32 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 597EF60F56 for ; Tue, 26 Oct 2021 16:59:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 597EF60F56 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arinc9.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=SlSl1VrvfTirNUwqszqJReIyTogf4DyTpNOgh09pbUM=; b=aLw5T8AOJoFUOM cKakH4x6JX88YoaZnRVsTbJ3tN7XCg4ml2/SaVH/Prc1XXbjFBBJWTZjspqFv80tYtWG/iYVs5Ml3 f1mUgMH+0kskt9xlXzLs8nSKI28cZNMq5UG3gKTVdLmwLuEVKEbvl8tGl1Ek7TitHzee+z9pz8bOo JXk1VM737Yu/tToW+qS+vKzbRU7Qdn6VC9kJQW6Mzb5upF0lrncS5RmcoNrOlXHfWeCguzy1oXzsm r2zetAP4NClLBb5oTknmL5GnPQdslt/tyfHDdR33CyBxk+zGMhugBW7f4kEvOjS/GexC9zISAslcu u1K6CnKfdCr3CwaCj7IQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfPmG-002Y10-Ii; Tue, 26 Oct 2021 16:58:20 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfPmC-002Y0Q-Oy for linux-arm-kernel@lists.infradead.org; Tue, 26 Oct 2021 16:58:18 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1635267481; cv=none; d=zohomail.com; s=zohoarc; b=lHpt+GaMRmXCRxplYnIB4QqjnsfCft559K1H7iQuwgfBRAzUs/wDB9wkx64I+bIxfoDn/1WPG1eeajXu3IVoWN5Ni8GXwt5Omf6cZ6h03KoCChLv4111AUc/ucSavp/HGjfx2u+gBXoNB4v/7q3G9Ev0gP3k7m3j+yHTns5Yxb0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635267481; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=XG4QsWNyPHY2fduXtILPq08OZPqVb7ztgcflG/Q/poo=; b=OwuIO0wgx5F4+6df/9N1g8XQ3sjsuEEF4RHv+RPGaBXJQnVUn9T3fvWUEXQew/uP2aGBnNcNxGMOTPB2bFZGi4lJI28tVlaLkHlZCbkBjMDiQDfq0uVVksRBfJZXY6ZFY0oBUoE/ymexi1UJYTnlwdDEseB32c+nKwdC0PiksFo= 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=1635267481; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=XG4QsWNyPHY2fduXtILPq08OZPqVb7ztgcflG/Q/poo=; b=fsGhuMKPmbLI6MvODq1SBbjEsYtkOUgr1GIvD40LuA3+GAv+4i36Qhzmo6O9DX+0 hAa/OT5pj8K3i1rT6tvyvD3nTPcaUpZAjsv5qr3XPLDE9f2rZo5WQN4Lnt1cNCwatEL GOwjiukOKx98K7GpAfPBrtKlgVV4YF0un/f33q8I= Received: from localhost.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 16352674801441012.238494578255; Tue, 26 Oct 2021 09:58:00 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Florian Fainelli Cc: =?utf-8?q?Alvin_=C5=A0ipraga?= , =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= , 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 v2 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U Date: Wed, 27 Oct 2021 00:57:06 +0800 Message-Id: <20211026165703.17997-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211026165703.17997-1-arinc.unal@arinc9.com> References: <20211026165703.17997-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211026_095816_882521_60CCF1F1 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. 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 Define the Realtek RTL8365MB switch without interrupt support on the device tree of Asus RT-AC88U. Signed-off-by: Arınç ÜNAL Acked-by: Alvin Šipraga --- arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 77 ++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts index b0cee1d87600..16dea851719f 100644 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts @@ -93,6 +93,83 @@ led { gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; }; }; + + switch { + compatible = "realtek,rtl8365mb"; + /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */ + mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; + mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; + reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; + realtek,disable-leds; + dsa,member = <1 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + port@0 { + reg = <0>; + label = "lan5"; + phy-handle = <ðphy0>; + }; + + port@1 { + reg = <1>; + label = "lan6"; + phy-handle = <ðphy1>; + }; + + port@2 { + reg = <2>; + label = "lan7"; + phy-handle = <ðphy2>; + }; + + port@3 { + reg = <3>; + label = "lan8"; + phy-handle = <ðphy3>; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&sw0_p5>; + phy-mode = "rgmii"; + tx-internal-delay-ps = <2000>; + rx-internal-delay-ps = <2000>; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + + mdio { + compatible = "realtek,smi-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + reg = <0>; + }; + + ethphy1: ethernet-phy@1 { + reg = <1>; + }; + + ethphy2: ethernet-phy@2 { + reg = <2>; + }; + + ethphy3: ethernet-phy@3 { + reg = <3>; + }; + }; + }; }; &srab {