From patchwork Wed Aug 23 07:33:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13361752 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 8F72AEE4993 for ; Wed, 23 Aug 2023 07:52:02 +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=m9+c7wawmtQbl5pXUw275eddykwkefGD54xEYXIDQ2g=; b=l7vB9wA5rpWzpY vrpkdaZEb9PZFbeYoHlxnDu28DaG4h7xilFhwGk6/QpbRVMgvxKyWusStwTeLqECW4cZOnaO1gZcp Tpj7m0Dq0rEh8oiFOKdmA1eywd+T5HEW5n6eyVELHVgutmWMKZQndBlmmiyfhv7YcQOKN8ZD8ipI/ OGdhKKV91Txmg2valTghwALt27uSc4Ex9o/hFZ/mXA/BWh7MdmMsuyHm66RQxUPF7A/8eoLGcWNKl JY/j2D4qvfP8jThrFLF6fPYLoNcvnElpo6WDM2BjWMJ5FYGqhVw1NrHG8FIlzig5oeh3RycA/g2pM DJtE9Zcc2ehSX2bL9c2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYieL-00HVYB-0U; Wed, 23 Aug 2023 07:51:33 +0000 Received: from mail-vi1eur04on062a.outbound.protection.outlook.com ([2a01:111:f400:fe0e::62a] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYieI-00HVXK-1h for linux-arm-kernel@lists.infradead.org; Wed, 23 Aug 2023 07:51:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lYU5mFOuDy3aR31fqpHX3ho6XFKMW1N+SUZ3J53ILSvrOp+iRFUJOV1aUjMmadd7Vmgcxbvji6fHm2qHeDi7JgKq4VyzHjGH9jksK0HXPh7w92C4FwO6lxjBdgz3DZEioUeM2yPm5P3N7HDunWMmteh+vozXVnt1s/ELZ5Kp5vRRecmz1M2UJgpXZWBsSDUM9HT5b1ViL6FhjVvnYj01cv/dzLXDyfJNIGT/wg4s8d1nO9rGjhOzAnsn4viKNh5aj8BOTFK7x7lN4zOCCpTM0n0jYcG17dacmaAmlTidk/kVZ0Z9zSB1wmffiG2vc0WVzB4wRLjZII4QMFr8q8AkKQ== 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=zAi2jwPG9wg48wBW8AHqsUs1UeohO406vf8Vn4Xx0Ho=; b=SCGlKTFurL3INpKnu5uRNh4mWBMO7jtQlAxc9lnIa9u2+YSqBMOzg4E0kN1nR25G4ILTi3S1HDBDfjzR0IDekzvgz3/hQrXGx/oYuLj1Kq6DHa1BVESF9Xe6A1Svreh5bsjCuUeX5ZYfBOEZnzRBCq0t+yaF+oKu9FCnMHsLFWMhHGaG/JMFo4T0dLocW9IStSxRHCIPOiLHp13b7hX5vK4vR8QNUzLY8YYI4kVjWTZ1s/NliZxrqJ+/XYsrbntH1TxkoSqQZAhSVSVT0iVDYh55ImmEPNwAtz24wPvT5BoRzGKGcIBEVKL08rwmTZiohozUc0ZumA/e88GZjChJ3Q== 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=zAi2jwPG9wg48wBW8AHqsUs1UeohO406vf8Vn4Xx0Ho=; b=gYqmBfd8uAoVd4DbPoau8+CUmo+OnloLzrpkFEoGI25ZI+WQ87ia33AVu7TwfYd68jopxbwKQXl7HQcnUZOwRwkNfOXqtnM4K/iuriiY/z0cg49ZHK63wqI5OAjOsXjhczVHDIbglw9cLonaTGylDP4NsE77wG4oYylnIF1moc4= 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 AS1PR04MB9504.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Wed, 23 Aug 2023 07:35:19 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::175:d311:2cb4:7915]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::175:d311:2cb4:7915%7]) with mapi id 15.20.6699.026; Wed, 23 Aug 2023 07:35:19 +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, ping.bai@nxp.com, xiaoning.wang@nxp.com, wei.fang@nxp.com, peng.fan@nxp.com, haibo.chen@nxp.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, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Cc: Pankaj Gupta Subject: [PATCH v5 05/11] arm64: dts: imx93-11x11-evk: reserved mem-ranges to constrain ele_fw dma-range Date: Wed, 23 Aug 2023 13:03:24 +0530 Message-Id: <20230823073330.1712721-6-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823073330.1712721-1-pankaj.gupta@nxp.com> References: <20230823073330.1712721-1-pankaj.gupta@nxp.com> X-ClientProxiedBy: SI2PR01CA0036.apcprd01.prod.exchangelabs.com (2603:1096:4:192::22) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|AS1PR04MB9504:EE_ X-MS-Office365-Filtering-Correlation-Id: 8fe03b2a-fae2-4511-7c28-08dba3ab8009 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KVUI18a7pVX1cEy61uBhQjjhJ1aC1sTr6PAm9wBPbUT5sobgvQTjmkEkx9O+aBquEN5sJT8GxtwRZOv7jAJw1O6S3/4h9fkgPXfLWTVlXIQYFsAZeef9eVpMPh/JNqKWxveq+GPcmeisw4D3tjYRAurCepDlGWInJSPK268OXbVOpTRz+187YB8hcE5rQxDndWRNxOn1pXZu6wHWTaRZcFI2V9awlJYhfJHkxNwL93/hD3CK/tqdvfsBSdXCjr8fUWN2TooV37hSpWZZrYuna/0ETi2FygipecQKgXvDr/VOn0ap/MRUnQsln1URiO2ZE2B2Xx7uhJY9AG/VKKc0OvlEVQXBw4dEJvX/rY8N/oo27YzwyMoKb5uPZDBJSzdowOGBfaqZ7zBrKwUCEpblQwEh7PXYLj83ltTDFf8/y2n/bNCmXZ294viWSZAVWPo5YHtJacaTJIldDS474GNmTPqY5mi2/GE2A3Ehren+jqxvFl4KWGmK8DspmrcuJf48c+41Pd0gvWyMPSlnFWNmlERGZiM0aF1BekVkzDtrFpqUclSLHWVc+pPSP+tEjeCZX3Oywv2UWpW8RLO00ZZKY5dM2AOnCRKi3H0Z0umEloUWl0A7+rOaPxqVvYlA4TApxWdt+8G5vPO8rEv1Q/mFVw== 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)(366004)(39860400002)(396003)(376002)(346002)(136003)(1800799009)(186009)(451199024)(36756003)(86362001)(921005)(66476007)(66946007)(66556008)(316002)(41300700001)(6636002)(478600001)(38100700002)(38350700002)(6486002)(6512007)(6666004)(6506007)(52116002)(26005)(1076003)(8676002)(2616005)(2906002)(5660300002)(7416002)(44832011)(4326008)(8936002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LdEhQl6MRDXb19pkzX0lr7ESIPGeZRy7Y2dcVKhjdMicbgp5MKNb3pumNznD/lG0fEVeHT5OzMvvbQVareOw4L9JTaJYD/bX8OvFzRUBXKRZuJiQVZMjX4BNtSZOK++MtyMb6MOg7JdXceyx8FbGMSX9RdO73re+f622ksvMAwmi+NF++yKG3ak7t0P2ay5V13hTX3/8AFA+88t7doFkdDE24yvRyvb7MbD4UuJjvzFJHe4qgJWlHHbYaZW2wwZL2LWGbNketDgOMaUi4TXqr1RAr8uThro/4K5p3b2Ol2PmZxV+Nhr0v3OPU3+6O7f7f/kLNVhRDRsM2xwDuyZwKSctYyJZ8KkiIEDfhVBqtQ5r7An0L7Qayu8MCPvg8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72MNPW9Fy707dtkBjyd2f545XFLAVShJ3zTzYqh6FArsuYPWHL6nHhDA/KwkN7L8aDUEx63ZQsSjhOMEKl1m45G6L0qEyWxTC9o4OnXQtA9Tl8mj+5t+lIQFquHice32RRf9uGW79fKHqhzCqhM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fe03b2a-fae2-4511-7c28-08dba3ab8009 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2023 07:35:18.9785 (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: 336QCyKdPjluJQ0Z+1Lg977wsFZQIeVwETGOm15S4A5VkvY7X5WmVJMLg/jOhLdLo4PsPdnOFLyT8VE4wC8xBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9504 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230823_005130_573289_3E157A68 X-CRM114-Status: UNSURE ( 9.69 ) 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 c50f46f06f62..0abff3a55abc 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_fw2 { + 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";