From patchwork Thu Oct 28 13:49:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 12590249 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68ABDC433EF for ; Thu, 28 Oct 2021 13:52:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 52BA060C51 for ; Thu, 28 Oct 2021 13:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbhJ1Nyc (ORCPT ); Thu, 28 Oct 2021 09:54:32 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:35529 "EHLO mslow1.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbhJ1NyW (ORCPT ); Thu, 28 Oct 2021 09:54:22 -0400 Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow1.mail.gandi.net (Postfix) with ESMTP id B6B1FC0124; Thu, 28 Oct 2021 13:51:26 +0000 (UTC) Received: (Authenticated sender: clement.leger@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1ADA0FF814; Thu, 28 Oct 2021 13:50:59 +0000 (UTC) From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: "David S. Miller" , Jakub Kicinski , Rob Herring , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Add FDMA support on ocelot switch driver Date: Thu, 28 Oct 2021 15:49:29 +0200 Message-Id: <20211028134932.658167-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series adds support for the Frame DMA present on the VSC7514 switch. The FDMA is able to extract and inject packets on the various ethernet interfaces present on the switch. While adding FDMA support, bindings were switched from .txt to .yaml and mac address read from device-tree was added to allow be set instead of using random mac address. Clément Léger (3): net: ocelot: add support to get mac from device-tree dt-bindings: net: convert mscc,vsc7514-switch bindings to yaml net: ocelot: add FDMA support .../bindings/net/mscc,vsc7514-switch.yaml | 183 ++++ .../devicetree/bindings/net/mscc-ocelot.txt | 83 -- drivers/net/ethernet/mscc/Makefile | 1 + drivers/net/ethernet/mscc/ocelot.h | 2 + drivers/net/ethernet/mscc/ocelot_fdma.c | 811 ++++++++++++++++++ drivers/net/ethernet/mscc/ocelot_fdma.h | 60 ++ drivers/net/ethernet/mscc/ocelot_net.c | 30 +- drivers/net/ethernet/mscc/ocelot_vsc7514.c | 20 +- include/linux/dsa/ocelot.h | 40 +- include/soc/mscc/ocelot.h | 2 + 10 files changed, 1140 insertions(+), 92 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml delete mode 100644 Documentation/devicetree/bindings/net/mscc-ocelot.txt create mode 100644 drivers/net/ethernet/mscc/ocelot_fdma.c create mode 100644 drivers/net/ethernet/mscc/ocelot_fdma.h