From patchwork Fri Jul 23 11:05:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 484600 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1225069jao; Fri, 23 Jul 2021 04:05:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnX/BIrMfmuIe//Jn7jwtKPurg46V/lxjaEgYP7b5kILfPMdl261taGGPZjUDu8bgrsfkD X-Received: by 2002:a6b:e016:: with SMTP id z22mr3504463iog.187.1627038358853; Fri, 23 Jul 2021 04:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627038358; cv=pass; d=google.com; s=arc-20160816; b=zGxEg34TT41jbkHd1uAtUsTldMZ0sdV4/GJpeKbQorCEPrcZSbj7SgA0UrenZEqtrj FI+nnVqcG/taNmu18kN/35MQI+/V9e2KNtUCUqc3bpD/+LKORwnQ4gnmvuCGJgchYTIO PQc2B0aeIcpEL6yGvuXMtkpbGNjP/JrkNct2WBW7boCBeFSG0OyAghOHVf1bBwjgFoun wKP/1H/rU/NVHvit8+jZOdoCXpSfS+mNxYV1a1mqETN+b2xydVkk0UGvFI+3HsRn23da qMUdyJf4ft9mV2mV4OJvxUJWyY0jkFy8xm1/61B5NwNCUyBLU2Azux2wqUenM4RpR7iq 3DFg== 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=3ME702u/TrdZZPWjkJ1PSyZK78m51llgY7kVlj37bZI=; b=KIxdIpd64/yiQ6LVy6DRx814KCABGXpjAb/iOQv72fgSfqMQlWBCiV41rEW25836GH 0ebBxS2BgRDpqEx9sexYg3OAmXNTalpGCH6eJt6EzPLcfNsmZbJveYjoI5JAPZmQkAGU upk8kr5vINWIfwd+awgAGBaSHtj3tdx0OYe84F0b6bnyjpCr6IdhPl9f4so5evHmJoMq H2tRRZFxjp/b6MU6xTOGoC9u0nREJd5pb6cX1vgt4dkUSIDrIOA8em/Gf6Tvjf8LKRG8 bNtypybCKH4p+KhOsdYo3KRlNyHLgO9cu2q6tUUWoqBSXBQbeUlWXOJld4h+5jQ9bn2c 6k1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VuR4EiOA; 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 r23si15105620iot.18.2021.07.23.04.05.58; Fri, 23 Jul 2021 04:05:58 -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=VuR4EiOA; 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 S231428AbhGWKZY (ORCPT + 7 others); Fri, 23 Jul 2021 06:25:24 -0400 Received: from mail-eopbgr60069.outbound.protection.outlook.com ([40.107.6.69]:11894 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231296AbhGWKZX (ORCPT ); Fri, 23 Jul 2021 06:25:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iUSCmlEt7q59FgacyZ2/QHRLhAs+IYFnVVIVPINLyzT0b0OhMuDHyQJ1l+Gb9L+rmVRU7ccgBqagCWozv+WJLOKNPMriSAXbnZ3OPhDel7JiNRT6UWeImAbNu/UWSMRiZyjHNdWMV8Fpcpr/TdArm5aLgnczfB/p9H5y/DLlrMGUALFuW12R5nD4F6+KpMcsrXiH7B5bnrRJZxrxkKzXvYIZBFZ9h7ADAUwwogHmQKHdxaZJ0aUb0wtbs9sGNZsmdDdoH3L3jcIldJU0EkXhM/Kk5TrowMqW8zMkgw7uJ0Pj+KfAtF/6QWFecvYD8FRzzSqz8Z7wzgYrBD71d1yRFQ== 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=3ME702u/TrdZZPWjkJ1PSyZK78m51llgY7kVlj37bZI=; b=UIYTclqz1TqHkCV7wlgucJWkcNRHVO0i6zPKPcOwymi8jH64ce/kDtCa+1qhl8lZ8ex5FdsMg2w0wRUFA+9YtaZ3cAWXL0YwaTRP+BDJceZFKxGBWvAT389wz15fBNEy2wK1ESTZDgApOi9ECaaa8nLhvyFBJlkWOjhe/VkLSz88hS8Kxk39YRejVXtu6fNhHKlIgbM6vHqDvcvbT5IbnG7NgYBgO+2IPZ7CoeIJfOqkWOlc70fi6MORwtDFUS7mBGVbvUf+kKLe+8p2thGKkhoI+YjxNgzp0OTRFJozM66zV6Q3AYKu0Bdtyg8WpaAPXkvnEwGMjw1+8/mBXxGp7Q== 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=3ME702u/TrdZZPWjkJ1PSyZK78m51llgY7kVlj37bZI=; b=VuR4EiOAglCbDZlVqS0XbZF4vDe4rKD7Oa2JAlZhyWGnLb0Zo/K4Dp04sNwziN2N+aBerTRBj+3BvCjnjnNgZUdu/JORDlPj9thV0yeRWx8pApniyTKqxg1U95yymlHalGPlE/V+8QkeIj1YjiLv94RNrAhI604HAbjT/Mr+3ZY= 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 VI1PR04MB7168.eurprd04.prod.outlook.com (2603:10a6:800:129::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Fri, 23 Jul 2021 11:05:54 +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.4352.029; Fri, 23 Jul 2021 11:05:54 +0000 From: Daniel Baluta To: shawnguo@kernel.org Cc: robh+dt@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, ping.bai@nxp.com, qiangqing.zhang@nxp.com, alice.guo@nxp.com, yibin.gong@nxp.com, linux-imx@nxp.com, peng.fan@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, daniel.baluta@gmail.com, linux-kernel@vger.kernel.org, Daniel Baluta Subject: [PATCH v3] arm64: dts: imx8mp: Add dsp node Date: Fri, 23 Jul 2021 14:05:40 +0300 Message-Id: <20210723110540.1332145-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: VI1PR04CA0123.eurprd04.prod.outlook.com (2603:10a6:803:f0::21) 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:5709:ef00:eadc:ab0:e88f:efdd) by VI1PR04CA0123.eurprd04.prod.outlook.com (2603:10a6:803:f0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.26 via Frontend Transport; Fri, 23 Jul 2021 11:05:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 001cb351-0fae-488e-7ef3-08d94dc9d6fb X-MS-TrafficTypeDiagnostic: VI1PR04MB7168: 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: 5kZjkrGTHH+fs9KRLmbObUlbeSM2Q+z1bmgXYz67/dWPYXkhdWNGIV0ehct+wf4bttDoqGMVQ5wOmZnK/U6hberT5zl8oTTw4CBZmCIkqWdYJygbpvhvNdo9ls6DboomclffA3MkfF7kzDJDDaZGy54T/ojVGDNdzH6jAwpQQQd9Z6Z/GipqVuYIB8HG4siPgbK28L3jvbQSTtdFXlfY27UF9KDTAo1RCIAsnX6vtSPyVRmW9oVFhzwRln3GlDTZaiA/8d0ashk3swbVEFx2lwRGVxDTjmaovm+wahA8dtWBBzSWOMr+7md2+tlz4Vhfrj6MWT9zCX2HEkhZsk/EUX4flTZIwnzFx1+lf3aqAdJ2N24gMo0sOCpnGDLq/1eHrT39Ak4vH6X+ZfyFjJ/amQMsQaxYDqlvcAYM7bQEQ3ZtIjZBijJDEhACvh4CDw8G3AmtZyS/1IsyqKMUOuBg60PFz5YW9l5fzpvZN0uxXZqJKNEAL4eamWEUswGYXAVfupVZYW8d4uxEkJ7XPnQHHqADWG6GFNhiUn9QwRIkLx0sYEQgT1BpKp4RDvGTI3QR9VipVrGCdOQ+Y+SKZ96nMvho27Oq91nvh/cV/WTPeUj4wY+wxfzbERpqp0yMJUnsd52amwLjJxz/bL50ziFdvVEyakSjDvD1fAWffuEwHleEkB27fGrMZOUyv6hR1LobFPhspDQ1ReWthZfwgX7NSFJKYhkU2Yovkj7PvZ0bGmEB4UPgYQ3x44RgN4F5Ozgp97GhBMn9ARKBzWkvZKTdYE72g38cgJmA1zVjLL7ixOw= 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)(2616005)(83380400001)(8676002)(8936002)(186003)(66946007)(66476007)(4326008)(66556008)(6512007)(6666004)(52116002)(1076003)(44832011)(316002)(6916009)(38100700002)(508600001)(966005)(86362001)(5660300002)(2906002)(6486002)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?C34IeKLdebidnxwVey5jBe5gZ?= =?utf-8?q?1//6MaVorL5YsUZvUG/OYJod93Qo1ssb6TTY9u7fozJiaiiflDeQd39z?= =?utf-8?q?srMKNhSG9tMqEtEdHONMLwqsSQFzlT+OpqQxI8EhzN5g2ndwj1ibZx2+?= =?utf-8?q?3LLi/dblP0TSC1J9Y4f1Dirf0LIpnJI84ENVxjyrHiAVlcsEnnsx79va?= =?utf-8?q?Xh2Y/sknNXhdvv29Bjaq52YnxTWxnr/PDOKFNAZ6NZRKcxwQnpMUUa+1?= =?utf-8?q?M9od0rR/FyXBnnwXTWYCKpAvhqs/Pr9dVoSS1Zuh4xI3ZG4W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bzppbQ7anWmtI?= =?utf-8?q?Yq0s4rxuzcEbVzMt8u3imk/aDxN9vLcb9J5nAkZWArQI62RcuTghifvL?= =?utf-8?q?secjkwwER/QmLjGOTKiNX8LAJzD7VIjVpr9AwDOYnEDq577c9My+Fovh?= =?utf-8?q?o96snHdw3FuXadOXgggJOBG3pq7U1UWrmEggnynxYynQBFB7N2tM+PTc?= =?utf-8?q?cUEB3/b+hq4F0+Wqtf2jp6qL87uRSKqoAkna4XE?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 001cb351-0fae-488e-7ef3-08d94dc9d6fb X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 11:05:54.2705 (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: sr7pZIGdxSUyhK94gb23vW4SgKtC+89xIuUFl/vAU5KxdpIH2XWnypSqeu1+T5218srDdXhc5EWEA8COmLLY9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7168 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 v2: * add new line between dts nodes Changes since v1: ยป * mark MU2 node as disabled, because mu2 clock support is not yet upstream. arch/arm64/boot/dts/freescale/imx8mp.dtsi | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) -- 2.27.0 diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9f7c7f587d38..2a1a4ff36c67 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,16 @@ 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"; + }; }; };