From patchwork Fri Dec 4 20:18:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 337772 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp740200jai; Fri, 4 Dec 2020 12:20:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/59iTqr5Rw73Xj5yGyRz1Yc62pxa0xETUm+LiCAXwUiGDZsOp1V9uk3zgssruZg86gwR9 X-Received: by 2002:a17:906:b2d1:: with SMTP id cf17mr8999193ejb.281.1607113216557; Fri, 04 Dec 2020 12:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607113216; cv=none; d=google.com; s=arc-20160816; b=dVvMK3M2JW6VTHx6tlgeOwNfq5F1XMFvq/DCsu1ttB0RbwNahd23M2FIbe7XrDrueG jO54JDwmn+tsjUYwC8CwrxsXr8jcKmzEwCEllkAdPJOoj7+azqoRBa6wCw6rHXEIL23g at15nghGDnfYAPzue2AuvVaUGPnoS884dcl9YLN56gavmhbJayTl5AlJYfX1XvqfW1hl /6s2MGTZDC+9QyGiuKYfkz+AAxhpLgcMiotYWf4A/yff7kPKt9h37jIsG91IuRT5UeBx aOdxD8bKL8mlcTJK785BBl5CXICH6xQkqtjtGpsGWAHZUkBm8NFyfMvfjE4w7/y7kOs8 eqEA== 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=u6TvCy/F7eRWtUNo/MxFFiMZO9h7izN6lekg9c6lpkc=; b=w7lAujtsSUdvzXR+Epvh39hJ0jCbjv6b2sdu7a1TMMaapKHYhAl7PrUx7OKSLczarZ +FBqvcAQS/kvg1VB28CIMiJqMQiOxcQ71+/HkIVQ7Ja39tmDEUVHqhAd89kojArT3RSR 2n1DU8LdM3WdbRp63u/rkdgHxuD70hVU701SOqWc5i/bNzGOJfa9opMHuxdQ1k0g89na ffMbjMqV8vFESGslMqH79vtKJcAibxitHxL3pBO0mahq70Y87FJCqNLPs+iZYJk49NZj tqVY2Km7WStzridpjxw1ByuwpatgUPuIOflTS5DxpflB6QjOBLeG24dZDv6dyFGpLgT/ LRlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zTJIsspa; 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 o2si2073501ejn.501.2020.12.04.12.20.16; Fri, 04 Dec 2020 12:20:16 -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=zTJIsspa; 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 S2387680AbgLDUTy (ORCPT + 6 others); Fri, 4 Dec 2020 15:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387494AbgLDUTx (ORCPT ); Fri, 4 Dec 2020 15:19:53 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 560C5C09424F for ; Fri, 4 Dec 2020 12:18:26 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id r24so9364875lfm.8 for ; Fri, 04 Dec 2020 12:18:26 -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=u6TvCy/F7eRWtUNo/MxFFiMZO9h7izN6lekg9c6lpkc=; b=zTJIsspapB64C5r5loN0+0GDKLFNDnEMlGm5RHOQgShnFOeXFexxBihVypXTdPf1n1 TcoPsxiTRkIZlexfVgyIdhu1JYBbMGlycaL3NBzLTldpom6UA6jl7BF02ALHZXNgg3/V 2zfG9moKzOBr5l3ppCWUh6kTsw9UhqC1tM2m6bQTJRq0x7DO1YgfPLSswbgpNr4KpgpI miSL76z/9e4UCkjK/0H+g8awm2BPHn+Hf+zfm+k+ezxb8OQ5CMfwI9TGc+TizhmPD6wq Tmkvwz3zxxWbVeoKvQfuly+EJ4XK9Ak+kSMTpa/NU7eIlmpLay2xmx5Qadj7s37igAAZ 2jfQ== 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=u6TvCy/F7eRWtUNo/MxFFiMZO9h7izN6lekg9c6lpkc=; b=jL583eHrNdInuMhnKHzdWn7s8y8DfXQVNpepj2vs3DNJdgKpAnY4skQ5dtDQ2hHbdP bRdnFAAJdtTlZWOvZbLzPmXG1sbDxlWhSxvzi2xrLm64D9Y6QkQuT0V1anqlhWhSquMA jKsoZlhq57un1ekiIqsIxXRPWLmaj85H3wIF4dY5Oe8HzR9SUhCOXZBbabYKX5LMeLfs OXTaXruLNqgdRVlk33EvJWOBvhCz+HVRaTec2ZMS0vjtU0bmIzypb8NE4FFav7tZzbhJ GtuB994ktLciL7jfBdHScU3cnA3vZIjDG+jN4ni6MjuB0IVQ1XhdLK1UIZGlKqrIbYgS lW4A== X-Gm-Message-State: AOAM531D3EDr7OPuvS5eg1DHdz2v9GHJa5SuGKMbhDnnUrC4f/QtIYFD oe3xqVLpZwXWVkj7k6rqf8JlKQ== X-Received: by 2002:ac2:5307:: with SMTP id c7mr3694123lfh.28.1607113104899; Fri, 04 Dec 2020 12:18:24 -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 w21sm2036918lff.280.2020.12.04.12.18.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2020 12:18:24 -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 v3 6/6] remoteproc: pru: Add support for various PRU cores on K3 J721E SoCs Date: Fri, 4 Dec 2020 21:18:07 +0100 Message-Id: <20201204201807.14716-7-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201204201807.14716-1-grzegorz.jaszczyk@linaro.org> References: <20201204201807.14716-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 --- 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 f76423792acb..e32123c099de 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -849,6 +849,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);