Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1027421ybg; Wed, 29 Jul 2020 04:03:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCp7QWjFvuVfc7b4hpVSKNfNg/YxoSNT7fmtYESp5seKspANdc7uqzQSkbSPYW/aeDsQXB X-Received: by 2002:a17:906:1250:: with SMTP id u16mr28292370eja.299.1596020632170; Wed, 29 Jul 2020 04:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596020632; cv=none; d=google.com; s=arc-20160816; b=cUbXOJitYevx7BwDm99XGGTl0L4DzgDqAzkVGc8CTkufrNdzzNIggOTJnNuy4hKkzP iEHMtknEGnBS4R3EgVv8b//Mr/nzsImT1LiAGtZLkcAp/t/S69JJf9f69NaoXZgW55mQ OgdJRoP049A7hdEN02Bz0t5MdD9KkwYj+OJmhE0OIHYI37TPREdBdAabs/WIXWpNgnH+ 6bWuCHYdAI6WW2XS1jRGYevBqLJt240uCtjdVj/X+aRKZens5HY0euRLOJnZtxPHr2n2 xo62/VPjarQ9+DS1cGUtRVOKq2Vu9bTGj+LyIfa6fkCJZMpE/ZU5ToMcPp5RC/kJr8Gx 6eLg== 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=FyosKiUG1TEw/awaC9dtkQGLFQT+7T/cshoI2oy7Wsk=; b=S7+yi5OZmR0owQZ9Ck2kp20DBD9JRisLEA13rCS41Zpz8S2qTb0o+i2Shbxu7j2YnL Q6vjRc5S9i15gvtWe/fpt4gqbxyTgCGa7la07O0qGqn5go1cgIrphsN5+jeNLx854oM8 Gp2V7Q/EjNBXz83wpRYeSRyrNuFIezXMURhFyIHuRJ0RqRxksVbJZeHopUmaQLC23pDv xHDO6ILh6Ego4K29lrvk31NvByuDJHpIyTTbUyr4nFRHo58PC+TDzPltvGu/7/p+4LfD vG7UmSoM32ce2WpOIoeqATU+jIT9YUxvqjq5ioZ/zqGYgasoUy2Fk3Wz4TGlpxivHXEm R+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bm9FpQwJ; 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 s16si869950ejd.343.2020.07.29.04.03.28; Wed, 29 Jul 2020 04:03:52 -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=Bm9FpQwJ; 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 S1726877AbgG2LDC (ORCPT + 99 others); Wed, 29 Jul 2020 07:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbgG2LCz (ORCPT ); Wed, 29 Jul 2020 07:02:55 -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 C2B5DC0619D9 for ; Wed, 29 Jul 2020 04:02:52 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id k13so12802061lfo.0 for ; Wed, 29 Jul 2020 04:02:52 -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=FyosKiUG1TEw/awaC9dtkQGLFQT+7T/cshoI2oy7Wsk=; b=Bm9FpQwJkxa0g3btzp9YwxLVyI5W3BkWDQ9/hNloBuojKm6pp+k5TaHmeRe7YubDPj 3Lkh6IN8F6YwHAVK383LGm2196M9bjOnBJFiYaWXvBvchtmjyZH5WroS5B0mxa+oli97 jW4fswZouyyugZFUTNJ1DnjX/mrRI3dpd4TmMnObbiDDLUPjNHTB4Jj4hrUxos2ZN646 bXykKbRrIrtnGycLbU9GJhBuxl3QmuFPL8D4LG5ELAxNXiIg/Gnr2xe7ygPyAtzDi99e Qz1HYbHaP2Uw9TmuOGeHmnJlPNPAzdl2kR4dk+1uYyCMfyMlYySd35uUCzpvawtKZq4Z vdiw== 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=FyosKiUG1TEw/awaC9dtkQGLFQT+7T/cshoI2oy7Wsk=; b=l0H8+tVIMFNFztf6YHbwmzgoC77EOPnW6W8wLDT6WFn9Y7hxgmXWCcDR18330i/e/k mSztVC8I6C7ddAnTqBKKJBpQu+zVNoMXtNPfCTKFbrpjc66Hr+8D5tVARqsbRzdC3nO0 /MOO4YMCMKHzi0UQuso7M6bP7EP8T1ToxQFyxeyPNqA+xP0EyjFbROideIxTN31DGdz/ s20kW6wpni7IQmWSRhJik45pnjsEsm4FiZjo9GPMab4AVEe0LKFNEcnQdHrLXlrBcl5Q Cmk0JhxrxpJGKgWI1EglOSb9xE/dMDVvkEn2NobAFaQSbE1I6KOICTGwSleg1pd5CxEs W4Hw== X-Gm-Message-State: AOAM533MdnnPotFTRH5KsmEKijkxoYEI2InMqUrh74VGRZXl8i1/eTzB ha0/WQN68aunXydQ8sHY/6dfVw== X-Received: by 2002:a19:228a:: with SMTP id i132mr17056699lfi.178.1596020571254; Wed, 29 Jul 2020 04:02:51 -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.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2020 04:02:50 -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, "Andrew F . Davis" Subject: [PATCH 5/6] soc: ti: pruss: Add support for PRU-ICSS subsystems on 66AK2G SoC Date: Wed, 29 Jul 2020 13:02:07 +0200 Message-Id: <1596020528-19510-6-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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suman Anna The 66AK2G SoC supports two PRU-ICSS instances, named PRUSS0 and PRUSS1, each of which has two PRU processor cores. The two PRU-ICSS instances are identical to each other with few minor SoC integration differences, and are very similar to the PRU-ICSS1 of AM57xx/AM43xx. The Shared Data RAM size is larger and the number of interrupts coming into MPU INTC is like the instances on AM437x. There are also few other differences attributing to integration in Keystone architecture (like no SYSCFG register or PRCM handshake protocols). Other IP level differences include different constant table, differences in system event interrupt input sources etc. They also do not have a programmable module reset line like those present on AM33xx/AM43xx SoCs. The modules are reset just like any other IP with the SoC's global cold/warm resets. The existing PRUSS platform driver has been enhanced to support these 66AK2G PRU-ICSS instances through new 66AK2G specific compatible for properly probing and booting all the different PRU cores in each PRU-ICSS processor subsystem. A build dependency with ARCH_KEYSTONE is added to enable the driver to be built in K2G-only configuration. Signed-off-by: Andrew F. Davis 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(-) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 99dbc14..c290343 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 || SOC_DRA7XX + depends on SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX || ARCH_KEYSTONE 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 5df4caa..d5f128e 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -162,6 +162,7 @@ static const struct of_device_id pruss_of_match[] = { { .compatible = "ti,am4376-pruss0", .data = &am437x_pruss0_data, }, { .compatible = "ti,am4376-pruss1", .data = &am437x_pruss1_data, }, { .compatible = "ti,am5728-pruss" }, + { .compatible = "ti,k2g-pruss" }, {}, }; MODULE_DEVICE_TABLE(of, pruss_of_match); -- 2.7.4