From patchwork Sat Nov 5 22:36:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 621832 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 9F6D2C4332F for ; Sat, 5 Nov 2022 22:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbiKEWge (ORCPT ); Sat, 5 Nov 2022 18:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbiKEWgc (ORCPT ); Sat, 5 Nov 2022 18:36:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCED12096; Sat, 5 Nov 2022 15:36:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A944D60B9E; Sat, 5 Nov 2022 22:36:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D12EC433C1; Sat, 5 Nov 2022 22:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667687791; bh=4wbJ4V9ftwA4chQ1NoT4hKYIC4+12nuKIWSBJd0mldk=; h=From:To:Cc:Subject:Date:From; b=WzPisES4dxeQsw0+FzXV5/k+MFyI/lR8FFMY+E/BC6ZJ4m0zUIbspb8VQ9a8aGJOG QE8u2jcLgHBzb45z1wG/QnJO3t5amsPgPvEZtoI6tDpJzmAKKMXJ7ro++ndRsu9HCt s6bFHjxocAsWgkR2fDGiwDnbcS/b4pE6gOaEFOuq7R/mfW0rdWq6wHcivRG82POYUG Uxkt+EV5phzWQhP4EMTqo9jrSgt1/nCICUgRWBrvrx+X1qZi153L89CmLEn/5dDkUF ayf+l8+0y67z+1vAUSzcHb6BEKR8s86u77XEEgWqpXe+TnhYq3y4bFbPkiE2qCGdPu nmwmo9KxeW0IA== 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+dt@kernel.org, daniel@makrotopia.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com Subject: [PATCH v4 net-next 0/8] introduce WED RX support to MT7986 SoC Date: Sat, 5 Nov 2022 23:36:15 +0100 Message-Id: X-Mailer: git-send-email 2.38.1 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). Changes since v3: - remove reset property in ethsys dts node - rely on readx_poll_timeout in wo mcu code - fix typos - move wo-ccif binding in soc folder - use reserved-memory for wo-dlm - improve wo-ccif binding Changes since v2: - rely on of_reserved_mem APIs in mcu code - add some dts fixes - rename {tx,rx}_wdma in {rx,tx}_wdma - update entry in maintainers file Changes since v1: - fix sparse warnings - rely on memory-region property in mt7622-wed.yaml - some more binding fixes Lorenzo Bianconi (7): 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 wo support net: ethernet: mtk_wed: rename tx_wdma array in rx_wdma net: ethernet: mtk_wed: add configure wed wo support net: ethernet: mtk_wed: add rx mib counters MAINTAINERS: update MEDIATEK ETHERNET entry Sujuan Chen (1): net: ethernet: mtk_wed: introduce wed mcu support .../arm/mediatek/mediatek,mt7622-wed.yaml | 52 ++ .../soc/mediatek/mediatek,mt7986-wo-ccif.yaml | 51 ++ MAINTAINERS | 1 + arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 65 ++ drivers/net/ethernet/mediatek/Makefile | 2 +- drivers/net/ethernet/mediatek/mtk_wed.c | 619 ++++++++++++++++-- drivers/net/ethernet/mediatek/mtk_wed.h | 21 + .../net/ethernet/mediatek/mtk_wed_debugfs.c | 87 +++ drivers/net/ethernet/mediatek/mtk_wed_mcu.c | 387 +++++++++++ drivers/net/ethernet/mediatek/mtk_wed_regs.h | 129 +++- drivers/net/ethernet/mediatek/mtk_wed_wo.c | 508 ++++++++++++++ drivers/net/ethernet/mediatek/mtk_wed_wo.h | 282 ++++++++ include/linux/soc/mediatek/mtk_wed.h | 106 ++- 13 files changed, 2256 insertions(+), 54 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,mt7986-wo-ccif.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