From patchwork Wed May 4 14:54:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 12838020 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 000AAC433EF for ; Wed, 4 May 2022 14:55:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240115AbiEDO7N (ORCPT ); Wed, 4 May 2022 10:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351595AbiEDO7I (ORCPT ); Wed, 4 May 2022 10:59:08 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC676222B6; Wed, 4 May 2022 07:55:29 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.91,198,1647270000"; d="scan'208";a="118714991" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 04 May 2022 23:55:28 +0900 Received: from localhost.localdomain (unknown [10.226.93.27]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id BCA1F4250F05; Wed, 4 May 2022 23:55:22 +0900 (JST) From: Phil Edworthy To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Geert Uytterhoeven Cc: Phil Edworthy , Sergey Shtylyov , Sergei Shtylyov , Biju Das , Lad Prabhakar , Chris Paterson , Magnus Damm , linux-clk@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 0/9] Add Renesas RZ/V2M Ethernet support Date: Wed, 4 May 2022 15:54:45 +0100 Message-Id: <20220504145454.71287-1-phil.edworthy@renesas.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The RZ/V2M Ethernet is very similar to R-Car Gen3 Ethernet-AVB, though some small parts are the same as R-Car Gen2. Other differences are: * It has separate data (DI), error (Line 1) and management (Line 2) irqs rather than one irq for all three. * Instead of using the High-speed peripheral bus clock for gPTP, it has a separate gPTP reference clock. The dts patches depend on v4 of the following patch set: "Add new Renesas RZ/V2M SoC and Renesas RZ/V2M EVK support" Phil Edworthy (9): clk: renesas: r9a09g011: Add eth clock and reset entries dt-bindings: net: renesas,etheravb: Document RZ/V2M SoC ravb: Separate use of GIC reg for PTME from multi_irqs ravb: Separate handling of irq enable/disable regs into feature ravb: Support separate Line0 (Desc), Line1 (Err) and Line2 (Mgmt) irqs ravb: Use separate clock for gPTP ravb: Add support for RZ/V2M arm64: dts: renesas: r9a09g011: Add ethernet nodes arm64: dts: renesas: rzv2m evk: Enable ethernet .../bindings/net/renesas,etheravb.yaml | 82 ++++++++++++----- .../boot/dts/renesas/r9a09g011-v2mevk2.dts | 14 +++ arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 51 +++++++++++ drivers/clk/renesas/r9a09g011-cpg.c | 14 +-- drivers/net/ethernet/renesas/ravb.h | 7 ++ drivers/net/ethernet/renesas/ravb_main.c | 89 +++++++++++++++++-- drivers/net/ethernet/renesas/ravb_ptp.c | 4 +- 7 files changed, 228 insertions(+), 33 deletions(-)