Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp306122pxa; Fri, 21 Aug 2020 07:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsI5YzLGv0cgttuJKq2FK/x+QBwPZ/UUfwUibCQPFrmmnb1YoletiI96LYbzJasn87tePE X-Received: by 2002:a50:c38b:: with SMTP id h11mr3166606edf.308.1598021183989; Fri, 21 Aug 2020 07:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598021183; cv=none; d=google.com; s=arc-20160816; b=oRTmHi4L1TDvaWnmLmfSTFkeB9ocoDrhBDXrgtp98oQdKgbph+vBN1/RrCKWff1W8z JC1hzrK6EAoQOlCc1+7yV5N0FDbnFFs2Gowo+K6IcIA2BqJkl4NSSzZ9/Riex2TpluMv IWakH6DaITRZAFhv3C+QAmsa7DIKMp9qzzTphzuY6ZgLvsmZHvKUS6hmIgFMB+Y5SjQo o9IDZRlp8vHVi30hdVOCzVw1I54asPFji+x3U8jIHQg61XkEc39Ri9GYrxsc2HBxJJ3U qnhlSixs0YJes6qpZI2lwfDprVLqBZ19RSC9boQrhJrkcL5eWUZ2uqkkcfwGCTa4uEA1 9rZg== 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=jhHB9jGNVhiVGZEkm7yP4G7VfY4J5Sw3TSdjfdrvb8i/1YwBrHd3o90xq+nfjSvLb6 bgM/OtQKfsAmFVsdaWClpmEm0TCJaEtgtPlTZt0gwrKSxfg4AidBmLyoQCqg1rtQ9eq2 JkeNzrwzI6TtEVSNLNt/vG8cknPAcG3cjtC9pUTAeJFBu8H3ePyLBnpoA0QAji11i8ak Sg9nUYUSc6myS8WpcSrltfoKL/lUNr542/Z+ftYls/v1XpS5kclpF+lU+d+QNYvraKrg pY+z8zPUC8160dUTB5rsRWhmMi5Szntrv0E98MnVYApYTaQviY/eapv+ESZeXHOPOTSi 04+A== 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 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 y24si1319760eds.240.2020.08.21.07.46.00; Fri, 21 Aug 2020 07:46:23 -0700 (PDT) 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=r0iV8Pe4; 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 S1727941AbgHUOoz (ORCPT + 99 others); Fri, 21 Aug 2020 10:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbgHUOob (ORCPT ); Fri, 21 Aug 2020 10:44:31 -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 151B4C061799 for ; Fri, 21 Aug 2020 07:44:30 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id x64so93183lff.0 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=caadwZnmf7yKCkExf7bdlUQH4JWdkCk0vxLyu4RwI385ugAHNFS8PvQPIXJjbJf6Pj sv8bEAUYAHofATJ/biPVLKgsGMfpMWRHMRHb2xIePspf/M2QvYsTVKNg8Z9hnW21vcMi l5PVP0RRD0fjwnZvWnJ2Kc/L6uxJ14JhcA548lWC2KLemge9WokytyOpT3DAXUnSTDS7 CIykpCJCuIag56R5vp8yv4xCQc7pAV2ZzVPr860dHncZGPgJplGfw++uyDA1bBR1K8MB ox5Y11nQFny5IcBEhoEOfpdovXIpym1qocVObZISj2qXWhASY10P3Nhn1siiMSVt8Gmp tPKA== X-Gm-Message-State: AOAM530wCDGabwPtYLWtsSjePS/nkvGAdLTn/ishC3nHcqnqxWn99WGp qKi11hEgtNPN7Vf1QMxI5knWbA== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.7.4