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: 13692427 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 BB339C27C5E for ; Mon, 10 Jun 2024 21:02:08 +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=OP4WtNhFR+11Oask2YMPsLLuXPnrQe3VSejVXTO//7Y=; b=tDdDP/ZmQyIa3g7Vl4z+yGAFoj DuWEKw/A560M+wMAU2MMgiFhaFSQOzFAJjnH5VIfIIRq0R+6FBIhDXfVa60BamryV6I4dYrbogZ9Y FCEqGrUCWWXC6p3GRH1RFfKID77hbtKGfTuly8JCUkBx4DmTtt+n0AhWXp8sfAylG5S8YmwoF2bSf thLPeF9rDCD4qcuWmR3FP1eYumQlGKbhnEEx6jE5rIONqBtlfqOIEb6kxFP/q2dgIxMhmDm9jPhRx bSdSlbM0J4182R/3y60wefpXto9adfGkJPrpLZ2AjHhjZdZWfP9vVDMLe4pE8J9/63J5TSiTXA4ac +Le0xMaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGm9N-00000006TOm-1zTG; Mon, 10 Jun 2024 21:01:57 +0000 Received: from mail-he1eur04on2060a.outbound.protection.outlook.com ([2a01:111:f403:260f::60a] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGm9K-00000006TMk-119S for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2024 21:01:55 +0000 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) 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?q?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j879qJ5tUl/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/Y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qwL+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240610_140154_308573_2C4E590D X-CRM114-Status: UNSURE ( 9.76 ) 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 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 {