From patchwork Tue Dec 10 12:53:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 13901394 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2088.outbound.protection.outlook.com [40.107.103.88]) (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 C49891A3AB8 for ; Tue, 10 Dec 2024 12:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733835255; cv=fail; b=nXFQGf2qFabd3n4IEIEXYQeq3q4TiibopnEPqPkYP7SW0UAHDVB3EBb9naFCke05cTSrF8KEZFvFGCB4ytaiyshN/5TQsSRXe3GrBCOGitEsGahC+B7IK0u9+Kea7kRRxG4NTGUDwRCbdYyHCgIzeyG1lqs2y/IkzWPtCax2ho0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733835255; c=relaxed/simple; bh=Lk7rk0NAnxlEC/0aiMm0hzxfGPfgFWBUa2wdH4C1YKo=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=jubDmfqXQX98ZkYMF+b59zCHZWFT7M7NOx60feyMqjuZqlLMlHNVm3Wb5Z4y7GsijG6jR7UbG4/zSWjgjywGah/VwoeqdEe/JNv/1uZCknJAwOZG/U7I99r1mhhGItNuJ1A6w7BEZyps8kQtTLDjzRbBB9pDgaaJWBzqDFai5WA= 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=lLMdFHdf; arc=fail smtp.client-ip=40.107.103.88 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="lLMdFHdf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XsyD1t9V4OsLwWWUdUxpzCwawHOVH6em5eoB1mx9m9h3/5X7ye8Gb8c5c1xNeu9CubP/uZit92dVM59niXlgU1raZGAggw8iMmRDAkBVv8M7QlAOlQ/fsGGfzVGr+zQH73aXiPMTdwv2KB7Y/pnxIlMvIr4ZF8cYPTGps7LTlDQMP08dIW3gr/zjcBf1qgZRj/qh/Epk3hz25JJYPxeWfzllM/51DF1fghJbIAlqNblnwjJEEKUHIoOCFhdakMrakM/hdWkl8oQPRMHdztW4cxHL/G1ZTXgLjOYp6lXX67L8sRkh5K4mRxx693pTry+glPrO7s1kyo+x6Wp/l7SBFg== 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=B3V7/w4cFBAP59uZBA2E1VXKKouoGJuiTbWC/ik1O94=; b=yoJJYnvHwjWORoEZ8IfdJ+kXyBnuQpKJoK3yHatUNylE/XwGJ45V8Cq8rQid0UPK/wOIugzjhxFkHstd3fiUrDgAnozdrO0tfGLInIYNpNp4/0QFZeeuriexS3wAOkDMHRWedIEemhsriaMZvJfdfIGzGF/HybuU1u8to2OwQxBovfjf9Le2bElo0GtNZs5p+q2HbKH16niSnCmpxStPlAk9+lsjmY/QHiW5Qv3pugdSsaIxl6JNV/e28W692abNAc34msSnVxVls/j56yrXeIt32+6l5fSHGJ+dWIreqMvkZkcpxjHHqdLFUDVemmdDRb5M9nF5v+l9jlRzCqBFtA== 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=B3V7/w4cFBAP59uZBA2E1VXKKouoGJuiTbWC/ik1O94=; b=lLMdFHdf0LuMJ6LNhVQhBD2h2c1zisLVOlpqAnCF6wcrZjZplqs0iBU3s/z4yIc5kJcFMJqFMdy7P5E51wrwjanZGuKNeOOKa7UHmFKbKWpsRyYn5gYzcSiQSOEYJtle/v24NxoP+i14gO0TuLpgaWmXd4+zA1PFDAAeddPrR9kHLGghozIVXAXMotSQ7x8ri8xYAwSfANZIrGZfkClRE7iQRy+m+G6N/ZI4obzNSAEFcUCrs6R477O0fRZmTrcOaHzYVgErrdoqHGuU3Z/Q6mhIS9DDXNyrMC1eFdOm6Yt1wzHi5+89a63wGRRjCSKtAl53Czrs9ANEn1Kx2b79OA== 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 PA1PR04MB10793.eurprd04.prod.outlook.com (2603:10a6:102:485::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Tue, 10 Dec 2024 12:54:10 +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.8230.016; Tue, 10 Dec 2024 12:54:10 +0000 From: Daniel Baluta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, robh@kernel.org Cc: 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 v3 0/6] Configure imx8mp dsp node for rproc usage Date: Tue, 10 Dec 2024 14:53:32 +0200 Message-Id: <20241210125338.104959-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: AS4P190CA0040.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::20) 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_|PA1PR04MB10793:EE_ X-MS-Office365-Filtering-Correlation-Id: fa65a687-6d2a-47b8-adaf-08dd1919bd72 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|10070799003; X-Microsoft-Antispam-Message-Info: xzL0KOk+V6SXF0GrW4ux+CKcKpykOIO2SX3lcTF+VzL+denn/Ba8sLHcPTgznR/jOI1mtJ1Em0SRWa8HtKLumTPR+B18JarnoFfXprPRYkKYDziNebvJ8CaRwKmDYapBroax/ZqTocTMHBgzWzNzXCsMmPaPqns6WOGGNJcRiLaCUlzRoZQ5vQNyISZfez/eNh7Q3BDcQWL80LNowZy2h19TKUaG5O1cRsehgnqrSuBOcC0U49IYsHArtXZod41lihLiXADUihMbFyx3f9TLQqybqSYzQCwOU7WQgvuDAwx0H3cvbejTDoFhu9IdU99AUOJSynsOqx7AKpJqGS+wiuV8rF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AS8PR04MB8247.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(10070799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fQHuWBL+uSQ2g5x7x4TDL3XeBFthwR5ahIqUwCtmecBuWIRsMuOU32i0UVk8adUEgLUhIO6e5LECaAmoy5fmd4GA3C+MiLER3WPViBhOMygo0nH+S8uEHo82aVZzRn3scpUkeL2O56cB5Zr1E4V9vv5Eu3EnzWFWVfCzoQ09pA36OFmZBSa0xgKPX2loq46NxuAM0cU3Ek0Pr1ZnU+1peYKUkwRtuURA357ew71fYVPgjF8bEBckEMNaSYxH10AS/7AMNCXjSwfzF7zaak0iZA9ellC5AViTarmbDcIxs3PfjvOyL5L+RslObTSFeYi2J30Zg7hIS5uW5jWHWURm1aA+X+VDRU2szBlEotq2JajeejvCsS0pDuD/HcYpKfKQijV0fmI3PM3pfvsfITsuOHdEj+K1Max2OagXobE+1fD8e4Yha2BXa681Q9bigviPVssdCt9EJ/0uKxsj/DPIa+mSoJm+Scs77aNhLfhEKdturjtF5Doj+YL1CFj8U9jbuD/YMhDXKbvhvK4Ax+TEzFVcB8S4ZV5MBJSz6iVqLX6/96p1CA6FU40CY1x2Fwx1UgqueUQfrxxZCx8XGZTHIryJUGMA2TFLeX1SPl7RS9ITH6Vj4N/VSFmTgNSlMBzlCTXHPRrTZ8IABJm7ooIH57N5dZAUeYAWBi2ZsfSczkadXCgHA0OC0hqfIzH7xA3xms0I8S21pvxCjVy2MRo7SD3WGNBGiQPSHb+K0okwaja0KgkmaviRH/d96fdMv6rs53A0pFCI4pO1eQ0swWOO9cqCOPYu/deUj27SYWkXwFoJiZ4rGt/nNtEZBSqcxXs86R/rfIQ0a3Dk89udQSi1EGHvscKAYLp+3zac7aB5cZ+KTp1j1hQHlzSaQs1UlQutvki1ZxepeeCC6oUgw08hgwJrmmGT9XFiEJwar+51nSL4aIcjzF86senYszb7PkRYocelFomRSOfiy/p9d4O2PPMoYSKSddZ0UCFeTyA1ZdzPitX8LHkHQfPq8+rNUY2CiF3GMQVRNt9AHFexs1ysdtKi5ZhEl+tW+MsWXiiYUHWX6Cr7D4eY7ys9GlrWMgKDI4i+scsCQIkd4aO/kjjzpiB52mdjw9WWh29oJWLRiGucefcnfFlc4tOQ8/+ELGP26FR43eJkVzfvMojvmCXgW1bT2Uo3oQDxd+CNbxM5IQvWDPN5432a41RWXLo6c+JiCOCjtmAYW2RXIrucmID/2HFQWEjBgp81QlKxlZONe9zAtRmR3GCU52mfJTz4kW7LKkN68O/qLKVBXH90XNr2KCLgo6L9ecCcmdUEy2rXkMy49Zxr5t/iOLVVVyWu7Q+jXYBTqJwOcnIm8j5vtdFNDjMvMesZ6Tcgw8w6vCspCVgQKJeDKBzfFGLm0LTy049tKNajObW/WAtNQhNwEPM9HA8u5Vuldl5S8nFnZHuXSM4AXdKSk92XAzA3ISk/DYcFcYx2kTpiQ3ARoDQVfudk1Tewbz70tcPX4J4eCQKf4xsqMTPSuSmUdfPIQSd8VnCdqdokKizE27BgxufgHn9sgkoawidCYW4L+e+LHCrtpO36TWwaT9+8tK8yg3PQ6/o7gUAAvZ0bab8D36GlM/75bsGNtkZW4+49gduh7vJelQi2lwZl3zXNzt6wCclfeczd4wuIPTVi9aQ/6bY+soLwsg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa65a687-6d2a-47b8-adaf-08dd1919bd72 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 12:54:10.2856 (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: QV9jJpE2SqT0MmsVTkkZpFl/jQNVFiOt8bPP6f3fxfZ9eTl3JeRdPRKDwGVLratD0v9pgCk50H5Oryx2rg57sQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10793 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. Changes since v2: - Fix dts example in patch 4/6 - Frank Li commented that we should handle the reset using the reset interface. I have two objections on this: we are using some bits from audiomix for reset together some other bits from DAP region. Also, the implementation is already upstream! Frank Li agreed that it's up to Rob opinion on this. 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 | 6 +++-- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 10 +++++++++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 22 ++++++++++++------- 3 files changed, 28 insertions(+), 10 deletions(-) Reviewed-by: Peng Fan Reviewed-by: Iuliana Prodan