Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1161462pxv; Fri, 23 Jul 2021 01:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6HyNqHGkaCfAWGhGEOAO17reoerY6rlBxPDrSLiTj6OBi5UNPL8jAyk3o3UKkZOYM9yS5 X-Received: by 2002:a6b:b883:: with SMTP id i125mr3121611iof.104.1627027392561; Fri, 23 Jul 2021 01:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627027392; cv=none; d=google.com; s=arc-20160816; b=UBOs3qUvNQjjDu0ZNE5J3/w2z77iAjclO/q1Sm1JxTkOKhp/rLrJ56QIHLcR++TBr8 r+XsiOQJ1DMSE9qHrzHm93LaJ/m2G+Wv3hjQ1APM4CEf4ET6VO2kBjwAvXl9Se4Dq2jc 22xcQPqQRM6ibf74cB/Th6MR+KCNiqldEhBhoLXFpY8I7wj9LYKbQnyDwheQpqoqCY1S CSwC0FETCmIEOB57KDA0UoKuFCbQjaVDy2bjfoA++uYmQEOsw2NxcuYwclBqdvGKbyn0 Q94ob2NUH8B3jG0E4UTEmlIgQb3KUp2YmY2Dp3IKDSdTPButw38fdNGMXPapaBRUJAOg J6Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uAA4BG3oh1Beth8gcJ4m0Kkz6vxvh6l4gkiDIiaINZo=; b=LSrczMe3fYcCxL/r57k8kzURd6l6p6pjH7YdPELCCVOxIIbXH+a3Mh+KY5mf3wvdVG UailCmgdjqAbxmpIwnBJZXlOk7YZn5Wosl+7nffmCr02YouUtHELw4JR5rhyNFI/hGyf skZEK35L5S2Nby1OsCjZ7vdRsu2c7BfKPPnF6vU6zG4JaPgx1OXuHQialassY+hKAU6a q/0fgPaBerTKmjLewWvftg3U2H+BPdvbzkgml8g3IuVMR9bHetkvEaLdC65QLuceFhom icYJXEVkr7e2pq1vE5JVSW6T/mCuV15yu3Dbwzqw+TBrDrpwn3O/rQNiD4Xu21CcA8ZA IYpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BuvINrBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si21196056iol.77.2021.07.23.01.03.00; Fri, 23 Jul 2021 01:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=BuvINrBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234317AbhGWHVh (ORCPT + 99 others); Fri, 23 Jul 2021 03:21:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:48736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233619AbhGWHVg (ORCPT ); Fri, 23 Jul 2021 03:21:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EF9F60E8E; Fri, 23 Jul 2021 08:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627027330; bh=6YinZAsMPdgkrcEo3fOYcdgojoWi8BwaGZBL1Cc5HFM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BuvINrBS/8uO9mSrXmX2NCblHYi5UP289T2CGtI0mHFigHgm4+dXTg4YkhbzNt0hV UBoTuDWvmipzt5hAJK3geUDfPwE7jjC1H0rkLfildq8hTL08IKkERXH/Uno9zZFYMS wJ4BtBrOFO39jgDk4Zu7JfvgXyeolskN5uDgHqGnrkQtIe7fmhm+PaeBIuJqAOvM+Q 6VthxMKi+S2wuFCSX2ImvkzdfbE5XmnvBhdZBYC0FNBd1IRGfurMtVwRg3CdtegfKD Szi0DJr2KEmHL00hxRz5VksvhAv9glFefNHpA2vRw2NRdoeJLgJSHwcex3N9eRFaQP JRwsPQKkDFUpA== Date: Fri, 23 Jul 2021 16:02:04 +0800 From: Shawn Guo To: Daniel Baluta Cc: robh+dt@kernel.org, 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: Re: [PATCH v2] arm64: dts: imx8mp: Add dsp node Message-ID: <20210723080203.GG30773@dragon> References: <20210716124719.926483-1-daniel.baluta@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210716124719.926483-1-daniel.baluta@oss.nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 03:47:19PM +0300, Daniel Baluta wrote: > 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(+) > > 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 = @@ -698,6 +709,14 @@ mu: mailbox@30aa0000 { > #mbox-cells = <2>; > }; > > + 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 { Please have a newline between nodes. Shawn > + 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"; > + }; > }; > }; > -- > 2.27.0 >