From patchwork Mon Oct 25 21:39:26 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: 12583045 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 EA94BC4332F for ; Mon, 25 Oct 2021 21:41:46 +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 A1AF7610D2 for ; Mon, 25 Oct 2021 21:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A1AF7610D2 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=6Y0KRc2ErwYWkUVtuPY1QwfSwicci1xK51L2bn1yfgU=; b=WwX0SM7jrGm2Yb U3/xqC8qtLg0969x19P+11QwWaK6HDkd5MKWa2fO7TV7B7ti68Hi0q3TSO6Rk113t2ibOiuQB1ssD QuuK7p7KnD4mkRvogzKCVYuYEmiYO8WTXNct/W2prKDFpfj7R+HjO8LjXVii+X5yAEnTnwV/LaIUC rikLCd1IfEynhtLS7nl0ABX40/W89wPyd2BMm7iQzoeIrdVxzsgBTRiqsR3p5FE2sPiQDjXBF5Hmo +LEMyXu42F2n0PJKQR5MwbazlpQ1N83HF03DAOAwgjclzA1RBeBA9ad8s2n/MfTFKnuuRHiTaE2Tk OBpVXgnPNLXlO8goXioQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mf7hj-0008xG-Ou; Mon, 25 Oct 2021 21:40:27 +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 1mf7hY-0008uk-MB for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 21:40:18 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1635198000; cv=none; d=zohomail.com; s=zohoarc; b=PAw8CWZ1nRMudmBgGRIn23UT/ozM8YnoVVSeaHz/ckfxeBKPyH5MEHl1b3JqtARfZPEYMkAAg+09FShIMRD73j8Im7NhyqgpnlkK6uuNutxgDDUfLcC0V7rOP1NS/Vs53FDPQSmspA7gdwfrDDZ8va4aWGz/xjhXlN8adyH/RdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635198000; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=SnkSxvFgrsCV7TvMgmJS/PEAPDNNADsb4ITAS/yR1ro=; b=Bg9tMlOA2R+ydA0u3dSRLi93HeBHx1Mo79RFvIBCF9TMtUSMWV4djdW2WvxL2HtYdV6D+kJeVgwXoVq/D5VlnC2u55pJGMehLukJxSChj90nQrIEafBQLBqnKcKE1tf9DBXQTFhYUp0YAnkCandtMh9+VOcafAWwLtow/q4K8HU= 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=1635198000; 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=SnkSxvFgrsCV7TvMgmJS/PEAPDNNADsb4ITAS/yR1ro=; b=dDvlbkYEAw0b0n1en03UwVE543MNOy34mN8Ual20Gw0udVPQ3I0pfqsCodgh339p PYJ4zAuUB7GsfSr7vtFQXqZredzAYy/MK/ovlFh6HR5Vqo9FQ1Z9g4/lXEls0c6vAAy 3SbjM8q+jwNr5frv0v6Bj0xzxE0QW0WX+GLQYoFA= Received: from localhost.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1635197999128579.5127046827745; Mon, 25 Oct 2021 14:39:59 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Florian Fainelli Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , 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 2/2] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U Date: Tue, 26 Oct 2021 05:39:26 +0800 Message-Id: <20211025213926.21203-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211025213926.21203-1-arinc.unal@arinc9.com> References: <20211025213926.21203-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-20211025_144016_824472_616AFE8C X-CRM114-Status: UNSURE ( 9.43 ) 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 --- 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..6562ee435f88 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: phy@0 { + reg = <0>; + }; + + ethphy1: phy@1 { + reg = <1>; + }; + + ethphy2: phy@2 { + reg = <2>; + }; + + ethphy3: phy@3 { + reg = <3>; + }; + }; + }; }; &srab {