From patchwork Thu Jul 29 22:46:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 12410053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA944C4338F for ; Thu, 29 Jul 2021 22:54:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79EDC6023E for ; Thu, 29 Jul 2021 22:54:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 79EDC6023E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KQAypS/cbaGXGrzwBp0IwjKkOQRyO4UULffRaAzCN/o=; b=Jq2iVUMEf+mEyp BGD4976VrnPU6jYtiNRHiLMNmJMSOuJqsSSKSWtXTzmAL17+WN2iwIMnIuViwagiEkmbtgEmJwbg0 eXa/x9Ul/NVc++ybaX1G6SxifwqkP2WyX2zvlEhL7umqAR8PSL4NuRYa7aCcnCX0TnVqrypcmZa/Z YVADjyeZNCZw5sbOfqf+rfMP3Ie120YvnmSmlnFvcobkoyCK6ac4MQ/qWHLuoqHrJELyXCgOvfAeR DPmQvk2Zvi/ytLJ4UfaKX3opfItETYCqX2djoSvrdmK+Gha/X0cLw9BjTjxmnueRYJDZCW6iVl9UC kKAKYI1TlRQ2AU3p1vXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9EtP-006IZ0-S2; Thu, 29 Jul 2021 22:52:44 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9EnM-006G0m-Qq for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 22:46:35 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16TMkL6e128780; Thu, 29 Jul 2021 17:46:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1627598781; bh=4dtShpLKI+Afxi+AEYrCfFFpkX3U+9kF5fpsVZdjeU4=; h=From:To:CC:Subject:Date; b=NVt9mwkzHakOGBjQM5Xg/csWcitdC0/ZA9Fog2eob9Z/XzpzbHPSxg7V5ryCThLOl bQaN91CL5hqU1jdqsNfHWg8lgOBUIQ05L1ubxivfsvSmLmyZss7t/Oc5VIbinWl3ro 1bd17vUjrznf14tB8ufBIatAi92eQ/mZxdTZlBQE= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16TMkLlQ010646 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 29 Jul 2021 17:46:21 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 29 Jul 2021 17:46:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 29 Jul 2021 17:46:21 -0500 Received: from lelv0597.itg.ti.com (lelv0597.itg.ti.com [10.181.64.32]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16TMkL8c076769; Thu, 29 Jul 2021 17:46:21 -0500 Received: from localhost ([10.250.38.176]) by lelv0597.itg.ti.com (8.14.7/8.14.7) with ESMTP id 16TMkLc7016249; Thu, 29 Jul 2021 17:46:21 -0500 From: Suman Anna To: Tony Lindgren Subject: [PATCH 00/11] Add PRU-ICSS nodes on AM335x, AM437x & AM57xx SoCs Date: Thu, 29 Jul 2021 17:46:10 -0500 Message-ID: <20210729224621.2295-1-s-anna@ti.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_154629_022384_BDE6C604 X-CRM114-Status: GOOD ( 16.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Grygorii Strashko , Vignesh Raghavendra , Lokesh Vutla , Kishon Vijay Abraham I , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Tony, The following series adds the DT nodes for the Programmable Real-Time Unit and Industrial Communication Subsystems (PRU-ICSS or simply PRUSS) present on certain AM335x, AM437x and all AM57xx SoCs. For details, please refer to the respective Technical Reference Manuals [1][2][3] or the cover letter from the first foundation PRUSS platform driver [4]. The next-gen ICSSG nodes were already mainlined for K3 AM65x and J721E SoCs. The sub-system is represented through multiple platform device nodes which are supported through a corresponding platform driver, like the PRUSS platform driver, PRUSS irqchip driver and a PRU remoteproc driver (upstreamed in 5.10, 5.11 kernels). This series adds the foundation PRUSS nodes, that can in turn be referenced and used by PRU client/application drivers. The client bindings and driver changes were posted previously and need a refresh [5][6], but won't affect these nodes. The PRU-ICSS is not supported on every device in the AM335x and AM437x SoC family. It is only supported on AM3356+ and AM4376+ SoCs. All AM57xx SoCs (but not DRA7xx SoCs) support PRU-ICSS. I have taken slightly different approaches in the patches for each of the SoC families: - AM57xx PRU-ICSS target modules are already cleanly separated in am57-pruss.dtsi, so the nodes are directly added in enabled state. - AM437x PRUSS nodes are directly added and enabled in the am4372.dtsi, as all the existing AM437x board dts files use AM4376+ SoCs. - AM335x PRUSS nodes are also added in the common am33xx-l4.dtsi file, and the parent ti-sysc target-module is enabled only in the required board dts files. There are about 35 different AM335x board dts files, with many of them using AM3352. I couldn't identify exactly what SoC version is being used for some of them, so the PRU-ICSS nodes are enabled only on known TI boards. - MDIO nodes are currently disabled, they will be enabled after the PRU Ethernet driver is upstreamed. Patches are on top of 5.14-rc3 (should apply cleanly on 5.14-rc1 as well), as I had to use that version due to some Ethernet issues for NFS. Let me know if you prefer the AM57 style of a separate dtsi file for PRUSS, and I can repost these quickly. regards Suman [1] AM335x TRM Rev.Q: https://www.ti.com/lit/pdf/spruh73 [2] AM437x TRM Rev.I: https://www.ti.com/lit/pdf/spruhl7 [3] AM571x TRM Rev.I: https://www.ti.com/lit/pdf/spruhz7 [4] https://patchwork.kernel.org/project/linux-arm-kernel/cover/1596020528-19510-1-git-send-email-grzegorz.jaszczyk@linaro.org/ [5] https://patchwork.kernel.org/project/linux-remoteproc/cover/20201216165239.2744-1-grzegorz.jaszczyk@linaro.org/ [6] https://patchwork.kernel.org/project/linux-remoteproc/cover/20201211184811.6490-1-grzegorz.jaszczyk@linaro.org/ Andrew F. Davis (1): ARM: dts: am4372: Add PRUSS MDIO controller node Suman Anna (10): ARM: dts: am33xx-l4: Add PRUSS node ARM: dts: am33xx-l4: Add PRUSS MDIO controller node ARM: dts: am335x-bone-common: Enable PRU-ICSS node ARM: dts: am335x-evm: Enable PRU-ICSS module ARM: dts: am335x-evmsk: Enable PRU-ICSS module ARM: dts: am335x-icev2: Enable PRU-ICSS module ARM: dts: am4372: Add the PRU-ICSS1 DT node ARM: dts: am4372: Add the PRU-ICSS0 DT node ARM: dts: am57xx: Add PRU-ICSS nodes ARM: dts: am57xx: Add PRUSS MDIO controller nodes arch/arm/boot/dts/am335x-bone-common.dtsi | 4 + arch/arm/boot/dts/am335x-evm.dts | 4 + arch/arm/boot/dts/am335x-evmsk.dts | 4 + arch/arm/boot/dts/am335x-icev2.dts | 4 + arch/arm/boot/dts/am33xx-l4.dtsi | 82 ++++++++ arch/arm/boot/dts/am4372.dtsi | 165 ++++++++++++++++ arch/arm/boot/dts/am437x-cm-t43.dts | 4 + arch/arm/boot/dts/am437x-gp-evm.dts | 4 + arch/arm/boot/dts/am437x-idk-evm.dts | 4 + arch/arm/boot/dts/am437x-sk-evm.dts | 4 + arch/arm/boot/dts/am43x-epos-evm.dts | 4 + arch/arm/boot/dts/am57-pruss.dtsi | 178 +++++++++++++++++- arch/arm/boot/dts/am571x-idk.dts | 8 + arch/arm/boot/dts/am572x-idk.dts | 8 + arch/arm/boot/dts/am574x-idk.dts | 8 + .../boot/dts/am57xx-beagle-x15-common.dtsi | 8 + arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 8 + 17 files changed, 500 insertions(+), 1 deletion(-)