From patchwork Thu Sep 28 15:15:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Roullier X-Patchwork-Id: 14682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3627012vqu; Thu, 28 Sep 2023 15:03:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4lyf1f70s7e2iL9GX0U9npxVIUZtez8Wh4GBYqa06QZjPaJegLUKIwcL2+GheaDQi1QB/ X-Received: by 2002:a05:6358:341a:b0:135:4003:7851 with SMTP id h26-20020a056358341a00b0013540037851mr2615106rwd.19.1695938635408; Thu, 28 Sep 2023 15:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695938635; cv=none; d=google.com; s=arc-20160816; b=MXPy1KeX/kdZII2Yk7pOgVx47Oz/vkZNVDZhPh5ctfrIVeL9liOQlGYh/nSIxM112T ezLmFKX7xbkf4FGGygvJMGFV7ZxN2aQHw1UYK+Dhlo/2yGuDJW28N07DT+geMwPuDgp3 pUNZLi+fwLQWNCFqLRfKvsNXhVyCIDSeWW8JAmRVrivmOz1x/m6wZy6GqZx2el45Tore p05hX/Zp96Ud2pI4fZaw2z2fx7GnkaOdk9c3IIxo3VB9J/oYh3VQVSjClhSzPqMAzbdb h88xElmHk6VErxDjmSmVlu4jhkQHmM1lagvSJy96knXgOJU40hCkJCPQ8c+lqMYIXqeQ 8ikQ== 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 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id q26-20020a631f5a000000b0057c9e0c7bb8si17502795pgm.312.2023.09.28.15.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; 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 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 6CBD6809B9C8; Thu, 28 Sep 2023 08:16:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231795AbjI1PQJ (ORCPT + 21 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 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:16:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778313243267522040 X-GMAIL-MSGID: 1778320550569141134 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(-)