Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1754196pxb; Sat, 14 Nov 2020 00:49:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMppfKWK7gqE7YgOYQuOdrYmwrrd6mkBLcj21GDnPZSKxkmfCAK9AMiGXRxavszkuKXPyV X-Received: by 2002:a17:906:4059:: with SMTP id y25mr5857827ejj.498.1605343777967; Sat, 14 Nov 2020 00:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605343777; cv=none; d=google.com; s=arc-20160816; b=gj5Ic3K0l1shpvV1L8qjokSMbD/7hXKVlMZaaU68CrJR2ZlseAX/uuRQMQAcUQ0U0G loo3ifi8MJCozAovJTWZEMdHSgjA6Yh6MmcGowv948c+/2ACLSjeonmgvQfqjZGfim7l hSbtv9ntEqIQtxfReWmjFB5Qbhp1n1NiFScCH61kbn2n/JLIubWWWT7c83yGt94f4hJh XdZfeq2101q8/FkOliCEa0Fzp2I6DmMfcpKsh1ZI9D1EB5IGJFmBcwj8n2U5Kd27hK2U NtAwtZcCVJ5oBOLK0fwtMORQsDsxk/PC2a5a8tpvLK+Rw84tMA+fu/AvciUapfiYW9Cq oMIg== 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=wFBGi3BYK928k/jiQZXMRWFx5WDoYp6stiDITE/AhH1Z+GLzvQnTIT8EWRyY49tI7X OWyyQU0PETuhj3N3TF9nvatW04fFvCQb/HKuzHZhtLE0IvIu76TNGdknxlsMKPyLzp3s OuptM1MtlcjwY93nk03d+ez7oQE399T3SzkUDD12Uctf+APH3auEeYExEFF10ulzNzgD 29Y1kGU1MAIEMRuJX9KO0MEedr+lCQXFPDzoIuD0yw9H9w4qtEcKU1QVm4cu1SVPLdJ/ 1Ts7A8L6n6gWLf5fqfXV1nq+b+h8uwU343ZZh712kcdQnNptzsWz/LdMQWm+xijXU//2 +7LQ== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 y18si8177672ejb.408.2020.11.14.00.49.15; Sat, 14 Nov 2020 00:49:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726756AbgKNIqr (ORCPT + 99 others); Sat, 14 Nov 2020 03:46:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbgKNIqp (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 72931C061A04 for ; Sat, 14 Nov 2020 00:46:45 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id o24so13838112ljj.6 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=uMQcg+0APDr6riuseyUpgoL4kIy6/5HQ0OshFRKRaQrqHqj+S3r2DDDm+ok+RsJV2N EfTOQsfIU7oEaelZyU+FC/8mb5SyisgAIBVvaMP8lPSoaf+dViDGqeW4PjppMpCywFC6 /HWlFWBwlrgBIQOpZ6+Id3w7ln+eO86mS5bzjOv7MXt/qldFX6jMGvkK+6rul13Jnsp3 pQAaTdZVCV59l+Y83wiKHueHNgazYh+KI7BpT0WkS+U6b4hVNZuN1tepofZecf24kqX5 /ymR9gJyt0fJeZkH+X4rzhDf9iHw/tPn5kBlilRIxJcdmA1Sf1gXbjgsjxVldN5IU3dw wx8g== X-Gm-Message-State: AOAM531heLTVteoTqzjyh84n0oEptwk8a+ZLLgn9lpEXjEjh/cJdU74M hivYP0yduexUMqDb8hjMYPxlwA== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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); -- 2.29.0