From patchwork Mon Jun 17 18:47:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13701321 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 E1D04C27C79 for ; Mon, 17 Jun 2024 19:03: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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:In-Reply-To:References:List-Owner; bh=7vFgAWhByQzD5qeTs2V1t943n3oYMOv/Qc2rrEC1Y2E=; b=In8bklSuFOeEoG8UcF/nlfpvHA S9MD+mv3WFlU4QGy6fzpqezpp24TJ3gTisijfgbhdGgvPvA8C40ZA9wF4Lm2kBXhymGAtVxaXvbGb Iq4sk1sOxlBynlosMaztWXgUbZsY3zE5MgX7vsm1NiWrn84Mo4r/ECd+U8UOUkHfgm1Z/cHaZufQ7 UzS+zeZrb48bY5NeUa8mWPBlSUlY9c/lA161Xmm85r7ESySV7XGJhkr24ib8KJVOVuAWaFxrAMI02 +RMzLr//wb8j5cAnjt/0KfuneeiTkZv7N/uLrzu6hIF6gDlGRvNKsWYEKZEBJophH7Ni3i0zcCvVs CunrR88g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJHdP-0000000CIyC-1lK1; Mon, 17 Jun 2024 19:03:19 +0000 Received: from mail-vi1eur05on20601.outbound.protection.outlook.com ([2a01:111:f403:2613::601] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJHdM-0000000CIwn-1KI7 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2024 19:03:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kAJpUDMLB/Pe4SaF6thAO6cgXWtgAj96briTfkeaSqEB5h7Ab7enNFAj5W/Uyrq3Okl0s/xAzXJv5Zhx8VQzDLuLI3BAEsXBaiv50kj9PRvTOd8ZPAD1WoOOrGiaPykIt5icJKvFMfBsnVx5+3LpLGyz2/Gx4S2U0By29vo++xfZAwUplHikhBbc8Mnrglbnt/FNpEM8523ynKB+SU3qlab1eRVhz1Z9AJcV/VdDHC8LVlckYa4gsYfmZQFjIXeWDHL6bjwo8xrzOU9+L/tTl+wdXdc6fah0FXDVN31LHehE9BKfcCXeiWT2gyX42uXJE8reer0YNVWFIMcux+OeFg== 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=7vFgAWhByQzD5qeTs2V1t943n3oYMOv/Qc2rrEC1Y2E=; b=RI1htTqNkCn1fcp8hMo01+4KC2FEJ4n0u7kkgudhJPJyuOgHsCAE4JBccwIZFqxSEs8m9HBaXKUz+ohgrG1Vy77bAVT+2lTdV5vk47sUVzTkYzPDccIMFL/ESi3mArkZSNoVan2/tZJs40FcXiJTz4yc7bp+Znr6YR8ohgNtWiv3VvNFtthK63W8Fj+IPpt+XTxQdlMbLEjRM2aJ3xohdpOyboERkt7MMxLNH+J0cCqwxsjc3Cp4ELFa59vmhQI8lgWZqzqaO9lBmzQWI9J0Bb39bgzRaqPHdEDwiFbQD/b99xDBsc1rGGXArLzLSiuQrNAk+Agupp2qDfb8WNQ7kQ== 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=7vFgAWhByQzD5qeTs2V1t943n3oYMOv/Qc2rrEC1Y2E=; b=Nsv95fWJFF9SOe23TzH6idWwOkjTO/bhM8+NGAGhPDonWJjJoQSGSDfMWC3MQP7loYm3fcN4XmK8ZZSlKonoIHz40K1hNNkQZAXI7ggvJs1RgFDaqKSX3GGSgWBUu6hAb21gocx7dmINFy0oT7PKy5EERlQ1NOaWZG7ffvd/HjQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VE1PR04MB7389.eurprd04.prod.outlook.com (2603:10a6:800:1b1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 18:47:26 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7677.030; Mon, 17 Jun 2024 18:47:25 +0000 From: Frank Li To: shawnguo2@yeah.net Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v2 1/1] arm64: dts: imx8dxl-evk: add imx8dxl_cm4, lsio mu5, related memory region Date: Mon, 17 Jun 2024 14:47:07 -0400 Message-Id: <20240617184707.1058995-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR01CA0062.prod.exchangelabs.com (2603:10b6:a03:94::39) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7389:EE_ X-MS-Office365-Filtering-Correlation-Id: d5843859-b603-4746-0de7-08dc8efdee5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|376011|7416011|1800799021|52116011|366013|38350700011; X-Microsoft-Antispam-Message-Info: TSuGbW37k0VirQ/CWvbSq4Fm/XgSpwgXWQBXcMjkxzZ1UZyWPRtxf88ZEBQrBt0kDBUfm88PYDnBpw1KJFjTeiQ4XTfIJYvFJKBqhWNkbpQi4Wm/myCbHNxzC2FtinniFjHV3PP55NkoJBbSah3H1taByYVBGadMP0SStbiR4om6Q+E6YjTS9McbaeFGYxeRPEHY1Rqj0b8v0PelICUDKXYNIR6TZduk7JTRjK2EJ3z6/xstphYnqniyVVu50CoaDr2tnzVmH+spA2231nMoHw8jC0F6c2Zii5pNhpXLUrvzfP4Bna/dfQwpa/XrdAemtJuT7jxv18t/a1JTWUXgaOA9I2LYl+X9dI8SO/e340SI/w4bk+hcszUhofcIbRJvdykhsYDuePneW3/q865O0bR5H28JV/sUEiSxTDyCqCSpZ0noUWDNxhljJibOuLj4AleSBBUNqr09ehD3K5cjjdqD+3ilfF9VopoiBOxTgUVoe3f/VN8J5cwdWJmjolb6WiB4ExxlF9rl0aopII0YX9bLX6/Ut/trSA+3r1Rtr28xsEbfN1NztNegp7cxp5AFc7hNyGyV4mqi2CAUZ1Ua4+3k36gQaAYWSYirHzAeTS4PrKsHesn0rTqb+1tVOlTJhExSdJ6ZozG+iAGRkgyNHacTJ0c0Z82sDImtr2uVe5ruJSlaQVwVY5fX/vtk8rlYdvvxPDjP1PGMXwH/1QOcnXcmK+PtqXkctyahXjbrtocm46elErpFf1gkPDu6XpIz7UZ6wEHKXDSFbbuu813KLU6mlq9RWc+A6vxtauUgW6huO3l7rSjRaJhyE5Vm/FJS6P4f/cmF0qA/QJ+i71+UkOwbhTuyagGuDtWSZwhH/MbmtKNavUWM3l6/VWDuyp02rv62O8soeUeindvm4HdFosxMNiJK6F6McR8ePn3cVCxq4YZxYViFGyVuV7lgpr0nhPiaytdJbQ8Akcb5gDIlk+bfc57IetAaFCWNv1CZKHR8w5650qvpKd3dSEGklUHDCMu7gt57xs8twBpniVGZDyx6fx5ex4JMpS5O1KvwD6nDu5wLgT7Io53KXb43RrTkqgQzZGzpHIyzdqYICzy+EE7oRAJQ7ATnQdTBPVgiAfElMR1uq5K5v5Ci3Ieq4UrIA8PplzscmUmktK0QTMznPv4Q+c/Y8J0BtMoWgVbPw2WGfH4+GFbYQnABkYO1M08smL5neEjOeRz68D9QKDVNHaKAD2t4p8+NvSdNfiMptGmcAD6QFnrV0sS57kZ8HmjzUVkxfvUyqVlPbxPVrAs3jHiyqIfPQge3BX6ihwSmbDddw1aRCBPHpOx3MjOa7jtzRpPxGnFQ2dEjPJ53MB4JHtQj0rgYtvmY2chj/4hASlM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(376011)(7416011)(1800799021)(52116011)(366013)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Y79IdXPXlfEscPUCMs9XLtvXVWUDOeeZw7LhH10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qKpwLbqPzeSn8uDUjyrfwUhL72JG5X2cXt6W/lYYuWHslMlw3pYj8LpuBFxc3FvxX1+L5gyrxmAkZsLqP5x+cmed/4lu9ow0rLDCJLz02ukrM8FpwGxdwR0n+WrG9LyeZctIf7Mr3Vb5naDGcBSAJP0Ec6vBsmpyQE0v8QLHIBwsvAlT7UC8kDiYur5Dp/WZuwq5rIzOC31vt8jlbkyXEXIcHQIWlUyasMhs1fL3MzW1GgJIbPZalKRxQb8YytSXrCqZ/Gd0VBpFEVR8+tN3UU3Wq6LF0VpALLq5WwkRdeXTiukb9Fj+esaQC2wzqyrwsO1rRSW791fd9Ru4NWJ0Ql+a4EBLk04oOKQ0YmX+VWhIMErpLa8XXiF58GbI2kZeWdcDDEj/m4gI4f5iR0dq21gJOv4+1h5/5DpR1haGY3Oaurx+n63MUPAUydwL262pJLvFFUQVx2PTq54nfccBJPX74zacgACiasJc3Xxq+XyOCURqdnB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5843859-b603-4746-0de7-08dc8efdee5b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 18:47:25.8659 (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: Hph3ok9PV3P6OpDgb7acDSB63x/T8Y9PzGZbn11hZOZMkGb/UFgAJWxG1kubYTfFItLGcVS5p1vmcUwh59wgvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7389 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_120316_380315_732012B2 X-CRM114-Status: UNSURE ( 9.14 ) 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 Add imx8dxl_cm4, lsio mu5 and related memory region. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- change from v1 to v2 - change to memory-vdevbuffer@90400000 - Add Peng Fan's review tag --- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index 4ac96a0586294..1a74ac3ee4ee9 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -24,6 +24,19 @@ chosen { stdout-path = &lpuart0; }; + imx8dxl-cm4 { + compatible = "fsl,imx8qxp-cm4"; + clocks = <&clk_dummy>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&lsio_mu5 0 1 &lsio_mu5 1 1 &lsio_mu5 3 1>; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, + <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>; + power-domains = <&pd IMX_SC_R_M4_0_PID0>, <&pd IMX_SC_R_M4_0_MU_1A>; + fsl,resource-id = ; + fsl,entry-address = <0x34fe0000>; + }; + + memory@80000000 { device_type = "memory"; reg = <0x00000000 0x80000000 0 0x40000000>; @@ -51,6 +64,37 @@ linux,cma { alloc-ranges = <0 0x98000000 0 0x14000000>; linux,cma-default; }; + + vdev0vring0: memory0@90000000 { + reg = <0 0x90000000 0 0x8000>; + no-map; + }; + + vdev0vring1: memory@90008000 { + reg = <0 0x90008000 0 0x8000>; + no-map; + }; + + vdev1vring0: memory@90010000 { + reg = <0 0x90010000 0 0x8000>; + no-map; + }; + + vdev1vring1: memory@90018000 { + reg = <0 0x90018000 0 0x8000>; + no-map; + }; + + rsc_table: memory-rsc-table@900ff000 { + reg = <0 0x900ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: memory-vdevbuffer@90400000 { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + no-map; + }; }; m2_uart1_sel: regulator-m2uart1sel { @@ -505,6 +549,10 @@ &lpuart1 { status = "okay"; }; +&lsio_mu5 { + status = "okay"; +}; + &flexcan2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan2>;