From patchwork Tue Apr 11 16:25:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13207746 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 841DEC77B6F for ; Tue, 11 Apr 2023 15:27:09 +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=BTEaYHVXJJUWv9RU3/6FAWFqLYfmvYUuxwvisCBvjJk=; b=RK88Lh2X7dul6m JR5Mu2d9A6Nwb32PbtQ9q7NKvCbljUKzyHSk24TE/2yNc7/Q0CPBJKxQq4XaGTPjrK3t7cMlQ9fde ijzx8jifFhhaWn6FSUJJER8bqJ56K0fGnJ0IAbnuZV82rRKrNk3ypdpVU7Iq/F2YsdEPCjV3gqd+8 +WBTRz6yfRPsx17d7aSmcUOudN5siZ8L+2ZejOuJy0qCpV/xQFPrQlM4bgjDYlFNYvO8ld+pro/i4 meaSEKlavLDrSHTC/8AT8g4QB7WDt0GEwOt2nw+DMi3V4S71SOb0d9269wqGF8uvTMvVxfk+uQ3hu R6Rog0Mep3oEXWmjKv/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmFsm-000QoQ-2u; Tue, 11 Apr 2023 15:26:08 +0000 Received: from mail-db8eur05on20602.outbound.protection.outlook.com ([2a01:111:f400:7e1a::602] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmFsh-000QmF-26 for linux-arm-kernel@lists.infradead.org; Tue, 11 Apr 2023 15:26:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VwJGFf1qC56lIm/PFN0UFU/nsiFgjsb2hjHLWhMSBbEkdKA0uNCio8PFV1Rzgv2l51CouQhA+6jB2iVgUnFFGyPiJWm89D+9xAWZDs3ROtU4T8KQHgVUmijXWGe/D6dh3LhCIqRY8iyzcdlNKbYWZMZXRiyclcNLr6kwxqHX1GuAF7YUoLgq2iJjP2WdImjcNjUZECklx1u0/k6v9rddLQEZXQdMMi28O1Sq2Mg1wDrRgMAkNjPhdE44+SNhwh7RjIi7FXq9/VLVbhNYAsk6Pggr0BN6cVtZBegXrTaNsapdLXcl+3kfZ4YgnARAaTl+PN5ImkjywcF/xAKT8OXmGw== 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=yDes5gh3xEHbJOjkwKYafxKv/aZQlBHuqB0mkO+7hwI=; b=kyhIwR5nDsJNO3d0trK44shMj8Ii45GkN0w5ZoOHugBOK65vw+SWd1eXsCIXGHPEBoDmURPk0s5dqqIGuh/0aJCGm2gSQ0+GZ3CHcPdZrFE5Apv71x8Ruj9VZvdJse7ZLoNnwycNx5/MGDZrRt7tzNGRGfiq+bAQdTq3Sa7tqUDZR1e7YUnEPdERu0LMu7A0YGJaDSxubZ169mb/ZYKGczETPpVRVKxXg6k3VIxcPV7YNvG5CH5aj4BmfPPUJ0sRyYoiIZ181/w75x4OOhywZYZ6FdMxLluMTJ0/B16PisMjgCjPrFVPw+e5Lt8JBzV0DQ8o3e383fCPFTn5WKzmdA== 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=yDes5gh3xEHbJOjkwKYafxKv/aZQlBHuqB0mkO+7hwI=; b=IOQUJvZ2YVBgPyeE7dTK9LMgZd0pwTep+xG03ZK80H0U+m2NVTGmGOaNKiKBWwDAr/BtY9odB+RYGmijYyf71R/J3sjsvbPDTGos/FW0wefNzf4T6pmxC5NfB41gvflTu794O463QxuFd+kJDEZWcYjx1LrtLECi8AjEsXO1RQE= 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 VE1PR04MB7454.eurprd04.prod.outlook.com (2603:10a6:800:1a8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 15:11: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%8]) with mapi id 15.20.6277.038; Tue, 11 Apr 2023 15:11:47 +0000 From: Pankaj Gupta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gaurav.jain@nxp.com, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Cc: Pankaj Gupta Subject: [NXP ELE-MUAP 3/7] arm64: dts: imx93-11x11-evk: reserved mem-ranges to constrain ele-mu dma-range Date: Tue, 11 Apr 2023 21:55:32 +0530 Message-Id: <20230411162536.30604-4-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230411162536.30604-1-pankaj.gupta@nxp.com> References: <20230411162536.30604-1-pankaj.gupta@nxp.com> X-ClientProxiedBy: SI2P153CA0035.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::14) To AM9PR04MB8636.eurprd04.prod.outlook.com (2603:10a6:20b:43f::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|VE1PR04MB7454:EE_ X-MS-Office365-Filtering-Correlation-Id: a61dd2f9-791c-47d4-ca6e-08db3a9f1195 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O67UK3lcO8Ziua366Zu4XRauwIpydVbpDjdLrUxaJXeeuoRDiPAWiqli2WsWpBKORxMuiJtaVokWZJ/R0R4ofpnfNi3mkVSxkjzJcjhhB9kHVtM1iXCaUgN+HP+cY9u4t+tbGZ1cvkwq9ZY3T4j8dzj+zpuFtchGMXQPDyo10nXwMui4c/8gQSSXDXbfczA6WHIT1Uec/UW6Myzdb23JYKGpxxrzS08cXNQ/iEdwB0OP+XrDptHWGCAzSh9jNAEoOqIVGLNqeDOtXrl2ipb/92p4YFhDGVLiuteFxdPWuk3sOZ8Ps4eazlSmrNRaFngI6CPd2LCBmNAOYZhooucI3hQjiZvS2Y3YI6M0HOo8auNCd3FsBaEFv1DOJYi+7bcjbmsC1fQMHaCAmVJnirgYeR6hvwMT/fINNPhG+NFAszs0MF4CFAsn5UxYhWFz3b+u8RnDTfQKCfDQO8ggvPJioXQoLNs2/6Ol+sQ1nPaNW1dVl9SzCkAf0ylFYR3tjaOB8OvNV79oniPzuYoZPxggLJt/3yJQfP+flh+bHcoSaYPtX9V6Z8wyZA2rBKXRaiqnSDh4J1CXxeiVkToDqnG7YHBO7vU7mW9YTavEuO0ulwytswVUpgB0/qnG8tK1L9Wr/8n2ilvl0dUnCpVgZZwrNA== 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)(366004)(39860400002)(396003)(136003)(376002)(346002)(451199021)(6486002)(478600001)(4326008)(52116002)(6636002)(8676002)(66946007)(66476007)(66556008)(41300700001)(316002)(86362001)(36756003)(83380400001)(2616005)(26005)(1076003)(6512007)(6506007)(6666004)(2906002)(8936002)(44832011)(5660300002)(38100700002)(38350700002)(186003)(921005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BZns1isWpvVbkkrGO4ufpg1TP/eZXWdvdCqv+s4NrNqp+x0dHe9ygk3qYWYZKNFpklVyVgGG+0vxPPPcFkprrZypv5K7SX712ofLencNThmuhy2WH3Vs+XTr7nBVBbwYFzRW4YeuAY5ZoM6mPxWoplz6h4Sp0JTK8pAmXtfvSB3By5AeSQtGSFic7s+TAAXQ6x5yO1kZKfSv+6vMk0VA6Rz59+ZbnQeO+P8kyuwRFwTd55pI3MqvgWsM4dXeo2c6v/2mLxqZMaAFS0qkRa0Mp/XAzXfynAvBkeCIgNtMVk58OwvYHJO4Y6yhEWs24BxfKFdlXP+RAT5Ml4BDwvrm3+U3W1NYfF345o1aFrtjyl1Sf/DOcpq2VR+fGFk8XxfYkKiLxLr1y2Ww1l0QkNTyM59HT7r+MnXXTJdzQi9eq1OvNLBkKD24+IuIgowc6ziy+ExPnE4/ec4VNYSQWNbD/R3+8z1volmPmot0Ik7gcuAJbpmiFmSKYMoGqrk61ac5bFzbzvDDOoFZ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ginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a61dd2f9-791c-47d4-ca6e-08db3a9f1195 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8636.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 15:11:47.7168 (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: WbbYr6AtJWrQ0v8VPF1oYpJD0phRC2BdaJ5WwGJi3B7wd5ly1JUmt7F24oFNuOVnvxXDlxEb2RlBOmyySvZEAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7454 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230411_082603_694705_8160820E X-CRM114-Status: UNSURE ( 9.37 ) 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 477c146f985c..2e2c26e38af0 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";