From patchwork Thu Jun 6 18:46:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13688908 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 C3130C27C52 for ; Thu, 6 Jun 2024 18:48:00 +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:Cc:To:In-Reply-To: References:Message-Id: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=Dytxj6XnSIvwFi1wgkGF/gPUqpZzQ/76eDpXYlK1mFM=; b=jS3ixAQxyUHtzpB3RKyqcENnMm gcEBLQXKzO+mhXlBtpaKyus0eLzCZyXKKFLahxkcxFXNDMPrMlZ6tt88KwJHM/pdMgcq6Q0YnzBHr 0rOnuuXn6exzPrYd96tCRa/PX9SuW/4FhWpFBeNINs/IUFo7560HGCTDVVDuF1eITQVFS96EPeX8X gYs/EZIt6Go70N62ZDvzTj+f3ACQm3qYcqC/Hrll9xyWtH7BVgdSLvGglO9fzLsBQCxhGO+8ebb4o KtAyoiefwGB4msviq2+mmb0WuUUDZjXc1dYyrp2nMA8TfERJNC5K7xnOvpGrJiP/kRD8Tccj/PMOX LRHrRZPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFI9F-0000000B05o-42LH; Thu, 06 Jun 2024 18:47:41 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFI95-0000000AzwL-33Qm for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2024 18:47:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QGqXryzBOh531w5M84BEAVOlb3bPxHSZZY1yOC+/R13b5h3LmzUHQvhl+Nx3wc5wgNbAlv0CG0a5NGozGDjUoollRn5QiCploOp98Usxa4AIHxoT3WUBniXGRThLRN6aPAPjwPZirdFEoZ5mKugXIqhynSC7aUp3YEIPaJZZ1WTuAP5MNwL+7VWj1ZPynUb52MYNRXKxeMGgHO2CsEsrbSiu9LLjL1hKxyHbDPMIGZgArXpXh3tJihWWQzUDB2NN/tf9H15LID/XTom45xS0Wc1bCqqzdlWHNzytB0I6UGqWPzNQN8km9lQEAQse6zjAAxbTplj1L1Qwloyc6+IS7A== 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=56NK9IpX14FIl5PU7gRV4JOyVKj0mweZ1H5dCNIAhW0=; b=oGNgUd6on/O9dfj14WAoFRFcRAEdMcqTw0etWxaUbzFQSee9DmuvacGy4Z2BzsmPrWW4zYtzc8Vic7CyOA/sy58woSVeW+Uzq5oUn6bVpQZn0ldVHEJVYYla+fdbLZhquI0SWc7JwKOC25RAPk/FZQRY8uI2Vth1NPBOFbV2u+4eNPUZldSyfi6ZDYVmWxAsP2c5Cb/zHM5C9iyBVPnmNufdhjfjBUtJ7cugzW+Y6L1OBNJE8aMpGwAaMpBjBSNxs1+hzJGYJ3KUJ7irAHPOtcR4aUnv3LzK95OJd7YzeK+2aMIzb9jUJF4UFXadudvtt9/igExkX97GdgpOZcoxGg== 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=56NK9IpX14FIl5PU7gRV4JOyVKj0mweZ1H5dCNIAhW0=; b=TtEHHK+U2jhfcZEp6fsm+bBjqcNpA0+AZxtCEp+YwIAYRVePCEmFTxIQI/tm92Wzum4I8XvX3GMJdiuJfbJr6gDEzE6RKLzygR3jKBlAkfZGXKP4YB1jIUHzoTZkwes7qDGazAiVP8K3U6HZm4t4+lwsxhYrNZI9mk02rsZWqZA= 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 VI0PR04MB11069.eurprd04.prod.outlook.com (2603:10a6:800:266::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Thu, 6 Jun 2024 18:47:25 +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.7633.021; Thu, 6 Jun 2024 18:47:25 +0000 From: Frank Li Date: Thu, 06 Jun 2024 14:46:57 -0400 Subject: [PATCH 3/7] arm64: dts: imx8qm-mek: add cm4 remote-proc and related memory region Message-Id: <20240606-imx8qm-dts-usb-v1-3-565721b64f25@nxp.com> References: <20240606-imx8qm-dts-usb-v1-0-565721b64f25@nxp.com> In-Reply-To: <20240606-imx8qm-dts-usb-v1-0-565721b64f25@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 X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1717699632; l=2911; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=wwKcCvjh2THnjztvtf5usgNLOblQQHq2amLNdLYCtOs=; b=6Ek7lGsQxrwVbD8FmiSjG0D+3yFqQsiPjw7AvyWJw3jxhNHen/as8EfWBq6iPHqHC+EJitDIY 0Keb9jVBqNJCJkRuxcM3BqdoWNIkQFeu7rcnx4k2uKQxvRSYc0uYYZZ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0178.namprd05.prod.outlook.com (2603:10b6:a03:339::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI0PR04MB11069:EE_ X-MS-Office365-Filtering-Correlation-Id: b433ea6f-0fbd-42bf-b031-08dc86591ba6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|1800799015|7416005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?7n02jlpxni2rYouzogcyAuQxxaqZq4I?= =?utf-8?q?rOH4bv2G29jGt0mbWga9hbKMeNiQoEdOc0zqgI4xMta5R/Ty8nTE3Grv4Hgxb8cTP?= =?utf-8?q?5PaGtNSO/KWbxomTKoIIBeOF/AxB5tEKdndq4yTgJeKRFNQA2Ys56NB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fb9?= =?utf-8?q?zIAs+68a26TH6VJduEoXPfoak3Y9SzTtar9GLZ/KdWYP1pei4FruuDlD3w75zEJhe?= =?utf-8?q?Lb3EXPiOHPam2mHP0ocHu4PXuIQCeWi0MYZKgE03M2AcD1pzxfcIZarkShFSdfnJL?= =?utf-8?q?bOIXC5zT5DServfRdE9U/9fdE0ArJ/PU0cGrl4rsyA3Nol737EK5F+DcVpvrAZ206?= =?utf-8?q?TsRIbmhenHwL/BYz6LJ8B3S7jBU/qE6Ex2WfCvQymmFqZsByC/+82anSCM/goAt9J?= =?utf-8?q?qE6BIEpFAYbTo4P/pj81F8C2To/eRtnuOKu+LkB01G+x5NlRPXkmmJGY=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:(13230031)(52116005)(376005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AcjsrOKM4K/pAueGRssVFXnPgwo3?= =?utf-8?q?9zyqUuD/9cGQ/DQ14MDTM/84Wjh9j3r88dv4/nXrXXNo4ksTvtLSrmeI8fvP32D+3?= =?utf-8?q?DzRb1emmG4Mcc92tFuBaSgs2BqWvS6gRDRoohhLcUrJJ9EEdQ2FDqd4heffbBdsN2?= =?utf-8?q?MEWQSoS59eSjVTZa/n4+7q3nOaSJwxGK64iBTkemFHkzw7YhmEPyQ9LsgrjsOnmo4?= =?utf-8?q?xCeKP08CE9NbacRuWaGCG52+s9JTXtPZZukQdM4wjRwfZnlop5sqrG77WlUNZOQSU?= =?utf-8?q?mZQJkC6nB+eYKJkG0OxyyMQIyxhxfgMGgCc2t6DP8MWTMOmr3nsAt3DeL7Pqqeo3o?= =?utf-8?q?2Stp77K1RsTOoXHDyIm50CmDsuCjAmHsDZ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8DaiAqDvCEKNsJwHBJMqqMOaJc0qZs1IREz6?= =?utf-8?q?AvvXptuVynmeeT8JNn8glu2KH6g2aMlPP3Y2CPkxeJIRir9lC+2Y7MjZHmLdANlWx?= =?utf-8?q?eyMei6c0MSlkMv7wEtTqy35NKE1BYbH+bR8iV6tgAcueTeYXgUgANyaNrPoHnzIo4?= =?utf-8?q?tACZ+rP2F6G60Taif0vePNa1KOC/UsYndhg9t0jOqVupEkCDALzxkqq1XGrBmuRve?= =?utf-8?q?8L0S6hnt3qYYE8G5RSmFZbEY6MQEXsBwP5HSKfaaN0HD6uRjrjFi4sxKgKlc+RurQ?= =?utf-8?q?yMFgwaAyQjAL?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b433ea6f-0fbd-42bf-b031-08dc86591ba6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 18:47:25.4481 (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: ovQ/7dHKmSWORTwpzt+WTfvIudfejZdoF45aWnD8u2Q6EIsm3HT/sPX01fPAF/DepgknyYosL1+ErgPZiD3eYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB11069 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240606_114731_813181_ADD94996 X-CRM114-Status: UNSURE ( 9.86 ) 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. Signed-off-by: Frank Li Reviewed-by: Peng Fan --- 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 c024be33fbcce..dbd478af2e474 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; + }; + + vdevbuffer: memory { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + 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; + }; + }; + 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 {