From patchwork Mon Nov 25 15:24:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 13885095 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2052.outbound.protection.outlook.com [40.107.104.52]) (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 6D194195390 for ; Mon, 25 Nov 2024 15:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732548203; cv=fail; b=IFRYvxyEoTHNAPPZTSWhumwOdQo3blzMAKZPw0pRlXujZ7k7722X1X8mZCheA9uGBNM/WORRMIUhqt8fO2h0vyIHOFRvh7D/myM4R5eaUTLoycz4Bu8Ba9BfTJ46abv+YUp5ysBoZJ5VPEEz+jsrbga6NVGZyOjwRjAU1AOiBW0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732548203; c=relaxed/simple; bh=tlLPqaHaMntomjcAE24bK2ZHiZySH7Sh0loRlm+0ib0=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=TShwYnG9eEkyEIYM8k2loWgrZVU6jCYBuA30BWU0SYxeZhqe6l0Y47I5AcP0VzOPaZbph/mt5szpolc+ZRt+v0H35ro+PI8SWdHuCcMnsBLmwFvCeHXlr/wrFlKwkDMI+49geSx4tUkVhSx2rvDBq8SffQUB6TjzrOvG0nROaeU= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=KFZmwRKh; arc=fail smtp.client-ip=40.107.104.52 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="KFZmwRKh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OBUpgMeMwYjzsx5Gz2+XU3djOpM4B2U/nYADmcff2TfrgG8QzzOzcs+pyE2cVT1uw2rgUtwGgP4IlSRq3X7+NHT18kgBhS5xPybJlB5bFQANrfbqEArkfV8G0L2wLA8jxfYfUr7IdpLUYpCxvEonZEbm2Mc5f0UM878xEBZnsFVKr9ViduzxYQoqu/RF7t8XVIg/iprAF6J6MGHZ09/TZS/q6p0U8h9vnTmgjgSVWu9sJMIgVs3N6TSpsfHjvygprRmyVMuJiCCOz8MjeG2wXufOeJ+VohCaec+yrsJWz8QIpIYJOht9Um5OuRNCiV02TiOtvD7miHzKPTxjNTfmEA== 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=o6dC7jxEYlmv0dGTI+wMjcosBhuxuu7KhkiXJ159MKc=; b=LyOmZdiSVGYWjULR5V6nWGYxM3bsBus+ZsnX0UuSC4EoNF8QaUzUByoxvv98EOJJOKPOzHBjVT1mRVPmwQiMuI+0GT3CbFF305DPKhA1m+G5B1uid66sUXONNOFsRrX6R2h1yPIHbG0VSIoeIB0TyHQTYgAFSeMupgDiAzZqy+oR/v5ny6In5O6twl0k6PJywqRsIUJwZG/PunVfb6OIrosNui7M5u8p5AS0UNv8+GKVnas3STRUHQEnYbEyj/IdvnXVwGP0zNyBqq37GuVv2+TQh7HHX7jSC9p19vK462+k4xKGeiyoF/dVztsoirJ90pOPG+4W1fOjV3NxwRr8NQ== 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=o6dC7jxEYlmv0dGTI+wMjcosBhuxuu7KhkiXJ159MKc=; b=KFZmwRKhmqVWAo6befvstiGyYFVkpHRc5KA4fKDGgEKHw8fdHYhyAHxYejFMATNZ9Ra/E0BoK7ipQ0VrJjji4+Kkd7Y9XQ1EvS/Svc1nsxiVWl/rz80uLAylevzHRCQEJ+yNSnT+JqhFw1Fbl6E/1IHoqOzkq/nyRTByl18mZYKPVSpmYJYpC0HciC4t1oPwPJ2sOIodqvBRxGCgI6WvD9pvHNnZNOse072nsvdHNfOFpaozCn66iXunNLFonDSjczzaLXfKzWxlKzrZex0DkGf2E03TlC0SIc1pHOmMCZiDU0ie7BMqhw01/hf0jyYX/gtjPNhDzEKfTKgpFOb0MQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) by DU4PR04MB10886.eurprd04.prod.outlook.com (2603:10a6:10:580::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.18; Mon, 25 Nov 2024 15:23:18 +0000 Received: from AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6]) by AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6%4]) with mapi id 15.20.8182.019; Mon, 25 Nov 2024 15:23:18 +0000 From: Daniel Baluta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, festevam@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, frank.li@nxp.com, aisheng.dong@nxp.com, daniel.baluta@gmail.com, laurentiu.mihalcea@nxp.com, shengjiu.wang@nxp.com, iuliana.prodan@nxp.com, a.fatoum@pengutronix.de, Daniel Baluta Subject: [PATCH v2 0/6] Configure imx8mp dsp node for rproc usage Date: Mon, 25 Nov 2024 17:24:20 +0200 Message-ID: <20241125152427.136883-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: BE0P281CA0003.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:a::13) To AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) 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: AS8PR04MB8247:EE_|DU4PR04MB10886:EE_ X-MS-Office365-Filtering-Correlation-Id: aa21b2dd-c2a1-43f9-dc0e-08dd0d6516be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: CYj77i17v1GWinmnQgHhsSIDvq77wI9Mp37kTQl089L1wryc80DEeINiUFcgYZZMftIbJqHijM2fHibb18lMbwJhwItm64CqHhOK/5Ag9V6k+lo+uk00Zu2D0R7QeKJY+lDmAtLRzMjengJAdpgA95dkOVRSdZO37fnjVJnHWUPxUZQgD4PrDGIKUwP4IwrfxlR/1NIsSEyPtdiuPicYWRVJmGcSVk64YNa33QTtcakqm2wboSpJlflHlMsEeQbSFX0qFbc1ybJ4dSHMLNTWS3OTanI0uRt+vrY1n7/Yko/nmKpf1JAKPbFi8HMHrkeJfVGu6CPKXfaSoPFjk0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1hw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8247.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LMsQgi/MIym+ALDtOlzAAwGTVbFIHMTlelShVsjcCKaU8Gd19kZBlsRWt9+OKH6JWgzB12QcJPQXuEY1LZXUnk8o7gdOFIAKz0bggp/mAd+zj0jRMr1vvvihCYjvKcntVV6c9Y3d9D12EcmCwpSuK4Qi4Js0lxC5KibWK7YbbIfC63Jn5hfhBFldbNlbDaHWjKHDMaq0aRU25l89Z8OsUO+rIlBWXxtXFSSMSgPPbZNMUK+HtUdhZT22Zn4px9y3R5ru5O+bgI7PEyKwMC3Hpr1X/agHgA+bRMElkGK46dFG/B7jcBeXrIwu8ERbnhT/FPjunceJbJ12Sg3A22taDJnviAgYRrDvoqrExIWsp9cFAEwdHQBLS4FW3lMS387Akk0938LVaErl7hgLBHt5gH/MxYjS+ufUXwGqwlXzV2amX1GiZusE8wTppAl1kQCqyzdWxwoA4Dly4nzhwwQFXS2yvzaUub4M42rpTekd+9UsFARtbtKyK1Hv7dApHMhQ4FpEgoiTHwRiVqi9Z/MO81RZWs9WKbeadX/x6OPfLAHvX7ViSpTbE3NHoCNKOmP6qlqG/BCO/XP6jHkoVKDDCF5BeZIJOkduuabjCZk6o6+Jr6ELnZZLcTeHQ1rqxTpcr8CmZPdEea5yEEQQE4sBAiDnf+Y3TP9OvyjOKzvPF9WJXDeGhhSwpEp3ENrX5ZsoYTE+KO/V0o6ehFyt6vLkwonlS887eTQSSNsEQjA4mlaOR7jpIn4arUp0wgECgfw7e1KYPPraUlcVEbtlCtj60MVEimQhh6/r378Qm6jv2l1Suj/cvS0cCsdqbrhzzwodEQe0wu7Fakmkhk19yxe6om7AdLnoiCwejCH0yEmYrt175r0hgufM9RTm3SupVVr4nxrzZmsX61n8CrtG3X10x/YZS/zbNvdgKct2BQaTlEMCNaNTbz6/QUEG01Qq80WpDCHCT+GIQNdeRqVvNXnLlhL5Q0EJhd4f1TZ2aB+4OZFSg4CB0jVddTRfJ3UTWUFVyuOuYCmIA8e6bWv/0frL7NXpB4kGgt6l2AUnpCY2RTbBbd/eViKGtuxb1MMqHyLlikTcVhFqBtmclyu+Muj1K9gbYOkJj1RPaC0l3MgLRdtjoOksepxQh5UOqhSGhttcybL3oAYmVT9tN+G9JDCCaeeNcPlJONFH4YvRJ/I+UdiII0DYwucs4Po69X+02GmEBlLhecu6l2v2m+GrSA7aeZArGVigpY3HMlL6S/Ehqnrx1HT/y2h4Tgls+5xomccb8VjOA2PtiXHibe4m6x9hp+cgln3uEJeOP9+/W5tdTtivMtrv4NTt3gpe0nHqjXKgD+yPX7wW9njWRCqJkYFVlD8nsNDO4XbLnzdTNnOlsqNmKCO6Fx/bc7b3nGfJyvOrQNYbXYYyJ3KdlK5gUVUfSkmB43AkskOe1ynRK2uYm1dRVc6PWx8h8M7qMfJmMq/RqyaZWBtlKaIgwIQc+riiLGDbQKW8V3clSqaRhy+WUlvBcI4kZAime4MINjDHCJ2V4L/msSF4JCTq7Zpl3hHSb0i51J3Ho5iK7rUgT1S7ecial9pxI45/SWM5Q+htBVIw X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa21b2dd-c2a1-43f9-dc0e-08dd0d6516be X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 15:23:18.3174 (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: vfeaMHWgHUDy5GySDJT/qfVF96dCEN1eboa5/VQx+QJUy18us7pSjR8y652Z1xCaK2KkA7wJ3YQ514N0DDL4Qw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10886 DSP found in i.MX8MP SOC can be used by multiple frameworks in order to enable various applications: - rproc/rpmsg framework, used to load for example Zephyr samples - Sound Open Firmware, used to enable various audio processing pipelines. Current dsp node was configured with SOF in mind but it doesn't work well with imx8mp-evk dts. SOF controls audio IPs from firmware side while imx8mp-evk preffers to control audio IPs from Linux side. So, configure 'dsp' node to be used with rproc scenario and later will add a separate dts or an overlay to configure the node for SOF. This patch series configures and enables dsp node to be used with rproc. Changes since v1: - document syscon compatible as pointed by Peng Fan - do not disable dsp_reserved node in the dtsi file as pointed by Ahmad Fatoum. Daniel Baluta (6): arm64: dts: imx8mp: Add mu2 root clock arm64: dts: imx8mp: Configure dsp node for rproc usage arm64: dts: imx8mp: Add DSP clocks dt-bindings: clock: imx8mp: Add syscon compatible arm64: dts: imx8mp: Add fsl,dsp-ctrl property for dsp arm64: dts: Add dsp rproc related mem regions .../bindings/clock/imx8mp-audiomix.yaml | 4 +++- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 10 +++++++++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 22 ++++++++++++------- 3 files changed, 27 insertions(+), 9 deletions(-)