From patchwork Tue Jun 4 14:34:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Roullier X-Patchwork-Id: 13685433 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 6EE24C25B78 for ; Tue, 4 Jun 2024 14:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=5x770AEjNoSGvj/ttiG3DvOywW98FiXnlWZMLUML5HU=; b=epf+TIMn2wQ6k4 18/wcbffMObVgSWyYtInCtAj1KI1LuW3A5bUhrugscgTsDz7SitcTt8Z/txxoZwIOM6Wl+9Mfz8Na w+wn/1TrtbePAdT5sQeRFVfjOralXisGX8YTT+vo2zDmMYm9Z5iToA2wI8s564s2TNxxk99pm2//N NBb3ugYxDNM33Uxx+58GB9cAmGdYhEJksD8QmssCSHFyC8vLfrC4fO9UD++CrTfteSNLFrLpCDjAP N3DV1LlcdM1xg4PzRGwhZwuw68rVl52HtPBv/21B5s7PdecytaO5Pt4YHLlEC1//vrzNskD2OXmaR Lp6MaXz9BYTKQq88zkAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEVHX-00000002k1D-2I89; Tue, 04 Jun 2024 14:36:59 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEVHS-00000002jxd-2tYx for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:36:58 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 454DOLvW012864; Tue, 4 Jun 2024 16:36:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=yc0Pxe2X2efIKfu9xwLwzE iOJ7Ub60FE7k6shR7hdK8=; b=HkJWRbLpSrB7odl14Y7bp7yJSnOKlN33STWeuG lJZPXdKc6VeCJ2FAfJFMvWMKpCkXnoRhqegpLYQgw0/BWuKWKg0KRRlRum8q3AW+ TXqMW3BZ1AY6l6xH7WHfuBh0oRy8dVfXaHqiEl/eCRFUE6wzOmfiJe5AQ2CfwOeF rDE3vh0ngWbu7Dx1yBDtZXeRWehWDmzCTVG5pxXYZ9ABu+vjmuxl2PdPazNNandD saDo9OfBsJ40P9l5wWYQJWJ/EpTJA3gYI6YRqrqMIHL7hi3J43oRuxC5Y51DgjQt Ieohf9q8RY88WH8wYGen9SS8dwkVCN3lKS54jzmoANHB9VOQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yfw3wmp4v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 16:36:37 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 90E9140045; Tue, 4 Jun 2024 16:36:30 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A9B1B221944; Tue, 4 Jun 2024 16:35:15 +0200 (CEST) Received: from localhost (10.48.86.164) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 16:35:14 +0200 From: Christophe Roullier To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown , Christophe Roullier , Marek Vasut CC: , , , , Subject: [PATCH v4 00/11] Series to deliver Ethernet for STM32MP13 Date: Tue, 4 Jun 2024 16:34:51 +0200 Message-ID: <20240604143502.154463-1-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.164] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_09,2024-06-04_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_073655_372433_299CEC7C X-CRM114-Status: GOOD ( 11.16 ) 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 STM32MP13 is STM32 SOC with 2 GMACs instances GMAC IP version is SNPS 4.20. GMAC IP configure with 1 RX and 1 TX queue. DMA HW capability register supported RX Checksum Offload Engine supported TX Checksum insertion supported Wake-Up On Lan supported TSO supported Rework dwmac glue to simplify management for next stm32 (integrate RFC from Marek) V2: - Remark from Rob Herring (add Krzysztof's ack in patch 02/11, update in yaml) Remark from Serge Semin (upate commits msg) V3: - Remove PHY regulator patch and Ethernet2 DT because need to clarify how to manage PHY regulator (in glue or PHY side) - Integrate RFC from Marek - Remark from Rob Herring in YAML documentation V4: - Remark from Marek (remove max-speed, extra space in DT, update commit msg) - Remark from Rasmus (add sign-off, add base-commit) - Remark from Sai Krishna Gajula Christophe Roullier (6): dt-bindings: net: add STM32MP13 compatible in documentation for stm32 net: ethernet: stmmac: add management of stm32mp13 for stm32 ARM: dts: stm32: add ethernet1 and ethernet2 support on stm32mp13 ARM: dts: stm32: add ethernet1/2 RMII pins for STM32MP13F-DK board ARM: dts: stm32: add ethernet1 for STM32MP135F-DK board ARM: multi_v7_defconfig: Add MCP23S08 pinctrl support Marek Vasut (5): net: stmmac: dwmac-stm32: Separate out external clock rate validation net: stmmac: dwmac-stm32: Separate out external clock selector net: stmmac: dwmac-stm32: Extract PMCR configuration net: stmmac: dwmac-stm32: Clean up the debug prints net: stmmac: dwmac-stm32: Fix Mhz to MHz .../devicetree/bindings/net/stm32-dwmac.yaml | 41 ++++- arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 71 ++++++++ arch/arm/boot/dts/st/stm32mp131.dtsi | 38 ++++ arch/arm/boot/dts/st/stm32mp133.dtsi | 31 ++++ arch/arm/boot/dts/st/stm32mp135f-dk.dts | 23 +++ arch/arm/configs/multi_v7_defconfig | 1 + .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 172 ++++++++++++++---- 7 files changed, 330 insertions(+), 47 deletions(-) base-commit: cd0057ad75116bacf16fea82e48c1db642971136