From patchwork Fri Jul 16 12:47:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 478387 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1335514jao; Fri, 16 Jul 2021 05:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYE2sQDakbZBn3j/96FcJ3Jw4xCKk4fpelcbA769yMklN9FUWX5AWvpY9oCERuWPwqtzyM X-Received: by 2002:a5e:d80e:: with SMTP id l14mr7352982iok.79.1626439666795; Fri, 16 Jul 2021 05:47:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626439666; cv=pass; d=google.com; s=arc-20160816; b=iyImnKIQH29Toodd3Dv978s+AdVeaOmbkk/iuDYgtNU9wnMClF1VRQZemBOxq04g1/ jiWLvMKx1hLfHl7zeHWsa9YDCfewG/yZGLiz0qW7Mjl+SP0k03+C0mcYfWkiRszN90zE T5gkw66Mb5FV6zWEkZ0+dzRZU7OP4XNNV3FCum0kigEMt5qbc2VNnj+yMt+TxMAywTAC CwO5edWzAfvmCi2RlJrlFa7YRSFkvr7/jbDFXj0Z2PAT/E1zA2+v9HJy9rpmlcwXBLQG S/dbi8gWDZ4YF1WM8FCOhCjZ9Nxo+EF44+41Jb1Pngc7S7Mxe6NcOp0k65FxKfrWOZrM gATA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=vLiXHCommSRR/WmNqWRGqDz1piTbL65Nb6e63j1rC+Q=; b=qDzw98PCVf4LHBgUo2VMQLB95Haq84FVYunzDRTCie7Ve7YKaNUQjTJdhIXdyNDH5v q6zv8gmAzKW0oUHcf9vab1D05E0tYqRDLVBZwWzvSX3/s9sppujMDNiQXwAn9O5PmaS8 HFpV5S2VzfStYqRb2OVPBjwyFcP7INmJkPOBBBiITney06EdFaMp2skIhQZuE3PVUV9/ 958YCzgTQTAX4Pc9MBTNfF5O7jT+o2/zi3rrq/C1nzF+d29tHxb4/1iA7Tz75WV46gTf uRhiT1GH3J2nCQeySJG1bh30If2oa7T1Av/nb+8rAqanHlPtHH66xNvEmvhYO+GtlQ6D 0B9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YiS4ILs8; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si12570614iow.4.2021.07.16.05.47.46; Fri, 16 Jul 2021 05:47:46 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YiS4ILs8; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232757AbhGPMuj (ORCPT + 7 others); Fri, 16 Jul 2021 08:50:39 -0400 Received: from mail-db8eur05on2063.outbound.protection.outlook.com ([40.107.20.63]:21198 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232554AbhGPMuj (ORCPT ); Fri, 16 Jul 2021 08:50:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TnAt+4MQtosWYz3Bg8rEtEUUvLT7uODlth7hM8B7nxQW47dh4aEzsoluZH13NdumWF0komFD3wTykh5ti8qiRL0Z5uIsLJVju/wxSBX5YkanzmfOe9ZGpffONbj3xGn2aql5lwfxQQIQZE6TyTkG8WiqQQgwiNB/Zzdo0xqLRXjTDfjlptlkxVqbD826bh7pmiT0mg59idgGyooJe625vTIUkpr50mI7E215OBqqWDI4rXSH49D5mOquK73F/PCRExQ7uFL9EUdWnhdJem1Q4JZwXRL+ZMAQ3t6hN840nDUEecMtBMRhONgLdKNj48xup7243qLRpEUTNZD0uuxyBg== 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-SenderADCheck; bh=vLiXHCommSRR/WmNqWRGqDz1piTbL65Nb6e63j1rC+Q=; b=eGWveQNmLilIRDFulwVatukLX4yvy9ll62XY1ozX2Kk2ENZC6IxBhQhUz+irfxnyQTgZ8UXV+DMbdVgR/+tPAYZfMg6+v3KVkZRUskW7Sav7bXmpcfqJAc3QSTcDlKU8Ze6UUWOMVyvI0DVBtZlVpY2dWiXSAACGtLSaq1MfM+iDIWJAi2haVLDRVN/4yNrzaO4iyOGsB99WF2DGKD8eM8wYfwpl6NYTPaz6RFT6K5OAeX9dIYwLEPJDstNlg8s6jOgyqQQzrWgErSgUcCmQJo9NBFxOUHnY0HHTaa0RxBXJyr9ne8FUE99/RTkBnHe/PrG+GU2Z+9D5wTcbc2r3dA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vLiXHCommSRR/WmNqWRGqDz1piTbL65Nb6e63j1rC+Q=; b=YiS4ILs8fHrSgLrFYp09sFHZStrLXrM1o4UuHbIIboEhLtk9AK0TUC4laC4BbtE1icJsx60NeR6OoWSsEcUmXj82L7dVmYj3V77P19mcIF3A/hara/MWlHcvgVHg1hYfKKIMIbSOoMqP70RHXlGJiKCUWv7E+uRrJlgmUIwTbQ8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by VI1PR0401MB2480.eurprd04.prod.outlook.com (2603:10a6:800:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.24; Fri, 16 Jul 2021 12:47:39 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::499b:ba92:db2e:3f28]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::499b:ba92:db2e:3f28%7]) with mapi id 15.20.4331.025; Fri, 16 Jul 2021 12:47:39 +0000 From: Daniel Baluta To: robh+dt@kernel.org, shawnguo@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, qiangqing.zhang@nxp.com, ping.bai@nxp.com, alice.guo@nxp.com, jun.li@nxp.com, peng.fan@nxp.com, thunder.leizhen@huawei.com, yibin.gong@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Baluta Subject: [PATCH v2] arm64: dts: imx8mp: Add dsp node Date: Fri, 16 Jul 2021 15:47:19 +0300 Message-Id: <20210716124719.926483-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: VI1PR0502CA0024.eurprd05.prod.outlook.com (2603:10a6:803:1::37) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a02:2f08:5503:9f00:b1ca:3c51:6eec:2262) by VI1PR0502CA0024.eurprd05.prod.outlook.com (2603:10a6:803:1::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 12:47:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5acaecab-bea7-41f8-67c9-08d94857e4f9 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2480: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: svp8Bxu69xKIPj9VXNFQm6DmIAAcEO3gpAfhAYor4SdSUTXcRJKz/7eBoStCKo4hrvh0Jy9hX5/vqiVrssWF/0BPrO1Db68oAWbD7EY7Or8Ewpcj1qxPPbCDXMYQPP+IRMN47Od89pXbN6jjBchUdCh5d5RdX/TLhRbjLAPYspF3bnrB7RRa0s8rFExPitPSq/Zda8VP1I5A4eF3rbJWnmcGffcmoniFlbe+e7Go/4nyv0Y0hZqCf842UhT4PD5ILzvZMeNxSodruO7eEFybKvunTYR1idmhVkQxhxS96AXZ6pr8ipQBNY4gPq+or1gdxhDejiSCpe7pvNRWywggUNzmZTP2Glqo8NaFvuAZ5MHWwzieO3L/H+40HmQeveXP++P9RYGpIAijR8AduUea36FvM1R2UZuK186WdkbSnO68slZ0kyidSp0ExzFhdQGCc1E3cAy/MQdaqQcNuYuNvgTa3phbh5CEdpRYVl8wc479Cpynl1KC8nxtREuZOTHijikioLoGTHVQsWRO/dkptQQEvYISubFFqE5xXCpCQZQAWC9FaLPP1o0ntjkEUxoaJcFJSEsA7d5DxN9+eQKJc5SQC7G4yo9FU6/rp13QfIFKj9/tUqDtd9GSjBKTJ10UZ60II7U8wgB24IpS8/XWRhVnxb5GzBqPWkxEHWEJe7E7/tpzG/pjgBeW1FXQlpDH+OPf5ib9FVeUzOYivMZ3LuJOv5LGWy5se0v5eKu6PQUkc9wd7UdH22nWiAB2LkYbt6yCstaCmSfJv1/r8yS1O8huxRKIn8dDTJpoTwtZe/M= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5151.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(498600001)(6512007)(6666004)(52116002)(1076003)(5660300002)(6486002)(86362001)(966005)(2906002)(44832011)(8676002)(4326008)(83380400001)(186003)(2616005)(66476007)(66946007)(8936002)(6506007)(66556008)(38100700002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qMUQ5qbBBiew30HZeG3WFGKGGPIKaP6cX1+s87zcKotYB9f+qBiry5ruXEsg9ZPQcyvKD/jaC+9WHHpfyshCRvMpShGjGyzHsqrXunyZrtezwDk57XzRvqTYLg+9EMw9SFLpFTxOT+7cN8ibzk8XjOQrUGGXXSJ8CuipOvo6qqZvKGMkzjYL4hIiwnUeoiTivmQzpFQNV24KA14kG2QxbkLgJIhxbKiRYoc8tu01cf79xVTh4VH7job4rVPzQQDjrsz8UJ+9RRCTwmAoUjJEp5iVOj1X6lpoDP9oay4xi4jSdvst8VxMXlnr+IYfDjcuMulRLJbJLmXwd7VuAS6IJ0fFp7yKSTtR5OmgiaF92MqLzQWr3fEPL1+Tf8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change-CrossTenant-Network-Message-Id: 5acaecab-bea7-41f8-67c9-08d94857e4f9 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 12:47:39.4058 (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: hGZZni8GG88g5A7XJPiQiloSNTC+5cnPotXJ0caeXYQBH4zpBylyhbAW0g4mB4fahfW2N45xPcb2vEeVo2ZFvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2480 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Daniel Baluta i.MX8 MPlus SoC integrates Cadence HIFI4 DSP. This core runs either a custom firmware or the open source SOF firmware [1] DSP device is handled by SOF OF driver found in sound/soc/sof/sof-of-dev.c Notice that the DSP node makes use of: - dsp_reserved, a reserved memory region for various Audio resources (e.g firmware loading, audio buffers, etc). - Messaging Unit (mu2) for passing notifications betweem ARM core and DSP. [1] https://thesofproject.github.io/latest/platforms/index.html Signed-off-by: Daniel Baluta --- Changes since v1: * mark MU2 node as disabled, because mu2 clock support is not yet upstream. arch/arm64/boot/dts/freescale/imx8mp.dtsi | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.27.0 Reviewed-by: Iuliana Prodan diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9f7c7f587d38..fb0ac85c8473 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -135,6 +135,17 @@ clk_ext4: clock-ext4 { clock-output-names = "clk_ext4"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + dsp_reserved: dsp@92400000 { + reg = <0 0x92400000 0 0x2000000>; + no-map; + }; + }; + pmu { compatible = "arm,cortex-a53-pmu"; interrupts = ; }; + mu2: mailbox@30e60000 { + compatible = "fsl,imx8mp-mu", "fsl,imx6sx-mu"; + reg = <0x30e60000 0x10000>; + interrupts = ; + #mbox-cells = <2>; + status = "disabled"; + }; + i2c5: i2c@30ad0000 { compatible = "fsl,imx8mp-i2c", "fsl,imx21-i2c"; #address-cells = <1>; @@ -938,5 +957,15 @@ usb_dwc3_1: usb@38200000 { snps,dis-u2-freeclk-exists-quirk; }; }; + dsp: dsp@3b6e8000 { + compatible = "fsl,imx8mp-dsp"; + 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>; + status = "disabled"; + }; }; };