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 04AFAC433DB for ; Thu, 18 Feb 2021 07:22:31 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 9A09B64E68 for ; Thu, 18 Feb 2021 07:22:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A09B64E68 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 26BDB15E2; Thu, 18 Feb 2021 08:21:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 26BDB15E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1613632947; bh=SrK3H7/k6JL8qb24r7JFGL9354EeMfOOpMMn/LBFLZg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OdUXHedOol7UYFJN1lwtU7hjJa2I/2k+d7N8JlVp7RjbGCsQxOzlEPSJR9M2Emtwi 9lbEeDF+FFMkagLHYy39fkcFSOCf1p1xBY13zAILxrpgjE7ctWRAq+azqvg0bVdOhG UhmT2FDEUOzh0+Vi4vTnJ9viey3vk3mxxOom7a2I= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8B8DAF80155; Thu, 18 Feb 2021 08:21:36 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 25799F8015A; Thu, 18 Feb 2021 08:21:34 +0100 (CET) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 913ABF800E5 for ; Thu, 18 Feb 2021 08:21:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 913ABF800E5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mdpH+6Fo" Received: by mail-qt1-x82d.google.com with SMTP id x3so747909qti.5 for ; Wed, 17 Feb 2021 23:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W4CuVJp6htN2y1/Vp8LtCaaMfaPH0Jo1ezQEtxgh7bk=; b=mdpH+6FobMXsdaZB85IHeW3r64Vs5Sg4rYLQ5bmOIOqagsYGgBIxrwD41jtF37xVZF BtJs+dLUNcu6JAbX1j9/qbszuIFb+yz8ZASbPKX3n89Fxf/rGShVkZWuBJBoV1a/qRKZ 7N4Xfd/uaDo/51xC71PTE3rkOhCDmEcPCr+f5zHLqrMgICVf1fRFTzEY8XYaIJDNx6NL myjNbOtCm0jUeSJAyy4Uh47OoUEYGT/gUVX+24Iir1s6t1nRjUD2OLQGNHhqvzVxMrlh E3kqYoqHSH3tjsuk480W9oiBvOxuQ2wPk8Eil28J4j32OUTZSmZVQDhU7M5GAU9KJ2LP IG+g== 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=W4CuVJp6htN2y1/Vp8LtCaaMfaPH0Jo1ezQEtxgh7bk=; b=cR9rchdFAzCcfwcNjFZoxT0lQpYdMRUBhwn92X1TQh5qIdfedc4Qxz2I9CRZN8AFMu 44tgyG25DliOCoAj7rEH319TrJIBfhFLiUBWJDsG8CDwNLfzYrs0TFrxhsORIp8flGep JPpm0LjcxKEBDWHlAgp1E8flDSVJHl5OSJNtMG0L7RYVnQg2mdumaGIZzhkC9ZlqE3dJ SoPXs0Abs7h/tSgNqHvFxxtN4rSAywGFs9pN5aKVy8qyGF0DVvwcOWhHeOe/hqLVCLBZ ay9UYuCZWI/BIhhuBSLZHiNbZzCozZCZVVoZKIecrXIUyLrQ8H4TmSxuNDJ9w54xOCFp 1pFQ== X-Gm-Message-State: AOAM531EfkWfPUzxmT6wyJ1JD27xBlRNYT03u0mEwPGaUr7DDoeJSgYc ccI8GN0OAxyEl/uzeo5k5cFSD7RoNOfXtx9zb+w= X-Google-Smtp-Source: ABdhPJxYDxHIpH8R50b3lmetoPOD5LNUh7FIOIlLGHYseOIxe+kTql8AAKWjI5pZkC7bn2hCVj6VeG0ssJUHibmXYYY= X-Received: by 2002:ac8:7b43:: with SMTP id m3mr2919646qtu.121.1613632881637; Wed, 17 Feb 2021 23:21:21 -0800 (PST) MIME-Version: 1.0 References: <1612693435-31418-1-git-send-email-shengjiu.wang@nxp.com> <1612693435-31418-4-git-send-email-shengjiu.wang@nxp.com> <20210210221252.GA2885308@robh.at.kernel.org> In-Reply-To: <20210210221252.GA2885308@robh.at.kernel.org> From: Shengjiu Wang Date: Thu, 18 Feb 2021 15:21:10 +0800 Message-ID: Subject: Re: [PATCH v2 3/7] ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver To: Rob Herring Content-Type: text/plain; charset="UTF-8" Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , Fabio Estevam , Shengjiu Wang , Takashi Iwai , Liam Girdwood , linux-kernel , Nicolin Chen , Mark Brown , linuxppc-dev@lists.ozlabs.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Thu, Feb 11, 2021 at 6:13 AM Rob Herring wrote: > > On Sun, Feb 07, 2021 at 06:23:51PM +0800, Shengjiu Wang wrote: > > fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used > > for getting the user's configuration from device tree and configure the > > clocks which is used by Cortex-M core. So in this document define the > > needed property. > > > > Signed-off-by: Shengjiu Wang > > --- > > .../devicetree/bindings/sound/fsl,rpmsg.yaml | 80 +++++++++++++++++++ > > 1 file changed, 80 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml > > > > diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml > > new file mode 100644 > > index 000000000000..2d3ce10d42fc > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml > > @@ -0,0 +1,80 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/sound/fsl,rpmsg.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: NXP Audio RPMSG CPU DAI Controller > > + > > +maintainers: > > + - Shengjiu Wang > > + > > +properties: > > + compatible: > > + enum: > > + - fsl,imx7ulp-rpmsg > > + - fsl,imx8mn-rpmsg > > + - fsl,imx8mm-rpmsg > > + - fsl,imx8mp-rpmsg > > rpmsg is a protocol. What's the h/w block? On Linux side this driver is a virtual driver, it is running on Arm Cortex-A core. The h/w block is controlled by another core (cortex-M core). so this driver actually doesn't touch any hardware, it just does configuration for rpmsg channel. > > > + > > + clocks: > > + items: > > + - description: Peripheral clock for register access > > + - description: Master clock > > + - description: DMA clock for DMA register access > > + - description: Parent clock for multiple of 8kHz sample rates > > + - description: Parent clock for multiple of 11kHz sample rates > > + minItems: 5 > > + > > + clock-names: > > + items: > > + - const: ipg > > + - const: mclk > > + - const: dma > > + - const: pll8k > > + - const: pll11k > > + minItems: 5 > > + > > + power-domains: > > + maxItems: 1 > > + > > + fsl,audioindex: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: instance index for rpmsg image > > + > > + fsl,version: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: rpmsg image version index > > What are these 2 used for? fsl,audioindex: As we may support multiple instance, for example two sound card with one rpmsg channel, this is the instance index. fsl,version: There are maybe different image running on M core, this is the image version, different image has different function. > > > + > > + fsl,buffer-size: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: pre allocate dma buffer size > > + > > + fsl,enable-lpa: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: enable low power audio path. > > + > > + fsl,codec-type: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: Sometimes the codec is registered by > > + driver not the device tree, this items > > + can be used to distinguish codecs > > 0-2^32 are valid values? I should add range for it. > > > + > > +required: > > + - compatible > > + - fsl,audioindex > > + - fsl,version > > + - fsl,buffer-size > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + rpmsg_audio: rpmsg_audio { > > + compatible = "fsl,imx8mn-rpmsg"; > > + fsl,audioindex = <0> ; > > + fsl,version = <2>; > > + fsl,buffer-size = <0x6000000>; > > + fsl,enable-lpa; > > + status = "okay"; > > Don't show status in examples. ok, will remove it. > > > + }; > > -- > > 2.27.0 > >