Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4734576rwb; Tue, 8 Aug 2023 13:00:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGInHx6M72ZwTVeIJ/0pTHA4eAuhd3Clh5/c+yoxVbcGIU2KP5urQCAZ+U3jQfTuwGh3Tl3 X-Received: by 2002:a05:6a00:1813:b0:672:264c:e8cf with SMTP id y19-20020a056a00181300b00672264ce8cfmr670697pfa.7.1691524845191; Tue, 08 Aug 2023 13:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524845; cv=none; d=google.com; s=arc-20160816; b=HGTztxeJaAoC60DWGVc4BMayETB/x05vPBLdNknV45ozALG1q68Z/mgxwc6fV+gTNw Ox0M3kxRPpxug73JYzH6sNFyw05Mt8MTi3hK22wTZSFHl2HAzdSrYqX3mZTWMxJkypHG AP/fm4C29CNhhEBohARlpSTMjuuMRmDf5GAlNHEiR0FOljjPVR4FXn9j25NeI33XyTSA kZ4MQUxPkDTjEav/arhmqGZimt0EOyY8UNtbxCi6rxrOACZcF2Bu/N0O/WiN5Z2nd9fm D+VQOUm7PSWYOJT7En4KXl2T5gLpCeI620Mtahe/jpzaFbD+l7cekBntzBwhVOe9h0ch oBOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gOn0Xm5Ns+UYBBHCJQY6EKsCBpx22wZiaoVRu7YAI+k=; fh=nRWqd2TuJEToaeDtwXX1WSffarGhTfUlSdLYacAxjOE=; b=Pduy3zOaAeOoPXOH+eKyHqEWgeTDKkNDivWh857nHNS04kLSeHXqmfHcTLwK99VVev 51QZoim60LqcLDRkEC0Wlu79zaOCeKnYN+tzNprojDfjFrNaeoYb7X4CixC2WPF3l2R1 HpwzaGsQ5Gp/Y8MGtu+4A/W6zVM/gRGMWqL4Ei7Y6A6bsXypJNBxkB7xluuZEi3YEESr tr/MkNRYxtyRGuz/86oKn1bkEOnPta0PriG6B8Nt9XZLuamC69OZfSbiODZiVwDu4H/8 T8GG+gbSu2dpw+WklluDhYDoOYB9+2S84EAbYVgN+21pgGAVswhUGAcxLo1Qcm2gZSlm H/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rqr2b5Pa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a056a00234900b0067a0b355523si7835233pfj.116.2023.08.08.13.00.29; Tue, 08 Aug 2023 13:00:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rqr2b5Pa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236268AbjHHTdc (ORCPT + 99 others); Tue, 8 Aug 2023 15:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236267AbjHHTdQ (ORCPT ); Tue, 8 Aug 2023 15:33:16 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D314AC791; Tue, 8 Aug 2023 12:04:58 -0700 (PDT) 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.34.1