From patchwork Mon Oct 30 09:58:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13440336 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 1518FC4167B for ; Mon, 30 Oct 2023 10:00:23 +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=muKa0H+b2Rn0dRWwW4u9u4OLKomrmXchRtvpT02Dktk=; b=IvYmIsvGpsSntI 8rHO6BOUtEliNIEOvoqRl+i00nKeGDs9hWRAw5aU0mZc+QuFP2uU2Hn90PnVA9ZwAiD8oCnLINtn3 P4f90Heo2tqk9CCvqjf3cAVwB6qJ/y6becGyVszwnu4BIPR/tVzUBx+ruukDJ9vtPSzs0gcfI40LX EPuWfl6bA6mRhCe9zaDGpwKdWf4eEjJ/TDh02HqQTibDqzkr/x14Z+UmYbrbisTFG5hN9awHn/uMg OF+9L8YC4OxWn/9T3ABcOvBmcY5mzevT6U8ikysHYCFCom4B3E5gboV4Xnnce8LoYXWo5yXMNIdna 2RE8HRjTCx5F762IUJqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxP3t-002xmC-37; Mon, 30 Oct 2023 09:59:57 +0000 Received: from mail-vi1eur05on2062f.outbound.protection.outlook.com ([2a01:111:f400:7d00::62f] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxP3p-002xiI-1B for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2023 09:59:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WxMoh2YJZMcydYvrOCvwAYS2C0xMl6SawD+Mdl0rfLB7ZNLlld20z/e7ldgffih0tLZ/tblVeHL7+s67EpiGmzikrHcXjvLf0k+9CtPN+819pQWLcA9Fm++9hSbwyPfPRJ42F33MNeACEA9Me/aeHVcDEiaEGju4WvhH10Qsaxy0DQ7Dgn7vt0tFHnN0gVjHJj3nSmCvyVe6z7Fx86Azl2iG+kAe+4eW8eqGInHDEiNlF4gOBj/ZM+qrRnNCIsPa1t6V4V117yAtANjLZo4EC93MtSwPaWI8tJ2A4219EJBwf+6tnqFzhAX+fmDUqvSdBCK/PR79Gtmy/QxJZv1Qrw== 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=6ooInUKYhlujOhjindkRtW27/T2+Byib8g/PKDo99Fw=; b=IZrh7rky55+Ez/OrcwM38lZy4CnGpOxhnR8YgCe9uAyGmYKgGfF4bHQ3WBk7RX8PdqLv4lmnjQEnDiJCoY1jG5Fh1/SUhAIzwN4BYiou/J7yRpnSInvrtbv2ZNnEl3yliObI2IVuxV9og1Zld8us57yk775a9n8uWflAz+GChZ03QvLx5JiLfAeMryBCfKNLz+vrbUk7frYRqdqIQifISzYJAbzyklY8zrl0D6DOB3k8fYunAIvQQRtfxhIU38OpqXJguA7+AZbCXsAcYiutHey7E19QWBRdqLG01STEg1bHBZDj7Uv4Ab0I/BjgjDc3pvFD53V67DhLBPnlBc09iQ== 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=6ooInUKYhlujOhjindkRtW27/T2+Byib8g/PKDo99Fw=; b=YOiIKVTwj/udy40yuLbGLSUXw21jrMcimCR1r7Lmff7ikU4vic/jmaxailDdd5l4GiT2iJno7S4YMr61GWZy9EnFyTqJOdcNWUH17G7m3mRxNZj2oB7VbN4Vegxo2xTn9AHRDRiW4ZsdHfgKsrewob5YbrHRnYKR9N5C/tgcPso= 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 AS8PR04MB8513.eurprd04.prod.outlook.com (2603:10a6:20b:340::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.16; Mon, 30 Oct 2023 09:59:50 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::9ba:8e4f:1465:9351]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::9ba:8e4f:1465:9351%4]) with mapi id 15.20.6954.016; Mon, 30 Oct 2023 09:59:50 +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, 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, V.Sethi@nxp.com Cc: Pankaj Gupta , Dong Aisheng Subject: [PATCH v7 04/11] arm64: dts: imx8ulp-evk: reserved mem-ranges to constrain ele_fw dma-range Date: Mon, 30 Oct 2023 15:28:42 +0530 Message-Id: <20231030095849.3456820-5-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030095849.3456820-1-pankaj.gupta@nxp.com> References: <20231030095849.3456820-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_|AS8PR04MB8513:EE_ X-MS-Office365-Filtering-Correlation-Id: fdbf59ea-f00b-43db-3eaf-08dbd92ef506 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QkjKCFfEuKEKfGzYjS591omXozceLFrAXy294Z0wI8iYQ2HkrwXSpMC89GBEg4zfdt8B+evMVZfboIRnq8oNceEV1Nu7mFPviphyFQyWyE/Ht7JGLgtZKNQvisWCDiUDRjgGuTyafqI9ZsujBCejtt9EVJhdyvBQraKgyu5fc+jmu4ZFVGmGnRharN7oBJwqCPLgcUchmx+SyIlqHxz9D1NPdyDsNEi/pOKFAvSqG5drr/cKhImWkrJgLvo+T5aOAngf7teVMu0jTIzOhdhfXkoZXip55EeKcCxP51myEYZMsyc6RzDxuKng5uKlZ+RdMDXMPQK3DsoQLFYcMLhyYDI0+k3q7YGaQQa21LQNNK24a1yri0M87vqEDEPaiHY6wvsntp4kXl+tJMjuEHOoTXkB7V2zk4WKQ3xYLy8EBONpeLEm3/Uh2RWYDV19QW8K/HO1DPIN6M66R/QiWGMYF4TkQgBFbrUryztBYgGHwECLMykiP18OZuASItHKkyUUakXVgVQLVyaNoKd94IjTNF/Jdqv5KLJ0AlLZwP7Dvg7tQKEOIEp6AZv0EMJ92pzzlef/r6EIkjhhK5vUNCO2Cz8zMxo1/H4dxc9fewbTtVsyRNavXDb9C13IRNiviLFFCCyFq39hGrfePI6ECs7IWRXIoVJEDU/yTBrumwxNBcI= 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)(136003)(346002)(396003)(39860400002)(376002)(366004)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(478600001)(6666004)(66946007)(6486002)(6506007)(83380400001)(36756003)(38100700002)(66556008)(1076003)(2616005)(66476007)(2906002)(41300700001)(26005)(52116002)(6512007)(44832011)(86362001)(38350700005)(921008)(54906003)(6636002)(8676002)(4326008)(5660300002)(8936002)(316002)(7416002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5gwHXxNAJykZhnTkv1p2zB0fVPCfeXV4HwKyf3HiF8pljMCz0aaNRBgv8jwRxKIMPfgHkz91yfeBuQAEyeNK/dyWl0eriJRrSZh64oLfkqxlq0JXdpcibm60beg9Xft0wsu8fn8jG1bPWRuMOwJl4CW0d8A+80dJp0dOp867z0XKIuEwNS4Wc7Y58GAW3bs5WFsT6rkWW/rDjYDmSLFhqiuCzAQmRFnDyK9xnV3OvYlmUOyZ/oThkWE0t8acJ8Yt7tfzqWHhTVx/OLfdByFIw8/zOnxCi8F9mbbA7oMA5EWOVulLPoQMgBIoO7PNgmjJdPq9IunVTRIXZf22ZUNtWwjqql0yX9UqM4H2wIatV5dnURDwFBYhyO7a5sXhkI/tPVFdypEPucvByIBprGKiP3sgHXTp63UTqA3FSSb1qMxWrlhniIOGiuj+BAr8Fhkk6hi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le42GPsDmTFDdggHmsOdm/FjM1aeXmrZKJbihI6PPAWftzIE8EHpKG7Ov/sjbHQkNuYeTxHoAdGcYD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fdbf59ea-f00b-43db-3eaf-08dbd92ef506 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2023 09:59:50.8638 (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: 5bIYz+C90jnIpDjapDsKMcH5FH/VTd+1XM7EXxL79Y38TL/5AGp4nqvf52qJqL9taL+FK/OYDZQO3cGe5WvKDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8513 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231030_025953_421861_635C3272 X-CRM114-Status: UNSURE ( 9.93 ) 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: - 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 69dd8e31027c..d5cdce62a760 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; + }; + }; reserved-memory { #address-cells = <2>; @@ -146,6 +157,10 @@ &usdhc0 { status = "okay"; }; +&ele_fw2 { + memory-region = <&ele_reserved>; +}; + &fec { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet>;