From patchwork Fri Dec 30 13:24:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Nagalla X-Patchwork-Id: 37658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2889800wrt; Fri, 30 Dec 2022 05:25:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXsnQhqRy139emlhr2Zf54ufg4qZUND/pXUgyRUDsu6LLqDazk/S1YClNqd4Q7zhE2SxXjJI X-Received: by 2002:a17:90b:4394:b0:221:4338:a6ae with SMTP id in20-20020a17090b439400b002214338a6aemr35229187pjb.33.1672406755720; Fri, 30 Dec 2022 05:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672406755; cv=none; d=google.com; s=arc-20160816; b=Nr3UwcOyJ/gIYW6dwD227p7WIDhGJdaChaHollGBFmQe392szyK4ny3WQt8jm/Fcsg pkRItwZVL0Tg3Pdq9/xt2zs3NMLwpqWzRDxWwIJzVXpCAACZrp+kWw7DxKXscUMjfeGF 6W7YL1ajOmzKg74XuvlPIHIondXtHg8uFRiaB+G5/vmPjGvt3BKLdy3FxLP7AWfifdGy ZfcFTbvg/T5AJiRous9bkd9/InVX4wwWmR2qlQDIvwVQ39K2OuQA35HY1tqVmUX7sZat +R187sgk/k4Jrc+hi4/hq2aQM525pGBLDkZIR7P4IDp/akhHTxBjz2z1pV/ynnmsX30d zdJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WO4Y8vUCp21lFUkUdF3407m4KVYqI2VCXfKh1g4gn+E=; b=bWBiJ5hPe1CdyRIFPRnBomG1pFBN5NPqaMzo/xuV7kNF9ECJIUfXADDVp23fq9NMAa r2EDYdgrF79yGsL/BeJLKaGQNK/Dmpe2il4ajOtF4OICE4s6l1FLe7Xt80lVYOPPFp/T 3j81oK/Ng4NRB65oZR76cRIHRT6WxuXxEIm6knIer5aiGtJeb7m9Lc2VUGGjuGyiorod lCeftT+lJWcQtcYOeSGPGg+oNR8vvFvyT1kAhFwQWeXBT7Nf9fhwr8wOkmFRfY8h9pIb Q2kEeuEADyDhQPr9u9sS0/OgBstoFQT0PMfDNDvta63gJwLX9mOwQJmzFnWFlRoJucca yOLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="SGw/OL+X"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a631308000000b00412607fea43si21864287pgl.617.2022.12.30.05.25.43; Fri, 30 Dec 2022 05:25:55 -0800 (PST) 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="SGw/OL+X"; 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 S235036AbiL3NZW (ORCPT + 99 others); Fri, 30 Dec 2022 08:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiL3NZF (ORCPT ); Fri, 30 Dec 2022 08:25:05 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 858BB1B1CE; Fri, 30 Dec 2022 05:25:04 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2BUDOseN049185; Fri, 30 Dec 2022 07:24:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1672406694; bh=WO4Y8vUCp21lFUkUdF3407m4KVYqI2VCXfKh1g4gn+E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SGw/OL+XqQ69OBxjr/ZkNSkaA5aqLreW4/k3Cq/UkhjY4oiEhWXmO/s6A5mGTcqeh kvBmjGxi6eg8216QCSRbjccOD5cRDS3CKtSzMN7pK7LYrJnAgSLEkKr+b52+Ur1l5K GDEsnsuT7VrJnfbzWpbvPjsqaCu9uLPnv6m3Olyw= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2BUDOs0t099954 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Dec 2022 07:24:54 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 30 Dec 2022 07:24:54 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 30 Dec 2022 07:24:54 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2BUDOsVp016910; Fri, 30 Dec 2022 07:24:54 -0600 From: Hari Nagalla To: , , , , , , , , CC: , , , , , , Subject: [PATCH v2 2/2] remoteproc: k3-c7x: Add support for C7xv DSP on AM62A SoC Date: Fri, 30 Dec 2022 07:24:53 -0600 Message-ID: <20221230132453.32022-3-hnagalla@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221230132453.32022-1-hnagalla@ti.com> References: <20221230132453.32022-1-hnagalla@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753645585908599039?= X-GMAIL-MSGID: =?utf-8?q?1753645585908599039?= From: Jai Luthra Add support to the K3 DSP remoteproc driver to configure the C7xv subsystem core on AM62A SoCs. The C7xv susbsytem is based on C71 DSP with anlytics engine for deep learning purposes. The remoteproc handling for device management is similar to the C66/C71 DSPs on K3 J7 family SoCs, even though there are additional hardware accelerators and IP updates to C7xv subsystem. Signed-off-by: Jai Luthra Signed-off-by: Hari Nagalla ----- V2: Correct original author and order of Signed-off-by --- drivers/remoteproc/ti_k3_dsp_remoteproc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c index eb9c64f7b9b4..ec626a37fef6 100644 --- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c +++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c @@ -870,6 +870,10 @@ static const struct k3_dsp_mem_data c71_mems[] = { { .name = "l1dram", .dev_addr = 0xe00000 }, }; +static const struct k3_dsp_mem_data c7xv_mems[] = { + { .name = "l2sram", .dev_addr = 0x800000 }, +}; + static const struct k3_dsp_dev_data c66_data = { .mems = c66_mems, .num_mems = ARRAY_SIZE(c66_mems), @@ -884,10 +888,18 @@ static const struct k3_dsp_dev_data c71_data = { .uses_lreset = false, }; +static const struct k3_dsp_dev_data c7xv_data = { + .mems = c7xv_mems, + .num_mems = ARRAY_SIZE(c7xv_mems), + .boot_align_addr = SZ_2M, + .uses_lreset = false, +}; + static const struct of_device_id k3_dsp_of_match[] = { { .compatible = "ti,j721e-c66-dsp", .data = &c66_data, }, { .compatible = "ti,j721e-c71-dsp", .data = &c71_data, }, { .compatible = "ti,j721s2-c71-dsp", .data = &c71_data, }, + { .compatible = "ti,am62a-c7xv-dsp", .data = &c7xv_data, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, k3_dsp_of_match);