From patchwork Thu Apr 11 14:36:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Roullier X-Patchwork-Id: 13626077 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 7A40CC4345F for ; Thu, 11 Apr 2024 14:39:11 +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=lxXqPWMZlSDbGJjIbyNkF6E8flcVjdN2CpChIRy7I+A=; b=fYZnxupeBJzbsn 95RLGkpPLSfV1lH41e0YsWJCDeBCM3abK2rQaLpACwsa5qXblasRskandXpr7hu8E77wNQJRHV+qo ukDS1hswMOxotAc34aIhDe2UXK9AY0Fv0/fTJXK57Hvn85Efk/IMjG1wwu9EHffL8ukvJlgjg2ynT v0bYKKai1uOt9KzPXKYjKBoc8aV6aMfwdyZ2bdBNyIGCThkbE4YHUxzhCsotQy1LONkK0lkNzsfTH hdpZN17Cxbmv0bPRVMQ+C/ptfpXeFrQ6pNo4LPVV26powxggcAdlhfHKPU+h7kfUnNn6qWuAdInUg R89l6EVa9b4cXHE43t9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruvZs-0000000CUYj-2YeN; Thu, 11 Apr 2024 14:39:00 +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 1ruvZj-0000000CURs-1aTG for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 14:38:55 +0000 Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43BCl6W4029833; Thu, 11 Apr 2024 16:38:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=R3t6i2R wKT1qwlckR/vo2LKwYj9pYC+YLWuQmMNxUu0=; b=X+rnlLe89rFmtVYeXFgY67M 2U85EeIgO+B9edFEsgxK1mrRyOpWRbZV78aVfR14J/4hZPcYAmLnQJWxY22H77Ss oO9qBSfrnxSLXPGhN/g41E5nDLOQfl6m3/EBYfZDQaFKicom1yH25EGbyYlnpzg5 bcLCLofjGy4NMBgX6gQ3OrFaLS3fJ4DVKpi0OB6xTFW+mQam6BJRa+7UA7QQBRDR DWUo5lnNmiWDyttYGRIIbCSvqACUgZNK1CoDB8EE02FkjJyXQ9/jvbXueF95ypxO QV2UcMOl/TNq3Kj6+lsAfs6QwQV/PEnVPwrAxACyvSrs+FqejCgEwctSZeSjplQ= = 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 3xbfy13qxj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 16:38:35 +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 64CCD40044; Thu, 11 Apr 2024 16:38: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 BE42A21BF52; Thu, 11 Apr 2024 16:37:21 +0200 (CEST) Received: from localhost (10.48.86.106) 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.27; Thu, 11 Apr 2024 16:37:21 +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 CC: , , , , Subject: [PATCH 00/11] Series to deliver Ethernets for STM32MP13 Date: Thu, 11 Apr 2024 16:36:47 +0200 Message-ID: <20240411143658.1049706-1-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.106] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-11_08,2024-04-09_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_073851_763755_E48F3EB7 X-CRM114-Status: GOOD ( 10.07 ) 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 This board have 2 RMII phy: -Ethernet1: RMII with crystal -Ethernet2: RMII without crystal Rework dwmac glue to simplify management for next stm32 Add support for PHY regulator Christophe Roullier (11): dt-bindings: net: add STM32MP13 compatible in documentation for stm32 dt-bindings: net: add phy-supply property for stm32 net: ethernet: stmmac: rework glue to simplify management for next stm32 net: ethernet: stmmac: add management of stm32mp13 for stm32 net: ethernet: stmmac: stm32: update config management for phy wo cristal net: ethernet: stm32: clean the way to manage wol irqwake net: ethernet: stmmac: stm32: support the phy-supply regulator binding 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 and ethernet2 for STM32MP135F-DK board ARM: multi_v7_defconfig: Add MCP23S08 pinctrl support .../devicetree/bindings/net/stm32-dwmac.yaml | 83 ++++++- 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 | 48 ++++ arch/arm/configs/multi_v7_defconfig | 1 + .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 235 ++++++++++++------ 7 files changed, 421 insertions(+), 78 deletions(-)