From patchwork Wed Sep 13 11:16:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hari Nagalla X-Patchwork-Id: 13382861 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 6EC23EDEC43 for ; Wed, 13 Sep 2023 11:17:40 +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=Z3VdffD1GZzRPmzRiNbBlBvGe/Fs2+NMNozH46GMORE=; b=cEbXfyI5PnFqFd Lies1L58NnZV4FOrUXMicGkMxj5x2GEVi2sBY0HDdZSHlDBPJydYkhmg3tXWhMOnPdSViPVAeP0ms PWVkHWINLLiMbMGbyge/dtJtyI1x4hpNqHuPNyejsLUeiymyoXZZeTYdsGMGqfI1NixMuRolAGoe2 EfJlJfsuXR3ySIJ0bfZXUoJrIvPovV1AC0DxzV/voQFdc0buSoUd+RT4vF+5AQeBetBPSSwvUJYEO 0mpzULeU1mIWvZyUsRI7D7hRy6Bxc7Aj//6xS2rfD+JsIBDZ+Dmq74tHBB2Ke1fkvOkNcdiNsDQOw K4R1Wb/lWb3K+3LQpnuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgNrs-005ioD-27; Wed, 13 Sep 2023 11:17:12 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgNrl-005im0-0P for linux-arm-kernel@lists.infradead.org; Wed, 13 Sep 2023 11:17:08 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38DBGrP4029335; Wed, 13 Sep 2023 06:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1694603813; bh=iwopYHKycH/d3Lm1X7x5sKpzyN7SrYd9qhdLWvscRNI=; h=From:To:CC:Subject:Date; b=oW52qQSSnqiynfndgbF5WkQ5yzjf6/QvgsmAOEbKG88AQcftvOODwqw97HLBBCe6p bsm6JCmXuwdtG/j7q+a+VGYd7D4v55BI35yiMLu7nNHxktvUCkVRv9kpYSbETnpQRM +7Kw9DGlDFnKxBzFDHvjyKnme74cVLj9L6e9/bFQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38DBGr2h098065 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Sep 2023 06:16:53 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 13 Sep 2023 06:16:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE104.ent.ti.com (157.170.170.34) 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; Wed, 13 Sep 2023 06:16:53 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38DBGr8s003631; Wed, 13 Sep 2023 06:16:53 -0500 From: Hari Nagalla To: , , , , , , CC: , , , Subject: [PATCH v6 0/4] TI K3 M4F support on AM64x and AM62x SoCs Date: Wed, 13 Sep 2023 06:16:40 -0500 Message-ID: <20230913111644.29889-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-20230913_041705_282647_AE5BB223 X-CRM114-Status: GOOD ( 11.24 ) 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 Hari Nagalla (1): dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs Martyn Welch (3): remoteproc: k3: Split out data structures common with M4 driver remoteproc: k3: Split out functions common with M4 driver remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 136 ++++ drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 3 +- drivers/remoteproc/ti_k3_common.c | 513 +++++++++++++++ drivers/remoteproc/ti_k3_common.h | 103 +++ drivers/remoteproc/ti_k3_dsp_remoteproc.c | 598 +----------------- drivers/remoteproc/ti_k3_m4_remoteproc.c | 331 ++++++++++ 7 files changed, 1127 insertions(+), 570 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 create mode 100644 drivers/remoteproc/ti_k3_m4_remoteproc.c