Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp848970lqj; Mon, 3 Jun 2024 02:41:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0UvDtg7Ah6izg+H3qd00dIdiaoTELAsueY85z68fC/+p9932Vh8lnDkKRPXkGCet8OZW24p7mQT6q8DwkgbPyzvtDUOla/lfL7nZN2Q== X-Google-Smtp-Source: AGHT+IH7BwzfmRIdOJ9nqe5qpi+CDzyqdNyAmAjs4cGwIUAg5JO4x56WtR3VtjXSuC4hsVCKPPNx X-Received: by 2002:a05:6358:528e:b0:18a:6074:90d1 with SMTP id e5c5f4694b2df-19b48e92bfcmr1171596155d.19.1717407707663; Mon, 03 Jun 2024 02:41:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407707; cv=pass; d=google.com; s=arc-20160816; b=WmpUXCkF33IyXC/Pd9z9oBKZsWOEJnbdZR+m7Fg9uvhhSXJ7Sa61jk8zUI6rysCmBy iowB/H90rBgOpH7Z2wTlbYuYs7D0f07R8I1Yvyu+NVTZzyxpB46TaRdTXoIc5iJjQUIJ 3ainhncJflnjTo3t4D6Eh6DLwH3df7l3sQbNHKPd/+fOrxUpaD0SMNq5xKjcttue8hJ7 jy1PbuF6HK5ZePHreftaXBfSn/EDcn+GXsqOOcfoDql7W0q4Zuk4uDqfhqqPkt6ejgxs I38aJNhoKA+47snCQ3g+7ctn8Y7rsFSxJT/ZJUD3vweniBIDKmHMWbpQ42XrNTiJkgq3 e6fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=W4T/YoU6NKIK7mMSN7BvQlA9NuSsgbgmhksWstWhGaA=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=ezeFNXCRCyWTWSonsTv0KyhsWatOFOBt2hN+1Fb1ADrB5o9xm67dNjBnVkSBSvYNmm 3ONbVsAxy5b/xfiLKaZfQHtG5OlkZpXm7bgUsHekQNHTyzRySTJXFw+9HcHTIYaixRPd QBg7CUManNaM/5Akuj8bwEqZKtfnJO98ZuRRm7TmUhaQpfW/LDzlf8q0oSa7wIWu/G2W C3O30mC3Q7ci/FVdB/DvDqeWNd6JCZf9DWKlTdR9XSktHf9rHzt9WdUuG0uS2wKnG0bp 6Gv9spHZQTiLHp62BDwnyzsRencBCClUWyCEuHehRoMrOo3f+DBVu+e+o44MqtamGfBg V64w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=vzcIOIxy; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-198878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540faebesi6207135a12.5.2024.06.03.02.41.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:41:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=vzcIOIxy; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-198878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3CD3728187E for ; Mon, 3 Jun 2024 09:31:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E83D1823B5; Mon, 3 Jun 2024 09:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="vzcIOIxy" Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30223823AF; Mon, 3 Jun 2024 09:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406979; cv=none; b=gD9y13xyYHYZ4pDw+U8Jq0y3vZNNhY2UHN9XZY22fMjNHfps/YMIGUc8oeg6jN6QRzFoiVR6ON3+NvANHbzvJT8fMFerHIgtgkCSACoz6Rc8WruIiPQLg6re6s7r1yOB8HXA+hW7/ojk49ODt7S8MqtBwklI1fF/HawCgtunh/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406979; c=relaxed/simple; bh=/RwLt37mZinhQXbN/cqOQ0+EvPSbkY9p9MAGa8qCzqM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=LtAqAREfQy4BrFttLCFVpF/LWt4Yx3Dsk20/NvU5g50qyDhXyffTTSML46EPok4UiVeXa2Sa2TrFZjUj/QFnwI83+tOkG6xEcJoR3ZOy8kaFbR65OMTkVgXaBlI3DVulxQ8LQ0ifoLbuX7VaOwg8dtoYuMZAx10YXFoN1v5iAsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=vzcIOIxy; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4537cWVc004745; Mon, 3 Jun 2024 11:28:44 +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=W4T/YoU6NKIK7mMSN7BvQl A9NuSsgbgmhksWstWhGaA=; b=vzcIOIxyNo5aha17vMDuOfTuxg5AqMKs+ePYLr ez7TccT5jAlFE0GQnS9DSIxgdhPYPVFzsOXgwu1g2bLS7nxSK9EEHvCm99HSbhQ3 L5TmntEfcF9UhPXrDcnTYiDNGPavJ0mNzeaKLfWjI9FnvZMo9pZWgIG66gNBIekw cw1Mp3TpdL9iX4+JHUQAzP8GndyTuJ6wuwht2Er+gPIvldqdR65xm23joKcpKWrE aaYPZY4V4ZIb6H0y6cCcpL+HZZsiecr4K7CUZOXLujdxpRaXEgGCY6SfH8KQk9b4 aAtPBlNjkeAwx7IPsmuGYAI3xr9xgPGZiZ7m/6ETs9iGt/4w== 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 3ygekhm92p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 11:28:42 +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 14CCE4005D; Mon, 3 Jun 2024 11:28:15 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3EE222165E7; Mon, 3 Jun 2024 11:28: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; Mon, 3 Jun 2024 11:28: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 v3 00/11] Series to deliver Ethernet for STM32MP13 Date: Mon, 3 Jun 2024 11:27:46 +0200 Message-ID: <20240603092757.71902-1-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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.650,FMLib:17.12.28.16 definitions=2024-06-03_06,2024-05-30_01,2024-05-17_01 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 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 | 31 +++ arch/arm/boot/dts/st/stm32mp133.dtsi | 30 +++ arch/arm/boot/dts/st/stm32mp135f-dk.dts | 24 +++ arch/arm/configs/multi_v7_defconfig | 1 + .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 176 ++++++++++++++---- 7 files changed, 327 insertions(+), 47 deletions(-) -- 2.25.1