From patchwork Fri Aug 21 14:42:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 248127 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp413305ils; Fri, 21 Aug 2020 07:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGPdqI/Rb2z8GNwdsuvimeehXo+Jz1DsxvjO3hDTX8nNWsOGGOz+Aql6gNPaFbhhww1pOf X-Received: by 2002:a50:fe0a:: with SMTP id f10mr3079287edt.264.1598021097533; Fri, 21 Aug 2020 07:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598021097; cv=none; d=google.com; s=arc-20160816; b=W6vMP6ugm4fgEY16mnAQe8euuqQm6ddMOSDjPYucgQaYlc7cuTLnbejo8bqy/3syK1 yECnFKUQgx06jUkrVYHBvPFbRj122hVB0FQfmn6YarWx54CY176CoaeMOiUGy5Pvb6VM jmKMDCbvUqWwG4rogg/1u6v13CfGtUH6gica4cEUm//o2xJVoFuqJRsovBlejM7PHRPH Rzc4d+8K1XZtl1ZR45497oRBHxZrvOiVxxJE3DJlhMJnG1NbDCrTaXgZ5g7xCMtnNnLb wgt+CpQbcp84KplZ5QZbnNyrETPcPxTzTuaNEiYDFg/0IuZ7LuGYBzfkgfIln/BVy4iF aLwg== 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=aXHPVuBnUltzTW16E/CnLpjc3EIf1ZbgHUhxEqUcDwc=; b=lGJWLYMev+rW1BBYKJctGhgzZ/cdufLmZVY2996a/BlfGPy60tsGF6RbImFRyJqDTQ /n5aJoj1JUfFjw4hXjdNk0RfRx9nB8zHvb25l+CjfHZVbOjPr6tmXovIy+mpryfZ0d5g ipXnbaqyIm3VL04bD/2JTMPLaERGocdaT495oUM8yaTjdHHL8HL4ybmxur8ID2fiGCuM ZmW1k9aFBFVcXSS9T8Z/kncWW2E2AanxSRjzEykuDsRuHqlo+KoL2hzfWU2mZa6qQtlf BUfpnK+G9qPj8jyxpKijZcVfe1OL15E+oggCc3HA2ShrvAaN6fyo8ZCByep3lNpfRwqV LUpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0iV8Pe4; 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 k7si1317141edx.608.2020.08.21.07.44.57; Fri, 21 Aug 2020 07:44:57 -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=r0iV8Pe4; 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 S1727864AbgHUOoy (ORCPT + 6 others); Fri, 21 Aug 2020 10:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbgHUOoa (ORCPT ); Fri, 21 Aug 2020 10:44:30 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13A67C0613ED for ; Fri, 21 Aug 2020 07:44:30 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id b11so1031044lfe.10 for ; Fri, 21 Aug 2020 07:44:29 -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=aXHPVuBnUltzTW16E/CnLpjc3EIf1ZbgHUhxEqUcDwc=; b=r0iV8Pe4LG5mSz7gWwPDu4qiBMSkQWiFp7Zm5mwLQ7zpUwsfMOkaZahYP+quUzI+0K 5doGgwPxZPE6l+dMP7Neddt7GCsYf1u3+kRV64Qla5r8XyELCd9SsQ5EplzNXrhVEDeq yZMUqfMnjPBEI47t28a1wbGXhTJ/7f31kMz8WqoroRR3oXQLwbGD62spf+4bpIGm25+b uSRB1nK98lesOQx+FjHhkDCVjo2wevq73W0IixXBhuvxbeB9KI6CyCnJtpJqvvBLm9rb dlNbupG9u9jWPQauLWG3GM1vLnqrx412PJW2UD1w3aGtR+zNUW887QoFiHz7U/aHuJaV zh+A== 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=aXHPVuBnUltzTW16E/CnLpjc3EIf1ZbgHUhxEqUcDwc=; b=jw1LZwghBzqabINIg7rX02m3bShLEqtG/FvQm/Hoy6xi8KTKOW1dsVH9J3sj0NLVu0 zfKtrga43vU3n7YWcQaM+VhdlKUG3RE2S2nAMeael1b/81x+nIJmRihRAeIhGYIrOkVU boxrFFqXUVI/lYotJkxiIbn/IM7ZIV6tKHXwe+6bIuhKM/fUMEYz4CISgvfCbGr1jRAE V/rpWP58zBr9FWCqm0MCL3BukN5gUQ6CCKOIZxUuqpJPkyiII5FH+rwEWo2aXcp2kEde Q19WnsfQKQibgVlCrwHQuX4hA/1oiOIV4HUs9PBWUoc27iUysTBg60Kq4iFaE4i4a+5d haNw== X-Gm-Message-State: AOAM532oYNKcEQwsWC2i/AfhQvvRX2DDXtfugu7Ul5X0ZF0YMONBMUhz uP/Mkh2r0VlmI8/UPNWFqoUQ2Q== X-Received: by 2002:ac2:5338:: with SMTP id f24mr1606706lfh.5.1598021068437; Fri, 21 Aug 2020 07:44:28 -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 u10sm425301lfo.39.2020.08.21.07.44.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2020 07:44:27 -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, praneeth@ti.com, tony@atomide.com Subject: [PATCH v2 4/7] soc: ti: pruss: Add support for PRU-ICSS subsystems on AM57xx SoCs Date: Fri, 21 Aug 2020 16:42:41 +0200 Message-Id: <1598020964-29877-5-git-send-email-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598020964-29877-1-git-send-email-grzegorz.jaszczyk@linaro.org> References: <1598020964-29877-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 --- v1->v2: - No changes. --- 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);