From patchwork Tue Dec 19 17:45:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Ivo X-Patchwork-Id: 13498726 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 3A01BC46CD4 for ; Tue, 19 Dec 2023 17:47:22 +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=WjKupYV+oH/0b0iOCzqC9hEasDnHco5xVOnAPYktzq8=; b=OaGL0vkAN0pRaZ nFXelHiEJMm8QxYf2oxm3n76lftdQvzZwB/xGDK49enTV4sqwKbcJ/oY5CoXhM6BNbfN6oUsRyuDL q+n13SpssxZD6ghYtjWU35X/xdkj3E8jsSbhqulxaVjNligdISFHuhqwYLqeEB3OPbvbAunz8IEgT Ze2bH0RiOo0D4Xn9d9hyuETb6JsOzph/5ys4IldmWZRaqJdENtJQWMYT0UiD8OnouDsIJByPrgy82 BCJCuDQkLB9bJzbFj8qdlnQv1t/XNFheeWxJpGPYmyl4AgVexmPjTGEGqzKPKbd8rsw1uqSFI4QgQ VDh3kw75PrNbhF0hjZ1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFeBA-00F1MT-2d; Tue, 19 Dec 2023 17:46:52 +0000 Received: from mta-65-226.siemens.flowmailer.net ([185.136.65.226]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFeAq-00F0wb-0i for linux-arm-kernel@lists.infradead.org; Tue, 19 Dec 2023 17:46:36 +0000 Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20231219174620e1adfd40b9575d9e52 for ; Tue, 19 Dec 2023 18:46:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=diogo.ivo@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=ZqN2tJGSh8krS2qjM3LQQyItJGkgLnuWJvYSIGQ1Zxc=; b=Y8ZdcafjRoR8ojYovKtGRigSGkDNSZ8MPtAPwctxjXBTGVhx1B5s6S6UObeQXrXX0WFx8z 1NuYhuqRAdL/nz9HsiSPBTne7zF1MDwP93xoMk8pejvnUGJ442tiTKwI+EZk0JlKPtRND89E Xw9O2CMqxfolOXnz8oD8qPDLRFbNU=; From: Diogo Ivo To: danishanwar@ti.com, rogerq@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, andrew@lunn.ch, dan.carpenter@linaro.org, grygorii.strashko@ti.com, jacob.e.keller@intel.com, robh@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: Diogo Ivo Subject: [RFC PATCH net-next 0/8] Add support for ICSSG-based Ethernet on SR1.0 devices Date: Tue, 19 Dec 2023 17:45:38 +0000 Message-ID: <20231219174548.3481-1-diogo.ivo@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1320519:519-21489:flowmailer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231219_094633_150119_29D8DBDC X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. 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 Hello, This series extends the current ICSSG-based Ethernet driver to support Silicon Revision 1.0 devices. Notable differences between the Silicon Revisions are that there is no TX core in SR1.0 with this being handled by the firmware, requiring extra DMA channels to communicate commands to the firmware (with the firmware being different as well) and in the packet classifier. The motivation behind it is that a significant number of Siemens devices containing SR1.0 silicon have been deployed in the field and need to be supported and updated to newer kernel versions without losing functionality. This series is based on TI's 5.10 SDK [1]. [1]: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/?h=ti-linux-5.10.y Diogo Ivo (7): net: ti: icssg-config: add SR1.0-specific configuration bits net: ti: icssg-prueth: add SR1.0-specific configuration bits net: ti: icssg-classifier: Add support for SR1.0 net: ti: icssg-config: Add SR1.0 configuration functions net: ti: icssg-ethtool: Adjust channel count for SR1.0 net: ti: iccsg-prueth: Add necessary functions for SR1.0 support net: ti: icssg-prueth: Wire up support for SR1.0 Jan Kiszka (1): dt-bindings: net: Add support for AM65x SR1.0 in ICSSG .../bindings/net/ti,icssg-prueth.yaml | 62 +- .../net/ethernet/ti/icssg/icssg_classifier.c | 113 +++- drivers/net/ethernet/ti/icssg/icssg_config.c | 90 ++- drivers/net/ethernet/ti/icssg/icssg_config.h | 61 +- drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 10 +- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 556 ++++++++++++++++-- drivers/net/ethernet/ti/icssg/icssg_prueth.h | 21 +- 7 files changed, 812 insertions(+), 101 deletions(-)