From patchwork Fri Aug 2 15:21:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13751662 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 215C4C3DA4A for ; Fri, 2 Aug 2024 15:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=dMzobiPINGynYJxO6pCSmRhcNi3u9bYwLfHSjQ3otRc=; b=ZPlTGZXkRhPwQhbHJLHHtRJmxl /fTvrLsB+puq/0FHmZVQ3I3u3JIULZ/JwBKxj0wyqv/aSP+2oKtb34/NLiJjG4TFqb2QTPotgu2d9 10RC91GnSK9fQ+Qkemydn4YpKj7EGQ44T8uzQ284wpvO/S+01pev4wK4Q2cHng30Ea2UZpjr5y4ey oftg4djLslgwgNz7xb6f1FVn9QkjmQfxmti4WCo0IkexepA49+LIKu3dXG2gdbKdGWN5u4GDfZu5a GJqoYI/TMd4cnRFl72qbUVa6z5MPBiJajjYPxr3sOjakEhVansGt94sAHo1k1uMw0R+bTdTuAiFAk JHjocECA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZu6m-00000009FX0-0eo6; Fri, 02 Aug 2024 15:22:20 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZu5k-00000009FB1-3qbw for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 15:21:19 +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 472FLBJs109018; Fri, 2 Aug 2024 10:21:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1722612071; bh=dMzobiPINGynYJxO6pCSmRhcNi3u9bYwLfHSjQ3otRc=; h=From:To:CC:Subject:Date; b=tI2xGgd7WEQ1T98bJBVtFH82zYMLZRihab8oaT+vyvlIsfztlO3M3qNxbSXQ0b8xB ieUXIT7/vCdrHmnbzoeP56H16JKmqFLnvOy+d3LP+uvedk5Q1teyJ4n2rOp8CuF3aC q42GLisXTZcNjLNFX4vGhWLO6IkTmPTJLYgW4WXw= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 472FLBt3099547 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Aug 2024 10:21:11 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 2 Aug 2024 10:21:10 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE108.ent.ti.com (10.64.6.29) 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 Aug 2024 10:21:11 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 472FLAeo007504; Fri, 2 Aug 2024 10:21:10 -0500 From: Andrew Davis To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Philipp Zabel , Hari Nagalla CC: , , , , Andrew Davis Subject: [PATCH v11 0/9] TI K3 M4F support on AM62 and AM64 SoCs Date: Fri, 2 Aug 2024 10:21:00 -0500 Message-ID: <20240802152109.137243-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 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-20240802_082117_159718_0467CAC1 X-CRM114-Status: GOOD ( 16.34 ) 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 all, This is the continuation of the M4F RProc support series from here[0]. I'm helping out with the upstream task for Hari and so versions (v8+) is a little different than the previous(v7-) postings[0]. Most notable change I've introduced being the patches factoring out common support from the current K3 R5 and DSP drivers have been dropped. I'd like to do that re-factor *after* getting this driver in shape, that way we have 3 similar drivers to factor out from vs trying to make those changes in parallel with the series adding M4 support. Anyway, details on our M4F subsystem can be found the the AM62 TRM in the section on the same: AM62x Technical Reference Manual (SPRUIV7A – MAY 2022) https://www.ti.com/lit/pdf/SPRUIV7A Thanks, Andrew [0] https://lore.kernel.org/linux-arm-kernel/20240202175538.1705-5-hnagalla@ti.com/T/ Changes for v11: - Added patch [2/9] factoring out a common function - Addressed comments by Mathieu from v10 - Rebased on v6.11-rc1 - Small reworks in driver for readability Changes for v10: - Rebased on v6.10-rc3 - Added AM64 M4 support in DT - Addressed comments by Mathieu from v9 Changes for v9: - Fixed reserved-memory.yaml text in [1/5] - Split dts patch into one for SoC and one for board enable - Corrected DT property order and formatting [4/5][5/5] Andrew Davis (1): remoteproc: k3: Factor out TI-SCI processor control OF get function Hari Nagalla (7): dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs arm64: dts: ti: k3-am62: Add M4F remoteproc node arm64: dts: ti: k3-am625-sk: Add M4F remoteproc node arm64: dts: ti: k3-am64: Add M4F remoteproc node arm64: dts: ti: k3-am642-sk: Add M4F remoteproc node arm64: dts: ti: k3-am642-evm: Add M4F remoteproc node arm64: defconfig: Enable TI K3 M4 remoteproc driver Martyn Welch (1): remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 125 ++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 13 + .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 19 + arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 13 + arch/arm64/boot/dts/ti/k3-am642-evm.dts | 19 + arch/arm64/boot/dts/ti/k3-am642-sk.dts | 19 + arch/arm64/configs/defconfig | 1 + drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/ti_k3_dsp_remoteproc.c | 28 +- drivers/remoteproc/ti_k3_m4_remoteproc.c | 667 ++++++++++++++++++ drivers/remoteproc/ti_k3_r5_remoteproc.c | 28 +- drivers/remoteproc/ti_sci_proc.h | 26 + 13 files changed, 918 insertions(+), 54 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml create mode 100644 drivers/remoteproc/ti_k3_m4_remoteproc.c Tested-by: Wadim Egorov