From patchwork Wed Apr 19 17:55:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13216763 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 9EBE5C77B73 for ; Wed, 19 Apr 2023 12:27:33 +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=94ltDazXPjnyStcu58CtOyZSReWv0tJj6v8SwBtvuzI=; b=EhEVP9VdBrAfTF ygbIg+1/VCB1JL3rFAfKNo3DUk9FHgeI4wIqI3t7as+7SRv+fHgqZEIbKHIlcRumVnFhi0EjbO0lx nuGrGUZ+OO2kAtxBj2m668C3CwHKIpvFecYGm1rS332Xu96V8Q/FPMmSH6bor86lQxZZosyexzSS3 dpyAzfTT+uEZ9zhD+UrWgfPE6qkdgC4yVWETEPoXfklJecubc3fcyoXbxl0eJduUXx9c2oBM8N+wG 2PHmnfWAZVK05+1rvDZLVMQHkX82ZtImyeamQI75SQIzGw1ZGSRt2lHFu8ZblZ24wOZkdOOi83Xdy 3OlJuuIPgaPem+cxXdtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pp6tX-005NB4-1v; Wed, 19 Apr 2023 12:26:43 +0000 Received: from mail-he1eur04on0606.outbound.protection.outlook.com ([2a01:111:f400:fe0d::606] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pp6tU-005N9L-2y for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2023 12:26:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QCYw1KfVTsEr0TsW1LS6T8ede8LtScvzAgnjPVlx5zxE1EhV7NCC2VqKSJXaLLhVf0Lrq3fc3D4OZDGumy5p7xJZB/cUBqiuWacn/wRAdGbK742f2ZKhQpOA09xwczHb/d/nYhSYnDFSx9/vklf+QK4UWzA/jSKnCvL4uHoXp4GBk7pktckeqFm5S2UBkvcW1Dhy7Tid0ij8kb5WCfgffo5JTpYVCV8TdRfCxBT6dR4ItwtOz6+iaWEIgth+rHuUICXioJ4U0Evs9x54zYUP12rhTDGpEsVoybQwSpVoabeS1q4LEVLFJRhenPmTt9ImG5uEBZVnAWoxx4+cH7lQqQ== 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=SnrCKd90iOlJl0Ik0f4N/oSjQZQQUwzhdJYr12QdY+4=; b=dt9nEwaQ6MFLwtHVDIg06FDaeCvrBZasw28I9L0NhxcJwOpKhYTltU3MkRk2ZSBBlhANqjGQThwct87Z304mnjqHKKYjMYRiQlWb89hpJ2PsLNHGJj78f/bqNkcKBHRJo1etPD/dlsxU8dPyek6V7akQRpWx2sj1FfKom7od/NQNSlDFTQqKecLvwWpilVqYKrRYY6oEQSvOPdpIrwSh6ul1sqQJRhi1P6QfZFdi/gW3uf2ZBf+358w/tIf9nQEHUcXNc2GcsE729DOVb8e1wgGXHpP18cv4KTzfZzqFY/asyLfi5BXGQwpPFkiaAtGJ63DmbwMy0WF9fe8TnAwbrw== 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=SnrCKd90iOlJl0Ik0f4N/oSjQZQQUwzhdJYr12QdY+4=; b=IO4Z/umIBY3+CrxuksaAmq871kEbJNBDNnrtVdwbx4mGqqtHQO59hqvJuKxxm4ViPloE2vJJrqdpKRDpF1yhFw2i580/+3YtpOOCnUBrdATnw5/rfY+EUDwcrAFkzNkne8mn0FYsjlH5FMGOskqeFtO+eN7LKGbWxoNvB6RdiLM= 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:36 +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:36 +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 3/7] arm64: dts: imx93-11x11-evk: reserved mem-ranges to constrain ele-mu dma-range Date: Wed, 19 Apr 2023 23:25:34 +0530 Message-Id: <20230419175538.855493-4-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: e1e0bc75-5063-43ab-479e-08db40d15188 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YkuZm43+Z9HgVs3rChKit0ZIuiYS1iuI93Cy0X1UVSeup2Fwm5HdQanR2G6axV2CjAEG6rcMZKHYx3QKX/LuwNmIyi0EZuUKofGNWphiGUtEH9l8TRWIy654RkPUYhCVjPK6iOzj+TE9gUaYdgVLfJczept50r9Cfa4e9MmhceXgK7q5U37LxA+lByTM9fa4CKJlzxy9eKWdwB0hnzNNvuUUvb+wHsBY88TvPNv9AM+/cXSyiQPemTWknEbixgOh+oe/xYlgLelTjdRIRfY7JgIKqUZ79b/g8lVgfPIDgHggDdf5QF8hUQlkHn7Xt3oGOtTnQjcPb2z+kiqJgYzxg+jKMmlWrarnrpzBrpGW6ArDJP+jVnGkCWzdRRIKr57Ua7imZIa5j5OfnpX806SWznLbqMIUR2FTXnQLixH84b3OcMhPP5p8gXnCWocJsyU77Od1B3oI5V3cX0YDo7fVp5qtKbecD5R5Y/e6oHAiVfdDgFsNxI7kjZGcRTgMnRInAhsDuq0w1g3GcCUhuZYda1GWtqUndBrRWqsTOuJQySgVIlsNHoYTfQnkIw+2zE6Ev8OG7Z+JkMbVTrE/GwO3Ka301m7HelK2mxBoifrXxQiudM0e4C7DoLfMcPsac6w3F34oepW3uvcH6VtAFTTn4A== 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)(66556008)(4326008)(66476007)(41300700001)(66946007)(921005)(316002)(186003)(5660300002)(44832011)(38100700002)(8676002)(38350700002)(2906002)(8936002)(86362001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nwC7yKQkv3vHNyCDLfTlTy8rZcbfSbp3HIqX0wfp1H/SVDWR4z6OJ95azs4qqxEbeUOFavYLd22YVENZIqdzyd0m3ipGciwnR5xz05dXkr6rsWLaUQmAqbdb2dVE02jyLeWlpn6TCi5tBsPNMVWWF7knWU5k5aKWcqaezGaRZBUToQZIvl54JlwgzW5xaZxhYhJLB3z0klYxaOvIwSrG2RPNmypzCVxj0NblPGOpCN3s7Qp9/CRdQs6mk3ATm4wzAeK3Op14e941GiV20Be0SocudKem3RotJjdgvD/g3A92Rs1rFw5aEhPcXi5xxVmG6I400v667rTcRJLnZrMrZDkLcD3c4/QYROVy8VaaR5RRQoIzqAYCombR12nCG+v17PLYnaWnZ5evzO1GkX1YmyDnjclM6/eXWQ5g8S/ZNN1zflZGp0uQn7FWC+l6mGkbxPA6hrqG3GULtUW2CvjPo0XVyQGs5C3qQmu1iXzH30uUSgRACQ9IE435zntZnx9qUs8JUpCRCi/nfrLc7KiASVrVUUHM4VKmojsd0w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Id: e1e0bc75-5063-43ab-479e-08db40d15188 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:36.6663 (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: Jg5ox+H0iRZfnUIKDw4EQKHZueBLWj/76lPCCrs6mF8+xSuhD2dUSOg9a6IEygU+1CixgoHDHZSR5ah5gAmSUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7386 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230419_052640_974030_BE1822F2 X-CRM114-Status: GOOD ( 10.36 ) 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: - 0x80000000 0x9FFFFFFF 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/imx93-11x11-evk.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index fefb93487291..bb090300829e 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -7,6 +7,10 @@ #include "imx93.dtsi" +&ele_mu { + memory-region = <&ele_reserved>; +}; + / { model = "NXP i.MX93 11X11 EVK board"; compatible = "fsl,imx93-11x11-evk", "fsl,imx93"; @@ -22,6 +26,17 @@ reg_vref_1v8: regulator-adc-vref { regulator-max-microvolt = <1800000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + ele_reserved: ele-reserved@a4120000 { + compatible = "shared-dma-pool"; + reg = <0 0xa4120000 0 0x100000>; + no-map; + }; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default";