From patchwork Thu Oct 27 05:12:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vidya Sagar X-Patchwork-Id: 11563 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp36625wru; Wed, 26 Oct 2022 22:15:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IidcXuZ8A7p1zMm2D1LE094pg3tHKKoEdgWO/nVUWrqH/j8GUcVomQM8e8Nnb+0B2cQWo X-Received: by 2002:a05:6402:3718:b0:453:a46c:386c with SMTP id ek24-20020a056402371800b00453a46c386cmr44925998edb.97.1666847722863; Wed, 26 Oct 2022 22:15:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666847722; cv=pass; d=google.com; s=arc-20160816; b=YPLSq7/yNP4jbf74X3YVm0rMi2V1QNA3HXpVfDphXnnA/x9sHOA8608SozT7SA2SOc 9k2pHqw3koY3wrB6h6PVoRx94t5eaodVFtCwhWMkyVekLA9DpKzPluRDBkA442RWWjAt +miAGyWl/tobOLa3As9Sm/+e17q3RHTj4pCdUPez8ijhhKEfXA4pyCOX73TefGOfVLzC gp7gSz5Sq3nrEQnP6IVEnCjA9djHICnmvSDeBPXK4IvqReg9mj7t+HwGP0qkTnOU0QFH RqZ+vOjohiCI8j0wgwZ1P701DGFD5IpIY4ajel1bAjY2xH6LLJohyNCmuZicHuiSRstt 53EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gp65ZGY/O7wSqnODHkOoPhSjiPMCFJREY6pa2BEluRo=; b=aext8pvFyk7wSZqxetBKzzAAIKeS4CgsMDrfIlGOEvbmusCl58SE/LJTE/RzOEh9G7 qF71a31dOiHqr/+aKQfsOSPAmgSQAOrCy0H9BoiN8VHTBxOSaln0lCGvHRQa9xPiL41p KESx2JqX7pB4lZjuC0pZEzSx0utYnY7ZafvJzAbtg++1Ri06zlXwhqbq713T04AfRyeV mejeGNyY41nnPsFQYXsEw/YUp4eMVzpSEU5f1AP8/9db3PVvZqdpK64d3LOysd3m31ei v65XH7tVnW7TgfGf/99Rf3pAykg0ZDZPiicO3l3HmuFZtvu6Thb7g0ngxz+sq8sqK6WS 2yaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=n6VVikvR; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170906a38e00b0078da83673a3si331636ejz.138.2022.10.26.22.14.58; Wed, 26 Oct 2022 22:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=n6VVikvR; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234111AbiJ0FMi (ORCPT + 99 others); Thu, 27 Oct 2022 01:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234290AbiJ0FMf (ORCPT ); Thu, 27 Oct 2022 01:12:35 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2068.outbound.protection.outlook.com [40.107.237.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71651157F4F; Wed, 26 Oct 2022 22:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nq4h9n/MCbYXPlJxS33PLH6De9yYTKlJ5qXHSwvUhUsuHLyIvcgnuo0a9MdWLToqLG/Jkkfbcl9DuZqP/KnFuySrY6Lv1aPLaK+CF5qRCo4uAfm/TcN++5P1ptURmUlxs00GIjOsm4Wk4dVcGNuoh94otPXjpAMos+Q5XC+ixQoXl3/y03Ds9GjCpWD/AC67zCpE5sE7jdKpSyxzYmSyn3DIrtDfsPObGJPJ2V7kC1ISbZlrVLaMkakEEVDJEaZsuMKxQEErMunff4mgl/i+cpp272Gzcq3TQH3dHDOGo23XnwkAXQz0MdQiRSoFqjY8bkVsMUpTxeL/8u2zVkLpRQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gp65ZGY/O7wSqnODHkOoPhSjiPMCFJREY6pa2BEluRo=; b=M8ijXYCUzBeYLO/H5q+KPeGfOpjzMMGTDtE/dAc+Ivl71yRUGVlS1YTRbEJHQdMhYEhC1tqOazQrUYM7dN/OYgtm3q2DEDe8t4wqBfrxlLIcWlpoIvFemaMBQrO70vkkxprEl3otbxqSmSgAXG5N4lGxQ+RFv6zqp0a01CKqvl+b1vL1dVLuRhCqqNn6SGmtQaMXCihYXFJThvIYYuBr5ab5lrSdSBSC9wBP51o/AzdyhIe9hpwSYmwyhppKx1C3Wyw8ACNNxHbI0srO+2gH/ZhgbtaOhp3th9/oJpIto07cjegiPHAUR1qPzkmarALEoNNFJSkpLqiCJgPjsde/AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=gp65ZGY/O7wSqnODHkOoPhSjiPMCFJREY6pa2BEluRo=; b=n6VVikvRUj0+5CGXzCdHtXsYOX9ptdCVh7z8dwsMgGL+gIE8nA9CRT82tYSSv8pcaLogNM46xHV1LWjFF+AiiMM94bofWbFgbMCfwy+PoDr6KzfXq6cMrY6VMTbMkRtaWS4NocrzT74/L7SblcEXx0I3M+MpGAI4Zm1L1JHx0dwdBwVJxowz7KSBA7kkINGX9Dyw2GqCntbYg27UeEkhMvFhrHUX18V839pSbcEZo6mHT8KDtO76yywilx1+Po2wlWRm1evoRMizsOKcyJYLhYQ6wL6Dgsx/BUBDnt6ovRBRmycqPLUbEOrj5CWc7yHZIlZtPc1SJwU1jWhDNSoaFg== Received: from MW4P222CA0028.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::33) by SA0PR12MB4560.namprd12.prod.outlook.com (2603:10b6:806:97::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14; Thu, 27 Oct 2022 05:12:32 +0000 Received: from CO1NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::4c) by MW4P222CA0028.outlook.office365.com (2603:10b6:303:114::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 05:12:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1NAM11FT053.mail.protection.outlook.com (10.13.175.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 05:12:32 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 26 Oct 2022 22:12:28 -0700 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 26 Oct 2022 22:12:28 -0700 Received: from vidyas-desktop.nvidia.com (10.127.8.9) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Wed, 26 Oct 2022 22:12:25 -0700 From: Vidya Sagar To: , , , , CC: , , , , , , Subject: [PATCH V1 1/2] dt-bindings: PCI: tegra234: Add ECAM support Date: Thu, 27 Oct 2022 10:42:13 +0530 Message-ID: <20221027051214.22003-2-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221027051214.22003-1-vidyas@nvidia.com> References: <20221027051214.22003-1-vidyas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT053:EE_|SA0PR12MB4560:EE_ X-MS-Office365-Filtering-Correlation-Id: b2ed527f-44ca-4c7e-48dd-08dab7d9da1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GtC3P7DU7NYWgeTL/G34j0YRPFGtrZMxX5zOG9w4xOsZ384WCRgpgNeSdP3nDBuDVXZEsK3JvX8cMPeQVLgwjrWbnTfodWAzGZrM3va5pswKHvvOyvAzg0JkerA5Awvykh42gEIvxWTQfFexoUiyhPHTr59gpgjB+a+nKE6dqaHW7p2AsqYI4TdKQFnKAmftX0l5NDv40XboktfJi9RZ1TmwkcOfLZdo6IrKvAbRWKzIovceocxt8w5XsfRkGStBjThgwbjyCRbeH79mbt0T83mys6UOxCIRN1sidLg8Vr9ylT1eisEHQST3LgjI4ShBGGZBHgkbHbG8QwMMl6/smBooIBZd3yHArXjfX2jupsDyNMvq7SBUTa5CLv0V95A+Fofoor/DbdibKcTCCvqGkKenKkQewB03gzIzElJY93Tb0VDepAdzCMsYELonz6ysVDXbqi4n6wUepm2E92mU6CVgu4C7E4uoNrovYQibJtACOS27t0x6K1FV5aW9UIyPI4eaFHaKPnFRHX5ckinrDCjXD2uBqbkZwtHkjhkKyXU2L1MbLImVVP7ie0qcQwVws1nPovKYiicNmtpt5uqOuojTTtJgintetNQKpOF+FjW01PskC0TmTPp8bAYsyDjosxDNCtZTPndLQFlpl0l00mlkF2ebK2eblxUjVsq5k9p8xloNjqvHIJCO8J6auGvFYjlA1nu/GMFvl+c2kMVF/+gSj/MXLgxjrpHbnhXH+rS+c6VPNkajW789v8Qp7dyBUH8Zme0ciO7hHRtUkDhpFA== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(136003)(376002)(346002)(451199015)(36840700001)(46966006)(40470700004)(5660300002)(478600001)(70206006)(70586007)(41300700001)(40460700003)(86362001)(4326008)(8676002)(7636003)(8936002)(356005)(82740400003)(40480700001)(36756003)(54906003)(6636002)(110136005)(316002)(336012)(2616005)(1076003)(186003)(82310400005)(426003)(47076005)(7696005)(2906002)(36860700001)(6666004)(83380400001)(26005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 05:12:32.0350 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2ed527f-44ca-4c7e-48dd-08dab7d9da1a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4560 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747816517880225007?= X-GMAIL-MSGID: =?utf-8?q?1747816517880225007?= Add support for ECAM aperture for Tegra234. Signed-off-by: Vidya Sagar --- .../devicetree/bindings/pci/nvidia,tegra194-pcie.yaml | 10 ++++++++-- .../devicetree/bindings/pci/snps,dw-pcie.yaml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie.yaml b/Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie.yaml index 75da3e8eecb9..15cc2d2055bb 100644 --- a/Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie.yaml @@ -27,6 +27,7 @@ properties: - nvidia,tegra234-pcie reg: + minItems: 4 items: - description: controller's application logic registers - description: configuration registers @@ -35,13 +36,17 @@ properties: available for software access. - description: aperture where the Root Port's own configuration registers are available. + - description: aperture to access the configuration space through ECAM. + This is applicable only for Tegra234. reg-names: + minItems: 4 items: - const: appl - const: config - const: atu_dma - const: dbi + - const: ecam interrupts: items: @@ -305,8 +310,9 @@ examples: reg = <0x00 0x14160000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x36000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x36040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x36080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x36080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x24 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml index 7287d395e1b6..7e0b015f1414 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml @@ -35,7 +35,7 @@ properties: maxItems: 5 items: enum: [ dbi, dbi2, config, atu, atu_dma, app, appl, elbi, mgmt, ctrl, - parf, cfg, link, ulreg, smu, mpu, apb, phy ] + parf, cfg, link, ulreg, smu, mpu, apb, phy, ecam ] num-lanes: description: | From patchwork Thu Oct 27 05:12:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vidya Sagar X-Patchwork-Id: 11564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp36672wru; Wed, 26 Oct 2022 22:15:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4LIfK45mxVleFKc/ZU1PoHpUncSbGPCuDt5sQ6kesusgSZta7IEdJO50f2k1XF7teozQBR X-Received: by 2002:a05:6402:ea8:b0:456:d188:b347 with SMTP id h40-20020a0564020ea800b00456d188b347mr24339425eda.15.1666847732454; Wed, 26 Oct 2022 22:15:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666847732; cv=pass; d=google.com; s=arc-20160816; b=SejwS3sVni2LiOZ8pBg2HJXnloYaiicXDqeeEOKSUQtd7dkQByQmkafDVAUhSz3MWq HTH7cV1mNVAU/+Cw2ZwFUjcJ54jVNhafvhLLyaoUKA79Qa/Lunni9+R0oSeP6rbZvsmr o+tSjjiPczQYm+3JppjskY3mPxX+l/mtbarIbZkD0q+4U8pkfLrLelC5dS+aacR8ezn8 gurE9Ken7pve+IEB5KD/ns/x9TGAgsEtI7fIKkUeGo8ZRM94QQ8WbnP0/E84dU0ILKMP hXhot6F5Kwzn97nq+ukXyeg7CqIL26cXjqYLm0B0UMv7Kq47JlQV54AUmM0FYW/sU48z EBGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=k6ea6zUkMImFRVSquFdYu6dFGgJe/P7KtfzpaacCThA=; b=XPsVE7obwpaehinrUHfvWON3WeVcNQ9BKcdbPZWS+qrhLZLu4/yziuz4NTNkQmSrCM OXit6ub6zpkAeFDL8+8tkDT368lrkHdqmUXPq2WxDAHnlmLSnO3irpPQsdJ67GDqWQjH 7joa3OdOow7l5+cjyldIlerDAn+xbOtpgsJKaD8gln6NKGpkhLQdrkZa+yselh/bqhng tUicMhQkjBuKX2HM34JeoOUw703B9KAlGtDk1IcSmnktnTuCnGHmZwQXjPsRq+WCJP2R sACt7b9I77aG9Y1Y4vGQEu0DgWotb0KFQamzayHGe2k5OXOEpf7ax6YGd62gOf3kgLL7 UbYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VzeFbq0z; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb30-20020a170907161e00b0078d878d8fb7si507132ejc.920.2022.10.26.22.15.07; Wed, 26 Oct 2022 22:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VzeFbq0z; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234310AbiJ0FMm (ORCPT + 99 others); Thu, 27 Oct 2022 01:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbiJ0FMj (ORCPT ); Thu, 27 Oct 2022 01:12:39 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2046.outbound.protection.outlook.com [40.107.244.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1131552EE; Wed, 26 Oct 2022 22:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=azZ+jfZo4pIGQ8UltTRfUC0vEMbEDy9ggdEDkQwAnsZv7Sz9yv5ZQc8FFP6G0FXUzx9RL1TgwUXFIZzT7Mt9hVuBZDjEjabWzrCVI3/7PGaZcxUWHWu5D3WeDgY/pObgeK6HbasRkbOgVmRVGUfBXgRXTrCzAWjugWVUcBHmt+iRvhalKm64vU1qFRxbUuJso/TVcb+aMP9gd9sSfmBGNQqkVQlAUjuxaKKurelmm9A+XuKHcv7+yi1M1Dxm2hB16pWafzRoPgko/5Ay/xD+V4o356rQLBH53fkR1meptLvMGLXedmQ8vjZI2LVsb7Z6UYWjd0gJligSorqgUWIbcA== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k6ea6zUkMImFRVSquFdYu6dFGgJe/P7KtfzpaacCThA=; b=nejsAbwU0zKRCCL6ILjmsIuMbGP/CLyL8TYzb+2r31bIuccdq03o3vR+7bHFyCELlHB8gtj+cT1vymeGO95+fKbLut9jX255TqFVG2LzFG7ODYDZuyNmiuuDQXxq1eEwseDuI7qf9G5K4y3PFwzQN8qeCYtT7FZjGC/ZwnmuQH7pckzklaSUSVbBqmEDlOMJxzGQgmV/E8/UlCV6PlrhR8gZOszlCtoixdJdNHjSOKKRV7Cu5mQiPHnS4VjClAs10rngZI8d3I3KOBlLiAhwqxNBuRPJwLC3q1p8x+fo0Q8aF3IgmNhGGWAnSHiPCk0aBW1XMVWiIsWOL9ogUtEtZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=k6ea6zUkMImFRVSquFdYu6dFGgJe/P7KtfzpaacCThA=; b=VzeFbq0zPGZ+AID61Ths+yHtUM17Yolc0myIq3fNARE45+wLy8UxOXTZwQnTqfmW2lvJlGaJBWvpWtOOMR3tGML+0KCh1UEVe7uOBKN0ziGaTem5u3cJHEI3L7wMU9zpdAhA1c1GuOuj/OsfR0jn3mJXI/kZyAtSc8WFOhEW2+fzuZVekGy979+v2B9219CMKTPJgw6j5Ij0HLTUqJbf4ctJ2ZlKw00rpOFbXSpy7FDkk5Sj07qGuWsKFeKlelqxlf35hzfGKZzqZWyyI2b5iZP1m6RIhBGKiOniBBbWbTCVkLb/T0GW+FwcO5sDuw2moDhALLWUKn5cm0OakF5GfA== Received: from MW4PR03CA0063.namprd03.prod.outlook.com (2603:10b6:303:b6::8) by SA0PR12MB4479.namprd12.prod.outlook.com (2603:10b6:806:95::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 05:12:35 +0000 Received: from CO1NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b6:cafe::13) by MW4PR03CA0063.outlook.office365.com (2603:10b6:303:b6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.27 via Frontend Transport; Thu, 27 Oct 2022 05:12:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1NAM11FT035.mail.protection.outlook.com (10.13.175.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 05:12:35 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 26 Oct 2022 22:12:33 -0700 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 26 Oct 2022 22:12:33 -0700 Received: from vidyas-desktop.nvidia.com (10.127.8.9) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Wed, 26 Oct 2022 22:12:30 -0700 From: Vidya Sagar To: , , , , CC: , , , , , , Subject: [PATCH V1 2/2] arm64: tegra: Add ECAM aperture info for all the PCIe controllers Date: Thu, 27 Oct 2022 10:42:14 +0530 Message-ID: <20221027051214.22003-3-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221027051214.22003-1-vidyas@nvidia.com> References: <20221027051214.22003-1-vidyas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT035:EE_|SA0PR12MB4479:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ee14d97-3f7e-42b1-cd2c-08dab7d9dc42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Iy774vYiPCu555vC95TUIVvnlwSMgzpype8W+ILJEl8NTrLygYt82YM3w/aDN2aQh9KhfAP4jUMCMYsUMV3nt9/d7LSw5RcFwF9LIkOFygzM8RoOgLqF1tzTykNAimC7jBarOE0+I/AeIHkd2CTkFoasenKGI8vEd37zBjA6I12qOwpAH/EzVprWVIk6ldUUeQ28zKxyeiTwKTDym7Bm7b7J95t5ODMTlz1/CEUC7GXNlFEqNNS51Rw74s0/WNSST1kHQ/FbZN78WCFPDrSZXAwc5O1k0zNsJHgubsgScqNvcV2sSUZLYKKn6jGqo0zWFC46J1fzG/Q/WVJN5p4yi/qbSSKA9KlE17StNALOK8shiHcnpjZVTkVWtZtc/giIjiWIRaQwoPvbLgscYWVGCxWkMUbXanro1ev6aC4zNeZnvJSLin3AxERy0g9K0eGOqjrmTiZyAvyMT2P7PBZAbQtKzZLEcNl5pJVS9wAIPL91tKgG7aBwTVDsinOBm4DE7TAdklldep8PV1RJf6mpNH81MkAVPMgkhLVfg9XL4+8miZZr69tBXfua8dH92fr7omy3loWnKx4I8JkR8OQm8KUVv4oAWEZC6XrESXdTQDVaH2r/BbMWvrXBkxz6U8N+BGgCEHONfN9Z2D+Z7lTQhEFXhOju45Mdn9Qq3t1Yq357nMJ6RRf+2Yq8T/g1TSlv8cj6pFAhbTcL6OXe5xuCuYm4zvT9iAA+rm9MVrG6LpXvXsmN2HF/J81ery0EBeW4m+/ekmGWWE1QXK0kIxfIFg== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(396003)(346002)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(70586007)(8676002)(70206006)(41300700001)(36756003)(4326008)(8936002)(5660300002)(6636002)(478600001)(54906003)(316002)(356005)(40480700001)(7636003)(83380400001)(110136005)(6666004)(26005)(82740400003)(36860700001)(86362001)(7696005)(336012)(47076005)(426003)(40460700003)(1076003)(186003)(2616005)(2906002)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 05:12:35.6560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ee14d97-3f7e-42b1-cd2c-08dab7d9dc42 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];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: SA0PR12MB4479 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747816528123961552?= X-GMAIL-MSGID: =?utf-8?q?1747816528123961552?= Add the ECAM aperture information for all the PCIe controllers of Tegra234. Signed-off-by: Vidya Sagar --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 55 ++++++++++++++---------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 85b0dea33117..f5d20f7253b0 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -2044,8 +2044,9 @@ reg = <0x00 0x140a0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x2a000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x2a040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x2a080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x2a080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x35 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2097,8 +2098,9 @@ reg = <0x00 0x140c0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x2c000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x2c040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x2c080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x2c080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x38 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2150,8 +2152,9 @@ reg = <0x00 0x140e0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x2e000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x2e040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x2e080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x2e080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x3b 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2203,8 +2206,9 @@ reg = <0x00 0x14100000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x30000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x30040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x30080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x30080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x20 0xb0000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2256,8 +2260,9 @@ reg = <0x00 0x14120000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x32000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x32040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x32080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x32080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x20 0xf0000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2309,8 +2314,9 @@ reg = <0x00 0x14140000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x34000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x34040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x34080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x34080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x21 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2362,8 +2368,9 @@ reg = <0x00 0x14160000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x36000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x36040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x36080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x36080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x24 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2415,8 +2422,9 @@ reg = <0x00 0x14180000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x38000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x38040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x38080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x38080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x27 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2468,8 +2476,9 @@ reg = <0x00 0x141a0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x3a000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x3a040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x3a080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x3a080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x2b 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2521,8 +2530,9 @@ reg = <0x00 0x141c0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x3c000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x3c040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x3c080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x3c080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x2e 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>; @@ -2574,8 +2584,9 @@ reg = <0x00 0x141e0000 0x0 0x00020000>, /* appl registers (128K) */ <0x00 0x3e000000 0x0 0x00040000>, /* configuration space (256K) */ <0x00 0x3e040000 0x0 0x00040000>, /* iATU_DMA reg space (256K) */ - <0x00 0x3e080000 0x0 0x00040000>; /* DBI reg space (256K) */ - reg-names = "appl", "config", "atu_dma", "dbi"; + <0x00 0x3e080000 0x0 0x00040000>, /* DBI reg space (256K) */ + <0x32 0x30000000 0x0 0x10000000>; /* ECAM (256MB) */ + reg-names = "appl", "config", "atu_dma", "dbi", "ecam"; #address-cells = <3>; #size-cells = <2>;