From patchwork Thu Mar 20 12:09:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 14023891 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 B1923C28B30 for ; Thu, 20 Mar 2025 12:19:45 +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=sfx44Y80xnC+mttMTqtvcCuZhbHk+NQrrc1zsffvauw=; b=ETQe+zTsb2JTPjzkYoLqaT17uL pE2lTUJy0jvHz2u0cbcFKFpt61+LUfefFSvyXtyX110SmPfAXp88v2QOfbNMeHSkA5qxb1rOGGv+a bpx9zUJFHISYvoHVdHibJhMYeQIrfbRV5VGQXEMN1EYNGu5TYlba6/X1ll7qwkFzBRNxibW9XNmfc mrRd0vW4vc3OqY/xCBbfyz1IWkln3hY+G0eE48MsEUbm5vQ1l4PZV33FzqfWJk159A78989lOctQ6 ayY8vIRyhbL+UmjsHRKrzAQqU0pXCsvuH81orLx3ynbw0l/pQJjRm6jhWVJa8MDxdmxHvpjQ0HPxm cj248QRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tvEs3-0000000C5on-1zYr; Thu, 20 Mar 2025 12:19:35 +0000 Received: from mail-am0eur02on2061f.outbound.protection.outlook.com ([2a01:111:f403:2606::61f] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tvEhh-0000000C3mB-0J1Y for linux-arm-kernel@lists.infradead.org; Thu, 20 Mar 2025 12:08:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RNd3sO2SRe2chUV54FAiIbVFePVdft9cL9yQw0XYRCrFc7Fk1X4BmxpQQvqIj8bvHpB60KHLHa9GbBD4snUMYaTL2RsuSba4TaFmxw7TD5fkVFcB5ij8XY11OobLW4B+XzDctL0Lpd57Po5r0PbOPlcr7qV+MfIpysXyBKO/547gcP2n13SKJ9etS+BysbeuinjakMnz+HTT4hteiEMJjRGd5YPQT8gwG2wFhT19buE4j74s3gASI9+L7JE06lqtOPoq6rYnYmn7ktQZDHyrRWEsucz9SWx7hF/5Fl00npsRvWW3vtSzTpsr/krCWrDN1Ako+QhiNsgF6IP584Rdug== 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=sfx44Y80xnC+mttMTqtvcCuZhbHk+NQrrc1zsffvauw=; b=AAF+Z8kIIlwuu0bkuwPap5+m+WZhkVT4NCGx+YfsVB/3vIhu/Ic15yCxvlF5gOry2gfTd8k88BuMoZlTNKZLFwqAZu8TQIWM7hAGATGr9Nw4YJtc71Dl6WdY74yoJWwI/8cUBGyJ53C4KQ9LH0MHIt64AGJ3JBj8a6jGh4poKjwZPgmmKJysijODuXabfocEV5GbKu/Dg+7tqcOfXbaW4AlC2CwN6KA+7fz6t0OXGnKu8g/6jPv5w8ivKqC0m7xJ5CZ+oQdvG2bp8YEoPqX++ghny8Jrt8vHZ0k0ldOitiYNychTMJN2VE8q3hCK9y2CtKFTnnoHB7vNz8TLdf+IqA== 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=sfx44Y80xnC+mttMTqtvcCuZhbHk+NQrrc1zsffvauw=; b=D5cL/A4mDvEUAJuzgYXAW9bocN2kLmL8Whxh08e/2Tm3qJMTKB2imRFO4nK+p6kfGf4PlapDO6miC4EdkssWWVFfTe6MAeJD/KQzBZ+3h6+8MLgLu7nyAfwfOoSYeri5erQ+/cQ+jX3w3v/6ojBzRznK8Cf+Vl5f/BjTFaa45XN/fi2+JlEqxk408+GyKeBLlAg2+/7n8b99RsECYpMegMkHb6mE7Di1mJtBZXnzGKCwe7nWthDh9N1aULmoEFHlbRvEox/ACyOwaooykZdIUqiYbeFgTmmmVj2+TG4GfQs/I2wnw6+9AF7Rnl+2TycEv3T3QHiVO+Cya0eDPW9P3Q== 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 VE1PR04MB7247.eurprd04.prod.outlook.com (2603:10a6:800:1a2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.33; Thu, 20 Mar 2025 12:08:47 +0000 Received: from AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6]) by AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6%5]) with mapi id 15.20.8534.034; Thu, 20 Mar 2025 12:08:46 +0000 From: Daniel Baluta To: shawnguo@kernel.org, robh@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, 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, mathieu.poirier@linaro.org, linux-remoteproc@vger.kernel.org, Daniel Baluta , Peng Fan Subject: [PATCH v7 3/5] arm64: dts: imx8mp: Configure dsp node for rproc usage Date: Thu, 20 Mar 2025 14:09:53 +0200 Message-ID: <20250320121004.2542314-4-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250320121004.2542314-1-daniel.baluta@nxp.com> References: <20250320121004.2542314-1-daniel.baluta@nxp.com> X-ClientProxiedBy: AM0PR06CA0139.eurprd06.prod.outlook.com (2603:10a6:208:ab::44) To AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8247:EE_|VE1PR04MB7247:EE_ X-MS-Office365-Filtering-Correlation-Id: 6331c44a-ec0e-4245-8ee5-08dd67a7f755 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: iAJZVHSUPhxD94CgL/mci6he43QQ6obn53RkcELQGqq0SP+m41WXDH5ZdFUQYqo+2nZoA1LvbNdb/v90UbPYwgFaVCCXUfleCw/FtPLaw9m5bBOoh0BvcAkhGoypZbwW5Q+vdH9VdgJP7/SU6H2f+blBIQO+CBJQhxvn7X7F99n/CWCoBTY8UvLhPQRmfEe5pcFRkM0Ip/v99r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nduTFI6t+BIqT8Zv9HRixM5XY5tcvGwD5bBEhcQVIfsu0rYfw3t00kwJFgA1EzxAap2S+LUONw0yPqeXjfbOXa1ekiJGhjc3SdUNwpj0sgLV0cqXogu3gmn4Ch5DrHRqb4TRA/iV7McWWhQT9Ddc02DxC5gdyJY2y8+kCWf/Tt1AUTAzctP1ovAwHTuaWLTHJDXP2 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)(52116014)(376014)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rvJGkZ7HqTL/T5atBmEc3IIDG+r3hkRlRhzOS5jE4KC8FoqmQNOFcT0PJQHBbxDuYpx1SQ+8Q3u4S5RLVFjUWzOmQ1NDrBt7LoA/UI6cQiEZjBWkAWD7Jq7gAxRI6G8FQaeIp4BLzvlE19oGYj5U28NVaMO8PNfMZcAibgqdUgFBkbFTCKFfT0iaoqh2suwH1mqIT/IvaaxGj6LknsZqU8ya7ga4RNh6V0UQQL1DpJPIC46ntN8H/DP7suqKErHE/Ej6htPCdJFCdT3KeBBmA3eKBrI6ahMGxF5/vZtCyqTEbxwgjtOu2shl59xvKVMdQ3iSYKPt/zLjPIdVE2+YteyE7l6ay9b8voVDZfI02D/FLf1+q/kVXFJwLfNpCrnmmfY1m2U4EB7qbIyGE4OBV2FFTLFzrxN3TDYx8kvkDJ12z7slh3gQN/RzDgLNEshJD+8ZRD5vm9Nzav9ayBHCQOqbBM1ED9dXqClCZZb7hIuGWGWKOBKi5cGt5lb8bNtEu6Lrqwda+9HTIYd50WHHQPXrbSCEMCylQsm+npsLgPmH8zARHowjd0CbO6OEay6LPw7WFTZOamKC0fKe5nCfRbuy769+mKf3qydeAZg20rpXFxi5UowzvZDI9yPxPqKvBPjhJFG+VGeLsFNl1xsFo8bZYFpTM2HeZgsVldsx8Paymp/v4b3eJUGts9yuScM+f84DbgG52MPHrsvqjVgoEmWO5EWDVq9h3nbUreJKsrPzuZf9Kl2vuYhCMUl/cB3ZBVUbKYdiQQPYMAM5AepyeV7sowVaLGu8HL31O9DFl9946lhC6Oh7aNIdExYYXi4cjUz91v2zMuTzPm5ugA+X4yHMVTl6yEMkLsbAyXRc7sACLN3LCqDIVufJkc38UzcyYPDpLFGJOVDj+Ac/ZYmfVDEQRaaM+oyv72oQAQwFvU5HUndYhV2OAwt5WuQVqhiBEd4cSTbvn7h3iFFntij8+5CxRMf4UOyHFmCr5duMujOz+t2/ziFSJOHwO2vjnN5oDR4LoSVm/D8kC5YZR+2etz/OxnIGCly43B5dQgRyzlSCDO5sMGTAv7evcJNIGUQKEMn/G42qHZwiRXHqWOPDgwBO5xYptHoAzbsCUMObLsGabXnoNapf+akfazzmvHtuLHn/L+qwuR2DRxz+bGFk24pgXRQnCVb+ld8nPGnrAQJbsmudqPxfsn72qEoUy/usd2iv6881VPaLCisjPu3T7qAwEV/FRw/z1VRPyifpPWgDr8rpK/74KumvMC+tdQbj6HiWj7EF6PdPkEr00CDmjVOhghe3sI/DVy0YKclUEn5nWSVTSk61JZ+LbVJjhhD8PEgvTw8J58gUp3mUqcC514l5IlkPHwvyU7IjGKf8GYy44Y+w7iq6rAaR6SJjkbHFMpZG/XNKr9YrD0AUWV3QKY0ZqfHKSzNXlFwqzRP+P5AqTSy7SEQbKS38vILgRTn+TaqSyj9lRsZNdUj+/q9sMX0mMLJhxr4/X+j4JD5IZOKH8AQs3ni+/p14GQ8DKN93Cr2uXzTJJLtRLSj+xbseEMyo46v9Pg3P8eHHErz/mRhPLvRHM6E/JHokD+Kpm5rk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6331c44a-ec0e-4245-8ee5-08dd67a7f755 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2025 12:08:46.4828 (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: 8/nQxMHAzCKNFZHtfGMFKTKggHVN6fl1IqJs367XW3v/lcxO5nsens6IU5VCZO5ptblMbzyrqKGMXrQAdejmFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7247 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250320_050853_117646_1543DA21 X-CRM114-Status: GOOD ( 13.87 ) 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 DSP can be used with various frameworks (e.g audio firmware, rproc). Currently 'dsp' configuration is intended for audio firmware but it doesn't work well with board level DTs (e.g imx8mp-evk) because board level DT enables audio related IPs (e.g SAI) while audio firmware needs this IPs disabled (because firmware will configure them). So, configure 'dsp' node to be used with rproc. This way users will be able to use board DT to use the DSP as long as they don't clash with Audio IP configurations. More comples usage of 'dsp' node (e.g by audio firmware) will need to create a separate dts file (or an overlay). This change follows the approach taken for other i.MX8 boards in commit 391a319c81f6d7 ("arm64: dts: imx8-ss-audio: configure dsp node for rproc usage") Reviewed-by: Iuliana Prodan Reviewed-by: Peng Fan Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index fc0d244cfd1e..708d3f61b4e1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -281,7 +281,7 @@ reserved-memory { ranges; dsp_reserved: dsp@92400000 { - reg = <0 0x92400000 0 0x2000000>; + reg = <0 0x92400000 0 0x1000000>; no-map; status = "disabled"; }; @@ -2417,13 +2417,12 @@ usb_dwc3_1: usb@38200000 { }; dsp: dsp@3b6e8000 { - compatible = "fsl,imx8mp-dsp"; + compatible = "fsl,imx8mp-hifi4"; reg = <0x3b6e8000 0x88000>; - mbox-names = "txdb0", "txdb1", - "rxdb0", "rxdb1"; - mboxes = <&mu2 2 0>, <&mu2 2 1>, - <&mu2 3 0>, <&mu2 3 1>; - memory-region = <&dsp_reserved>; + power-domains = <&pgc_audio>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu2 0 0>, <&mu2 1 0>, <&mu2 3 0>; + firmware-name = "imx/dsp/hifi4.bin"; resets = <&audio_blk_ctrl IMX8MP_AUDIOMIX_DSP_RUNSTALL>; reset-names = "runstall"; status = "disabled";