From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A0EBCA0FF2 for ; Wed, 3 Sep 2025 08:38:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A54C831BE; Wed, 3 Sep 2025 10:38:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.b="WItUCwjh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 747DC831BE; Wed, 3 Sep 2025 10:38:23 +0200 (CEST) Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BD0D28313F for ; Wed, 3 Sep 2025 10:38:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=weijie.gao@mediatek.com X-UUID: 53f7bb3288a111f0b33aeb1e7f16c2b6-20250903 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=/T+nY810aQ/L2lrg9VfFBhxiknSh1Zz6nXRbp+kSkcY=; b=WItUCwjhuG34LTZjp9Vaziqvt2dSqBTyf/5Q7NnhC+tiEbFdE/SqUf/+Pr4K6reyFef4FgKpHV8dZTOn2Y/Z6XKjN5DHXgOWgz5R4ZB5BOR8Jr6ESXqWqQsRYVDRu2fBgnvkdzlqfKWdeUPcVHjbnuy+95fNxEYKfGiTMr6/5zw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.3, REQID:efd8b64f-68c6-4754-a89b-cd44fb6a9d15, IP:0, UR L:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-25 X-CID-META: VersionHash:f1326cf, CLOUDID:5dfe266c-8443-424b-b119-dc42e68239b0, B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:-5,Content:0|15|50,EDM:-3,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: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 53f7bb3288a111f0b33aeb1e7f16c2b6-20250903 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 580198777; Wed, 03 Sep 2025 16:38:12 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.39; Wed, 3 Sep 2025 16:38:12 +0800 Received: from mcddlt001.gcn.mediatek.inc (10.19.240.15) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1258.39 via Frontend Transport; Wed, 3 Sep 2025 16:38:11 +0800 From: Weijie Gao To: CC: GSS_MTK_Uboot_upstream , Tom Rini , Joe Hershberger , Ramon Fried , Weijie Gao Subject: [PATCH v3 0/5] Add support for MediaTek MT7987/MT7988 built-in 2.5Gb ethernet PHY (v3) Date: Wed, 3 Sep 2025 16:38:07 +0800 Message-ID: X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This patch adds PHY driver for MediaTek MT7987/MT7988 built-in 2.5Gb ethernet PHY. Changes in v3: 1. Removed all optional code configured by dt properties 2. Make use of request_firmware_into_buf_via_script() for firmware loading Changes in v2: 1. rename "pd-disable" property to "half-en" 2. rename "gbe-min-ipg-11-bytes" property to "gbe-min-ipg-11-bytes-en" 3. rename "auto-downshift-disable" property to "auto-downshift-dis" 4. add default settings for "auto-downshift-dis" 5. add default settings for "half-en" 6. add "retrain-dis" property Weijie Gao (5): misc: fs_loader: allow returning actual firmware data size in request_firmware_into_buf_via_script() misc: fs_loader: allow using long script name in request_firmware_into_buf_via_script() net: mediatek: associate PHY device with dts node specified by phy-handle net: phy: Add MediaTek built-in 2.5Gb ethernet PHY driver MAINTAINERS: update ethernet-related file list for MediaTek ARM platform MAINTAINERS | 4 +- drivers/misc/fs_loader.c | 15 +- drivers/net/mtk_eth/mtk_eth.c | 4 + drivers/net/phy/Kconfig | 2 + drivers/net/phy/Makefile | 1 + drivers/net/phy/mediatek/Kconfig | 16 + drivers/net/phy/mediatek/Makefile | 4 + drivers/net/phy/mediatek/mtk-2p5ge.c | 627 +++++++++++++++++++++++++ drivers/net/phy/mediatek/mtk-phy-lib.c | 106 +++++ drivers/net/phy/mediatek/mtk.h | 103 ++++ include/fs_loader.h | 4 +- 11 files changed, 876 insertions(+), 10 deletions(-) create mode 100644 drivers/net/phy/mediatek/Kconfig create mode 100644 drivers/net/phy/mediatek/Makefile create mode 100644 drivers/net/phy/mediatek/mtk-2p5ge.c create mode 100644 drivers/net/phy/mediatek/mtk-phy-lib.c create mode 100644 drivers/net/phy/mediatek/mtk.h -- 2.34.1