From patchwork Wed Jan 17 16:14:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Ivo X-Patchwork-Id: 13522004 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 9A835C47258 for ; Wed, 17 Jan 2024 16:16:57 +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=PzrJQQQz5QAHAHDqL7/m5rLgKvIYNJWYcjtMohUtS5M=; b=XUyptWEJaBM64k p9oXKMU5b8P0eJeM8k20TwqeCu1Vi8hwi5BuXuVoOd5HB9gJ7SEcDBUjjytQu72TGvSlJ3dF6rlrZ 8fkKOAC5pX37Z2dJfF5ohrlQa8GJKnzjmjYXByVeLHDB4WWIn9auSNwDtC4JR3e9lE3RyzGfAqbre na01lc7IfxIX3E9gcFvA/RBspZY7GRaG2hlrD+iu3saYQvxTX6KVd7iy63Mfr+Rqe3oYHKtY90kuk Nj/k+Uk/b9aHSi332hyrGmLjGtk61jNhM7RvBHi+1L6lE4uG1veakFRJY3d9QQzLSWPsoE6X+9Ku0 lh8g2+F7+ERAiop1hM/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQ8aZ-0001db-1Q; Wed, 17 Jan 2024 16:16:27 +0000 Received: from mta-65-228.siemens.flowmailer.net ([185.136.65.228]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQ8aS-0001Ym-2r for linux-arm-kernel@lists.infradead.org; Wed, 17 Jan 2024 16:16:23 +0000 Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 202401171616121519e110bb4ef04e83 for ; Wed, 17 Jan 2024 17:16:12 +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=2itPv06mgmfT1qp2nK3pOwEj8EUh1SNrKsJPJoi2pIg=; b=Wwmy/zx7FKTuEfSB3h3G/zQwPgllsGOni9i6Qe82CYUVzRPXX3rnH7nBvQS7rBQnEPn6Vj 2CHv4DFxCpHHrogGasy0sGQumWDTk3SAHKZ5rii1k8H8KyZ3R2hEpz29zjwIC4IyFa3xx19K yuzc7OfTzNOz34RRNeKLUnIjXMI5o=; 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 , jan.kiszka@siemens.com Subject: [PATCH v2 0/8] Add support for ICSSG-based Ethernet on SR1.0 devices Date: Wed, 17 Jan 2024 16:14:54 +0000 Message-ID: <20240117161602.153233-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-20240117_081621_629021_72F4CAE7 X-CRM114-Status: GOOD ( 11.57 ) 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]. The first version of this patch series can be found in [2]. [1]: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/?h=ti-linux-5.10.y [2]: https://lore.kernel.org/all/20231219174548.3481-1-diogo.ivo@siemens.com/ Changes in v2: - Addressed Krzysztof's comments on the dt-binding - Removed explicit references to SR2.0 - Added static keyword as indicated by the kernel test robot Diogo Ivo (8): dt-bindings: net: Add support for AM65x SR1.0 in ICSSG 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 .../bindings/net/ti,icssg-prueth.yaml | 29 +- .../net/ethernet/ti/icssg/icssg_classifier.c | 113 +++- drivers/net/ethernet/ti/icssg/icssg_config.c | 86 ++- drivers/net/ethernet/ti/icssg/icssg_config.h | 55 ++ 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, 788 insertions(+), 82 deletions(-)