Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7083726pxb; Thu, 18 Feb 2021 00:28:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy/7g+IV5CyLx3CtnUEfUapk6ITHi+gse46TQ/GbGKPdMmi83JL90HsEVRN8m6fZ+pQy42 X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr2817000ejc.197.1613636915800; Thu, 18 Feb 2021 00:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613636915; cv=none; d=google.com; s=arc-20160816; b=Vd9VC2OPkP5xkTsfTkP8Aj58DLOd4fvlQ9W5ik2W5mr8nMXAO1ON7TamQRWQBpH6bq G5LcV4fHDdOFsP1LAso0U9RgESahHeqX1za6VV4YXbsFIFczESPnwJ/M5wnTEllBrZAd 0uIsmpkvhVMmtlUzyeO4BTQRVgU5t/EH7qVoCAtHrv1dMKau8B6MLlK9WZDPD2fZ1spw ewdJlld0cCRS9/HjlfTYBGZCfQXVg254bPTTXV3zHcyGr2tVi5FrvHu7UuCSJaJRqM/g DnJsNjl9lLqVhwV6DWhSpiQD08wHz7diaTdcGDiQoJsMVUFbdCtZhPULgkfZlzwLmn1R rcBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W4CuVJp6htN2y1/Vp8LtCaaMfaPH0Jo1ezQEtxgh7bk=; b=d72NzT4O7agsFh2a3qtpMYx+84dmODf+rdzBIAbrQqdAUk/9sRg9mVQjNOY8VRjOP8 NZ3ennWevpmbsqi+W1LlvbIm5s2+3P/l7c6zEoSRY6vYLputBYP4ZGF4OBQSMjqPVf9G hxhyJdAYI6PhMpk82EBJmI63mbM+4G119d3InG4uoVD2l7NUaVwG/WmwKpZtcq76tWlU krunfEwBNlstffZkfLnbXSjviLQjgeKGx70P3di2kN02K09AV9z27Q7ITR3xQGP9rvFA guXJFi07VkJUEFJrAp8ZzrXnpxAEJACkGQmY89Iur11cquPjJzNGQPNLVGk+dESOlG5p KDtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mdpH+6Fo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si3308048edz.576.2021.02.18.00.28.11; Thu, 18 Feb 2021 00:28:35 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=mdpH+6Fo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbhBRIXt (ORCPT + 99 others); Thu, 18 Feb 2021 03:23:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbhBRHWD (ORCPT ); Thu, 18 Feb 2021 02:22:03 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBCD4C061756; Wed, 17 Feb 2021 23:21:22 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id e15so733040qte.9; Wed, 17 Feb 2021 23:21:22 -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=uOPscJnFcIZbIL7VhopymcSvHJ4Pp0YVSHKh1mk+yuMcKymWmF6WFQWdrVS1clGeCD E9TZp4ceWH1OrGOvGWcE4qPt9ryf6jPIU2ICQTjfDtoxZA3Xq65wbNPhDxVs00JQzvmy 1zEEkLdOOEQLljdg92F9Newautx/aj99hTfAGcYTZx1cDKcMAijtjaskB4TT6DfvEtib RYhw3e2KNFS6yG/YwNTxJs6KO/s6IQjOja0IIL6LKOcIColxsXIJmRIRju5p7PPd+/d2 19AkHuQqyFJvk6TcPaiCh+ennFFeoObP/7TnFGqOVnQ2sgD0SfZL9NjG1tOZDeNMS7X4 c0iQ== X-Gm-Message-State: AOAM531wTHObiZM4ReNDUnapqF7CyEj6hIyJs6+PD5CmyFMGLbWp5rBh ju/apcyxyHPdQlNefS93oJ8btUzL2jFcFAkS0HY= 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 Cc: Shengjiu Wang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , alsa-devel@alsa-project.org, Timur Tabi , Liam Girdwood , linuxppc-dev@lists.ozlabs.org, Xiubo Li , linux-kernel , Takashi Iwai , Nicolin Chen , Mark Brown , Fabio Estevam Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > >