Message ID | 20241124-upstream_s32cc_gmac-v6-0-dc5718ccf001@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 25FFAD3B7C3 for <linux-arm-kernel@archiver.kernel.org>; Sun, 24 Nov 2024 22:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=/DjNwbgSGEm7vOHKxamJNnG/LmSqfKb3qbBmh/l1b/A=; b=l849BWdgpZ8dQvuLumOVj8Y+Nj pVR5cVv53AOn13jKYB4WMvymkzHDbFQxBKy97JG0wlFlZCpz0Xc4PRcXgOxs0cUGHC8IDGeGo3Srv nmLI3u9Fh60hEAdzFBBPASEK6nANutoucy1xam3AmpWwhxk5up6mC8FWZqaMCCIlVBQgztSNOB6rf 1nwX55YbehG8T2mPqMZi5SZwlQpaPUAK96+Sv6zr07ToG7R+Mlud5XC1Y/d+p8rhxiJFEQcDtH1wJ Ky2+x72+riwKvLnlExZjb0JQySjiXezmVRib08A8KJP8txEgF61ZWEr4ZAGiXNXKmQOPmPnYTL8LA SdSY8Gjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFLLt-00000006jbn-0JdA; Sun, 24 Nov 2024 22:45:13 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFLJz-00000006j57-3YRm for linux-arm-kernel@lists.infradead.org; Sun, 24 Nov 2024 22:43:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 20211A40F9E; Sun, 24 Nov 2024 22:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9EE4DC4CECC; Sun, 24 Nov 2024 22:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732488193; bh=1bYiF74wMHxsa04kMTESHyr25mPtlwPTiJNmpr7MXm0=; h=From:Subject:Date:To:Cc:Reply-To:From; b=bf6OwuLNJpuy9BKnisbWrKk43sRrNpBJ5NqZDqWcQclLn+UwLLjg/Y2UzjEsZJQHH FfUR4DHQXV/4ziZmCja9vvv0/zAX0W0eIbQ+2fbffND/gilfVBmxWfETTsbZBTbHRt f0+R0ywASRTZZhV5iohQ3cEg/AXql5T4vim+X0x+j2RuDwa7ImFJlBVb+scU+Z89Z6 6EWlPAzf0wLGmKF4UcofKw6JDJH7OjKpF1rc9xSryUyq1q+yTKW5zTG0v+vHdOA2Ox tMRFD9NFEdHAb2hWIifS5xs9V3uzK37wIb8NtU09HpS9S2qejQUxE6q5F4AkIV4pgx 8K4QohMfjeTCw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81C2EE668BD; Sun, 24 Nov 2024 22:43:13 +0000 (UTC) From: Jan Petrous via B4 Relay <devnull+jan.petrous.oss.nxp.com@kernel.org> Subject: [PATCH RFC net-next v6 00/15] Add support for Synopsis DWMAC IP on NXP Automotive SoCs S32G2xx/S32G3xx/S32R45 Date: Sun, 24 Nov 2024 23:42:31 +0100 Message-Id: <20241124-upstream_s32cc_gmac-v6-0-dc5718ccf001@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANerQ2cC/23NTQ6CMBAF4KuQri3pDxTqysTEA7g1hkCZYhcU0 iLBEO5uYaNGlm8y73sz8uAMeHSMZuRgNN50NgRxiJB6lLYBbOqQESMsIZJx/Oz94KBsC8+ZUkX TlgqLXFKosrSiTKDQ7B1oM23qDV0v5/VmYcAWpgHdQ3gYP3Tuta2OfHtbByih+wMjxwTXeVKlp cgqycmp8z62Ux+rrt3EMflSWL6vJEEhXNBcUwIc2L+SfhRK5b6SBiWrlZJEK61B/yrLsrwBjil N0VUBAAA= To: Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Vinod Koul <vkoul@kernel.org>, Richard Cochran <richardcochran@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Emil Renner Berthing <kernel@esmil.dk>, Minda Chen <minda.chen@starfivetech.com>, Nicolas Ferre <nicolas.ferre@microchip.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Iyappan Subramanian <iyappan@os.amperecomputing.com>, Keyur Chudgar <keyur@os.amperecomputing.com>, Quan Nguyen <quan@os.amperecomputing.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, Andrew Lunn <andrew+netdev@lunn.ch> Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, NXP S32 Linux Team <s32@nxp.com>, "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>, Jacob Keller <jacob.e.keller@intel.com>, "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>, Serge Semin <fancer.lancer@gmail.com> X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732488190; l=4790; i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id; bh=1bYiF74wMHxsa04kMTESHyr25mPtlwPTiJNmpr7MXm0=; b=d9Ty/OqevCdDLdsu1WsjWIeseAYYPTveiK39AHU+p0pyrHDZwhn30CoyZOzlGOAs00k2mzgIg tyLlopfVfN4AVAu1+wsI0yeLBfivo3udAhJkFS4r3oYGYVyc3IYR4kJ X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519; pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY= X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with auth_id=217 X-Original-From: "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241124_144316_012940_50ACDA13 X-CRM114-Status: GOOD ( 15.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Reply-To: jan.petrous@oss.nxp.com Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add support for Synopsis DWMAC IP on NXP Automotive SoCs S32G2xx/S32G3xx/S32R45
|
expand
|
The SoC series S32G2xx and S32G3xx feature one DWMAC instance, the SoC S32R45 has two instances. The devices can use RGMII/RMII/MII interface over Pinctrl device or the output can be routed to the embedded SerDes for SGMII connectivity. The provided stmmac glue code implements only basic functionality, interface support is restricted to RGMII only. More, including SGMII/SerDes support will come later. This patchset adds stmmac glue driver based on downstream NXP git [0]. [0] https://github.com/nxp-auto-linux/linux v6: - removed dead code in dwmac-intel-plat.c - yaml: fix indention - validate interface mode in probe - dropped patch#16 to fit in max 15 patches in series - Link to v5: https://lore.kernel.org/r/20241119-upstream_s32cc_gmac-v5-0-7dcc90fcffef@oss.nxp.com v5: - yaml: refactored compatible string to use fallback - yaml: fix indention in example - fix xmas tree formating in local variable declarations - removed lazy rx clk setup - drop PTP clock reading patch and replace it with stmmac_platform fix - Link to v4: https://lore.kernel.org/r/20241028-upstream_s32cc_gmac-v4-0-03618f10e3e2@oss.nxp.com v4: - fixed empty commit messages for rgmi_clock() helper patches - fixed yaml path in MAINTAINERS - switched to platform_driver::remove() as suggested Uwe - yaml: returned back all compatibility sting values - added better commit description for rgmii_clock() helper - Link to v3: https://lore.kernel.org/r/20241013-upstream_s32cc_gmac-v3-0-d84b5a67b930@oss.nxp.com v3: - switched to b4 WoW to overcome threading issue with b4 - extracted the hunk with the typo fix from v2 patch#1 to separate patch as Jacob suggested - removed dead code for RMII/MII support, which will be added alter - used new rgmii_clock() helper in other stmmac:dwmac glue drivers - yaml: compatible strings compressed to simple one "nxp,s32-dwmac", removed duplicated required properties, already defined in snps,dwmac, fixed example v2: - send to wider audience as first version missed many maintainers - created rgmi_clk() helper as Russell suggested (see patch#4) - address Andrew's, Russell's, Serge's and Simon's comments Message-ID: <AM9PR04MB85066576AD6848E2402DA354E2832@AM9PR04MB8506.eurprd04.prod.outlook.com> Cc: Cc: Signed-off-by: Jan Petrous (OSS) <jan.petrous@oss.nxp.com> --- --- Jan Petrous (OSS) (15): net: driver: stmmac: Fix CSR divider comment net: driver: stmmac: Extend CSR calc support net: stmmac: Fix clock rate variables size net: phy: Add helper for mapping RGMII link speed to clock rate net: dwmac-dwc-qos-eth: Use helper rgmii_clock net: dwmac-imx: Use helper rgmii_clock net: dwmac-intel-plat: Use helper rgmii_clock net: dwmac-rk: Use helper rgmii_clock net: dwmac-starfive: Use helper rgmii_clock net: macb: Use helper rgmii_clock net: xgene_enet: Use helper rgmii_clock net: dwmac-sti: Use helper rgmii_clock dt-bindings: net: Add DT bindings for DWMAC on NXP S32G/R SoCs net: stmmac: dwmac-s32: add basic NXP S32G/S32R glue driver MAINTAINERS: Add Jan Petrous as the NXP S32G/R DWMAC driver maintainer .../devicetree/bindings/net/nxp,s32-dwmac.yaml | 105 ++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + MAINTAINERS | 7 + drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 16 +- drivers/net/ethernet/cadence/macb_main.c | 14 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 ++ drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/common.h | 2 + .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 11 +- drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 15 +- .../net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 22 +-- .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 30 +--- drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c | 189 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-starfive.c | 19 +-- drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c | 18 +- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +- .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- include/linux/phy.h | 23 +++ include/linux/stmmac.h | 10 +- 21 files changed, 386 insertions(+), 121 deletions(-) --- base-commit: 9f16d5e6f220661f73b36a4be1b21575651d8833 change-id: 20240923-upstream_s32cc_gmac-6891eb75b126 Best regards,