Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2725892rdh; Wed, 27 Sep 2023 10:44:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/ZHb0P87bvgJMYzojYT1Mt37mksd33l0UdlnDqElNboITtPukli9wWD8TVdSChE93uz5J X-Received: by 2002:a17:902:860c:b0:1b8:ae24:c207 with SMTP id f12-20020a170902860c00b001b8ae24c207mr1999429plo.68.1695836650327; Wed, 27 Sep 2023 10:44:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695836650; cv=pass; d=google.com; s=arc-20160816; b=DuM/m1WX1gHWwUD2tHyYWUg6sGBCPNeByb/psOHfF3zBvArnoLTGsj6td+N72b46Fb H14JZLbm0ZNF3OHCMWZxn5mCScOpiB3TUvkhec4NpKfFWLsgxOHFqkg1EJXDsOhoULH9 9B0wuGSETr4wC0rgpdIkzj0QAOHHrn+OZ0g947VWvFLSFksjbq3nVCk4Dq9XYIdTbrGx ksLFNgTdLZIEU12rK2y4tDAy5XyQeXQOD3L4dMAutMoSJnLm+y+9xZ43v/i58WXmaA6Y ObJz1/zOGndCgdg2amcTAUSTYmdgiptYSXIW45BwB3T1rRJo03vC6Waee9FqVrVLfR2c sfkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6ooInUKYhlujOhjindkRtW27/T2+Byib8g/PKDo99Fw=; fh=9EixoLGWSW/V1kHvf/UsMmvXwKFucI1ihymg0Jt023w=; b=hgWuvPg2ZghYtPkjqWM7SsnO+ObehsMEmtCHQEDI9LEKJjSH1/lZ+hr+kI0nvFjuz4 e2RYUUcT9BVN/FaI22lAYXT4d/OuAmJoU9n7HStkSlGuj5rs+ibxG+7Og7Bf6bu4/NRA mzHPW3JYlG+AOhs+6EvLN594Lkx6rWx37K1fTwzYJKWLkKdTu+s+eVqHLmmbmQKXIvtC 7B4h4Hhz2UPAhcI3kFZx+NzX1yECTpeZpRYPxMyL2NMPQZqOT1S7cEGK7SxGvzDM0C12 i+zyeGkxoUIFz4jmHQ969ui/Wvc29ykM1fMrlY0JsStayd2KvjgPDORteaZwpWjsprdD wr2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZS1yOfu1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id li11-20020a170903294b00b001b845157b69si12033034plb.414.2023.09.27.10.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 10:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZS1yOfu1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 552D9833E1C9; Wed, 27 Sep 2023 05:27:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbjI0M07 (ORCPT + 99 others); Wed, 27 Sep 2023 08:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231698AbjI0M0x (ORCPT ); Wed, 27 Sep 2023 08:26:53 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2062.outbound.protection.outlook.com [40.107.105.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 958231B0; Wed, 27 Sep 2023 05:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BSyXr1XKzym75LWsnT7cdLrQBbd/5vx3Fzp8Zea6LLdgL4Wu3NhbSdsximIp7PHNxk1IGSrrzjdHmJJo/nE5uMLS0kvPXjPb8P3p/pj+RbxknntjjWQ6a3J9xfmwLyoErHCVTzwgNjZ5SBa1H1Cacl1TPIBS5VysuBMNxAA6FmP1WRv182GuCZ3p+4etf0L/Qu1h3XMbmmNIH82k+n/ZUGDVE6Ad0eQ1j9G0t2SWYHaAf/9qhG+Jy55d694tQpEJyJoIS1hQ/aCsYuzCICIdpTr54kKFknRfVDdxEjDlSNBH8XHp12rYaSPvDbxb60S8rbYWggPzgcy6Hdxkvzqttg== 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=6ooInUKYhlujOhjindkRtW27/T2+Byib8g/PKDo99Fw=; b=Egc2POKNN/i8g+LFVlcuP9IgPiQCWJ/oanbMMHW2Ub+aE5Ka4M/B62H6tRmzwMoM7GIwFe2fy2MYed7kZjMEqCB3cG3FQDd4t5utTR5TKQVgbAzpST9NQzAWhWtLLbhpNNOq2qUC+jJ11P54WMaTT2hIT994E1zBIEj18iwiUB6TgtABXXOHzvstG6BFTLeFvRZvEgLA5fdWouOhZ+c4XA0teNbvxVXtWrtJ/uXGRRVg330+LcbSZM/rWg0bphci/DJGFLlal4rqH4j/LW3O+scDcKjvOj5LtxBHDQA0Q1OYDJKRWVgG8aEbCNKf9EJgb3CsB737nCkPlKysC9WuMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ooInUKYhlujOhjindkRtW27/T2+Byib8g/PKDo99Fw=; b=ZS1yOfu1J9tqk1knbmvPG6+RmgqIv7x4SV7kle/d5QrP6IZS2W7kQHa0dhdoZjR6TzqjEUFEx9dRhOJpWCgtVtOAtNIZCjt4gm+QVAJ6+PezTLiVQvU+GU3L5CEBPC8nRsB5O4K3tc8RPOrTcNcQkMR4beeWS3jWsaBqn1MMbo0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by AS8PR04MB8181.eurprd04.prod.outlook.com (2603:10a6:20b:3f5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 12:26:48 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::dbc:99b7:7808:f82e]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::dbc:99b7:7808:f82e%7]) with mapi id 15.20.6838.016; Wed, 27 Sep 2023 12:26:48 +0000 From: Pankaj Gupta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, clin@suse.com, conor+dt@kernel.org, pierre.gondois@arm.com, festevam@gmail.com, linux-imx@nxp.com, davem@davemloft.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, gaurav.jain@nxp.com, alexander.stein@ew.tq-group.com, V.Sethi@nxp.com Cc: Pankaj Gupta , Dong Aisheng Subject: [PATCH v6 04/11] arm64: dts: imx8ulp-evk: reserved mem-ranges to constrain ele_fw dma-range Date: Wed, 27 Sep 2023 23:23:54 +0530 Message-Id: <20230927175401.1962733-5-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230927175401.1962733-1-pankaj.gupta@nxp.com> References: <20230927175401.1962733-1-pankaj.gupta@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0128.apcprd02.prod.outlook.com (2603:1096:4:188::20) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|AS8PR04MB8181:EE_ X-MS-Office365-Filtering-Correlation-Id: 42c9a8d2-08f7-4bf9-1861-08dbbf55051a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uo8I2eNRTQQYlKM2tUz8/yqXyrf5/sD+rq52OmJ/OagcEisV2H9pDpTaBqTxEKAH7MsRkCLUqi0Kk3tIjtTt5y2eMfSbu/UCBjHoh0DikHxHMRYsizBSxcvAN3my26BfPve1lUDkRhhpam3e5z/Le9QeL+DQyWAslP7mKPBjRRQCCQRE6DIvHZJv4EvqBI19PwlKuYGoYIqNSkmFoJhvjOQVBRMGjfClcDUYb1kVNRFU1KJBndIIsY1cuJvCLaehSNfqIDZ9ANG9UxtIK2ltLcPlzbq4n7lQ8Lf16fmJBIPDdK+hShCA8jUJUyp1qPpCN/A2cx5heeeJJnIWRBqMrQfPq3g0leNX6bV6Ie0aDu9kKgVf+Bv1RwHapH9Q/dc6GfBIcXTf3uRsIpfBIEE9AXxs5gvESk7Y1UgsIxXDlwe1fBrl1oJS8IAwQw5ns8DatQVxYiSsQsxbDpkQECsYOzYqyjhD8Xw5YMcWzl7uBEMz+wXBUxzBLRi+MEqwOrGADEGmR/wR0SsLqJo+hEeqDWv8s6PTNh30HwSrY617/Rtc0F7Got+/5FhLNtCBSFfEbhBAwpzQUpId+Gc4jaIMOwIRX308Q9vRdYdUdl+Mz4hlZ33y+tJrn4Ffxy3U95I4J5PgHJ1lJCWVa2OaaHtqygAwLn9WXHPSaec/1hxTdVE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8630.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(366004)(346002)(136003)(376002)(230922051799003)(451199024)(186009)(1800799009)(7416002)(5660300002)(316002)(54906003)(921005)(83380400001)(44832011)(41300700001)(6636002)(8676002)(8936002)(36756003)(2616005)(66946007)(4326008)(86362001)(1076003)(6666004)(6486002)(6512007)(52116002)(6506007)(66476007)(66556008)(26005)(2906002)(38350700002)(38100700002)(478600001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ViCEZ03EOp6D12GKBj6VNjWmtPV8QlGQbOjFMFKcxMJsmOHAe77PNvCj2op9?= =?us-ascii?Q?7oXgkIgeRj0lno0OLMXHeEsVD3W86LguGZo/0njyMR8Q9OF7IFvHhIEBiZbi?= =?us-ascii?Q?pYN6GHPgkxX/rqjYlKMYVNVOCRUPn1Hi9yHQuxXcBrLCs8aOW8shLuNVpdSK?= =?us-ascii?Q?iGH1HKgOHiSLSckKpU22EaFIGgIBtwhtHQI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IxQjupMQ4VDYajeOFoFQuFCV6BJU0L5mHLIScmb/FGVFIa8Mtzl?= =?us-ascii?Q?LrBZ7jZLjOc5RvshleZYRAbgRFgex0IGe71bRyQVkbz7nwN+oTUMoOvoiF1+?= =?us-ascii?Q?niEPg1b5AtbOm221ZVQtlPSJbnriXNp9UI1XJJh1O5i19cWJvhTG09r/Lt4E?= =?us-ascii?Q?Xs5yxFxVCN46gOiNof/aUfSnOorqc0B7a4eCxMPfhSkUSEVvb2JCmKMo/cyB?= =?us-ascii?Q?QK1xoDUMkDXCt/FFSa5dDYPx8fXIomS3aQI1Fp5XYoUKZBnQyAJulhiR0s3U?= =?us-ascii?Q?scZ8N5Yd0XPjziAWRa1ZdR/nXL3F3jFRXZ+4DdSJFF4NL9fwEvjkHRnK2M3d?= =?us-ascii?Q?VrG3dGwOi0w4wtLf4iBKcNQFs3DSqUSyMKBIGVTTelCCeTa3fdmp8U0nxJRr?= =?us-ascii?Q?Jd6F8/stmqouWEqMwUxTAapBJrxTgWB+97W7q4Uj2cB14QI51vv4FfG5kLAO?= =?us-ascii?Q?mHudPSDXB/HaXIUuIzqUGpBU6GTSkduu5CzRUiVX?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42c9a8d2-08f7-4bf9-1861-08dbbf55051a X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 12:26:48.6075 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: z3s/wriCgoPEyLL19ujICgaK/5N8H/Rf0mLP0/JUnuApXkGkdobitHB89oIMUepilWUnrQUzepPivxzWWG6uHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8181 X-Spam-Status: No, score=1.6 required=5.0 tests=DATE_IN_FUTURE_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 27 Sep 2023 05:27:23 -0700 (PDT) X-Spam-Level: * EdgeLock Enclave are has a hardware limitation of restricted access to the DDR memory range: - 0x90000000 - 0xAFFFFFFF ELE-FW driver requireis 1MB of memory. In this patch the we are reserving 1MB of ddr memory region from the lower 32-bit range. Signed-off-by: Dong Aisheng Signed-off-by: Pankaj Gupta --- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts index 69dd8e31027c..d5cdce62a760 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts @@ -19,6 +19,17 @@ memory@80000000 { device_type = "memory"; reg = <0x0 0x80000000 0 0x80000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ele_reserved: ele-reserved@90000000 { + compatible = "shared-dma-pool"; + reg = <0 0x90000000 0 0x100000>; + no-map; + }; + }; reserved-memory { #address-cells = <2>; @@ -146,6 +157,10 @@ &usdhc0 { status = "okay"; }; +&ele_fw2 { + memory-region = <&ele_reserved>; +}; + &fec { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet>; -- 2.34.1