From patchwork Thu Jan 16 01:21:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sky Huang X-Patchwork-Id: 13941112 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 3013DC02180 for ; Thu, 16 Jan 2025 01:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=eSHmQM8NATK6SZ+a/IRk6MOrqMnMNmxZlWOSIrLuWAw=; b=KKw+wDtNYUEz7DSNF7B3cmfJCU qh4CxC0Q+F5TSpJ0MK2b8c+shEdWkgVPASlgEw3pryDGClD+yWXmdMG8ZIp+LWx4t++XZLGMrU1Sr +T/X4yLROV/K7rPBkDw5lHzPvdNmgSGalcXzqnoyHHq+SzbIyesyP30kvpmhHjF2YfkuXIdde1ruq Ke7SJJKJhZAHa8cbFlrwq79QHJm49d0aWOuoaS/B0C8RMeVHe3mi0ad7yamGIHSHqGNiI6pcRpLJ9 inkPJMh+Ywwp+UIjHdIbY8ZJVW3mMQEGO29aZ3x0DtGKkcgIXA+VZ5ilI/7BNvAmNwKvp7HZ37iJW mC1ksHVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tYEaK-0000000DXDG-1MrT; Thu, 16 Jan 2025 01:22:12 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tYEaH-0000000DXBs-3eLa; Thu, 16 Jan 2025 01:22:10 +0000 X-UUID: 4aafc320d3a811ef9048ed6ed365623b-20250115 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=eSHmQM8NATK6SZ+a/IRk6MOrqMnMNmxZlWOSIrLuWAw=; b=TJPeFUJyRE3CSIis570PGm9UUWgBBlSpSYSrpOBnFhsrus2ODSILJ6lxTwN6EZqSSvUqzTIkvsY2d7kpZcEf+LP2adTN3WwxFRD5OguSY7oTZ64uwMs3ecbrr8zdsBK75hkY3+DzwjMaQ8FviR0LT4kWNLnBi4NRlA4PEFYBFfg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.46,REQID:f865b730-5703-4b62-870f-8ce41314a508,IP:0,U RL:0,TC:0,Content:0,EDM:-25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:60aa074,CLOUDID:5f90f337-e11c-4c1a-89f7-e7a032832c40,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:1|19,IP: nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,L ES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 4aafc320d3a811ef9048ed6ed365623b-20250115 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 687432178; Wed, 15 Jan 2025 18:22:03 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 16 Jan 2025 09:22:00 +0800 Received: from mtksitap99.mediatek.inc (10.233.130.16) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1258.28 via Frontend Transport; Thu, 16 Jan 2025 09:22:00 +0800 From: Sky Huang To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , "Simon Horman" , , , , CC: Steven Liu , Sky Huang Subject: [PATCH net-next 0/3] net: phy: mediatek: Add token-ring ops Date: Thu, 16 Jan 2025 09:21:55 +0800 Message-ID: <20250116012159.3816135-1-SkyLake.Huang@mediatek.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250115_172209_913581_F17BF605 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Sky Huang This patchset add token-ring ops and moves some macros from mtk-ge.c into mtk-phy-lib.c. Also, MediaTek's built-in 2.5Gphy driver is added. Signed-off-by: Sky Huang --- Sky Huang (2): net: phy: mediatek: Move some macros to phy-lib for later use net: phy: mediatek: add driver for built-in 2.5G ethernet PHY on MT7988 SkyLake.Huang (1): net: phy: mediatek: Add token ring access helper functions in mtk-phy-lib MAINTAINERS | 1 + drivers/net/phy/mediatek/Kconfig | 11 + drivers/net/phy/mediatek/Makefile | 1 + drivers/net/phy/mediatek/mtk-2p5ge.c | 343 +++++++++++++++++++++++++ drivers/net/phy/mediatek/mtk-ge-soc.c | 297 +++++++++++++-------- drivers/net/phy/mediatek/mtk-ge.c | 78 ++++-- drivers/net/phy/mediatek/mtk-phy-lib.c | 91 +++++++ drivers/net/phy/mediatek/mtk.h | 17 ++ 8 files changed, 714 insertions(+), 125 deletions(-) create mode 100644 drivers/net/phy/mediatek/mtk-2p5ge.c