From patchwork Fri Jun 16 18:11:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13282746 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 4010DEB64D7 for ; Fri, 16 Jun 2023 12:43:30 +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=hrxerlfzXICt7X 2RV8X/j99kyb8jEPyNhWlp/FnofLAZZlCVtT/Wi5hVNBKTVwgbhNTR0tDn37/ewqCIfezuhcQH+SC quPZdBotuvEb6WzeUQ7t4iipaZkrSg01E04S7Trx1057wDcYc2pUPNkXZcJ4oZk4ehjlXTlEINQq7 Bn6AtZlRxEioT0jcao3fBEpoaJvYeYfGbhzbDizzU5cRDmIMOoswMkFDP1BH1H+eowA+HECZhYkPQ uCl3BRW2odakmUCtO4RFHUy/Yg+DL4OkjNXOSIMDrsrJ9h0ZdTjwU4rWlvvq6cPAOl8zevp3agT/J wYCSgsPlmWwhyOEEQQLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qA8nG-000as4-2n; Fri, 16 Jun 2023 12:43:10 +0000 Received: from mail-db5eur02on20624.outbound.protection.outlook.com ([2a01:111:f400:fe12::624] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qA8nE-000arN-1Z for linux-arm-kernel@lists.infradead.org; Fri, 16 Jun 2023 12:43:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WHylA8aeS7SiQTuxi+Jf/TUGFQehVrsfLcpClDwJRZABM8zLmC6O8iYyw/BPdSYACTJvU9m4pOOpSfTLmSKgmP2EWNdetQqYjbHEua2LTkOdWFI8tZyIinplu3s9NqNd+I2VVruO8ZxNGaY6p3t2blU5edX4Wz8AqEj54a3Y8cwbAWWFAqf8CLCUZTf6AStvmY1g4+cjhRZ8crNG/2D+aTaa8N0AQ713Fix3wnOcpADpGWKm57n6h2MCMQvPMRCc1qyH7vncSa8C0DHuYIIvPR/rzXqLebyJ19wBwP8AzOsVtFT5OSsELy7lz0SJtUKKiZoylftUf5RsTNO3lQdgvg== 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=W/LxQ0I4WGIolD4s0+23AqRlqFfi2tUGP/a1UkbDGrp0myUDRqnUq82FggOd3NfUdn1WqCSOttGVq+Y75xG6XCzdgBUhoT6E3HMvSJZH+nIkmTVBIO1UcAcHadzLH2mGFGsfaA4LYrYbgSAnMVtDDzzbdQGOlGGni7pVfDwtcG7SN8SCP95QC06x8F0z2jAiyv33EY3xUGRFYSzg+/jNg17Vatr9dKHFkeoGyIwvZuTgJUEKk8FSNb8FXAOxLzwgHZ6sGU2BbDhx+V19vyZ4MWssAmhp0oseKjFgW+km8rvAajGBAIf8vbTVAXwM9tx81fdVlbHpBtfTV4g8gNoE+g== 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=A3k8QpHzKCAM8bkRdhsbkatZilJ9CYO41AMs72B17u1ekSSQBRBmf2y17LOt92jw/pzz3zrDi0j7493qPf2L/HVCGvOLkafrXF/OOhlYxi17mGIKVT2eVGNv3XkqPEdoC/IyuAPDznEzHAlySHEfRurTnyf66fy+tNyfa3Y+slw= 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 PAXPR04MB8320.eurprd04.prod.outlook.com (2603:10a6:102:1cf::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.25; Fri, 16 Jun 2023 12:43:03 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::413f:a9d5:4c09:9dad]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::413f:a9d5:4c09:9dad%3]) with mapi id 15.20.6500.029; Fri, 16 Jun 2023 12:43:03 +0000 From: Pankaj Gupta To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gaurav.jain@nxp.com, linux-kernel@vger.kernel.org Cc: Pankaj Gupta , Dong Aisheng Subject: [PATCH v3 3/7] arm64: dts: imx93-11x11-evk: reserved mem-ranges to constrain ele-mu dma-range Date: Fri, 16 Jun 2023 23:41:40 +0530 Message-Id: <20230616181144.646500-4-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230616181144.646500-1-pankaj.gupta@nxp.com> References: <20230616181144.646500-1-pankaj.gupta@nxp.com> X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|PAXPR04MB8320:EE_ X-MS-Office365-Filtering-Correlation-Id: 876ff24a-afe9-4499-18d2-08db6e6739de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HP7gGG6qLqh8Kwuh//eYOSAC2YKl8QEfT58RkbRiEL3FbvdYwLulTzEJBch5vCi356JKCbhjjDuQjjF1xPWAnKX/mYTZGatwDSJgqbdqUBZDTX0zg75yCLczYDAj0CHeeCvUXCsHZSEeybVybiHZor9O4LxROkaVpQawOv6gdQ7DlmCVzVQRHDffAEYajfU/mI92z9yJvXtPygV+fcA9iKkkqEIicNOxSZ/H5F4CxKZsHjvVjyCOeqzcXGZYa48XGXSUTKcJwRyBpGOSNmwt+0Da/lhA98NhXY9VSYJO315E01Hjqy5FLjZgQldmE9BwTPkehXxO/1YeDiGNffKmkOZW3XjoqjXREjXyYrmFYkXZZJQbElmSBsGSNZTCch0YWcr78ORpNcx0u+BT6qfcmkkfjEvvLo6BSiregKouzvX/KOyF0g0Fk6RpbWh45GaTV97nNu5oG+YuDrV9Z8QnnLrGTrimIyaAJTx8TJAfM/ZQV9LOrLlQ2+wuX7uLhInrr6Cz9GFcEj4Duy+hE+KblkP05jfK+4kUIwo7rc8z5MzvjPDhD1y2I2mOkTHP69HdlAXlIZVBDexi8ZdHbvdYkCkzZXTEQyKpfqYCENVLDqfTOCunURNe+DTa0bm4UP11q17o6tlJ5o+ATyv5HYybrw== 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)(346002)(396003)(39860400002)(376002)(136003)(366004)(451199021)(5660300002)(478600001)(54906003)(8936002)(41300700001)(8676002)(316002)(6486002)(52116002)(1076003)(6506007)(7416002)(44832011)(186003)(6666004)(4326008)(66476007)(66556008)(66946007)(26005)(6512007)(2616005)(2906002)(83380400001)(921005)(38100700002)(38350700002)(86362001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r5LLgxtjhM/3UekAMk4gLZh3DZWcbY1cQ/Tuidag0bFkShLCn89LDIry45NYpzVOitSa4NitfM8rgK/cD5HYzF6d8ytj9ZC+VZv40nLsZJEOlH3XohWTJkeDVfifj+ucqfZX435c/2aBQHheHeuvBLjpk2Q88135nsgZTG8VlqBOVHh5OBnch8qdu3eGenCGnMQKkW9g1cWlhG5RW3oj6WEsUXE5YTmAymq7K1jZ7kVz2yxvqcUbw7334Tg0f6jSRcP4uprVgxgW/C668kY2tYMaApVu9fNL1pfMubQ0Q8C6eLBYrhT4w/emvMvSjMXZRmfGZV+XAjCGh7H8SvYJcve+RImz9t78NNirNuQea1ooiNil2F7iG0qT+npAzBVAnznpFSwfysnklMMn0gd5XIqVKu1dgoyBZD588KuHInRrYAGRFXMnaZQFyFEojW4Ezyl0JEuSl+1Gbw6d/dMc+cdt9p/5qp8MPDejOJFrg8tc5y/UG2/GS4k/le4BWGTaGu2TWFNxRmn2bSsNFGJS+X64SrrkLZ6H7W/6Fy0Wq3Z/WnLc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message-Id: 876ff24a-afe9-4499-18d2-08db6e6739de X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 12:43:03.7723 (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: Z+ctXFnb+fgZQydLJM/2z2BLPLpllTYSZBjNf6rSQIkFidGk3k31i3m72dUTm4oHe+UUy9J2Vp6TnaxQ2ziJFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8320 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230616_054308_527286_9CCA0465 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. 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";