From patchwork Fri Oct 21 16:18:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 617276 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 613B7C433FE for ; Fri, 21 Oct 2022 16:19:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbiJUQTG (ORCPT ); Fri, 21 Oct 2022 12:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiJUQTF (ORCPT ); Fri, 21 Oct 2022 12:19:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D4C26ADA; Fri, 21 Oct 2022 09:19:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5F891B82CAE; Fri, 21 Oct 2022 16:19:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97818C433D6; Fri, 21 Oct 2022 16:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666369142; bh=le7nhlny4QyaewWADZKPXPcShW1nbYI5/3w0MM5Nc/8=; h=From:To:Cc:Subject:Date:From; b=Jm7csGbyLeQewgAnwmZoF1/7GEJ1agj3uLy4bSJRwaGv92qS3x6RFGgb9oH372gOG llTdzeeTsE6pRZ8sH+SuGKez/C92CgiWxu5R+POzek6LyvGHyww20DnRRm4ZG3GKaA 4nzvJRfUXR6Xa7LuY35OlFFsi/t+eZjXrPe2wza+oefPnW9QRaWOKSoi4Ok6JhJmGs j4m+REdExvlUN54z+98oUCkkNkry4N/ipzPWEWYZYbg60SaCNWPD2FdLiJQAEy26P8 xFxvWGuwZkgKVvMuh2kpaJGnQr1ysCFG6Kiidzrd845+mrO7cfWpdURx6H6b7YCZFV tc3IlWNlBRlFw== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: nbd@nbd.name, john@phrozen.org, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com, linux-mediatek@lists.infradead.org, lorenzo.bianconi@redhat.com, Bo.Jiao@mediatek.com, sujuan.chen@mediatek.com, ryder.Lee@mediatek.com, evelyn.tsai@mediatek.com, devicetree@vger.kernel.org, robh@kernel.org, daniel@makrotopia.org Subject: [PATCH net-next 0/6] introduce WED RX support to MT7986 SoC Date: Fri, 21 Oct 2022 18:18:30 +0200 Message-Id: X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Similar to TX counterpart available on MT7622 and MT7986, introduce RX Wireless Ethernet Dispatch available on MT7986 SoC in order to offload traffic received by wlan nic to the wired interfaces (lan/wan). Lorenzo Bianconi (6): arm64: dts: mediatek: mt7986: add support for RX Wireless Ethernet Dispatch dt-bindings: net: mediatek: add WED RX binding for MT7986 eth driver net: ethernet: mtk_wed: introduce wed mcu support net: ethernet: mtk_wed: introduce wed wo support net: ethernet: mtk_wed: add configure wed wo support net: ethernet: mtk_wed: add rx mib counters .../arm/mediatek/mediatek,mt7622-wed.yaml | 126 ++++ .../arm/mediatek/mediatek,mt7986-wo-boot.yaml | 45 ++ .../arm/mediatek/mediatek,mt7986-wo-ccif.yaml | 49 ++ .../arm/mediatek/mediatek,mt7986-wo-dlm.yaml | 66 ++ arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 79 +++ drivers/net/ethernet/mediatek/Makefile | 2 +- drivers/net/ethernet/mediatek/mtk_wed.c | 577 ++++++++++++++++-- drivers/net/ethernet/mediatek/mtk_wed.h | 21 + .../net/ethernet/mediatek/mtk_wed_debugfs.c | 87 +++ drivers/net/ethernet/mediatek/mtk_wed_mcu.c | 375 ++++++++++++ drivers/net/ethernet/mediatek/mtk_wed_regs.h | 129 +++- drivers/net/ethernet/mediatek/mtk_wed_wo.c | 545 +++++++++++++++++ drivers/net/ethernet/mediatek/mtk_wed_wo.h | 287 +++++++++ include/linux/soc/mediatek/mtk_wed.h | 104 +++- 14 files changed, 2448 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7986-wo-boot.yaml create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7986-wo-ccif.yaml create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7986-wo-dlm.yaml create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_mcu.c create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_wo.c create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_wo.h