From patchwork Sat Nov 14 08:46:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 324352 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1850092ils; Sat, 14 Nov 2020 00:48:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrlEf+1oUTi9GkN1BKLKonC3M3S7B5q2bSoAtps46a4EKrib4Y7Yj0EitB47jdvsHt7kc2 X-Received: by 2002:a50:d616:: with SMTP id x22mr6548914edi.221.1605343693635; Sat, 14 Nov 2020 00:48:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605343693; cv=none; d=google.com; s=arc-20160816; b=M1cK2oO0CI8HekJun8c3QQyFAJsLUloHalVGn2LFOJ7eCukDfKVm+RirS6jrdHGNQo v1NhihBYt//qjQQcabKOX93i6KvgUCJ/rQaE6Jy5Q/5HuuXtv3m4GkuTNp0E6dIdO2XE BYG/cvWwVaxgW1AZKwaf/UF71Gqswed5JbtP0D6U42MxclHtACcY3GeFLUxSKITk6QVv viJb7EkMkcH7gJbLAFqUDjnvCSRbi2oqVRAOWRF8D3xd8lRKZFLJ8Ya08gVuk/wWIJBB rzWh9KvE1YKC+eWJpaQXy5OmIgG/SQgw58gR7I4SAmGGauFSe2K+b/oZaI7U+6Hx5m3C ujbQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OCYSuNi1JCYOWWFaprqNxn30Bt1Uq8l9kVTd9Q510R8=; b=QIh0iHLpLpAok9BcRbPYaYTz/8mJXrqRO2OWuM52r8/WMnVY1qHxE29mA6Dxh//Mfo t1NuWDF1NItaE9Ub5aaaHlQeFB4EO3HPnQUbGIuKfLUWnhd7G5G4uQVjnbitbkwUQfbR LkCm5D1HLUFNwYOds/kHPu/wQxBXXrpjhs6BRULwSsQtZj3P0WqhPzplX10ZBlISKby3 W8Vodbn/EtDq5ZrbJhR5QccbfcWAkixlsJh+ekykdJA2nZvWnCbek3ls6xFpMcXfCcWz 0E2OWSBVJTR4szBOTS6iXAqbruOnzjAveE9RwBGet+hr9O+wdg7zmldlx67mVUijXBdy j3bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ejcL9da7; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si8307667edj.357.2020.11.14.00.48.13; Sat, 14 Nov 2020 00:48:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ejcL9da7; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726513AbgKNIqw (ORCPT + 3 others); Sat, 14 Nov 2020 03:46:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbgKNIqp (ORCPT ); Sat, 14 Nov 2020 03:46:45 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F1BC061A47 for ; Sat, 14 Nov 2020 00:46:45 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id 11so13873858ljf.2 for ; Sat, 14 Nov 2020 00:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OCYSuNi1JCYOWWFaprqNxn30Bt1Uq8l9kVTd9Q510R8=; b=ejcL9da7O8w5FN5tmzIGzQwAWtWpetZ/vbghzoH05lEbeuN/mcOxM8FGs9i2qAW4EE flv1xiKWnScN8Ms6/cZSXFMp5sMfgowpz+opFHNCGk4cqLGy9gdtFjVEBnQyQlZ/Ldsy /i/oY1l3khXDOtKKRzXfCSX/hrL8+KYNZVSH2JLZvDJDrZRQO7A8GhxLxa8I3GStmNn/ vW0krurjjgGfyb6ue6YXqp71viqOeoFZylV3KliWcnB+4+bGyY9ay1BtKu84dhuZ4628 yWlYNp+S1jGYZcyhFTZSUznE8CpevKxG0NfY+MEQhI0VYlqlJBPtG/brRZUWprZHVonz 1AtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OCYSuNi1JCYOWWFaprqNxn30Bt1Uq8l9kVTd9Q510R8=; b=QXJvkt1p+oUkTOlTRL/Z/p+05sFDsB1YFkjOcdrOytb7lBX0gQ789gxgRvRrwEgVWi +axBJH7hbvvZBCpsPELVGHbx+3Y4qi93mPj1IqyCxZ/Lr+BSdY9Y3IIX1auAqhynksvQ b/8QxoC9y0qxoa+/XlxK+QTCa5KnxrI/miRtdq2hpMFFLgHwP7kHYDrSiJ5jgMUnWyW9 ixn5uUeP5uQbMqkkOzSN7ZtTSIGFQa0v7QUTfRpYKLAUrN3XLQuFaffQF0+2DXHA6/TR oQBj3jzFMr4uiUW4a47kfWhQgMrofpTKy3JChnpscZLVrlFM2coooZmDKMe3a0RmhfmE F60w== X-Gm-Message-State: AOAM5301UZ4DsZGxgysXk30yPhGYr6o8lJs4WSuTFK6FbtSYHW+fP2Q4 EmGnw9ZaSyzGSRiKipFV88tjLA== X-Received: by 2002:a2e:2f0f:: with SMTP id v15mr2594592ljv.402.1605343603946; Sat, 14 Nov 2020 00:46:43 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id f62sm1870081lfd.144.2020.11.14.00.46.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2020 00:46:43 -0800 (PST) From: Grzegorz Jaszczyk To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, linux-remoteproc@vger.kernel.org, robh+dt@kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, rogerq@ti.com Subject: [PATCH 6/6] remoteproc/pru: Add support for various PRU cores on K3 J721E SoCs Date: Sat, 14 Nov 2020 09:46:13 +0100 Message-Id: <20201114084613.13503-7-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201114084613.13503-1-grzegorz.jaszczyk@linaro.org> References: <20201114084613.13503-1-grzegorz.jaszczyk@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Suman Anna The K3 J721E family of SoCs have a revised version of the AM65x ICSSG IP and contains two instances of this newer ICSSG IP. Each ICSSG processor subsystem contains 2 primary PRU cores, 2 auxiliary PRU cores called RTUs, and 2 new auxiliary cores called Transmit PRUs (Tx_PRUs). Enhance the existing PRU remoteproc driver to support these new PRU and RTU cores by using specific compatibles. The cores have the same memory copying limitations as on AM65x, so reuses the custom memcpy function within the driver's ELF loader implementation. The initial names for the firmware images for each PRU core are retrieved from DT nodes, and can be adjusted through sysfs if required. Signed-off-by: Suman Anna Co-developed-by: Grzegorz Jaszczyk Signed-off-by: Grzegorz Jaszczyk --- drivers/remoteproc/pru_rproc.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.29.0 diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 04c9f07799e2..98f9c598993f 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -855,6 +855,9 @@ static const struct of_device_id pru_rproc_match[] = { { .compatible = "ti,am654-pru", .data = &k3_pru_data }, { .compatible = "ti,am654-rtu", .data = &k3_rtu_data }, { .compatible = "ti,am654-tx-pru", .data = &k3_tx_pru_data }, + { .compatible = "ti,j721e-pru", .data = &k3_pru_data }, + { .compatible = "ti,j721e-rtu", .data = &k3_rtu_data }, + { .compatible = "ti,j721e-tx-pru", .data = &k3_tx_pru_data }, {}, }; MODULE_DEVICE_TABLE(of, pru_rproc_match);