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 (OSS)" X-Patchwork-Id: 12382079 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 563A8C636CB for ; Fri, 16 Jul 2021 12:49:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 21AB3613F2 for ; Fri, 16 Jul 2021 12:49:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21AB3613F2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=UX1S02HU4itVuGLOfYa/Dccb/JVbAQ6nLHxL5SDJBi4=; b=YeljmgGHX47gu9 x5Tn+y7TTcGODHqxOdxyRecWR/bdbWUnVL4g0v2oTuP9SQ5bwrB9XAZwiUlVZeA8UFrSScYJWD3vG bipIYtguvqHQch6mvgumGCPVfdBdcA2+SgXEOVaweNDebyao/6fVYHCNOIfyAXVzIP0sI8PVkk6y0 5EYdwMuiZPvKHrjoBtgp+VXb3jOLwVwQ26yEarExSmL85gKA+F/1GWaaE3r1+x1DZLuJkeYtVO5Af mTbxu/tXnP4likBz4Qg3Y+PV6pW8qZ0uHuot41PKcQOlt3t8eHFAfUnwgXpBqMImP/1IOCKtrLppZ yMEMHgYkYdtodx9099lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4NFv-004Nqx-NM; Fri, 16 Jul 2021 12:47:52 +0000 Received: from mail-db8eur05on2080.outbound.protection.outlook.com ([40.107.20.80] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4NFr-004NqK-TA for linux-arm-kernel@lists.infradead.org; Fri, 16 Jul 2021 12:47:49 +0000 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+Tf8ol/4ej43KFYvQ34RlLBKdiYW0m6pAl0oWee+ANIUjK1BXqeHNtO5hBNvOZxTjEFIat9dCjOxDJaPG0eIw8naqat0rBIBAK2hMUDvrBHs2/is7ZfZNbqhAZc1CZ0AcuowpZTmFzkez3FF54nsAHyxHjaeFP27BfzmC592mV/U6gJAQRrg78XJgCZJ14ceA2rf59FooJn5gAwxR5MYREqF9Xnah8f7UIz0xIoWI0Bv8fg2B16lmrf4GwhcuF1p5XSP8fc8ijMNuaOqkV1YJntmHA79d6iDEW2waSP0W9Lv97uUGxxTx4wjDchHu/W1eoYdnw4nN/wf3xo3KplJQKa7ZN1vYRYT7BQ82WfRhTbz3ghL1qS0djeJzd2Obi3tgHu7IWitjDJjM0QA8uMl7zwvMt1PuX5el/0GAn1fATe0CQhq+hKzJ+JyIreHQ0oKi96BxFxgMQM7+fBstS4/RcPMp4anEZ1oiEyRjiW9oYqZuuUK4KwAhHF6wjonCU64YMNbXr5VDrjSHtkb6LJj1XGuINP5nxevg4Op8H86NsaTkaUJLpdWzfuBQVyWGh5Bq5eKxBOD1+FTxhEC12a0CKRgqL1Gt20MMCCASlH+3+8Ei/U3JEp5R4KMhPQP/mrNKO/bOy6zbFs12uS3l6/booOW2qAIQ66pVleO1dmPuGN72KEbzmdoqbTF2byH/S8LsiLpaeWVHK/arVq6E8JAwN2av+Vhvpi+fGRGjT6WH3OBUJXHFKicyB40zakiE/3h6RTG10ftly4SuzPP97Bzr/cLpMeMARuuR1+39jxs4LqnkZH89pFsQ5rq2AzDMZjxn14JEeCPoAZyBUrrKqXy1LBO/ziu7dI19MLZpDOCyLNAko1C5IDTIsGstLdhfTVRIkKu1ndIxwck4ZHmP/zUWHzt3jNCPCAwpFPcWbbxFKYCT913v/Imvk448Xbp0TzUYY1PEIqv56DvMc+SfJyk2KwoYkVp5+uNLLAvz6hPrVnUO4ebkWTO5Folcu54QvoJrA7sm1yGiQAhTE60qtyT62GRUfLgOM2g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210716_054747_996591_FA62A7EF X-CRM114-Status: GOOD ( 10.10 ) 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 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 Reviewed-by: Iuliana Prodan --- 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(+) 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"; + }; }; };