From patchwork Mon Oct 21 16:34:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13844456 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 0A03BD15DBD for ; Mon, 21 Oct 2024 16:44:41 +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:References:In-Reply-To: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:List-Owner; bh=tcP05RJJOy8o+kc7gEhtxGmANZXOrTSweb++UwwWgos=; b=06RHifUBhfoyyeJGSI9vWRqNU8 62c3P4gAszI8LgzvGyzRD6xQZ5gIfGy/NdMlDvpOgpLruj0/YO9Dvt8KnvcTwsVG5lOcGpLxo8fGZ rcb1PbOWSTH2MziUCwmYqApyZrXBYUVvNcpON8qu3nwIeRkPICBNPZorWxn/5uPUhZ2caJ+G8HsMK 9q01pNutC6SKZ8xQho3KX5kpbh5q9XklGc2uoCmBtWZnC1xe/WZmXTGkzyM3rx2tmHZCYHJ4Nv5Gd kKohFGcuJlC2FsAL6/07EV2jH3LjJMMPANNtGYDyd5sSItiCl7SJ2RXa2Lwf5oJZsZtGZ03lsAyD2 5/30V2aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2vWB-000000080pf-3DGK; Mon, 21 Oct 2024 16:44:31 +0000 Received: from mail-db5eur02on20616.outbound.protection.outlook.com ([2a01:111:f403:2608::616] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2vND-00000007y9P-1MHd for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 16:35:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ix0FZo4R55+f/Uf63lQ2KjIhQiLZNtGYxQJHEKZEKH/pRYxrfDq4Z6n4GgtTuBeMaWwWYaPXepIpMPNRuqCn2b/q/B1BqSfcDPQFAQ6hlcVnNHRwk+wQyPEt/SVDz7Dz0+MRP+3wBFRppesIriJol0kbyj2ar0ZeDMP5dl6akZLfbcj+hYuhUOLNEWPYgckouwHhzRfVrTL8jOOqArWLfiFIeIhoO8s/n/KE/e1YVVZuXSsof1TqWbNWyHYSeDyWnR18RwAcdHnLmjjMs01AJOJ8/RGZB08LHdRAk/yevSA23OUNw2JCEyMVMzUW18VTMkJeq7jujzqVIoH/9uh17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=tcP05RJJOy8o+kc7gEhtxGmANZXOrTSweb++UwwWgos=; b=PPQURvT6xVplvrTNGR7Ew469R8XxwhSgBaWXetJ7Je8Sd8BtdJqzi1aPUNgDnXRlYT9I84E3UfO3vGhTKlgq+uKqPzHkNigwv3rX+fVylCeeLRQnwBOnPoOPmuG7q/ivjZEAIzuvaRm2LxxoJhJGmFFISDOMKfamoeNxCZBaiK6zuVtbPCahhgzvfrUqvuHp3oVmX5lnHGtjAXtllyUhJtJboHXFLSbOpNTKLkrSPWNrFlwF97H/y6iw1wJql3d9sG0VZJvbzIKqTLkPwG+W4sCARVbdSaFD4C8+z736Q2STCjtSY8UmGh9BJym+vBsvV/rr3UB5wDHN5Yq5xW0/Ng== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tcP05RJJOy8o+kc7gEhtxGmANZXOrTSweb++UwwWgos=; b=GCBn0u8cP4hcRXh9xDPFH7BqlvcHhdPjo7Kd2IF7U7xvdvtPmBC7HX6SyQiil9gIUoHmTMRSltaaO9Q6ZpnTOcddeoXnbIcXrbqBrbm2GALGZUOyHWxKvA/LHz/F/jDDFCnTvvkH1QEhS7wd/gfvTtnekDhYr8ITxzz8as3DDGyN4tYqaEngBlttGwZUSQYijKep/mGk6xoA+3Mdy9//BmUMu/wFX1F4zL03FxyVgIkgaKA8nCbS/6dy8MDZ4emM97k2mw8ShB4/QpJQiBvkrdec0aKldtDxxVEPl1LfwnvNUBuqKwuMriMIsyLQrqKfaPZ1rcI8c//qSi9rPypaHw== 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 PAXPR04MB8831.eurprd04.prod.outlook.com (2603:10a6:102:20e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 16:35:13 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8069.024; Mon, 21 Oct 2024 16:35:13 +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 6/6] arm64: dts: imx8qxp-mek: add cm4 and related nodes Date: Mon, 21 Oct 2024 12:34:37 -0400 Message-Id: <20241021163437.1007507-6-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021163437.1007507-1-Frank.Li@nxp.com> References: <20241021163437.1007507-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR13CA0005.namprd13.prod.outlook.com (2603:10b6:a03:180::18) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB8831:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a2e5d16-22ec-4407-3351-08dcf1ee5617 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: sTguTbp0mFJaMQF+0DwtcYrGH53fh+O8A0qYvLLqS2LLwaH/ZgfXPy0xbWyA6kTWhALO4P+Z3EKLV9BqK2UqEEZmNjKhhi0dcFTTlHpQ380BlR1UU1Fo4Y0zwPZGWv4/R7r0i17URsAXpEEl/YjsTZ5h7GdiLLuWSpzwEn+zL+O4MKdl/u5ew5nZSREVgck1uOZ/jigW0iOLmit0Thz049oE4Y8luzJ8eIukAnQyurRY2U33OQWCFMcwS8Q1k5pRLux7THWw5DhK5AjUuaVcwhZfyjvkwgkVTt6Qiq7mhPG2RPCW6kZ3tXJ0nhhDNlTdCjBcsWjXJCymlkLO5Y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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)(366016)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Y2/9/xD8qBIom6091Qz5xxXIo668ESPmDY6Fw5dNwF1q8X2xXkr2nuGtFcG/Ck3QPS2tJKGDTa9g3uYTvxInBJgDOYswI5cxrMD8zLgLoV4hfjPO3YlHntBSPjuWijCigbNiv9Rj5imAUYyAtyOgFUtEqlZ8SSnW93KkH5c9OK8VSTuAOkkWAqiupFAMYnymNaE0p4751hu5RHQe/J2g2OFHp1BwldJpwoM6Xj9HDHAV/MPRchEPXW1E5te4leKqyhFIL8sUl/If1DpZzXeb8XUnOvcAHy27cx1Oe3Cmgt+Tp0tjRu9Gz2qktEZX6NeBU28AkqJTktMGJxY2IpQLdPzShXvPg6vwQZHEwRZXQxpc56euZRa514xCVsuCuvRTHiHJcnAMdgxh0H7YEDvvGUB+r6Vn8GDRGJ5d6i8iHhjY4MMAStPbx3mCCoLb7L7RLEZ7PcVuoNbO0HJm/FjNF9R1uX3JJ2/++94E8n1TM/UyvN3wl/+TcWw7gXpNQcRE9BrofrKPNs+3Ulg3UiRojPnaloFIyc8kxX0YSMJ9qWR6gCawxgoXAvOr53iHgT4wcfwed3L5lPA2FljHVKR9LvUppWAu+lPJeh3BgNSFZ5c3Wat6OjYdIZuQ9z6iSl90AAkUzUuAXITtg6OeXwH2ptUqIO+ZcgVuxH4rBAGL0n6wmxOk5nCpwCBQ8y1XIazHZBTEBn+0EOcUoX3+FPSCoduXv2tPZrbmwtET50/HTY+jMur34ynxXjTv31jNMULd3fSC64e39Fe4Amh335PfyfRqsODQDGUNvz2zQgprd5iNhDZDV3yq6298c5l/AbC0z7+B/JFwkv4Baov1axJkXrD2yAd0ESnqtstp6qeqTWtj0gUOv8wlWWPH1uiUDkAenbwXH1hF6NfvZxRokq/gdZT20MdePyF9hJJjihhH9K2fahtlw5heknlERdGW7Fc0nXKY4aWWo/A30AYw5BMOjKsgne2D1hm73Ho6Iq36BOdhWPRL4XJmUVNRe9sdlyxit8/Q+lNvy+wsMD9gdwFoUWRTWrkaA1OTf45iLbNyaJgh8QBwscjmpijIFr6ZYwanXALp33Frls5fQxlJ+0yQe0oBZsN0P/dKVw+58PHqa2+xFe1LnoRrdw9caDf0W3r3QsHE7KVRweuE9dFuvwBEZnd46nGxoFbEsYdXnJI8JhvpLsSASm3KVmZi8zMIOHvCfTMYXEOowuOB8ByFnkQG7FpUbFYS7LAKe2wNLkcvH7BcfqmMu48xQtJVskg0m2px4U+EeFNzy71PF/azbsjTVPNZeYJVoE+eNY0Bnffmqy1FgDTZATuxHIjLfoTVTxfo1MvWSBWrQoVkeDRKmuGx0emBKT5ukIAjBR3LHhlJgiSPWvxZtWXpRK+254K6opTPvp+j7NiY0F34Q/sYA98SKTZMQMIb7u0Hq89xNPo2yd3uSLegTFHqCpoLX7TwloVUBAuqSXRKKGHICl90UegmSI89ynJ6G2kVgvj5AsftY80i+xzn/Gl8L6/G1yWVXbbs3YK2iMLlZoydgawzI8y2Boxb6UAiLNb/LSwS46b4hpm0ToyDd5WmfrnXXnQsGL+n X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2e5d16-22ec-4407-3351-08dcf1ee5617 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 16:35:13.2157 (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: 8gWYWYVGwJKmbz5BLxIhSHQYMOzOrcvnABJ4Mr+uES5se7ZVuSolXuipReWJtKGJ6cqMElihjGuww4bBUMM2vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8831 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_093515_500393_5B5B5D18 X-CRM114-Status: GOOD ( 11.89 ) 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 cm4 and related nodes. Signed-off-by: Frank Li --- Change from v1 to v2 - fix nodename by replace _ with - - change nodename "gpu_reserved" to "memory" - use tab instead of spaces for indent. - remove unneccesary status="okay" --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 6fb454fdc5b5e..b01413f73d643 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -21,6 +21,20 @@ chosen { stdout-path = &lpuart0; }; + imx8x_cm4: imx8x-cm4 { + compatible = "fsl,imx8qxp-cm4"; + 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,entry-address = <0x34fe0000>; + fsl,resource-id = ; + }; + memory@80000000 { device_type = "memory"; reg = <0x00000000 0x80000000 0 0x40000000>; @@ -85,6 +99,48 @@ reg_usb_otg1_vbus: regulator-usbotg1-vbus { enable-active-high; }; + 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_table: memory@900ff000 { + reg = <0 0x900ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: memory@90400000 { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + no-map; + }; + + gpu_reserved: memory@880000000 { + no-map; + reg = <0x8 0x80000000 0 0x10000000>; + }; + }; + sound-bt-sco { compatible = "simple-audio-card"; simple-audio-card,bitclock-inversion; @@ -405,6 +461,10 @@ &lpuart3 { status = "okay"; }; +&lsio_mu5 { + status = "okay"; +}; + &mu_m0 { status = "okay"; };