From patchwork Tue Aug 8 04:45:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hari Nagalla X-Patchwork-Id: 13345697 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 75656C04E69 for ; Tue, 8 Aug 2023 04:46:28 +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=1R7cL9bas2hpX/tIe7M6NOmDkfpmXEaXV2VaAc3Mibs=; b=UNf/BAScN/McfB w501vsFzPxzUWsVRnruzEP5JjSj+pQE37j4tRTop6HOxBNczif+SPnmERBAWpH71Zwwas2eUZHu+5 LouzMfPZV6NQWiDznxaWE/7lp5afKH3DkXk10BNFJyme+2JVqbujj3qaztiNCqLmds8nOjzjuJn0s NwS2//C2Krk8fHRdDaZ/9NIL6XhnCueJhR+2/SKDyNqZT6N+om9HA1FB6ikWItpj6vbXVN+HcOeRB rTkL7oPTPA1nHh2HGrq5oUQAiL4pUz5Bs18E04Ff857JY/uB2qSYnYyCfOyWFhLMTb7dZpoCJLdLz dtgqUuE3ky7CwsezJq5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTEbZ-001iwZ-1K; Tue, 08 Aug 2023 04:46:01 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTEbT-001it3-2E for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 04:45:58 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3784jWc9099071; Mon, 7 Aug 2023 23:45:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691469932; bh=gOn0Xm5Ns+UYBBHCJQY6EKsCBpx22wZiaoVRu7YAI+k=; h=From:To:CC:Subject:Date; b=rqr2b5PaKyOrcsbl3CuDDay802u2cvS9Dfq+opVKwjBwdlejXBOrxPYNhtnoFrMeD oRbzHCSDCXyxuDagw3FpjwhjSA/SE2aXEjFaRoj1vghCOXvNJGqdNorwcH1O5bbGre WJpZKXxq73hMFaMyRnJ+Qz2SSVm9e0SML32AaJC8= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3784jWEb073740 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Aug 2023 23:45:32 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 7 Aug 2023 23:45:32 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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; Mon, 7 Aug 2023 23:45:32 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3784jWBQ017300; Mon, 7 Aug 2023 23:45:32 -0500 From: Hari Nagalla To: , , , , , , , , , CC: , , , Subject: [PATCH v5 0/5] TI K3 M4F support on AM64x and AM62x SoCs Date: Mon, 7 Aug 2023 23:45:24 -0500 Message-ID: <20230808044529.25925-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-20230807_214555_814239_BE03A231 X-CRM114-Status: UNSURE ( 9.93 ) 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 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 Hari Nagalla (3): dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs arm64: dts: ti: k3-am62 : Add M4F remote proc node arm64: dts: ti: k3-am64 : Add M4F remote proc node Martyn Welch (2): 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 ++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 12 + .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 19 + arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 12 + arch/arm64/boot/dts/ti/k3-am642-evm.dts | 18 + arch/arm64/boot/dts/ti/k3-am642-sk.dts | 18 + drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 3 +- drivers/remoteproc/ti_k3_common.c | 513 +++++++++++++++ drivers/remoteproc/ti_k3_common.h | 108 ++++ drivers/remoteproc/ti_k3_dsp_remoteproc.c | 598 +----------------- drivers/remoteproc/ti_k3_m4_remoteproc.c | 333 ++++++++++ 12 files changed, 1213 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