Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1607681pxb; Thu, 28 Oct 2021 06:54:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUNinidKvxNAK9S5aDze8kT+PJEv0qor4kcPlrbfIL6AkMIzGV1BYr0q81f4Kt7xKJi+cX X-Received: by 2002:a17:90b:218:: with SMTP id fy24mr2785189pjb.187.1635429292377; Thu, 28 Oct 2021 06:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635429292; cv=none; d=google.com; s=arc-20160816; b=xo6BU+SdYicH3+pqPZYg2QhFI0aWU22tA9gbWEatyOqwcjw7TkOIXQxo7LNb5tuA2D 2ToSR6/2Wa4CqSzddFV9jGyz0kFs1cbOYo/KcCh8MtR6wSLk5HB8MIJZNKlTqDe8XGPq DjFkLEAk65XQ2X2EhwOtmfQBzaByvLKylKt5py3ua8CgdQsqPWq68Hq0LFoTphP07Hxx MegJGB27v6ZcuWzbZlWP7jV08lvyiU8OC+T9HBRjXVWyFdVd+vzmyAyRWjCqPfdOIXS0 pojCOKIYh1SoepPN0Jargonroc+xJOu/Nype60VpwzXeHZmj2zC3UyImsgUdqARqxaaZ vmjQ== 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; bh=SUWOR20ehoKPouMiXLzRUHdeSgxC81AuuOUUnAjyhCE=; b=XcM/e9G5hINqNLORcAShCjsS30yYccDMwgQsp9CAZcHH9veT7kFvfkc97yNsSEeKlx SeaBuYCCqt5MpAisYxlX4YSHFfhy5IWVdtRgWmiXfo3bjPSOWiQ3hHPBZkHbHJkH2eMY wMy8nN50zw7i+H7p+BRy1SD6lT5bZNpfsZBhvB9ZDvwO3rh6qu4gAEH3Jww114qEGJq3 EM9WXVkqUVNBvUgqWG6LDzPfE70dGd03ZmEmoYomen1Qo7yyl4ocU+LMTbW0K9QNkVWf 1L0ztAnr8rwsiX8WmFLU865BOvfArrfAEPPWFewcQ4pYLbubdRu3mZ0B+3SCkHSh2rZ4 UBFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si4160165pla.365.2021.10.28.06.54.39; Thu, 28 Oct 2021 06:54:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231260AbhJ1Nyr (ORCPT + 99 others); Thu, 28 Oct 2021 09:54:47 -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?q?Cl=C3=A9ment=20L=C3=A9ger?= To: "David S. Miller" , Jakub Kicinski , Rob Herring , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.33.0