Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp306635pxa; Fri, 21 Aug 2020 07:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlU7bBFhFiye2JNU3ujmCssuQloxvHrgJMPttbtI4sHQlgML4bsw51gpKQFL3BO2OVMjC9 X-Received: by 2002:a50:c089:: with SMTP id k9mr3109978edf.110.1598021237041; Fri, 21 Aug 2020 07:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598021237; cv=none; d=google.com; s=arc-20160816; b=RAvLl7pNpGLvLMqCVbi2prvWeVYl0+qQ510JOTvZ6JVsOexsqcpf0py3ZO7ClDFRx6 8TzVLTFzMA2WpqZ/HxccP7flB1a2+47ZNk4PoWomB9LlFh1secQC86BJJr1PlP5hi4qa buHPIa0lciVcdkwwX0rEUqEC/SGR+tyxzxhTMocmz6cgv3IFoU6bRTwHHjspdK7eexej YfCiewkK6iwTTXodNYh4XqBGp4aPhDeQ3jkneUvBPwtPzv26Nqj1UHVWnKY7RguEqpCT jK8nqmX+TcxsFCynn5OcteeMSNG/KkjCmCyd2eT9BsJaTy077Gso8Sg7FGVCJjQYMctv /Xmg== 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=Pnk1PBdCwskgZo11wlcqoxMsr/2QaWdSpSmHykFS18k=; b=wLJCxH07PXlisM1DAWHp5Ls0fGel5QyIGcqt7BXKarspPY6Aa+EgpZ9FGAdZULiohb /fc5Jv9OIiSfd/Igyf6rxpltAKUmG9QbNB8TnGlH9m21LUVEou9FYHVWwSvTWfuV4kzx mDjWydRoAwlRUMDCsYBMYy+F2Fh1PrP/RJlVvPKRYoPyeAkJMamPTUpQ2mjegIpLOMPn opdoWNsgnvyjTZwU2TYVasdKJ//gTDRBksy6ln8lSdOoV/J4+eJ/4rC2LILF0DdSmTOB 6f6Gax7hgJ1+F25AscjYLNO24OFMpD3CtU19qhTdwOCYJeBCE4EuJZdcQ9Httr/4olMw rUug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oxt7DyZL; 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 j3si1284424edq.596.2020.08.21.07.46.53; Fri, 21 Aug 2020 07:47:17 -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=oxt7DyZL; 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 S1728050AbgHUOpX (ORCPT + 99 others); Fri, 21 Aug 2020 10:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbgHUOod (ORCPT ); Fri, 21 Aug 2020 10:44:33 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D707C06179B for ; Fri, 21 Aug 2020 07:44:32 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id t6so2107253ljk.9 for ; Fri, 21 Aug 2020 07:44:32 -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=Pnk1PBdCwskgZo11wlcqoxMsr/2QaWdSpSmHykFS18k=; b=oxt7DyZLruFdQlYgA8nq+2jMUWQ2D70jWTLSkISVaUDsWf2Mkxo9SnHaKBXz9GmTRK JWoAUEonT1OsB6BlBQrVrZ5Wg3idPmzws97t7fN4a+PWiOFa9Yt8/ymeqQ/oVuJc+OSR GI73dpyVPoHZaJ5rNcncP8PAe6O1e5Verchr+/bHg28dO67n+tlkwhAjUlKBWxpOh8zl 4/7MIzZuDGAuyzjZAAslhv4fnZyd+M1eXm98DNo3OM+/Nfp8aOtXJyNmmhxL2FT0t4Ke sXOEXmnNnR/rHPUA1Y6t0Zkz//IdNUoekJLf7dZ2aPjIKrV7NxtrcfDxNr7Qx1/CCFiP Zhog== 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=Pnk1PBdCwskgZo11wlcqoxMsr/2QaWdSpSmHykFS18k=; b=rJeLJ7GnBF0UAVjmhodgGk6ZAPnnyXX5gXOMlv8RJ41znpNUl+roTVj87l5LS54jZQ 87bOoc7Nayz2M3gnXDRmKmGhSxNjWwsnNrYL3MHAIVczJwy74uyKhU41GynV2lBeL69Y E505IlmWopfs43GigiJVM4AxqZOgQq9LkueFJnMPatLAVDokDxW/YWJxAVQgIDx+DWBI WFPTwG0ejUGbiBe4cSUm+L6s3taNBbDbJm0neoSVgE46rAnPTyV+wzQxQsQmWuROFo9w P7FAzNmEMrHDRxUUjUoJwkVzljNSHwQFfJjF2Oepk6kgdrxYuQ+8ES9SjtyT0NtW0DPx I8Ng== X-Gm-Message-State: AOAM530igs9xoy3CptOk5/onyT9Q7l2CrrGk1pydeleqf1T3MZ1N7DoJ 6gY01bQGG3SedJ/b5Y0C86W+UA== X-Received: by 2002:a2e:9156:: with SMTP id q22mr1760568ljg.348.1598021070683; Fri, 21 Aug 2020 07:44:30 -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.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2020 07:44:30 -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, "Andrew F . Davis" Subject: [PATCH v2 5/7] soc: ti: pruss: Add support for PRU-ICSS subsystems on 66AK2G SoC Date: Fri, 21 Aug 2020 16:42:42 +0200 Message-Id: <1598020964-29877-6-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 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 --- 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 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