From patchwork Wed Jul 29 11:02:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 247243 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1361091ilg; Wed, 29 Jul 2020 04:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNLAVoHrT9DliOuPOt4o/2Eg/uLfr1oPymymtJ/gYKI+qtRRnxIsVn98rBfVYPUDOGJr9B X-Received: by 2002:a17:906:a081:: with SMTP id q1mr28415225ejy.499.1596020581767; Wed, 29 Jul 2020 04:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596020581; cv=none; d=google.com; s=arc-20160816; b=A3uEhYmosnAb3MR+eWstNuJmOSK7cwWhpG7LlhQcgdZhupXUc/aUlQ7sWFKm6dFFWI +AhNm60KZUDQaqquut2NURnW3+Pjs1UI84Z8YM0WNdQrWyBHaxhE+sJDqaMoj4Ic8xwK l+Pgx7uUJ6uEbQD55x14M9/KtUXSix2gYWnZ5JH+8fvtL5wmk8tt8LYHWFvpMOePcnpa 2XBwmimdJiT1Xzw5Qi+N+C4tplVCfMKB/wY9R9mu1rIJzXqvmfz9oBAFCCYE7YMxHLlH nhcufq0rnV8YZB43CoBdNWS5tQoYREzEU9OhZ+qFmYukF1OXEAU4wIs0dHdQs3kbXnng S9jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QiFmk3KSZQ39stE85or5bcAb3a7bPvoIf0tQyJ62VJ0=; b=YpOarhisOBJuPMT6mUjAmaWqh42477vU/M/jnHf3hpq2E81rOELMwz4ynMyohHTXG7 cYgV6ElIMA8PYq4/LJesca3WPQ85CcWCvawENLNy0lSu6uXnjfeYC0U9fXS0x4oLE0ie H3FlYjT0cLpk65knDqIIs57Sv0j2MDzQUJRVIzuS52wozHkLDNtJCaaH6tbCjQBSVNBt How4H2kYulzYh+adI+oxcWe6I5+uzR87bbaRgx1O+XiTRxnBopqIKVzTv3lDWUB4lCMV xoGZskG9pbMREWOdLCtjcDC+CWMx9pmGYCwLu08heoav/I5q+5HgZFwwpfZiCq121E3t WjBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sjN/+9P1"; 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 cf15si1033818edb.350.2020.07.29.04.03.01; Wed, 29 Jul 2020 04:03:01 -0700 (PDT) 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="sjN/+9P1"; 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 S1726751AbgG2LC7 (ORCPT + 6 others); Wed, 29 Jul 2020 07:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbgG2LCu (ORCPT ); Wed, 29 Jul 2020 07:02:50 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3A9C0619D5 for ; Wed, 29 Jul 2020 04:02:48 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id b11so12775094lfe.10 for ; Wed, 29 Jul 2020 04:02:48 -0700 (PDT) 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; bh=QiFmk3KSZQ39stE85or5bcAb3a7bPvoIf0tQyJ62VJ0=; b=sjN/+9P1NpBZqS3azkNDN3xCe1tY/7xLBJ2o7Xs3c2Q8VnqJzIAUgsawV/A8lampUZ 5zj0+/hWnT6eeRFphtbjTGufo95GIyWm+x1dLe9VjSlRdFhiv+bE15ysqb7LjWuxFn4X glVKT1jE5XZBOY0UVx/wxfbnwPD+Y9AyVlZmbbqOCo5zhy5yx1o44tMKMva0dpxThKdS m93Mna9G4TTwqk02ddF9tz/G78xCqut7P768i43+rVRNMcewe8CkrbHT+VSPLZKlR8OT Jfi2HRWV0Kvmi800RnmJM2YYnZX+FExF1/5DHpTBDgLRZ6uU4bbfLfvWRT8ypxlXs46H 4JSg== 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; bh=QiFmk3KSZQ39stE85or5bcAb3a7bPvoIf0tQyJ62VJ0=; b=t2JKliRiJUMfnR/R7auC5kODSppK65zYSBe2PlxgEEwP4HSOalxiDjW3HAkuIqW8Z7 hczIKZQMHaFje0751uSL/JygtkhtHZhBdUKSAXJNkOTz18PiimaaDH4xkqmi3MU+sLFJ pauCm/Y2zvp7tENAPXdOfC3cJWlUqARTyNFVW17Mm4jOJsJBWaXkw9wlrK/5sutUcABk S/odH8lilV04gIOwTccYOrX0gQ5sqR4UilWd9dJUbZrFWnf8JR07liZTnXRrPILcUrOx cHLE1Zb7TDqxgvZyqMXSJtcWAvwHHIpHWoHFH2wsjp4uEgqtpmTLUOVOtD2C16v5V5ag nqPw== X-Gm-Message-State: AOAM5325ryREeGOaOzhf5CeciyzJEAoIyU1X0XY6T5VON4CZoBLsdNUR rHW+gKoTipAvrlYfAVQX8JmWkA== X-Received: by 2002:a05:6512:6d6:: with SMTP id u22mr16807134lff.13.1596020567419; Wed, 29 Jul 2020 04:02:47 -0700 (PDT) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id e12sm329283ljk.74.2020.07.29.04.02.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2020 04:02:46 -0700 (PDT) From: Grzegorz Jaszczyk To: ssantosh@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, santosh.shilimkar@oracle.com, 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, wmills@ti.com, praneeth@ti.com Subject: [PATCH 4/6] soc: ti: pruss: Add support for PRU-ICSS subsystems on AM57xx SoCs Date: Wed, 29 Jul 2020 13:02:06 +0200 Message-Id: <1596020528-19510-5-git-send-email-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596020528-19510-1-git-send-email-grzegorz.jaszczyk@linaro.org> References: <1596020528-19510-1-git-send-email-grzegorz.jaszczyk@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Suman Anna The AM57xx family of SoCs supports two PRU-ICSS instances, each of which has two PRU processor cores. The two PRU-ICSS instances are identical to each other, and are very similar to the PRU-ICSS1 of AM33xx/AM43xx except for a few minor differences like the RAM sizes and the number of interrupts coming into the MPU INTC. They do not have a programmable module reset line unlike those present on AM33xx/AM43xx SoCs. The modules are reset just like any other IP with the SoC's global cold/warm resets. Each PRU-ICSS's INTC is also preceded by a Crossbar that enables multiple external events to be routed to a specific number of input interrupt events. Any interrupt event directed towards PRUSS needs this crossbar to be setup properly on the firmware side. The existing PRUSS platform driver has been enhanced to support these AM57xx PRU-ICSS instances through new AM57xx specific compatible for properly probing and booting all the different PRU cores in each PRU-ICSS processor subsystem. A build dependency with SOC_DRA7XX is also added to enable the driver to be built in AM57xx-only configuration (there is no separate Kconfig option for AM57xx vs DRA7xx). Signed-off-by: Suman Anna Signed-off-by: Grzegorz Jaszczyk --- drivers/soc/ti/Kconfig | 2 +- drivers/soc/ti/pruss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 40d6a22..99dbc14 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -103,7 +103,7 @@ config TI_K3_SOCINFO config TI_PRUSS tristate "TI PRU-ICSS Subsystem Platform drivers" - depends on SOC_AM33XX || SOC_AM43XX + depends on SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX select MFD_SYSCON help TI PRU-ICSS Subsystem platform specific support. diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index 04938ba..5df4caa 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -161,6 +161,7 @@ static const struct of_device_id pruss_of_match[] = { { .compatible = "ti,am3356-pruss" }, { .compatible = "ti,am4376-pruss0", .data = &am437x_pruss0_data, }, { .compatible = "ti,am4376-pruss1", .data = &am437x_pruss1_data, }, + { .compatible = "ti,am5728-pruss" }, {}, }; MODULE_DEVICE_TABLE(of, pruss_of_match);