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 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 0D8B6CA0FF7 for ; Wed, 27 Aug 2025 08:36:05 +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-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=T32jDbpq4vmq5nwdoCLYMKKL7F/aVzKMeky5zyaSiTQ=; b=syL/KRS10tcqkqu1GMr41hLdef rJVoeTLU012ZmNPzyIB10CtiLckLMPkqbgchwIG450DRKpcprojpOGghwQVfbiEdFzTM3Gq9bLN3D tYohVlRc/jWjeu9qazth3f6O5q8JcET4qZmdiWBDny7VX9mF7vNL46IQITTDMGZeTj5jiqly+KvXY 8ql//VqfiukoWvfhhaonQDsQpOZu1Y1dSpe29AWeuhjLhFB7QbUCQdFZ3I6hb2qI5Wl6r6MN9C7Yz cSk9q15CBhx0VT4vW1QJTlsqJ243DOLZDcDXmTOK1wv5WabOxG5iZUw2Lq0hRA1uTyakynwF8w8i0 HdycEqTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1urBdM-0000000Egnu-2GzM; Wed, 27 Aug 2025 08:35:56 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1urBC3-0000000EatV-1xU6 for linux-arm-kernel@bombadil.infradead.org; Wed, 27 Aug 2025 08:07:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=T32jDbpq4vmq5nwdoCLYMKKL7F/aVzKMeky5zyaSiTQ=; b=DJzM1JnXLMUM+zLHzqyFpXkOYM 9zB0SUmZkQUbtDR+rUqECaKhZUn8/5zFJEMYJpHwTXpq58egkMbaRu5PhjT6zug5DSGUPKhe3eeUH Ug4SkNnS3eFsGEZeAQEEJiuozZ+Gd5wWnW5Dpi1roIdlF//hDkiIJEHqueuo5u3BJnMGxMdzJ9ceX ANNX6m77Zrzqxq7lsoqXlxuZnvqn+5KxUlFCVe4tkBWuYTXHgLitbitHlY7o7Gx+VPsJOrFMoaClE +rEo++FBj1ldurykm6ROpJ5ul1++Pk1guBMCxne7AduRhRRIJjnItmk8yZzagpD5XQhEtDL3w3dV2 nHQM63Sg==; Received: from sgoci-sdnproxy-4.icoremail.net ([129.150.39.64]) by desiato.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1urBBy-00000002NyX-0qTn for linux-arm-kernel@lists.infradead.org; Wed, 27 Aug 2025 08:07:42 +0000 Received: from E0005182LT.eswin.cn (unknown [10.12.96.155]) by app1 (Coremail) with SMTP id TAJkCgBHXg+wvK5o_zPEAA--.17071S2; Wed, 27 Aug 2025 16:07:14 +0800 (CST) From: weishangjuan@eswincomputing.com To: devicetree@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, yong.liang.choong@linux.intel.com, vladimir.oltean@nxp.com, rmk+kernel@armlinux.org.uk, faizal.abdul.rahim@linux.intel.com, prabhakar.mahadev-lad.rj@bp.renesas.com, inochiama@gmail.com, jan.petrous@oss.nxp.com, jszhang@kernel.org, p.zabel@pengutronix.de, boon.khai.ng@altera.com, 0x1207@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com, lizhi2@eswincomputing.com, Shangjuan Wei Subject: [PATCH v4 0/2] Add driver support for Eswin eic7700 SoC ethernet controller Date: Wed, 27 Aug 2025 16:07:03 +0800 Message-Id: <20250827080703.2180-1-weishangjuan@eswincomputing.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: TAJkCgBHXg+wvK5o_zPEAA--.17071S2 X-Coremail-Antispam: 1UD129KBjvJXoWxAw17GF47JF4DAryDGF15Jwb_yoW5KFy3pF W8Cry5Wwn8AryxX3ySyw10kFyfJan7Xr1akr1Iqw1fXan0va90qr4aka4YgFy7Cr4UZryY gay3ZF47Ca4ay3DanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUmSb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAa Y2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4 A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F 5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMx kF7I0En4kS14v26rWY6Fy7MxkIecxEwVCm-wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE 7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWU CwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBI daVFxhVjvjDU0xZFpf9x07j5EfrUUUUU= X-CM-SenderInfo: pzhl2xxdqjy31dq6v25zlqu0xpsx3x1qjou0bp/ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250827_090738_845932_96F31980 X-CRM114-Status: GOOD ( 13.33 ) 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 From: Shangjuan Wei This patch depends on the vendor prefix patch: https://lore.kernel.org/all/20250616112316.3833343-4-pinkesh.vaghela@einfochips.com/ Updates: Changes in v4: - Updated eswin,eic7700-eth.yaml - Modify reg:minItems:1 to reg:maxItems: 1 - Delete minItems and maxItems of clock and clock-names - Delete phy-mode and phy-handle properties - Add description for clock - Add types of clock-names - Delete descriptions for rx-internal-delay-ps and tx-internal-delay-ps - Add enum value for rx-internal-delay-ps and tx-internal-delay-ps - Modify description for eswin,hsp-sp-csr property - Delete eswin,syscrg-csr and eswin,dly-hsp-reg properties - Modify phy-mode="rgmii" to phy-mode="rgmii-id" - Updated dwmac-eic7700.c - Remove fix_mac_speed and configure different delays for different rates - Merge the offset of the dly register into the eswin, hsp sp csr attributes for unified management - Add missing Author and optimize the number of characters per line to within 80 - Support default delay configuration and add the handling of vendor delay configuration - Add clks_config for pm_runtime - Modify the attribute format, such as eswin,hsp_sp_csr to eswin,hsp-sp-csr - Link to v3: https://lore.kernel.org/all/20250703091808.1092-1-weishangjuan@eswincomputing.com/ Changes in v3: - Updated eswin,eic7700-eth.yaml - Modify snps,dwmac to snps,dwmac-5.20 - Remove the description of reg - Modify the value of clock minItems and maxItems - Modify the value of clock-names minItems and maxItems - Add descriptions of snps,write-questions, snps,read-questions - Add rx-internal-delay-ps and tx-internal-delay-ps properties - Modify descriptions for custom properties, such as eswin,hsp-sp-csr - Delete snps,axi-config property - Add snps,fixed-burst snps,aal snps,tso properties - Delete snps,lpi_en property - Modify format of custom properties - Updated dwmac-eic7700.c - Simplify drivers and remove unnecessary API and DTS attribute configurations - Increase the mapping from tx/rx_delay_ps to private dly - Link to v2: https://lore.kernel.org/all/aDad+8YHEFdOIs38@mev-dev.igk.intel.com/ Changes in v2: - Updated eswin,eic7700-eth.yaml - Add snps,dwmac in binding file - Modify the description of reg - Modify the number of clock-names - Changed the names of reset-names and phy-mode - Add description for custom properties, such as eswin,hsp_sp_csr - Delete snps,blen snps,rd_osr_lmt snps,wr_osr_lmt properties - Updated dwmac-eic7700.c - Remove the code related to PHY LED configuration from the MAC driver - Adjust the code format and driver interfaces, such as replacing kzalloc with devm_kzalloc, etc. - Use phylib instead of the GPIO API in the driver to implement the PHY reset function - Link to v1: https://lore.kernel.org/all/20250516010849.784-1-weishangjuan@eswincomputing.com/ Shangjuan Wei (2): dt-bindings: ethernet: eswin: Document for EIC7700 SoC ethernet: eswin: Add eic7700 ethernet driver .../bindings/net/eswin,eic7700-eth.yaml | 130 +++++++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../ethernet/stmicro/stmmac/dwmac-eic7700.c | 270 ++++++++++++++++++ 4 files changed, 412 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/eswin,eic7700-eth.yaml create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c -- 2.17.1