Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3476329rdh; Thu, 28 Sep 2023 12:49:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIlKYmE0JRCuTNoyhrJOqJY4D37u5mfMRqYd9PoZIB5QwhpcmzAJrxHcx46SVOedsCL0SM X-Received: by 2002:a17:902:f7c6:b0:1c6:1ab1:93eb with SMTP id h6-20020a170902f7c600b001c61ab193ebmr1955184plw.17.1695930557221; Thu, 28 Sep 2023 12:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695930557; cv=none; d=google.com; s=arc-20160816; b=zkYi5Xew52XV+fB8zX7CjZT9rvxYoqaYlgHx3tBb37ZTInpcSV5kGuJgXEdX7qMRKe oSDfNFKHs/5m41XSXo1iqxKKz2l/jfpkgFIve8nh6v1CRcgKP+utvtdV6iuYDWq+LVgc YIthzzKplOCICfwx2AUBUU0F8ztqlhpnGomF+uhly70xRinSQnAf8MsqIt8tYb/O4N/b DSYxRns9eb4f32rCrLUXBfeWP9yXlFtFBnjbC9ARzBWh8JGVYPpa2yrq2schqsV4fCUs lz0N2+h9oql0hg2B1gIkHYHegjyJ2YKufxkeBqsL4TSWQLyk8tldraxskw9t0Xtl3iVu Ew5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DVDsnfqWMzi6qlYBynRmCr8AXaqPBbzCO9a9d54AX5w=; fh=Nrq3/ZyqAmcldX4TnYQJDytRSUiD1vJeQNniXh+eWjo=; b=Hi9nSfkPhI61ZASyB9FGs5i/xWt5lqfNmX2FD0ZkwX3UzhwoiPe9Y2Zy4iH/uKFM54 xGEZf5DBHOmj1EtSHxnaG33X8YHZgCA+omeoe6bYCeI4jMmiVY//56/GqrgQj44KqApc Al1ffeEwsY0MJi7qNlS0fMAbasD2OTRAsezSjLxlph5+UcZ1wL3+BBMRc052mxM6qUW7 /vROA79/cTzZ3Oi34hBFHJO76dv5mpja8Qbv8WeANArTDorZjUhK78Fky76WbWYPTbAj iiSYitpD6u6upFsIWd20e+ktaIn2RYEZNOBoi7bbbxyxplZehsS9EoMCznTvYzRWnPIr 30bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=A0MvNWGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t11-20020a1709027fcb00b001bc17ab8d6esi12050499plb.530.2023.09.28.12.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 12:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=A0MvNWGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E421F805F5CD; Thu, 28 Sep 2023 08:16:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231791AbjI1PQJ (ORCPT + 99 others); Thu, 28 Sep 2023 11:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231687AbjI1PQA (ORCPT ); Thu, 28 Sep 2023 11:16:00 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB9921AE; Thu, 28 Sep 2023 08:15:53 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38SE0DPd015115; Thu, 28 Sep 2023 17:15:17 +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=DVDsnfq WMzi6qlYBynRmCr8AXaqPBbzCO9a9d54AX5w=; b=A0MvNWGd4arOF12LqpD2H8P gcObAHYXnzOgfPWWGoMANdRrvTMZUdVOKeHNBUcFTnLJaOecqWsh19j2lcISflpm tgUIiCi+Pa1I7Cuqpghm2+kMGxs9fekQhO+XSspXClpu/HKh/gJLdqe002ATUuUo LiUrZZrklIqzPoNuDMTXd3MtWp1AsP/WoLn5RxDPKdQDqoqPhpyJmXJ5AZvcOwqT EBeBeqPrAh5zt9ifMAvyG8GmqcGVUGEjxpyqITVO5GhTDS2lu3hJVdUg6w8d1Rwa M0L1omIeK0kyDsW8tZqjagICSVrg18X84HqpSyYOxl3h1TiVjGh4fG0zR5kzYJg= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t9nefye3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 17:15:17 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 917B0100057; Thu, 28 Sep 2023 17:15:16 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 58B4E233004; Thu, 28 Sep 2023 17:15:16 +0200 (CEST) Received: from localhost (10.201.21.249) 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, 28 Sep 2023 17:15:15 +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 v3 00/12] Series to deliver Ethernets for STM32MP13 Date: Thu, 28 Sep 2023 17:15:00 +0200 Message-ID: <20230928151512.322016-1-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.21.249] 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.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_14,2023-09-28_02,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:16:24 -0700 (PDT) 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 -V2: Update from remark of Andrew Lunn (split commit into a number of smaller patches) Update from Conor Dooley (yaml documentation) -V3: bad indentation for yaml (sorry) Christophe Roullier (12): dt-bindings: net: add STM32MP13 compatible in documentation for stm32 dt-bindings: net: add new property st,ext-phyclk 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 | 90 ++++++- 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 | 229 +++++++++++++----- 7 files changed, 425 insertions(+), 75 deletions(-) -- 2.25.1