From patchwork Fri Feb 2 17:55:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hari Nagalla X-Patchwork-Id: 13543218 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 1790EC48291 for ; Fri, 2 Feb 2024 17:56:14 +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=y2unRYF3yogi2aVuh4VeVy6Oo9KNAgXQQ9xzlruxPa8=; b=D8COeAhk2RjotM PxXcIOoEP1hRtUIgDJJDEEWVTBtJk8J1QuaKwywFK7yiDNyX7FOAPCX1NWVWaGR5g41UtEbHufcPc L/QW/ClOMVoRkJHk9em4MwJHCWH5dDJs1crZ+aFHzoUYczvEVBtmJwrhXddBqOedIoKv1lqXeoEPV QDAMyX0kwtLWGp788+plo7DzmlVCeS7bxMckPIGRW6LRHUXt9WmLzra60CHEReDpIaOw52lcnoaZt UzteNyaup0sJCgCOo1CyJ9RQnR1RvMD0aTEdhFNsHhg4LdB2cWM0MVGBG1dU6su1h4uxIUM+FHPay wImwQUmJf2P53aR9WBcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxlf-0000000CibB-1De1; Fri, 02 Feb 2024 17:55:59 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxlY-0000000CiXr-4ATO for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2024 17:55:56 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 412HthxX030367; Fri, 2 Feb 2024 11:55:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706896543; bh=Vr15aner70yVXaHBFlAcgeLFRPozQNQYOHKtYk6Y8CE=; h=From:To:CC:Subject:Date; b=sQ25Q8lRPE4GkcyDs3KKXlSerUz8PWSTgoyvRF5kMJAmymb2Wd2yy6LhE5iZXbT6n MH4tL3RLcB0T50dumaRC7L/QvZt7v2kt3z3xYJV878JA4TU8Kave+s2uWaMe466c6n v7x0dwISaWda/jyfVJMz16t9g6lU6fNJzQTJEdSI= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 412HthTV003944 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Feb 2024 11:55:43 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 2 Feb 2024 11:55:43 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 2 Feb 2024 11:55:43 -0600 Received: from localhost ([10.249.48.175]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 412HtggK114579; Fri, 2 Feb 2024 11:55:42 -0600 From: Hari Nagalla To: , , , , , , , , , CC: , , , Subject: [PATCH v7 0/5] TI K3 M4F support on AM64x and AM62x SoCs Date: Fri, 2 Feb 2024 11:55:33 -0600 Message-ID: <20240202175538.1705-1-hnagalla@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240202_095553_148158_DC839D80 X-CRM114-Status: GOOD ( 10.74 ) 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 The following series introduces K3 M4F remoteproc driver support for AM64x and AM62x SoC families. These SoCs have a ARM Cortex M4F core in the MCU voltage domain. For safety oriented applications, this core is operated independently with out any IPC to other cores on the SoC. However, for non safety applications, some customers use it as a remote processor and so linux remote proc support is extended to the M4F core. See AM64x Technical Reference Manual (SPRUIM2C – SEPTEMBER 2021) for further details: https://www.ti.com/lit/pdf/SPRUIM2 See AM62x Technical Reference Manual (SPRUIV7A – MAY 2022) for further details: https://www.ti.com/lit/pdf/SPRUIV7A kernel build log: https://paste.sr.ht/~hnagalla/be9d1c45e176ea8fa274ab13a3da43a9853fcf7f dt-binding-check log: https://paste.sr.ht/~hnagalla/25912c85f6a8c68e3da24053fc060f38024fb8ab kernel boot log: https://paste.sr.ht/~hnagalla/5ba77847343f22b5f9ec2b7aeabc410aaf8cdf45 Hari Nagalla (2): dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs arm64: defconfig: Enable TI K3 M4 remote proc driver Martyn Welch (3): remoteproc: k3: Move out data structures common with M4 driver remoteproc: k3: Move out functions common with M4 driver remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 138 ++ arch/arm64/configs/defconfig | 1 + drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 3 +- drivers/remoteproc/ti_k3_common.c | 583 ++++++++ drivers/remoteproc/ti_k3_common.h | 107 ++ drivers/remoteproc/ti_k3_dsp_remoteproc.c | 1277 +++++------------ drivers/remoteproc/ti_k3_m4_remoteproc.c | 327 +++++ 8 files changed, 1539 insertions(+), 910 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml create mode 100644 drivers/remoteproc/ti_k3_common.c create mode 100644 drivers/remoteproc/ti_k3_common.h rewrite drivers/remoteproc/ti_k3_dsp_remoteproc.c (67%) create mode 100644 drivers/remoteproc/ti_k3_m4_remoteproc.c