From patchwork Wed Apr 19 17:55:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13216766 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 30F84C77B73 for ; Wed, 19 Apr 2023 12:27:48 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6imWF68r5JsILw+Y+wf2sGB3QXMKhT7n8klORbwu7AY=; b=rI4V6Snd2BR8BG 9/E/c0h0iZBpw21e8VAGf/QYCs2+st/k5ZdO2GYRZLl94/Kbm1hIQzNw9AlTq0MdVRt9L1JCEvq3u ndtItI6sL0YDWwPUf+FMc3Z1h2WvWeAiiafE4QdegeXDK4lZ89UdakMpKikdgnHwwfuHRCVSCcdUz eyFZiWCumkEiv5l42ouomEhHDzlKAsrNkA25txyI3dClWu4n9iZym34WCByzxOfrAYkGeIkoxW868 RFRYkv9xnqwolqueB91FLgunBD8yDy1qFf2UETBfqQAjs6N1PVGL84w8drWY1BoqvUnHhW3/qy54M yg+n8MzS6twzsjNNi8bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pp6tm-005NIN-2A; Wed, 19 Apr 2023 12:26:58 +0000 Received: from mail-he1eur04on0618.outbound.protection.outlook.com ([2a01:111:f400:fe0d::618] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pp6tg-005NDG-2K for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2023 12:26:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OepVoBdScsGKDN+mXs6YOk5bbGaZt1kbxObLe9Hz1k2+5rljQ3xhh26Xciw4m4fawu4jcI5RQn8a9axNKvvhViy1T3/5AiMSRPs0Ldxek6N9aVLnA5WKmHZrFgJ/JJ8z54Z12aQDT+FPjyw5bESDi7DuH7IBKUlx0keUSKcx9XPqoBb3+4f6hcOOo/IETandB9IeNq1J0vZ3Fr0dUy/ebO52RaL2wp/qN/E4p0ChNb9Xw9IbnMHp8J0XF3LhBW9163GskeiEdMTfiqgC49uWdDJJo4kUZsCXWVETf04O2T6j07ZbbkxgwvV1cvvOecsfGqGYB1/z8vxwy66EavaOQw== 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=DFyzIxZnvOaPzlmylq1VEd/n8LVahEENfFCZeDmv1cM=; b=SynpDb8EvxLv0LYAkocBl02kcxCguuqsmc5se7SVunIdT5Sxhmc9CSu5OShD5hTY4vAAxQuxMvyHsndqIZ2KxjS/UtdYzZ9TjzFeQ1c5QMa6Kj4R1y7gB4Cp6UMQ9dvwGHVcJLveiBE3VIjxTJLCe0pn02vcMf4c8SuPdpfE2cSpiLj4oUH6KWcP53+T6XVS5ukg+iwY2hkRIXd9tcHVAK4TKj0QSJHdgYIdyTX1BdD0BcdRS4SE0FIthAewspzjaGqrTTTzWl7MVymCraRk/vJ/Qex7nBPHPKTdgLCjho/axLN1cyZUfes50ZI2qDVNGVKyJmMuLxoWdyaMx4xQwQ== 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=DFyzIxZnvOaPzlmylq1VEd/n8LVahEENfFCZeDmv1cM=; b=Il0YP8fdDP32LGv8gNfnbx6xG+VYMtuT6zPMcRAtXobYY4Lg42doZkURtH5zgNi+oR/N1Jpy0KtMGFBtzs4dYpU8iYXzbPdtv84y9EI1RofwlO0CUrYU6mjxaZQbMQ1iQdF4snR+qqpdubLbYb7gZj3AjqSmhN407ilEJp27ylo= 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 PR3PR04MB7386.eurprd04.prod.outlook.com (2603:10a6:102:85::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Wed, 19 Apr 2023 12:26:47 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::bb08:83bc:69ce:21ed]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::bb08:83bc:69ce:21ed%9]) with mapi id 15.20.6298.030; Wed, 19 Apr 2023 12:26:47 +0000 From: Pankaj Gupta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, gaurav.jain@nxp.com, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Cc: Pankaj Gupta Subject: [PATCH v2 5/7] arm64: dts: imx8ulp-evk: reserved mem-ranges to constrain ele-mu dma-range Date: Wed, 19 Apr 2023 23:25:36 +0530 Message-Id: <20230419175538.855493-6-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230419175538.855493-1-pankaj.gupta@nxp.com> References: <20230419175538.855493-1-pankaj.gupta@nxp.com> X-ClientProxiedBy: SI2PR06CA0008.apcprd06.prod.outlook.com (2603:1096:4:186::23) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|PR3PR04MB7386:EE_ X-MS-Office365-Filtering-Correlation-Id: bb127714-519e-407d-f7c0-08db40d15813 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DIy1tCId79T+d6yZuxhpUlQK5bYcitnyiZGamxUijpWzkjPEUuL8525NkHF3ZAX7cBcYqdtmE4gzjZaVpYAH5CKQ+nTxaAGrVg2lZa4T+Qq4WZQBYHgIdOhkfok9u5UeOxRI2E+r/SeDOvpDKYkl5XlPkRwauC7Wk7/DllGMrlbfv0fqvNNTwPIYBRmIgtwt+ur3TUVbcTWgQKHsci3JAyrGpJiNCdwryz+ZAns2Riyw+G9+CbXMp4ZnZJhLkvOoTeNvxCIivQewXaup5tscZnu0UDrj7qG95clmeXE9f6MJknxBSbCKVKDAQ+oW/wOTUXDAmB+V+rcCBB+dHG9bBoPEPHg1y/sJyve5b+12bSFfMUPZHRrT3kQVpSkxB89an2cJoeEH6oYbffjnfGeyE9R3kQPZlPtWafgYRFOe83aUCuiM/M1OBVH0lz34Gf1r4sdOJUKQ/rt49EnfniGK8OCWu9cJAo9CHZcUFLSqKm+wJdP9DycDfjFiAWySVnI2gV9rh+15eRraJd0HKfhyFjVLHevIF6fkdrf7Y5moI3mRog5JoBWx0pZRwdY9qcro7rk6OxJ0sYe3ijwe+J0l4Z3IJJu1cepq/g7mubVCoxn1syEm5hK5aqlsbNrT9yR0S6UZ0pg97gRqUiu4igMqlVy8niSdISTaOXSJhKCmfPM= 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:(13230028)(4636009)(39860400002)(366004)(346002)(396003)(136003)(376002)(451199021)(6636002)(83380400001)(478600001)(2616005)(52116002)(6486002)(6512007)(6506007)(1076003)(26005)(6666004)(66556008)(4326008)(66476007)(41300700001)(66946007)(921005)(316002)(186003)(5660300002)(44832011)(38100700002)(8676002)(38350700002)(2906002)(8936002)(86362001)(36756003)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: q8w/PVDPnLPJxd6BEMHnbmQGjnyeaSV+ZgRdmXQFrzWLLf4xym+8UqaYpYkd8k8cqHflgokHuLcEAl3eDUHW/pw3efrEOj8ZTaybTyfnWU6nfnz12wTORNU3o9Y3rD5Y1wRPP85eemu0pCmkXgKwqcTUluG+09ABe5+YDbvkyw18cgFTXzW8ofz3vvT8zwXTw/gnOtVcf5kzLAm7ml5ihMC+DNV4m05+IqEs9wcEPIW5Mq0HP9tpr908FvzZFbECjBGT8zs7H1Z3hYdDoDxgSuB4jSaYfocYY22HisBQYehFKHZqrAIGrYg2DJZPdZShaV33epKuqcEsZgn8jH2d7SpGZd8Hi9oQCI4yHYMsZqYbju74qPyBqsTR2Yf3GU9mRn6OF2fBmYpL9NSJ8h/qqojrnoxBb7O+2AhztPoYWVoLOYBeAxVgchTPFrWxWeelgvUZajTF1vBN4g0fsegQwFz/bzZDj/+ccAfxq0bw9Wfrau5kgtplSH++Tze6+FT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Exchange-CrossTenant-Network-Message-Id: bb127714-519e-407d-f7c0-08db40d15813 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2023 12:26:47.6468 (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: gLoNfYsm+ybPyMtxPr42SgLCqP0Wpeww6FFhRGBL+2zCC35IitAvS53miKYdX+mgChIQXgFQ/56gK4JueDVpKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7386 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230419_052652_762264_3A5B7D30 X-CRM114-Status: GOOD ( 10.52 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org EdgeLock Enclave are has a hardware limitation of restricted access to the DDR memory range: - 0x90000000 - 0xAFFFFFFF ELE-MU 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 f1c6d933a17c..d2a39e9aa951 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; + }; + }; clock_ext_rmii: clock-ext-rmii { compatible = "fixed-clock"; @@ -53,6 +64,10 @@ &usdhc0 { status = "okay"; }; +&ele_mu { + memory-region = <&ele_reserved>; +}; + &fec { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet>;