From patchwork Fri Aug 21 14:42:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 248128 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp413437ils; Fri, 21 Aug 2020 07:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdoBO2jsk2KtBdWUA+pLMfeRkZg1BJbepL9S7LXLr+Dr20ZTLFXmgxUGixOjYtnFzDtst+ X-Received: by 2002:a17:906:48c8:: with SMTP id d8mr2926684ejt.331.1598021107838; Fri, 21 Aug 2020 07:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598021107; cv=none; d=google.com; s=arc-20160816; b=r7GQ20JOiSAohwjQ4dmpzySS3EYFXyObTmX+xv0CrGVzv195B0aEobcYImUKWvQ8Bn u6oraVNTYwQjdi9U+wziVohgH76zC0Qs1PFLpw1Fnnw/i0vAnxzdI0eucMBiX/fHl+mm Du+5n1mu2jgaDPqpesiV1fGVXPhAXJKxOvhcYpL8LB1mftb7HnMeBxW0JZb+6D64uV9E 2hgAw6lp3FNgv5JTuhZA6ldO3yZOg/xKN6mZ5yZ0jpZvhK4HZPkuwAyfNe2z1KuFwBKo GZ3kyGNC298HH3kZS+c9ZnIA89VHzeKiFsiTjU5jYRLtbGEVD+PWO9kVjcRuqC1fLmBJ RUXQ== 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=OsJasaQyy7/E+kPEpA8PlFznj7k6c2w5j5pqgaCetRA=; b=Y09tYgo7KjTXYgNp6t2wTYPPVOVQ1SFPG7f9PP4riMDm1OmI56AILe2jV9QhwT28mP WFg4Zgo2j6wyz6QCk2MKTp/SvQO7DaFA99h9Hsr8xHkCTRzunHH+Xox+ytOOfDCZRviN 3SvP7UnzMhhK2HPSYZgjePdquqjGbpg4NFTJpC4ynNC55ZS58NEgpLqDl5eiz7PzdY/d yWEU6jyuntQ9/FN+4Y6y1IRi0TS0PO8ROyfqwmxvooREyAm1hZR1iIa1kqvfPZeSaixe 4N7zfD3KKNYljN4aV/dMlw2Iy1k8b2zmrjoS2LQ6/RGPq+jY69VYmvb/ToUgyLZikZOf C29Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tnmSau2z; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 v15si1330733edy.90.2020.08.21.07.45.07; Fri, 21 Aug 2020 07:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=tnmSau2z; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728020AbgHUOpE (ORCPT + 6 others); Fri, 21 Aug 2020 10:45:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbgHUOof (ORCPT ); Fri, 21 Aug 2020 10:44:35 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FD5CC06179E for ; Fri, 21 Aug 2020 07:44:34 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id t23so2136803ljc.3 for ; Fri, 21 Aug 2020 07:44:34 -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=OsJasaQyy7/E+kPEpA8PlFznj7k6c2w5j5pqgaCetRA=; b=tnmSau2zUkTpgpUzOkknDCLR9TWzijsVx7GOYiahq4Ohc031GC427oYP5lnbTSJAMK 22fIY12Q77SJlGbp8+yLmrvZHhI8z3A5WiPPMAMQnpk+nf/q22aD5KnirywVU8dlHime d3/uEdm2pvtNJhWs5lSfN1F8p7/TCzrEOFem8u7326iPcdfRxudvh/ehrEUoCrqAn2+p TgimM2cnB5klT3KSzAWKLpiAvkGPLjFLzJEU3kJ9Lg02GGAEvgkamtbsxWUIQpFSUY5t 0KxIiBC6REcvToucSJ/BUnE2dRwkT1XZykuBYFXt1CDQmtukt7yC9yseK7elwufxljPG Y9DQ== 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=OsJasaQyy7/E+kPEpA8PlFznj7k6c2w5j5pqgaCetRA=; b=mNOV0X6oRZIQx3HjL/w1npYXnvM/5vvcHd01KkRNkj4Glqr7aRlRv0PzDj6liRrWFw gl6mYs+u6zqEonO4Dud9CVtX1hdWkp52EF4fmwpkCPD4sYf6zxZo4c8h16nf2pnkDh28 f9FMLkNo/Uut9/AcL4GAI87VSPIkmBW73WWn+5d/ZNNdKBvHFAVsvGrFl87ElaEgsS4t QuMCLy66PrhqGcPHk+e5Vzx5TbuCcq0v1BqeOWDsKsPzbdZ3lG0eyC5+8admeAmH6veG E1FMhT3Lk17m4/82I6PdNI+p4tNFLXQqKYxccV3ztuuCyfsStWXR3zqSYlkCKTKedpJd gjbg== X-Gm-Message-State: AOAM5304cchAkSe3RFzaOsz8qofZ59jNWAGxk/vVPZXCq1aybfT/YRJa 8kEdka+edyF1uQYrchPDzdeTQg== X-Received: by 2002:a2e:95cc:: with SMTP id y12mr1581561ljh.138.1598021072622; Fri, 21 Aug 2020 07:44:32 -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.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2020 07:44:32 -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 6/7] soc: ti: pruss: Enable support for ICSSG subsystems on K3 AM65x SoCs Date: Fri, 21 Aug 2020 16:42:43 +0200 Message-Id: <1598020964-29877-7-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- v1->v2: - No changes. --- drivers/soc/ti/Kconfig | 2 +- drivers/soc/ti/pruss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 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);