From patchwork Fri May 31 10:22:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13681498 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1EB3C27C44 for ; Fri, 31 May 2024 10:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GT887zEnE1OXPHjAZIYXnDgJcci/dcJTxnuB9j+/wOI=; b=E0jH9fLYWf94AK kQIQy4pgMpd1IswmBfBls960jKLSXQoMfmGrf1fE1cj5NwY/VUmQoJ7AJQZ/l+EQQCKWhVTLMBo9D 8xPUm930Kmd1W7s0cs+Xp8uU97NwfIHKB+R/ja8+gn8ymW3kEALCgz57FegCrzwI8cQ1uZm+yTV0A frtFBGCQyTcDO5/vpnhnIN+oSWxO7+0lSb/HTyQn6DemzhNBPN3tSuq/2/fVd472kuATFsdwwMBx8 ZaFt56v2J6rCG1uPCYsIUDrbm8WK23jK5YZwd68g1ivAXcQ2M/4lmCWq6s/Hlj+cY/ZlDZvv2ZTf6 sjM0Kon6baVWbqW3mR9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCzPD-00000009vYE-0YoY; Fri, 31 May 2024 10:22:39 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCzP9-00000009vXk-2luu for linux-arm-kernel@lists.infradead.org; Fri, 31 May 2024 10:22:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D03D8CE1BC2; Fri, 31 May 2024 10:22:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69B76C32781; Fri, 31 May 2024 10:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717150951; bh=WQ5KjE3FayifgtccZSf+eqppJtRC/22af7rfJ/uCD4A=; h=From:To:Cc:Subject:Date:From; b=in0C/vLCelfGMYs+gCxjXApD6iU++oQRpc2NB5SZM+cpsy3Eq1xJsbi9Ti0jhxkYU 1P/t8ELNbx6DbcIPsUsiN9vNPLxx0HztNIil/5WJmhXngQFMnKwV8OsOmt6e63NA+/ tTECZYH8lenBlvPLEuwK+EvjHsB+JdQeVA+r3OB+RyXQ7ZBeD+0aC/RxMqYqILZlfV DdvuGbUQXrJGouGN5wxILviUTr0B2OyXMWi5pIHFI7AfLrppIx2+yAyasPHE6NcpRa FAt0Z+X3tGdDJgWodLLSWfXFn/SSZXWOxWrYGKLYdxpfOM8rN4s1EpBasXuOj+XFD0 NEZLdZKoZePYw== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: nbd@nbd.name, lorenzo.bianconi83@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor@kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, benjamin.larsson@genexis.eu Subject: [PATCH net-next 0/3] Introduce EN7581 ethernet support Date: Fri, 31 May 2024 12:22:17 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240531_032235_914278_CA989F17 X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add airoha_eth driver in order to introduce ethernet support for Airoha EN7581 SoC available on EN7581 development board. EN7581 mac controller is mainly composed by Frame Engine (FE) and QoS-DMA (QDMA) modules. FE is used for traffic offloading (just basic functionalities are supported now) while QDMA is used for DMA operation and QOS functionalities between mac layer and the dsa switch (hw QoS is not available yet and it will be added in the future). Currently only hw lan features are available, hw wan will be added with subsequent patches. Lorenzo Bianconi (3): dt-bindings: net: airoha: Add EN7581 ethernet controller arm64: dts: airoha: Add EN7581 ethernet node net: airoha: Introduce ethernet support for EN7581 SoC .../bindings/net/airoha,en7581.yaml | 106 ++ MAINTAINERS | 10 + arch/arm64/boot/dts/airoha/en7581-evb.dts | 4 + arch/arm64/boot/dts/airoha/en7581.dtsi | 31 + drivers/net/ethernet/mediatek/Kconfig | 11 +- drivers/net/ethernet/mediatek/Makefile | 1 + drivers/net/ethernet/mediatek/airoha_eth.c | 1552 +++++++++++++++++ drivers/net/ethernet/mediatek/airoha_eth.h | 719 ++++++++ 8 files changed, 2433 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/net/airoha,en7581.yaml create mode 100644 drivers/net/ethernet/mediatek/airoha_eth.c create mode 100644 drivers/net/ethernet/mediatek/airoha_eth.h