From patchwork Mon Jul 1 15:03:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13718282 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 20ED6C3065A for ; Mon, 1 Jul 2024 15:05:33 +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:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tpq1AC9mz4pT9GIp5G+fdD9mlv1KekLqmjkHWkmgZcw=; b=fxPHWTj+voColQnWtkGQ6rAh2b sg0P3jVxH1qiLZnR1foX8Wi7LjkrQHamlf/UfD0W4bGQunUWo0afgx4gAkxZWIshsoPt/oKb/Motc b2FpMUledxdTZkleEyVFECAxH6EGxoGazDAA8A8sRZ+Yeqg6sMP64+PvQoNfRJXbIuOrJuvuSkvxp dnRGoluNXc2+ZpvMYDeS46RAVsS4A8IgY9cttfpVe9GSoR/eTB6OS9/gGJlY/5KcQhZGwOYzEEyHt Mcx92wIRLHytUnhbiDqKviR2bu2Mb6gv5zwQVQTc5169gkLbb0bJQjegOJ1dO78eF7PnSfgWMlFgM Vdx41njw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIaj-00000003rG2-0Eul; Mon, 01 Jul 2024 15:05:17 +0000 Received: from mail-am6eur05on20630.outbound.protection.outlook.com ([2a01:111:f403:2612::630] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIZc-00000003qYm-3G7Y for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 15:04:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLCdHHtYIerNrgbbKNFpI+lOKMxiB+qgnNgu+RRyvxgpdxFUuo9hDzTljx2Mr94kLhwYy5pC0eU/YSp8sTlVawdyIx0B8uFgFHjYH3qQo+KZ3J5cBcpG+oYmTnSHbzKudu08vP9UDMe19RTCsKINO/WXCUq9FMsmjgQetA8YrbJW0SvuiDTyuBwvhiVfnKOlM2Vw1dDgdgx89Ie6ebvBGSDMqUJl0axZvxfhqqK91zKbHnxSYktQuGgqjGzsAbAn16H3ikpbx1fpc7sOe0dLdz4dp699KhtIMFwvmRRU7YnP7EYqaQmst4Jp/a2cerqMWt5infWWEuYVcB+CfIhfqA== 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=tpq1AC9mz4pT9GIp5G+fdD9mlv1KekLqmjkHWkmgZcw=; b=VOxS9fWonH2iXqU6RCRVJjUiNCBWDTb5cz0XBaiCXT1EKchV7yYif1QN0WnmhZQ1TEjpU0IGGrQ77Lvs6/Q15m3YaZ9nLcjKWy7w9U9koFq4GEIroGXqvu/ervaY7/pc3j0m3Q9WuyqnO5/rpXnbalJn31f+oLy3TQiux2afAJa2rWi8vMLiLT9HCZZl8mOXgfj46ish2SsNjjAL+M6U+Rerf7lwzFtL3OV0uVQ2RoKZ0SWeebwZtpDd7YORfjuWCyKBHzsQQEza4sIgAK42HM6hCGc+FmPJaSbHnpNyaT1uPtTx7Yo6CG7FsovDuU/tzjptULB9YfM1QSeAsxmRSQ== 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=tpq1AC9mz4pT9GIp5G+fdD9mlv1KekLqmjkHWkmgZcw=; b=mCps65DkWvMCZtmOFRtmH5HAoCyKzK8R4ehWmMhduvP0n6wFp1XDYL2g8Ybmli44ikEzcW+ktAnhlFSNWMsbjNSTYLuLJx3o3PMV+T4YhYyhMIjidp/5ZSaaRBDBePAwDRZj5wQtzsatmZKMyshTB/WAMAmc8HsBWqTB23HuInY= 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 AS8PR04MB8166.eurprd04.prod.outlook.com (2603:10a6:20b:3fa::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 15:04:05 +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.7719.022; Mon, 1 Jul 2024 15:04:05 +0000 From: Frank Li Date: Mon, 01 Jul 2024 11:03:31 -0400 Subject: [PATCH v4 5/8] arm64: dts: imx8qm-mek: add cm4 remote-proc and related memory region Message-Id: <20240701-imx8qm-dts-usb-v4-5-03cdbc8c44b6@nxp.com> References: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@nxp.com> In-Reply-To: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li , Peng Fan X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1719846224; l=2962; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=XRqBWVGSHdf5zR2f2daBiuyt82NoqI38HxfdQkKNzOY=; b=woS4I7x2/+/Ek1xi+3bWQwNgOcZgrZrih3VWk/Iqf2XqrGi9Q7vk2ZcIydWESGYu9CVGWRdhr ewAzYpqjOUTAaQpP4QLnFw0UpvOvAJRShfJknFIxyeSxWy0LIUc5GPS X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0149.namprd13.prod.outlook.com (2603:10b6:a03:2c6::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB8166:EE_ X-MS-Office365-Filtering-Correlation-Id: d52b6cb6-f118-4ae8-def5-08dc99df0cda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|366016|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?94An0epSRXPOKgWXvIbXj9UvC0Q0O+7?= =?utf-8?q?A+N5Z6PCjUTlNun9nwBwqPy5ycCzL+oatq+unJapxh0ZSyAfbla2G70OSZ1e4bLjE?= =?utf-8?q?Yhg8X5bZeD2WGWzpZQ4ei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PaGRs1qZbMwS9EjuBssepALNG8XjWCNjzW+BTq5UUuKaTdfdFjz?= =?utf-8?q?fKb7p9iLVB5XP64/yJdi9wXnWapzXHNm/+R9Cty9Mck32WE0s2vmFwAs9IfLoa7Df?= =?utf-8?q?sgNeBOjZJpN+9gRyhy4g8Wp8sBG3FdPDkNYtHGqifDuRyU1Ms8ae+YAvwT1DXrWwn?= =?utf-8?q?DXoLFtDaBgVCF8jelxoCC1xEbIl62Ek/UA7MrwVDKZRCb9qykXY/tf9WvgRR8Zipq?= =?utf-8?q?hcFVnYddUg0tuwTBSwwpnpBd5r5FUZyxuctfRVHb7L5q2mEbAzh/TCF84jwBfE2GL?= =?utf-8?q?8euYFzHO2OgqR203zI23rDoGgRdVyIAo6oiwir3zE3V5Sxb0ahHA3M1nnyVuxR7Iw?= =?utf-8?q?FmFyA49kyaQ0zVxaRTcOwst11qRUWgTpGQ=3D=3D?= 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:(13230040)(1800799024)(52116014)(366016)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?RmTDvtXU0Zw4aGt3KrNOFMgfWfOp?= =?utf-8?q?CcgjZtFN/i2bPegavb7l3UFC1Cq1ZInjWsLhYDrmQ3Z9YebjWEl5psyO7HQ0VG00O?= =?utf-8?q?KMFjyVWdUl3qC75A3xljl0epTvfmLvSwtfP+HcEXMQKHVnP0v1SyfjYlQ2buDxBL8?= =?utf-8?q?ny13x3JH18fn7dBujv7GFcOEBF9eDZaMu0PS8d702PAEZMXmd2AtLLQOJRtnOqvpF?= =?utf-8?q?HZHu2TvGRZEa2KR8+879fLiMsMmVbmkgLILhcdD2f2b9qqkJmBDRldczBxBC4vQIw?= =?utf-8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AMf+ZR6lnoNj2oSw/70MrvPxgT/YjVD4MvvBoPWbi5fh6ITBb77INXAZ?= =?utf-8?q?PhcCqn1Y4YfKfUrtKdMRxjGSv0oAcJdOWFB28SnnfMfwel0xRoA+2RpaBNkHughg+?= =?utf-8?q?WQM/lr8gTaWJPWI1W6NiNreQ2+kOy1A1lxuB74HazoZe+oI0BZM370Lmh+lKUYT9a?= =?utf-8?q?K1V7h/c82r49GXv7quhhbkPi5ZQLWKj5L4N2bGlFK/8k6il16vHkDNJHDqR+niZbV?= =?utf-8?q?ii09jdNxjJzxNQRGYZzDw52UERbsssxBqMS/xEtx+WB2YeRIKySLr4rdzlAzS+HR8?= =?utf-8?q?digTBJs962tIUJmXXDAZEwIffDYK792xKaLkcAcESukBa/24WkB3rokY=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d52b6cb6-f118-4ae8-def5-08dc99df0cda X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 15:04:05.3344 (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: xWCw0civrTmVo60qTXXnfLyqRLAvrIsO+lu1GlsqM9TgL9D2qAyLDTiddO0c3tdQ9gOUzpd9UD9s0yMItYMS0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8166 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_080409_007303_C84B8855 X-CRM114-Status: UNSURE ( 9.58 ) 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 two cm4 remote-proc and related memory regions. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 93 ++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 778741dbbb338..fcd904383daff 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -31,6 +31,68 @@ memory@80000000 { reg = <0x00000000 0x80000000 0 0x40000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + vdev0vring0: memory@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_table0: memory@900ff000 { + reg = <0 0x900ff000 0 0x1000>; + no-map; + }; + + vdev2vring0: memory@90100000 { + reg = <0 0x90100000 0 0x8000>; + no-map; + }; + + vdev2vring1: memory@90108000 { + reg = <0 0x90108000 0 0x8000>; + no-map; + }; + + vdev3vring0: memory@90110000 { + reg = <0 0x90110000 0 0x8000>; + no-map; + }; + + vdev3vring1: memory@90118000 { + reg = <0 0x90118000 0 0x8000>; + no-map; + }; + + rsc_table1: memory@901ff000 { + reg = <0 0x901ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: memory@90400000 { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + no-map; + }; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible = "regulator-fixed"; regulator-name = "SD1_SPWR"; @@ -133,6 +195,37 @@ sound-wm8960 { "LINPUT1", "Mic Jack", "Mic Jack", "MICB"; }; + + imx8qm-cm4-0 { + compatible = "fsl,imx8qm-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_table0>; + power-domains = <&pd IMX_SC_R_M4_0_PID0>, <&pd IMX_SC_R_M4_0_MU_1A>; + + fsl,resource-id = ; + fsl,entry-address = <0x34fe0000>; + }; + + imx8qm-cm4-1 { + compatible = "fsl,imx8qm-cm4"; + clocks = <&clk_dummy>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&lsio_mu6 0 1 + &lsio_mu6 1 1 + &lsio_mu6 3 1>; + memory-region = <&vdevbuffer>, <&vdev2vring0>, <&vdev2vring1>, + <&vdev3vring0>, <&vdev3vring1>, <&rsc_table1>; + power-domains = <&pd IMX_SC_R_M4_1_PID0>, <&pd IMX_SC_R_M4_1_MU_1A>; + + fsl,resource-id = ; + fsl,entry-address = <0x38fe0000>; + }; + }; &adc0 {