From patchwork Thu Sep 23 07:51:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil R X-Patchwork-Id: 12512219 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=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 8D343C433EF for ; Thu, 23 Sep 2021 07:52:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7297A61211 for ; Thu, 23 Sep 2021 07:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239797AbhIWHxu (ORCPT ); Thu, 23 Sep 2021 03:53:50 -0400 Received: from mail-mw2nam10on2053.outbound.protection.outlook.com ([40.107.94.53]:41536 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239813AbhIWHxt (ORCPT ); Thu, 23 Sep 2021 03:53:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZCHeVmoCbrYmt49wv90hpL7uHJZ0NtIeQ5SXhleLSrHcUFQzBCXi9juAEbtqLJeO98oDIDNEa7ml/TE9/UPB1KOKW6vOmLST15r7k1Vpk/rhHyl8G/jD8h5VwJ5JCcD/b8oWqKemgActYF9bVjQ8GE47hS35pyfpsZV+eBtj8QktoES88Fot5Tw66MgL09n5aVCMSu9EG/VQWa8Iq57YmI8DAfhiYX3nnrvPBEUeR/Hcg7zvzOB2neo6/zKhfdgR0pSrEUJNZPri5Bz9YQWp2uT0Z0x78xT+2R8IZJO5OMqio3Rlh1YxoTSh7OTY8wZP7VJzliiPg3C2hY6gSSpjkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Dgy4LXzRbL4sNvQwB2ufJG2LghGiBOV42BHZ28kjuro=; b=UBqPmRYaxLPG+qARgeMi0grBwky1NXMKAovCwAAkCuA5rCFAi5wV64TOcuNrhFIcEolKOZMivMxxMfeZOcKrd9XN7JkcsO5YkvQMn73F6HZV7VNdr955cnC6LchCy4hz8qtlUAYG+jzDVOJ0UxL23t3H0q44sT4N6LE6GtsKL++vEQG6WRg71AMbWVesK/0yVZlspbcQIXqneQyo2Gnb3InUUyqs0lpXzWIwiV2LnLGmG3ItlEU3Wo+ZKdQarEBju5RVnC/vbphTqjoAienbWTlo5nxA6ehjldEj6c7dio9BOhvjG3FH59hRSSKkBTc4hA81honflpoVO4CZmeXf/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dgy4LXzRbL4sNvQwB2ufJG2LghGiBOV42BHZ28kjuro=; b=mAMPm3In/zgR6FaOReAzkmb2UicbGAx0qOcOYqzVmkpvfr71XLHrQrzMiba5jLrMb6SUWdKNeiee8RMS0UoC8rdQkc2atz5KyS34X50kYAoQBfq7gPhm1mphesSvWNLQrz8xw8qTbrJGjzPKTa4rx+UcLhyAQjH6mKj3q5+NnXS5kZXZQpnd1R+EiN7z6u7QsJZEcNaADDEa0IMwRKaBZ0Yc/PWA+ich/eCMST7egvkr3/Dw/ZryKs/2wQQBchGVyNoYWTgWvx1MbBpi576TZWCJkFGL5pe9yLzC+xkDr4WewX1zJ9Fq/IIfPhTieebBcEXM6PfVljjA0rionb2s9Q== Received: from MW4PR04CA0173.namprd04.prod.outlook.com (2603:10b6:303:85::28) by SJ0PR12MB5502.namprd12.prod.outlook.com (2603:10b6:a03:300::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 23 Sep 2021 07:52:17 +0000 Received: from CO1NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:303:85:cafe::3e) by MW4PR04CA0173.outlook.office365.com (2603:10b6:303:85::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15 via Frontend Transport; Thu, 23 Sep 2021 07:52:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by CO1NAM11FT035.mail.protection.outlook.com (10.13.175.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 07:52:17 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 23 Sep 2021 00:52:16 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 23 Sep 2021 07:52:15 +0000 Received: from kyarlagadda-linux.nvidia.com (172.20.187.6) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 23 Sep 2021 07:52:13 +0000 From: Akhil R To: CC: , , , , , , , , , , Subject: [PATCH v7 4/4] arm64: tegra: Add GPCDMA node for tegra186 and tegra194 Date: Thu, 23 Sep 2021 13:21:24 +0530 Message-ID: <1632383484-23487-5-git-send-email-akhilrajeev@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632383484-23487-1-git-send-email-akhilrajeev@nvidia.com> References: <1631887887-18967-1-git-send-email-akhilrajeev@nvidia.com> <1632383484-23487-1-git-send-email-akhilrajeev@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 186f6d8b-36c0-4e36-5371-08d97e671085 X-MS-TrafficTypeDiagnostic: SJ0PR12MB5502: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1227; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ts/WFOIa5S1vhXjTFyEI9R7VALsI65OoEvxGhovV/Fgk5z3DOOhBINvSgzRsKoQ5SqiLn79jdmVTQ8zBK4LROjkdROWfAtdx692+iB0GPB/k6VMhyvnyLdkGM4FZZTZAk3qX4UUoInvuIB5XAJT+WSzD3xZGQKugOU+Q7OVHeWQV3sI2/cpi+1rS84BqurOpDG+tGH3gdWKXqo8PnRBmbpYyECKyAmDyFhDRFpS3wK6U/j83GEz2k8UQEjOPAlkp5oSrB74l3S05uDONaOLI4OX+Wx9kfkyCXSs71wxsZvO0ujCcNeXOYhj/L5y5h94HYPvEmL9lni4HeVIok8TAJtbEBO/hBK3sExMs7voOxm066MA1ueQ1pIs2G/NBJS8B6tv0Jtu66P6jFya1BsN3P8nfzWUZASOcd4g+EqErrjksoXaEFOrHg3RgPN3KjpO0Ql9H9n6wp1V5XWvUs258G8n6RWQEEghjjxS1I1VLlxSqC9rlyz8JjRKd3+EZ7PkjzkeZ188rS1J2C9+blAfUjIIGETqZmTfZJLvUwpug6tH14nHzXmzlZKtHs4pe+UsBGvlSeSLHOZSw1WsCQBzPzgd0iMF/42eQKUn+fjgRSBBh+eOkQm8ySo/PoxBM4e5BXElUHVfQKtbaiqUutK/p2QVVLA76khVUVfjUl20mZ+pl6yio7cOVPGy7HRS/88gwQ2TBihUaZQjlGPur3Huh1Q== X-Forefront-Antispam-Report: CIP:216.228.112.32;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid01.nvidia.com;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(7049001)(336012)(426003)(316002)(82310400003)(8676002)(5660300002)(356005)(2616005)(36860700001)(7636003)(8936002)(186003)(508600001)(47076005)(6200100001)(7696005)(86362001)(6862004)(37006003)(4326008)(2906002)(26005)(70586007)(6666004)(70206006)(54906003)(83380400001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2021 07:52:17.2410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 186f6d8b-36c0-4e36-5371-08d97e671085 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.32];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5502 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Add device tree node for GPCDMA controller on Tegra186 target and Tegra194 target. Signed-off-by: Rajesh Gumasta Signed-off-by: Akhil R --- arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi | 4 +++ arch/arm64/boot/dts/nvidia/tegra186.dtsi | 44 ++++++++++++++++++++++++++ arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 4 +++ arch/arm64/boot/dts/nvidia/tegra194.dtsi | 44 ++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi index fcd71bf..71dd10e 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi @@ -56,6 +56,10 @@ }; }; + dma@2600000 { + status = "okay"; + }; + memory-controller@2c00000 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index e94f8ad..6f62d78 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -73,6 +73,50 @@ snps,rxpbl = <8>; }; + gpcdma: dma@2600000 { + compatible = "nvidia,tegra186-gpcdma"; + reg = <0x2600000 0x210000>; + resets = <&bpmp TEGRA186_RESET_GPCDMA>; + reset-names = "gpcdma"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + #dma-cells = <1>; + iommus = <&smmu TEGRA186_SID_GPCDMA_0>; + dma-coherent; + status = "disabled"; + }; + aconnect@2900000 { compatible = "nvidia,tegra186-aconnect", "nvidia,tegra210-aconnect"; diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi index c4058ee..9988717 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi @@ -49,6 +49,10 @@ }; }; + dma@2600000 { + status = "okay"; + }; + memory-controller@2c00000 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index c8250a3..27571da 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -72,6 +72,50 @@ snps,rxpbl = <8>; }; + gpcdma: dma@2600000 { + compatible = "nvidia,tegra194-gpcdma"; + reg = <0x2600000 0x210000>; + resets = <&bpmp TEGRA194_RESET_GPCDMA>; + reset-names = "gpcdma"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + #dma-cells = <1>; + iommus = <&smmu TEGRA194_SID_GPCDMA_0>; + dma-coherent; + status = "disabled"; + }; + aconnect@2900000 { compatible = "nvidia,tegra194-aconnect", "nvidia,tegra210-aconnect";