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: 13911 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1100619vqx; Wed, 13 Sep 2023 06:52:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEF/sCkjN0NYLk2vtIfXHX67+IFEv4xPZkO5vI57GJhUsRrweRshsd0/Bbk4LLWdCxeZwtb X-Received: by 2002:a05:6a20:1443:b0:153:3d8f:cb29 with SMTP id a3-20020a056a20144300b001533d8fcb29mr2500684pzi.24.1694613163628; Wed, 13 Sep 2023 06:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694613163; cv=none; d=google.com; s=arc-20160816; b=SJORFzkQeceVHv4MRP7dvYoL/eNtgXy0jblwkyuDkmyfdMQHvY5AtX3uPs5Lt/LjH0 BoP2Dx2IyBJ1Ywxc2zLKYG3b3xeGS4owgouQnM76MbzJupI89S9ANC1lJwBRaAXiuGyq YoLN1ugnx0s1XjZ137iNQE+/Af1n2wM6ANBGF3r8m62O306zlNe4iGlR//tMXW1+9mqB Byh9GNKQgUkGD/Zw5nJG1SzLgeEnHRJYN/Rj6kX2foSYhCYYPDELvT7r5sEy7y9/n0Z0 gbo8PEZV2eF/XIoCvfBVLFDb4Gv9vF3zEg0j26v+IgAA/uGEe641Y1N+8kWpUAkkodZY sGIg== 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=iwopYHKycH/d3Lm1X7x5sKpzyN7SrYd9qhdLWvscRNI=; fh=lBkffGNOYZekX7pj+ncB7h0tNZ281luWirIUmv4Xhu0=; b=0WrUafDBjzjKVycjaq18WhLB8+/Nu0AuEbF9ydVag+/0QAp/XbZkHl6tioTCb3iqvC 6SV5TpGNHYtoATPPtVTSvvnYdz27xU20CzUzMz4qP/gaz/oys258e7RrO5cmMOdXy+TC zwx46jL+i/ycmOPGBNKRtxajiyc7jB/LVidNhx3y/AkUvygCNMh7i1xWXSXG7/kkX81k VN30BOLa2m3t+M9ON6RCaF8tJok5VI/7VrZ/5Tg07MMaOHWJRVOp/xibJNUCo5MbwMPM jmy3A4Fysqjv7rR1vkmjc25Pe5WR0Ebi27MmkFB2JnnKegym/37z4nTeJJsmk5u4c/ry 8nWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oW52qQSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a11-20020a056a001d0b00b00682a0e45b59si10093505pfx.85.2023.09.13.06.52.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:52:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oW52qQSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 23F0680DB9F8; Wed, 13 Sep 2023 04:17:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239964AbjIMLRT (ORCPT + 36 others); Wed, 13 Sep 2023 07:17:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237605AbjIMLRP (ORCPT ); Wed, 13 Sep 2023 07:17:15 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A3781BD1; Wed, 13 Sep 2023 04:17:11 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 04:17:34 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776930692568932725 X-GMAIL-MSGID: 1776930692568932725 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