Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1029781ybg; Wed, 29 Jul 2020 04:06:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyErw0cecF7nGXcJqcN5M1GTNWccrWfdIcaYM0/Vj3fF8ae7t6HbmkTNClgS4tNA7B3s1Hf X-Received: by 2002:a17:906:a055:: with SMTP id bg21mr20979378ejb.516.1596020811685; Wed, 29 Jul 2020 04:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596020811; cv=none; d=google.com; s=arc-20160816; b=lFEe7n3kWTT8ECdNU35qHehOnnqtJetpgl4o+HP9T0NHEHUpYlJDXrNJhRmE0cXpaO 2McBxNh1mZUpZF2H8itFVq0CPUgPKALD+UV85ParONSnc+8ddRCMb5uh5mgL/s5q36/N aY5FPivP9mpC4koSz5uefs3g/VJX8g0a/U71oZxs5qhPEY6YsHP9+hvU+hodSXLLCShE X6hkXVBzV1RAlFvYJdm4FNewE1xB+sShHUoXrFRpSkUUxnq9DBjCkHN8ETEIOBBkDXWx VlkAdtORFuE3UBbSryV0nM63J4pwaOPwO/y/Qc/CNhwbWREh1MspOnQwIKjUw8bkAwxi umRA== 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=gf7cv2SFIbdtlnGIIkL7k9OE8WL9LTH6+emgR/zQp4Y=; b=RPqgFmJUtD8/VoHgwzmP/P65GuhVMKGiksRU/2jUVdsf7owH4jDr5kapi9oLxu+6HA aX7aRnwwoynMuS7j6huM4NHeijXOdqpeh2MDUQ4puPj/XMS4C/v5PLMhSTpq+tY6B7YP hu0wxkp2Dwhej1aLiKQ4M6qzJ8qqFWq4Wpgg3kC7LkBH4/SbhvmZq2oD7euGPL9DB49Y S+f3lsuj1FT9lTQcF5Cjj2p5LlSTKD6UEuAIIG4ePvPj2HsVPbFhqakSxd6nYAYwuL80 cdXcEHufAy9vPpprGCtdHGKKMMPih2GAjpTpJQCdcRqLtnJpoExH1BRfs3pQzvXAzfUi UE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLHbE57X; 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 g6si1072908edl.330.2020.07.29.04.06.28; Wed, 29 Jul 2020 04:06:51 -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=ZLHbE57X; 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 S1726588AbgG2LDR (ORCPT + 99 others); Wed, 29 Jul 2020 07:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgG2LC5 (ORCPT ); Wed, 29 Jul 2020 07:02:57 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80C81C0619DB for ; Wed, 29 Jul 2020 04:02:55 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id 185so14336748ljj.7 for ; Wed, 29 Jul 2020 04:02:55 -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=gf7cv2SFIbdtlnGIIkL7k9OE8WL9LTH6+emgR/zQp4Y=; b=ZLHbE57Xrx/TPW6fyBjKZ4HFPTD8aCMjiF/g9R77/NYupMLxx0EkeWq8hl66ENUsJn AvubfKp5u5Gv7drFCny8A1HL+Yd5qU8PG6b2Yp+6K8v0iufbi1Z1XkAG0pG1m8Y2MVN8 s6KGiIvAnieDGi8/CFOkjP2KEUnPozZ1X7o3voWYEXDwhZd2QXKenDTQff6spCGx2rdR +rEF9n9gnL+Rp0fQGFDQ38POtiTNTI4QpNfbRQw34nA8z67m6VhIUFSKreBbuQdbfx4O cxRqko6iBR8sYfvOIK80V3I3xSbbPwJGocWUinntbJUpLAQLee9Ene5dMwcxjbR2JJWU HVsw== 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=gf7cv2SFIbdtlnGIIkL7k9OE8WL9LTH6+emgR/zQp4Y=; b=paZ+YjoO/aDWxT2V6ZD0PgGMbnqBj5pzjgcZUz3wOjTV3reTR1VDP6fGBNzydEsp9t OxHp6jcym0MDmnQ6EyKtvE+lZQaml9510xPW0kjOVFAuGjoU8FowOZU/Wy1x83MLrz1D f0JjMlsCjgoGYlnlnkEGvp1NEE7egNEAsABc6UTWfRirpIY5uSLMzK51zQBODVnHdQtD LLkF22QrmagLXqg5VHPSgIIFIYxu3ZGf2GxU+9pm2hFQw9royCJDHzmZ+LanBEtHNuRJ MDHmXN7Lp31+V7NNafiZtKPV9uskSmsa4zPKCxYym/FFmTHwmJ/p0vOCdFo6SQkWUOjM gbhQ== X-Gm-Message-State: AOAM532LfefbkAMIq0bwIRaj2o14WR0eI99G+gsqJHfYsuuw70DtOTpK M2/nNRRY+eIxo+GzblI9/G8gakafcygV3Q== X-Received: by 2002:a05:651c:319:: with SMTP id a25mr15139192ljp.272.1596020573965; Wed, 29 Jul 2020 04:02:53 -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.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2020 04:02:53 -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 6/6] soc: ti: pruss: enable support for ICSSG subsystems on K3 AM65x SoCs Date: Wed, 29 Jul 2020 13:02:08 +0200 Message-Id: <1596020528-19510-7-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 K3 AM65x family of SoCs have the next generation of the PRU-ICSS processor subsystem capable of supporting Gigabit Ethernet, and is commonly referred to as ICSSG. These SoCs contain typically three ICSSG instances named ICSSG0, ICSSG1 and ICSSG2. The three ICSSGs are identical to each other for the most part with minor SoC integration differences and capabilities. The ICSSG2 supports slightly enhanced features like SGMII mode Ethernet, while the ICSS0 and ICSSG1 instances are limited to MII mode only. The ICSSGs on K3 AM65x SoCs are in general super-sets of the PRUSS on the AM57xx/66AK2G SoCs. They include two additional auxiliary PRU cores called RTUs and few other additional sub-modules. The interrupt integration is also different on the K3 AM65x SoCs and are propagated through various SoC-level Interrupt Router and Interrupt Aggregator blocks. Other IP level differences include different constant tables, 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 updated to support these new ICSSG instances through new AM65x specific compatibles. A build dependency with ARCH_K3 is added to enable building all the existing PRUSS platform drivers for this ARMv8 platform. 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 c290343..f5b82ff 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 || ARCH_KEYSTONE + depends on SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX || ARCH_KEYSTONE || ARCH_K3 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 d5f128e..ccc9783 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -163,6 +163,7 @@ static const struct of_device_id pruss_of_match[] = { { .compatible = "ti,am4376-pruss1", .data = &am437x_pruss1_data, }, { .compatible = "ti,am5728-pruss" }, { .compatible = "ti,k2g-pruss" }, + { .compatible = "ti,am654-icssg" }, {}, }; MODULE_DEVICE_TABLE(of, pruss_of_match); -- 2.7.4