From patchwork Sun Jan 2 20:33:04 2022 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: 12702358 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 8F873C433EF for ; Sun, 2 Jan 2022 20:35:13 +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=9kxjYCDVQ3tNHnM/MUkJuEGI0hmi7HzG8NoGN+V/IbI=; b=K4XY/FWujsOLx7 dVwXiXUAxd/fi1er4sRFCuPEujPJYXpEZC7YunS0iT9+WqFmYmjwuDi629lBnSKM92uHCdZ+Wzkuq bRk9ioyIDHU7ZkOaEcOHagVQN+6HjF2I1FOo4lnJCrU2nhLU2Flz3Uvh5H4/uv6WiE6ZgrHMKRk7A YQ4+IJw9t+CWsvgjU+WIEBknpH3ky2P1W3D34TjE56u19q0r0kH4wuVfIBI/HOOPlpbKZeeX+pmxb DyPnAdew/rEebllVeANIteqt/plc8UEohJHMeOsig8VoFdtUyRL619nffdt32hEV8VGVw5rL4hlcd DDNx/u5VLAcpzODegJAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n47Y0-00898Q-MO; Sun, 02 Jan 2022 20:33:44 +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 1n47Xv-008983-Qc for linux-arm-kernel@lists.infradead.org; Sun, 02 Jan 2022 20:33:41 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1641155600; cv=none; d=zohomail.com; s=zohoarc; b=IxkjdYlIC0dw/+pwRDRFczZ1l/gc/wFBlF05DUz62wPd8P5Xok7oXGiG29VZa46lVCTLgOV4aypxsnf/+mvswWc4SHNUx3W2lCMYqWwFK1+IYBUJgN8RCsEB4cRyzaw/OH4NrDK+V5ffA2RtMQLaCmEiO3jYNlfceoWF41tPKzk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641155600; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=Mqmy6f9+xPrX4RsXvOmtDCtcPZ8DJNGzrGR1vYe7fbE=; b=KLp6WC2tdBZgI6JeiWuahkGn3BKzvmqTScTbdz1bb/doBWfDt9SV87wmLLgPDEAbdQsoxttiSl5NTUXfwYqeUC1RgR4HpUW4+wbnOHFQ1WwSfTQTqsNRBYnBfiSrB8zry+xS7grDW7XnPQ3Ze1cnelEnaO8sdEHpp11Ahh/cDNo= 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=1641155600; 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=Mqmy6f9+xPrX4RsXvOmtDCtcPZ8DJNGzrGR1vYe7fbE=; b=QxTzo4n/HdrfxhmuEpVj40VV1p16AjKZkMK8DUo42jhSrYI4d09RGwiu+ATrpMm6 qsKegtuaPNuewxLrcLuvezlCGherGK9BZEvCc5lDbG2Ty1B5nMPi9VuBAsSSdrmKdLF MokUhL/kWoG2BFdmeKAaYriADXxe2gc7KorQTqWg= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1641155600169376.902229409484; Sun, 2 Jan 2022 12:33:20 -0800 (PST) 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==?= , =?utf-8?q?Alvin_?= =?utf-8?q?=C5=A0ipraga?= Subject: [PATCH] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U Date: Sun, 2 Jan 2022 23:33:04 +0300 Message-Id: <20220102203304.10420-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-20220102_123339_962444_49C1A384 X-CRM114-Status: UNSURE ( 8.63 ) 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 | 76 ++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts index 249476fdad7a..82f9629f0abb 100644 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts @@ -93,6 +93,82 @@ 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>; + + 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 = <2100>; + + 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 {