From patchwork Tue Dec 8 14:10:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 339743 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3722833jai; Tue, 8 Dec 2020 06:13:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfo7yheBK2Tx58RtALuVA8SjfvBIfc6dkWMhgDZGIabq637KPSoY6hC6iUV7jXfHchsNNK X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr22660309ejn.424.1607436786638; Tue, 08 Dec 2020 06:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607436786; cv=none; d=google.com; s=arc-20160816; b=yaB+uJMoIpF9cS7b+1XSXu42+vaM4upnYQ07NNePTCaevJMmhbmNs4/i0Rwxsj9c+7 hQ9LvpX/amRQrX7Y+9vy26mPlfQ4wEmi2ULnrhxT3vnZDj4t+NN5W1nxnFXhj4sTVCBl qibvlhHXa3TUMlrtL/QTTQcMbshX0DeJ5X7QAKLxbz1W9J5zKgGPHMFV7ggCSY30tcoH Wjc15gLh9ADEm82PRxXQM7MNSMlCeavYhPwHvsWHUuwZzhKOq43bnP2ZFaojZywOnZ2z fYpYUcsm+VrH5jPFC6KYwmZ0UlWB3ba5THxTbI02JSIGSGUUnGrqaB4trxKtQ0Gm6HT9 LaXQ== 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=2ColZvFMxeBX2F8jNmrJL1c8E3SYpy08jyj4gqYNN2Q=; b=RwCDvAH9+rjys3BHUptbUXXeTQYeWSzJlnD8QdcL2XTNbO2LW9h41TRxAXb/ZTeL4z EaQMZ9h86VtdslulV+qBx8+X/pBvNjDU0P2OFZQkhuI+8BsiRyL0Adp1gGfLwr9lejxk 1c7WCQEsQmk/ZbQVwZsq9zohl50smmGUtY49bc8/0LBdK2xzZmYIPrxyeeyyjk88GH5V Lh7CWKdXHX0+yuHhq/15Jh5XGvpx77gn9yN1hnZ4RNbcQ90N8mXjjCUM9ritz5jqVBi7 MA51msCvYUYsGan03sWGU4iB5+yxXgHsY5CP69/aYwrbtqxRZqSuyRjm59cUHwvnJbSc m/ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="F/qSEHHi"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 y4si5275960eju.331.2020.12.08.06.13.06; Tue, 08 Dec 2020 06:13:06 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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="F/qSEHHi"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1729749AbgLHOMV (ORCPT + 6 others); Tue, 8 Dec 2020 09:12:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729752AbgLHOMQ (ORCPT ); Tue, 8 Dec 2020 09:12:16 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07AB7C0619D9 for ; Tue, 8 Dec 2020 06:10:49 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id x23so12569370lji.7 for ; Tue, 08 Dec 2020 06:10:48 -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=2ColZvFMxeBX2F8jNmrJL1c8E3SYpy08jyj4gqYNN2Q=; b=F/qSEHHimCf8rH5UvNdUHXdgEwBU/rlqYccUOT2bxodbri/gk8Sqdibs2NMzsEAzcO 4fhuiTBh6X4oPFv+D/gcuFPlTIPxOnCo4aG7Ug774m46ZqCtdh/SpQLhZupl49F9snVP NmCHLqUJtiVHRKBdHRKM+2zhZjQq/e0bc+w9x2tYgEAQzp6jMn+B34IavMEOChJn8xIS fcJsg60GI2pDYzfwYtgm15jMZ5Bx1KqMBii7Wc6NPAY/c3x6+WED5RWHnluhJ277kGvd fI17OZy2hTIKsgJk915wEy8Cm5yboxfD7X3jvKgO+whSRnemVeNclz5Cyb13d6StDetT XF5g== 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=2ColZvFMxeBX2F8jNmrJL1c8E3SYpy08jyj4gqYNN2Q=; b=dHRwTpIXZGkedU+naBdhoYczpobr8l5+aby8T14Az/s4W+8bgOHm1lyLoBB3x5EpDU PukrKmxn6TlV/213USjuH0mRsTQ1lm8s2+Az/G4ai+oyB2kLSHSA7faaA/KBTz9jqIgb Xr5stfxDM3HCb35DB/xhjjLSWd5wAd0ZeWfEtEY9GwqiT3ZCBUdJMczt/bIMYwAbdzJ7 eFrRnQkQ3hQcnZAahe68m6w0XYxvrSV3f2Of6DJVtWmduHvCWBmWDK/F1j2O0rYDHTVV KZ8bA4Mpw/C3mPL7xqZpAS9u7Qs7ZYjUIvzlzQflkPdPcHIAxXFTheCrv07jJPE37FZ9 F5yA== X-Gm-Message-State: AOAM530Gf8wRCP07Tl94s8ze3hD/0DFxipQlWNEHhIBT5MpR6zQ0IExM ty9HiU465BqHEQrJ+UNuvk0XkA== X-Received: by 2002:a05:651c:113c:: with SMTP id e28mr2820609ljo.252.1607436647436; Tue, 08 Dec 2020 06:10:47 -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 h23sm417017ljh.115.2020.12.08.06.10.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2020 06:10:46 -0800 (PST) From: Grzegorz Jaszczyk To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, linux-remoteproc@vger.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 v4 6/6] remoteproc: pru: Add support for various PRU cores on K3 J721E SoCs Date: Tue, 8 Dec 2020 15:10:02 +0100 Message-Id: <20201208141002.17777-7-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201208141002.17777-1-grzegorz.jaszczyk@linaro.org> References: <20201208141002.17777-1-grzegorz.jaszczyk@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Mathieu Poirier --- v3->v4: - No changes. v2->v3: - Add Reviewed-by: tag --- 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 421ebbc1c02d..2667919d76b3 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -850,6 +850,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);