Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1028015ybg; Wed, 29 Jul 2020 04:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWDAQRfwJJCZKidKSbDU/l3H9zWPC750mgCnYC0ICRNobq1FWHkXusRXUslVusj1scMJOm X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr31553039edv.65.1596020675572; Wed, 29 Jul 2020 04:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596020675; cv=none; d=google.com; s=arc-20160816; b=OApTIJ/cGjEcGDV8mBplKD5vC65FOfIjhSadB/VIcbqj2pSL80myd8RCWvTkseYyFr SaIj/wnVFYPB2lJK1inAKygVer6ymLKYeQGN91yD4NXyep4almsW5gwZKO/syVhCB7CL QSHkZ9uS196J3X4tUM7NTJ7etsCqEuFgVevGZ5QJB7vy/df4YN0h29ssj1ANOnQPELtb as0qENEU2cBblV524dsoWrwwGy5uGTD0UJ+/a/BJRn1jtRRcG+TFCN1uUVViCgBosDVt KsaBz3QCEjEOnsavNHBFnD8H+wvI63XG/tFp0G/Z9mN7m1XY/8f19Y3FWG+jj6KrIqET fDSQ== 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=b2UHfNkkmi3g125pPCcsb2fWYGc2JCeuxrsY7xAlgxeNZyVxwfy8pAEC8Lssdrwhp/ 7go/zo6qfJejXWo3ZlPs6BvjOVJY+fIdX8VMNC+/LKJYDJoTd7gPveNNFErwP3qYMCGl JbbB1jQKRFoeXw5utW/KFTyusDDJXPl34GHQU9zDDd+3GR8IsTsAiZeUnKkz5/b8iQQ2 KhXQnhUGSUWmpUGsKDpAu/FdkqZuUBE7nhyErYwq9N4NbrT16grVmBBAY1kprSk1PG63 6jh+OoXLtMSnIWhLg0kKpmTPiJfJtiihOEUfQA4TrV1y8mtayNZlqP+7fkn/FSoxUDJb dxxw== 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 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 y8si1178100edw.59.2020.07.29.04.04.13; Wed, 29 Jul 2020 04:04:35 -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="sjN/+9P1"; 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 S1726862AbgG2LDB (ORCPT + 99 others); Wed, 29 Jul 2020 07:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgG2LCu (ORCPT ); Wed, 29 Jul 2020 07:02:50 -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 0B2EBC0619D6 for ; Wed, 29 Jul 2020 04:02:49 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id d2so7144662lfj.1 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=h0Bxr5td+oxv+02LTnwVykjqlFpVQ/SZkHRC9Vn4jM+u8X0XHe/I0V85AxfpzWzLrU g3nXIDsQEas+5GtPdxOzjT05qtMB+tPUfNc/iSuvvUdYao35zltQp/VXB0pgGvWsx7Ui kWNgw1/zED7Nrhxmmne7FwEEcXCdYryUeJA3n1x17cPUFRyJ8Qi38oNpoQ4BZBbooH7q YqSOumuI2FY/m6JaeBol2eHv3cq6Se/bAVniLZSoqk99BJnjzSwnLI4fmgyjTl92dqvS 7f4iy2A56A4tfjh2Kk3nb5UGZ0wI3ncFNDg9lmNQy3nu5Y5mOdasCfp5E5N7nfTh6eFF wfWQ== X-Gm-Message-State: AOAM5336SKI+YcySH8TSWbxd9C3K6TersCc7b2CcC8f2OJOSMIt9COtL QqYjTp0N4su6SMEwlVOsoIpACw== 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: 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 --- 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