From patchwork Mon Jun 10 20:46:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13692409 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2054.outbound.protection.outlook.com [40.107.22.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D335F55897 for ; Mon, 10 Jun 2024 20:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052418; cv=fail; b=oEcZ7uflbsmLSXCxkng1/2OZwOXqTSqaDTfwvewxuaNMpHoGqv53cdhS9iT1U6enwktFRXvkROIe7fgAp5Z4b9jruqTji1BFi6kLnKmkfZI/p8Zr8SlhJAvw7/sx2xdz2bIqnrVN+ND1FF82s9wQ/BjipuekKWzbaEh2o90KcBQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052418; c=relaxed/simple; bh=dCwtPi/8EJVcD5gh2DMUVEwQe5fEGO87oefK9gHe6mU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=lSC7q+FcW7ALrd6kuS5JlJhfs0KU1CyPi0TlEGtgJJkdOz3H4PChu92Z/mSHK0mFLr/h2iZ7dX0f/rqW8ws6yZ77A5mmz0ssEzLKrwhispZfWKp0JWJ+9mEwvndTuPqhPtdeJJ/gcsyrPkDcEuN03QAw2TlAAuy2v1mPe7Zree4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=ahaqLuA7; arc=fail smtp.client-ip=40.107.22.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ahaqLuA7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iyabbG/CtyYYs28X68Ydtqkcev7OlOiagv1n7+VSt65Zu6RRn2+2B2E9GySbBmgO+rjITyl/0aBF72Pw7LGLec4HxTmFz51Zjw211fed2J0C3lhCaUJvcHh3ac9Fz5gNudabkRtmSvpRL067TxnVNNoX5qyz37NYACN5U00PzODgp5qV4ob0SmaA4du9lixAawbzsiMaMrJOKYX5oyUlXdiBx8fsyrEA1J0J4UyfURmmgtxgwzIBCT8MNqvrz2XZkp4JDljPnC9UNEy6SE3O3M6tkaikinx/g/MQZehWLS/Z/RyMv9F2eO1qTguDEmqMVr+06BG+ofcynPfuUXvt4Q== 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=b8G5qpoFp5Q8onqriaQOrAEkvT0GxrBUnT872PX/0Qk=; b=Uh5e4VQ95EWeSl3my9VZFj9F+2x9FmeewOcFw3wo+URZLkMFciqtqzI2xWzsw0HqSX2vFjArdC/VEQxtFwJeyCj2lBbZPBvE4H7PbrS6WaoAP2M1jT5zsaxla9J9sjV0gBqeVdYJMU80vPF2F3fIAEf2sCjuZwG2gtFpVd0uv45CiM0o7i7iMde6hNS01MkL4iSloiJgb/O322LdXY/Fhynm/G00fpqVsUsdcXglxHdLv0wRlOR7j0ZDm42XoBg2tujQeutHZyShAzpzGX2T0gPTZU+qNHyHK9tzd0PiRgEPe1PtoIGlQ1E8Mu7KXPgk64knsJdgwBjsny+gjQCZZg== 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=b8G5qpoFp5Q8onqriaQOrAEkvT0GxrBUnT872PX/0Qk=; b=ahaqLuA7dFVv70aI7NVJuWX5cwMzvvMyP84e070dxX1CNpNG82FOeK89N3VowWeolIdYI/oKP3sYAMSdh01lyp9yqLVdLxdMtlnwba+/GT+iKxechvrlDIptJFC/UaHEkzfFytFtBNIf4em2o03en/Kbf3iB1CpVts1Pa5ceeIM= 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 PAXPR04MB9376.eurprd04.prod.outlook.com (2603:10a6:102:2b2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 20:46:52 +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.036; Mon, 10 Jun 2024 20:46:52 +0000 From: Frank Li Date: Mon, 10 Jun 2024 16:46:22 -0400 Subject: [PATCH v2 5/9] arm64: dts: imx8qm-mek: add cm4 remote-proc and related memory region Message-Id: <20240610-imx8qm-dts-usb-v2-5-788417116fb1@nxp.com> References: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@nxp.com> In-Reply-To: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@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=1718052391; l=2953; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=dCwtPi/8EJVcD5gh2DMUVEwQe5fEGO87oefK9gHe6mU=; b=AL51iU9t628NDgrn3X6MlN7DGmrOt3LofQEQdQCcNLgxLhlxGuH33QHMy21Cn1ckn/0heH0rr uXWDsvAOJB0CUdV58ab6eJmR/xJfNpSXMzUXEOGcYOiv58C8XpMzJ1S X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR06CA0059.namprd06.prod.outlook.com (2603:10b6:a03:14b::36) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9376:EE_ X-MS-Office365-Filtering-Correlation-Id: 8330e461-40e2-494b-9790-08dc898e74db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015|52116005|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?kCcNpccPrv5SEw+epBhp961ZqKgw+dl?= =?utf-8?q?LWlKtop8XEJ+Yw3G6zTD14fQp6AIZhYF5RLT5OcZsYbBsluyMaO6KVzvpV0q4SYqU?= =?utf-8?q?bcU/QGHAs8TPjVpVnaH8+H20U7UmIv0X4IrJNmZSajKF2ajOjfDUzEUfIkEHsb36A?= =?utf-8?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Kmj879qJ5tUl/Sn0BdVfvNpNYb9raxbpWpZPnS4BBH7TJlkxxKatgOd8drS?= =?utf-8?q?TJsN2WdTE687t/0fE+Ie0TzvlM8a6ZNEUkovWUd/GzOqeLEw7OsPMHnDC/lqD6zMz?= =?utf-8?q?LOupYG623ahFDZRdilKJVhWslXJh/wmj9TRVpBeC9cFSnpBEPGM3LTDPLq29de74B?= =?utf-8?q?O6LLVAr3du4ueZgiTGDhh+AxF8qhldcaANtlFekAC9YucOVditJhLPTel/OKA9r5M?= =?utf-8?q?hvyrBhxi6MaRqBhQEvf2ohAaKegup+vEAC6HcLVaQ4F9r+fGDLi3aTQY=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)(376005)(366007)(1800799015)(52116005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qiN5v6lFugkPpTPXdv8j72MC8ddZ?= =?utf-8?q?sYqXm/B0phFdfZG3HsH9Qu4cXBbzyQ7N+IogOr0hcMyNUHmX21Qdbxwr5wgqZdD8x?= =?utf-8?q?xpfhlGE+u+49nkWz+mDP58vXLbuZOEYd24B9YxLUauttI+3eZFn2SeCEmdup2jjDp?= =?utf-8?q?B4TTSku+nyu8VfLjyOxb3f+oBXxp9iWO7nYqwtGuPT+4TsNF9BkpqpEn9pX2/DRnS?= =?utf-8?q?ruaV+oCvJFzEKXhO/uLlH18ljK+madOHPmtoPECwuOnbM7ESQpudhdMVFcQ/Cvee1?= =?utf-8?q?mBhOP7MwdgPhEMZvB8HEo7phqN0hXgfPh7wrnHz060ys1eBOHfwsVwN8UA6me4nYK?= =?utf-8?q?XfCWi3us/+0Rl8K6uHCFyG2vC7pF63wuXugH9YTQwP+JwpPcoDevJdBdczAC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APqwL+lT?= =?utf-8?q?QE5pa2vHzergblMmRlS7KHVpic2gwMjN9anTznl8UzIETHofBFnjwNl2k/cOIq6A6?= =?utf-8?q?RDyj7reuuM2cXZ2sugXfh2ceJRg9CZxG+tVFXs+AVy4v9DiBYhKDIdDVZUcvElASl?= =?utf-8?q?d5dzjxpC6NQAwntRzap7DyFqoEd4D+YVp5e3pw8rerXPX/9D5C+yjpCyGSiaVpxY+?= =?utf-8?q?7roNl+90tosZfXPMf/57kV4XobOdnyCP6s+VUCGdcOiNMqbzHWFkxOAM=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8330e461-40e2-494b-9790-08dc898e74db X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2024 20:46:51.9720 (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: y/Auux0EoIrOudDsD1tgU76VNcY0gLjMsv3aLPMEYCJbX8egd9FdhOtjr9ouhtt2UIr+aLn35o0W4870cPIohA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9376 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 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 {