From patchwork Thu Jun 20 12:21:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ren=C3=A9_van_Dorst?= X-Patchwork-Id: 11006575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FC8913AF for ; Thu, 20 Jun 2019 12:23:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 210BD286BD for ; Thu, 20 Jun 2019 12:23:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1492C286DB; Thu, 20 Jun 2019 12:23:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D12E286BD for ; Thu, 20 Jun 2019 12:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=g+J/XJvI9xuql1cC8XPKDNLzBN9clyeWtpcpjUo6xl8=; b=NhL5wtgzGGcbM9 hVUaLJR6F3CH5/cn77rwTKc3tz0DfxadT5SeArNOcMF3yQIpdSbkAMwqoS1XJXmHFr6sByLk6GUmq 3R4hl5YYr5SGCEIAlmrn0mk+BMSc8m71E82c+zK6s3xtu+wUBLg0f3kjUD4WIkKs+RpUJaV/zBd/k +9IpOqXheAj4UWrlXLi9O6TkyWtd1sAo4S9cj/kS3G4bUbLCtTlAU0llhK4ym086jsGvio5O9ZaKC u5SK04fBPK0FaK47iyBrgqZpS0SspHbNmeo81y34MYBPXpMlmPSmV9zSMwclxuaS0Zj6lkVuB1H32 Vj8xDq73spoHp8aj5trQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdw65-0007KO-2n; Thu, 20 Jun 2019 12:23:21 +0000 Received: from mx.0dd.nl ([2a04:52c0:101:921::25]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdw61-0007Iu-Jz for linux-mediatek@lists.infradead.org; Thu, 20 Jun 2019 12:23:19 +0000 Received: from mail.vdorst.com (mail.vdorst.com [IPv6:fd01::250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.0dd.nl (Postfix) with ESMTPS id E0EFD5FE8A; Thu, 20 Jun 2019 14:23:11 +0200 (CEST) Authentication-Results: mx.0dd.nl; dkim=pass (2048-bit key; secure) header.d=vdorst.com header.i=@vdorst.com header.b="l0AJ7yGD"; dkim-atps=neutral Received: from pc-rene.vdorst.com (pc-rene.vdorst.com [192.168.2.125]) by mail.vdorst.com (Postfix) with ESMTPA id A20C01CB7225; Thu, 20 Jun 2019 14:23:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.vdorst.com A20C01CB7225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdorst.com; s=default; t=1561033391; bh=ZO1c9BII2Z2wQ9yE2KhkKyW57oPWJZCCZrdn53OOIAM=; h=From:To:Cc:Subject:Date:From; b=l0AJ7yGD4A5q1Y7bVJQ9xkaehZrsQ5e88Q7W0m9CTwZ7a/P+Vxcr2NsF58jmDOHqb 7M1c19OGvLWyVriuYFfGLz7bbxo6B5DRZ5HAWg3WNOIqHL29mlcYtQ14+WB7BMRdJS VZXpV+s6yHTwaYaoXmaWi0GpA0cS37l7DdfKFWW7YRlQNyZ1ES7qPehZOEIrHkjTDf X5x1LgSKvU+lRnfOVVw8RntEwDYdLDcwkVPiGc2LKLV2Xg+WZN8yA3pMQLFeQzLcQN /ydesZyqIFLhSxWqyIqRGoXsRz145P3/k5pdzrczI+I+DPgmfG0ID3hRjmXS3A915+ n54gb2MogiOfA== From: =?utf-8?q?Ren=C3=A9_van_Dorst?= To: frank-w@public-files.de, sean.wang@mediatek.com, f.fainelli@gmail.com, davem@davemloft.net, matthias.bgg@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [PATCH v2 net-next 0/2] net: mediatek: Add MT7621 TRGMII mode support Date: Thu, 20 Jun 2019 14:21:53 +0200 Message-Id: <20190620122155.32078-1-opensource@vdorst.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190620_052317_795992_259255BD X-CRM114-Status: UNSURE ( 5.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Ren=C3=A9_van_Dorst?= , netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, john@phrozen.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Like many other mediatek SOCs, the MT7621 SOC and the internal MT7530 switch both supports TRGMII mode. MT7621 TRGMII speed is fix 1200MBit. v1->v2: - Fix breakage on non MT7621 SOC - Support 25MHz and 40MHz XTAL as MT7530 clocksource René van Dorst (2): net: ethernet: mediatek: Add MT7621 TRGMII mode support net: dsa: mt7530: Add MT7621 TRGMII mode support drivers/net/dsa/mt7530.c | 46 ++++++++++++++++----- drivers/net/dsa/mt7530.h | 4 ++ drivers/net/ethernet/mediatek/mtk_eth_soc.c | 38 +++++++++++++++-- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 11 +++++ 4 files changed, 85 insertions(+), 14 deletions(-) Tested-by: "Frank Wunderlich" Acked-by: Sean Wang