From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 B0E2AC433F5 for ; Fri, 3 Sep 2021 07:56:30 +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 7712760041 for ; Fri, 3 Sep 2021 07:56:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7712760041 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6RQTK8Ou2X9XUHzcQ25iD3tDshUCKLEY3o2I2uCblC8=; b=R/81gxl8NgKGkt XjrLtezcxqDg4lYhwR7du6k88uR9JcmmZigzF9RuMsWTVkWuGp/z6uubf+S0uH9a8RDF8Wdpll62C lHe3FJ+NBwLzT4JQZ3cEoGVdgqh4zY7SqK3ChXKbJR1H4iRDQitiGg862lJ6ASzygjHFqPxiTQQgT kBm1MCcIPPNzPq21tv708XCWjIRsNwxsguk7d0z8LuDRfOlspmHJ4rB7qXGwpjoh71YW8fWIm7774 6gYdR6FFOfImtCzhPKQNn1wyM6xNwtCArhUo23LDfMnIPrfFC0MrpJnOJMokD2rCve6T3bb2biuas Rg5VgH6lEShVsEDLmrtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mM42L-00BCUi-4D; Fri, 03 Sep 2021 07:54:57 +0000 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mM42H-00BCTP-8e for linux-arm-kernel@lists.infradead.org; Fri, 03 Sep 2021 07:54:55 +0000 Received: by mail-qk1-x72a.google.com with SMTP id 22so4965637qkg.2 for ; Fri, 03 Sep 2021 00:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b5fuqcIdn5J86qWLEUURCKMJp4w9lu6BbCFdQDOMDsI=; b=RmjQtbWU5lPM3BeSZtYcerCT37CdwZTY0xgGphLc+tTVNbE6blDKMqxdVuQrj45CwL ZTDuQ3VBy9V2i5wS6mir8KQ6W4R2Sbl4AwVpaDaKbvwlASfq04XFnn7oJw3GXEhfUL8y FnFYfhzEtdqJt17JObZArLQc38R5n+4g5UNSPI8WP4yldQt9+V5rMBkZBHDoSYyG7fxk pUK97+FFF+HMObPJn+EDjixzMDkGmSQybmzwfSOQlOPFgHkEObJSWotw/JEw/WfeQoCE dlhwIS0wIiWhGjmFqhM2jsRJOd7I+aAGW2/4yBJMm37ZOmuxsUaUTo0uibFNRA0HzYtM r+qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b5fuqcIdn5J86qWLEUURCKMJp4w9lu6BbCFdQDOMDsI=; b=DVwMiQuKoOL8mSzMuzbowQb0OP/gPxphheFvmlLpXK1+NJa6LwDJp5202GEhkoiRof dIPSvlQnZV/I7AAdpczZKaXb5ollUVv3gZNbxmNMSYf2ZymhrKj0fcC9Hu7JAv6AEw5d 1BSyw1fNTXimshV8U6GFs7XrKXPur365/7yczdUkZqc4xLfGHsCO55bLotRuPYQbOo3C LSUi0S5yI15hjyiTGv87QZxYZmjFlLrEMeMYUqUqbc/snu7FDRqwU/psm3qmhaWWFlgW 3KGtq9j34Krw1yHqLVLo14WbRIPAKzU28YJgoB1uREZtx50py+pMhKSHDSRDQ1Ov9tXH 7rSA== X-Gm-Message-State: AOAM530iLDDSySITu9TXZvO0xwnXxHfgQuvy41wCH9MMVleFE/hmJGI2 2gPNivZrgtlQfi/OyvUa359TmwYkc/YF+N7fWM0= X-Google-Smtp-Source: ABdhPJxcIUKvKHIhhX1gJAUzH8+mLGFCf1ojqji/a5xyTvbjMfQmQjw71WPSfBZsbgqDF8EPawH0kw25DCzu8zy1LFM= X-Received: by 2002:a05:620a:1195:: with SMTP id b21mr2215857qkk.450.1630655690274; Fri, 03 Sep 2021 00:54:50 -0700 (PDT) MIME-Version: 1.0 References: <1629876516-16513-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: From: Shengjiu Wang Date: Fri, 3 Sep 2021 15:54:39 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: remoteproc: Add fsl,imx-dsp-rproc binding document To: Rob Herring Cc: Shengjiu Wang , Ohad Ben Cohen , bjorn.andersson@linaro.org, Mathieu Poirier , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-remoteproc@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210903_005453_350728_107470A7 X-CRM114-Status: GOOD ( 31.56 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rob On Thu, Sep 2, 2021 at 11:17 PM Rob Herring wrote: > > On Wed, Aug 25, 2021 at 03:28:35PM +0800, Shengjiu Wang wrote: > > Define the compatible string and properties needed by imx_dsp_rproc > > driver. > > > > Signed-off-by: Shengjiu Wang > > --- > > changes in v2: > > - add items for clock-names > > - change syscon to fsl,dsp-ctrl > > > > .../remoteproc/fsl,imx-dsp-rproc.yaml | 150 ++++++++++++++++++ > > 1 file changed, 150 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/remoteproc/fsl,imx-dsp-rproc.yaml > > > > diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-dsp-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-dsp-rproc.yaml > > new file mode 100644 > > index 000000000000..edf6e4b8d7bb > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-dsp-rproc.yaml > > @@ -0,0 +1,150 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/remoteproc/fsl,imx-dsp-rproc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: i.MX DSP Remoteproc Devices > > + > > +maintainers: > > + - Shengjiu Wang > > + > > +description: > > + This binding provides support for DSP processors found on i.mX family of SoCs > > i.MX I will update it. > > > + > > +properties: > > + compatible: > > + enum: > > + - fsl,imx8qxp-hifi4 > > + - fsl,imx8qm-hifi4 > > + - fsl,imx8mp-hifi4 > > + - fsl,imx8ulp-hifi4 > > + > > + clocks: > > + description: > > + Main functional clock for the remote processor > > + minItems: 1 > > + maxItems: 32 > > + > > + clock-names: > > + description: | > > + List of clock names for the remote processor. > > + dsp_clkx for clocks of dsp itself. > > + per_clkx for clocks of peripherals used by dsp. > > I still don't like your random collection of clocks. What if you have > other resources besides clocks to manage? Pin mux, resets, power > domains, etc. It would be better if you describe the peripherals in DT > and then link to them here. But maybe the devices themselves aren't > visible? Ok, I will remove these per_clks in next version. Maybe it is better to handle them in firmware side. > > > + minItems: 1 > > + maxItems: 26 > > + items: > > + - const: dsp_clk1 > > + - const: dsp_clk2 > > + - const: dsp_clk3 > > + - const: dsp_clk4 > > + - const: dsp_clk5 > > + - const: dsp_clk6 > > + - const: dsp_clk7 > > + - const: dsp_clk8 > > Surely you can name these by function? e.g. core, bus, axi, etc. Ok, I will update them in next version. Thanks for reviewing. Best regards Wang shengjiu > > > + - const: per_clk1 > > + - const: per_clk2 > > + - const: per_clk3 > > + - const: per_clk4 > > + - const: per_clk5 > > + - const: per_clk6 > > + - const: per_clk7 > > + - const: per_clk8 > > + - const: per_clk9 > > + - const: per_clk10 > > + - const: per_clk11 > > + - const: per_clk12 > > + - const: per_clk13 > > + - const: per_clk14 > > + - const: per_clk15 > > + - const: per_clk16 > > + - const: per_clk17 > > + - const: per_clk18 > > + > > + fsl,dsp-ctrl: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + Phandle to syscon block which provide access for processor enablement > > + > > + mbox-names: > > + items: > > + - const: tx > > + - const: rx > > + - const: rxdb > > + > > + mboxes: > > + description: > > + This property is required only if the rpmsg/virtio functionality is used. > > + List of <&phandle type channel> - 1 channel for TX, 1 channel for RX, 1 channel for RXDB. > > + (see mailbox/fsl,mu.yaml) > > + minItems: 1 > > + maxItems: 3 > > + > > + firmware-name: > > + description: | > > + Default name of the firmware to load to the remote processor. > > + > > + memory-region: > > + description: > > + If present, a phandle for a reserved memory area that used for vdev buffer, > > + resource table, vring region and others used by remote processor. > > + minItems: 1 > > + maxItems: 32 > > + > > + reg: > > + description: | > > + Address space for any remoteproc memories present on the SoC. > > + > > + power-domains: > > + minItems: 1 > > + maxItems: 32 > > + > > +required: > > + - compatible > > + - reg > > + - mboxes > > + - mbox-names > > + - clocks > > + - clock-names > > + - firmware-name > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + dsp_reserved: dsp@92400000 { > > + reg = <0x92400000 0x1000000>; > > + no-map; > > + }; > > + dsp_vdev0vring0: vdev0vring0@942f0000 { > > + reg = <0x942f0000 0x8000>; > > + no-map; > > + }; > > + dsp_vdev0vring1: vdev0vring1@942f8000 { > > + reg = <0x942f8000 0x8000>; > > + no-map; > > + }; > > + dsp_vdev0buffer: vdev0buffer@94300000 { > > + compatible = "shared-dma-pool"; > > + reg = <0x94300000 0x100000>; > > + no-map; > > + }; > > + > > + dsp: dsp@3b6e8000 { > > + compatible = "fsl,imx8mp-hifi4"; > > + reg = <0x3B6E8000 0x88000>; > > + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_OCRAMA_IPG>, > > + <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_DSP_ROOT>, > > + <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_DSPDBG_ROOT>; > > + clock-names = "dsp_clk1", "dsp_clk2", "dsp_clk3"; > > + firmware-name = "imx/dsp/hifi4.bin"; > > + power-domains = <&audiomix_pd>; > > + mbox-names = "tx", "rx", "rxdb"; > > + mboxes = <&mu2 0 0>, > > + <&mu2 1 0>, > > + <&mu2 3 0>; > > + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, > > + <&dsp_vdev0vring1>, <&dsp_reserved>; > > + fsl,dsp-ctrl = <&audio_blk_ctrl>; > > + }; > > -- > > 2.17.1 > > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel