From patchwork Wed Jul 12 12:12:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13310292 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 DF392EB64DA for ; Wed, 12 Jul 2023 12:13:57 +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=fuswyXIWnmwcHzhDw1eHQyPVkQUuApAEsTF6+FBuT5U=; b=Pm6PAheGLUOWS6 PvUhPyPI+aBWX7wWME7SigLRlcQ7PZVarD+ooPScL2fTFWroie7Xq3bBQGKTD0g0x+EqVWzoZYCqk 9ay6Ta58LdPl4j5k/5aF3wRPUluScP4xdGkMVwBoh5fWSnr3aTv+eoY4rQ3vtz726vNNcjodECtix wblBtJq+Vo8YtQaVfJI+sGnAGMJ7AvGaHb6aIPzCIqAfc5VOUGTdh6CBRB6r3ET4kzB7Vlxb1+QST iUKVnrsNT8YrBlstD9dAFmteSrIaJzO092A9oGq1/JVPtKSyQifHmr48+AKCK0MYMnZPghqDt5nKr RNAplIkvpgsNoYhp7bXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJYim-00HV3I-1U; Wed, 12 Jul 2023 12:13:28 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f400:7d00::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJYik-00HV14-07 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 12:13:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L5vaGTzHyOHpd+dyKUMAnd+D/6ngkwsczGEFoITKROil6KA3nHWN02dMInASb9KQhf4m9kYL8WehWf0TSgvt71TkNIlqP3n+pkQL3AkZC5/BgYuJ/VDhy3x6as/wQDV06yCwA2sieMaIzQ0QNb40CujA7wA0SlvrHnVa1F2ZqHLGsrMWl0aew4USFP+NghQBHglEdDTKl8H8AFYSVkrrnckyoj7UvskdJx4nqTGDp2lVilnZcYN2oyliuEcVWWnCuGlZvb1M6hju0IL1cbgI0dH+u36H7yhIUu1Tt5hdCj3WScr0nZ6TO2Zk/dFJxP0LPaKoURauFsb56S5zbQJkUw== 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=6n5f4SvA+AThBf5AoCDJjgWiZMHntoS5YK2M8gAUBmw=; b=HJYnsQhfHWWklo9rcDTFOKTexrkXl8CVr210NDoqTXnp8VNmYbAR6cUhIfh1tRuHlrXTUn4oftFJRHBFAzPflsv+BUHd/g5W9RzFrnysqlIu3/yqSME7JWVJxvQhssoDMgYbNtN3LRHzoD0+LqahpX0uHYL4jaq6l9caxVEj00bsQIB91a4E6sfnLjR4L6uwGvYtkG2JaR/D56kXYKM2qQZb8qTkWGD5BBFWoLMIpRUGpw8g/iAEVGwSm91Rdd+yv4eDbZryczCJ42tQCnN7zmBPI0QlKly9j5fTzD1QMLXBUdA4hxqsrgOT62vThVUEAQPP+Tl71R5IBGW2lPv42A== 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=6n5f4SvA+AThBf5AoCDJjgWiZMHntoS5YK2M8gAUBmw=; b=ZxFZvmU7C+9pDrlCCgRKSvlEA42/8gIdVjeNBopsK8hD+zub7L3uWrAOdIRRC1OZvT8XTnveMNXA7709CwozweJBWKNaBYbFtDmjZLp+tmX8lULEiSKloooEvSIUqvpBlCWoRyEsR94borWKatV6rWLZj5tQlgwZdbUkJCvF+1s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8638.eurprd04.prod.outlook.com (2603:10a6:102:21d::14) by GVXPR04MB9877.eurprd04.prod.outlook.com (2603:10a6:150:113::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Wed, 12 Jul 2023 12:13:17 +0000 Received: from PAXPR04MB8638.eurprd04.prod.outlook.com ([fe80::7650:27db:4ae:b7ec]) by PAXPR04MB8638.eurprd04.prod.outlook.com ([fe80::7650:27db:4ae:b7ec%3]) with mapi id 15.20.6544.024; Wed, 12 Jul 2023 12:13:17 +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 v4 3/7] arm64: dts: imx8ulp-evk: reserved mem-ranges to constrain ele_fw dma-range Date: Wed, 12 Jul 2023 17:42:15 +0530 Message-Id: <20230712121219.2654234-4-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230712121219.2654234-1-pankaj.gupta@nxp.com> References: <20230712121219.2654234-1-pankaj.gupta@nxp.com> X-ClientProxiedBy: SGXP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::36) To PAXPR04MB8638.eurprd04.prod.outlook.com (2603:10a6:102:21d::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8638:EE_|GVXPR04MB9877:EE_ X-MS-Office365-Filtering-Correlation-Id: d1287d6b-5152-4ba1-a2c1-08db82d15fe4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D4irKeT7BoURpT94LHItA52ra3tkKTpsOEEWC7wD99xAqifriv2gro9Sp3SyGq8Y60gOX3XZJU7H2wZ48qpXn8HyMSjjSbWp14pqXm4xyn1AX566IkRGmEkPQ6I980jBOMloiz++h5CVKE/bTkZ+gSCvE/IuZQa0shs5GVWrhPFjDQfE9bQYEWKOpYJV6iZKxcosue45ml0UzeL6roxH58p5Q1OPsMo0/tKkHQ33tAI73er+nBLar97KFvOOowiQo+kxMS/K8VSJ3E3CqeKO47yuwqGLV3s5pMCc+bSN4irvuY1vOGiK+JJirjDaNDgrpkW2iDgq/s0dwWZxNAxMJJsNJtc903S8Ed96abPK26ijDi4E3efdED07b/o3pkh4ZjVSQfENhRF29TtxCdCeU8hKtp1Npk5OdmAl0E/2p7/QeqQYGXaEBp1uzSrbm4hK32/+qpkfdWoWwqUTshpDlCVKOhrIq+clWQbFYY+Cu6FETlEnIO5ma1Vs64wfX33xinyjJWRjsnyG3WvlZ2QU36SkKjfMRWBrWsNQaTAhypRpe9iFL/HIB/7Dy+jS08rQ/9kDjpk92UCV+0b/NhNVnRzds2AjgIqgmCQeb8ed/w6CQ+Tj006q8HvUS0a6OvYumQCBdR9jTyYw6AMJfPeV8rF5ZT2EdmN325bog4K2ByE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8638.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(39860400002)(366004)(136003)(376002)(451199021)(478600001)(52116002)(6486002)(6506007)(1076003)(26005)(6512007)(186003)(66946007)(2906002)(316002)(44832011)(41300700001)(66556008)(4326008)(66476007)(7416002)(6636002)(8676002)(38350700002)(8936002)(921005)(5660300002)(38100700002)(86362001)(36756003)(83380400001)(2616005)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yCVgG74vACLOhm8X674uZU11ETtOW0EKZwdEP2+Q9yven2vv4Gfta35IH9o3hO9dhEkQksebId74sks7cBv0hqjj2NG7lFhOT3rRWGNAr/G9Z0WYl7Fg0EZyNSu3CC2K+XqqSdB0r+C9Ssh5Fx2dks/KiU70UDDr/wdkakQ2R+twyhNWXGe4mOGFgsOEDtJlYHI4MAtIy2umPPm0hBcv4YduhdsI/FUsnnMSB4Qv6cgv8tkzRnbR5KKaGSfNWt0Xid1NpJRX7D8r0Cwnj2Gy1vA6w4IAWl9W+VhlfQfLm8AYH8HTWCIOsVuY4DPnlMULejlcYMSwb9qRP7LxSb3FT8qiWUpsVdauvduluS3CPtIMUob8HZ40oSejzKBMab+lui6aBcDi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PxuyaE4PKoN7wkOUmHiMOLW2tcWGNugGtAb+Hu8VjK27SG5u9jlvr9BswG2kwHuUUbIMEWVsCRM8quKHOEnrSXWiE3gzfT4/EBky53+SCnQCfc0YH3H+ZkKap3DQPu X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1287d6b-5152-4ba1-a2c1-08db82d15fe4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 12:13:17.4784 (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: sXJCVzOX5WITeU7VF7C1kbJcBV2+/os8uxhb0MD+HEnL6t7kmnnufx6Hgbk+i0iXafPxgfFUlaE0wcRFux3+rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9877 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_051326_077987_43314416 X-CRM114-Status: GOOD ( 10.21 ) 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-FW 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..e11b56722348 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_fw { + memory-region = <&ele_reserved>; +}; + &fec { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet>;