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 ADC77CAC582 for ; Fri, 12 Sep 2025 05:54:37 +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: Content-Type: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=ihC8q0agrsEZYUC0pc3ffbB0ocdKsH+jDPlyNQdcPVQ=; b=ytzvWU3KjSUsGTfi8L5Kfa2DXX PENdVzrN6FFoAl0Yh0x+fMiyl+KNmGV+VW/NWKSUYJf8rptiZifn5B5lUudsysj+hj0aAV8/zNEU1 R6ilJlZkmA7RAbzsPJ7e4hwKlq2Tqt67r77AVN5/4dklAhWPbceTYBPkH0rgEmEElrDkG4NyIeB++ HmW6VFbV+vYoAJwAxreQjcCmuRn646CfWURxeDlUCrWYeZYXO6tkQb8yrDFXGkwDKkFnaLBw7toaP Fqs909FB7y3M5e8NtyJktq5Vu9+eJ4gLrC7OFO6p0PiUg3g57W4r+WGHjC44M56Y7/UD7RnKfzfcy 02CxCQYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwwjs-00000007G7A-0gOl; Fri, 12 Sep 2025 05:54:28 +0000 Received: from l-sdnproxy.icoremail.net ([20.188.111.126] helo=azure-sdnproxy.icoremail.net) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwwjo-00000007G5G-25RL for linux-arm-kernel@lists.infradead.org; Fri, 12 Sep 2025 05:54:26 +0000 Received: from E0005182LT.eswin.cn (unknown [10.12.96.155]) by app2 (Coremail) with SMTP id TQJkCgAHmZJztcNo553OAA--.31689S2; Fri, 12 Sep 2025 13:53:57 +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, emil.renner.berthing@canonical.com Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com, lizhi2@eswincomputing.com, pinkesh.vaghela@einfochips.com, Shangjuan Wei Subject: [PATCH v6 0/2] Add driver support for Eswin eic7700 SoC ethernet controller Date: Fri, 12 Sep 2025 13:53:52 +0800 Message-Id: <20250912055352.2832-1-weishangjuan@eswincomputing.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: TQJkCgAHmZJztcNo553OAA--.31689S2 X-Coremail-Antispam: 1UD129KBjvJXoWxZFyUXFy7uw1UZr43ZF4fKrg_yoWrurWUpF W0kry5Wwn8tryxX3yftw10kFyfJan3Xr1akr1Iqw1fXa1qvas0vr4ak3W5GFy7Ar4DZ34Y 9ay3ZFW7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114-CacheID: sfid-20250911_225424_719561_5E262158 X-CRM114-Status: GOOD ( 15.46 ) 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 series depends on the config option patch [1]. [1] https://lore.kernel.org/all/20250825132427.1618089-3-pinkesh.vaghela@einfochips.com/ Updates: Changes in v6: - Update driver patch's commit message - Update eswin,eic7700-eth.yaml - Modify the description content - Update dwmac-eic7700.c - Move three variables from priv to local scope - Inline eic7700_apply_delay logic directly into the probe function - Link to v5: https://lore.kernel.org/all/20250904085913.2494-1-weishangjuan@eswincomputing.com/ Changes in v5: - Update eswin,eic7700-eth.yaml - Use "items" instead "enum" for clock-names - Arrange clocks description in correct order - Delete redundant descriptions for eswin,hsp-sp-csr property - Update dwmac-eic7700.c - Optimize the implementation of eic7700_ appy_delay - Update comments and remove reg checking - Use FIELD_PREP in eic7700_apply_delay function - Use clk_bulk related APIs to manage clks - Link to v4: https://lore.kernel.org/all/20250827081135.2243-1-weishangjuan@eswincomputing.com/ Changes in v4: - Update 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" - Update 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: - Update 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 - Update 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: - Update eswin,eic7700-eth.yaml - Add snps,dwmac in binding file - Modify the description of reg - Modify the number of clock-names - Change 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 - Updat 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 | 128 ++++++++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../ethernet/stmicro/stmmac/dwmac-eic7700.c | 226 ++++++++++++++++++ 4 files changed, 366 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