Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp163817pxb; Wed, 24 Feb 2021 22:09:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7vl6CXP3B4wVut3g68FTneXTPlHQzM5EgOdJHBwxeHSp7+r3vH2/82vtzaL2qbSI4RJQt X-Received: by 2002:a17:906:2344:: with SMTP id m4mr194123eja.327.1614233391383; Wed, 24 Feb 2021 22:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614233391; cv=none; d=google.com; s=arc-20160816; b=y9838DlWQKtEJ4f8COd4ioSz4IIK+FpR59NedtEXQbHoKq62FaPzWyFfEDGGjVFeg0 K6V/cy1WA6qj9NCchinVVNp6eS+Ygu/ws/Mv938Z5SRAyE5nia2weUIxDHzauckuKEqB U3MyQsGZrOXEt5DYKLOc5l+m9afGT06+m0MUq1WNY+86LD4WlfbAiCYlIZSJvYj2fZp0 XDNTHubdEed5oL2vvEL5N60kMgvT4uwMnz+3aEV84sjH2R1LvHm8qKWzaTBz8B31JCk9 IQGMSvG7GH5+2+ZInDfTuYbs0LfTlrdumPBrkRffC4Bi6zXCtM7FTYRmP5i6ciT0+ozp R7iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from; bh=tXRDL1HITzDdAcsf1WcFko2zPExV6Ei9u6NiYr3ZcA4=; b=ArK9T3zicuqKuy3WNxFcOabTWmJDYbKZSESlxgG5FNfXrEuJJGOYxlkD9ceCGzySUa vaEaxWABr3eun1Qcw9Oyxw+q8rtai7gDCZnpPF7bvrfGcaj79rzV9sd4lC5r3KIpM4Gx RMHwVZBB5sfT1qr68gCerohb/XintfDTf2yOqdTKJgdsB/dxYsEhBoDRe9CsQQG+aZZJ qkd2SJ6YbIhmQw7WsisXPX8a4oGk2Q6d+YP6YXzKGzyYFE9ZxAt3/D1k+J6k1OiY8KUS iAqKNrA72hHOFtgPUGSc22XF85Fso+zParys3r0IRCq/qUSjRxvqav2U0/+fMbqlOx6t lpdw== ARC-Authentication-Results: i=1; mx.google.com; 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=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 b3si2133556ejd.663.2021.02.24.22.09.23; Wed, 24 Feb 2021 22:09:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236974AbhBYDGi (ORCPT + 99 others); Wed, 24 Feb 2021 22:06:38 -0500 Received: from inva020.nxp.com ([92.121.34.13]:35692 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236937AbhBYDGL (ORCPT ); Wed, 24 Feb 2021 22:06:11 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EE7E21A0611; Thu, 25 Feb 2021 04:05:24 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 22A861A05D3; Thu, 25 Feb 2021 04:05:18 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EA0EF402AD; Thu, 25 Feb 2021 04:05:09 +0100 (CET) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, linuxppc-dev@lists.ozlabs.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 3/7] ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver Date: Thu, 25 Feb 2021 10:52:39 +0800 Message-Id: <1614221563-26822-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614221563-26822-1-git-send-email-shengjiu.wang@nxp.com> References: <1614221563-26822-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 94 +++++++++++++++++++ 1 file changed, 94 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..ab6d3b8d0d38 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml @@ -0,0 +1,94 @@ +# 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 + +description: | + fsl_rpmsg cpu dai driver is virtual driver for rpmsg audio, which doesn't + touch hardware. It 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. + +properties: + compatible: + enum: + - fsl,imx7ulp-rpmsg + - fsl,imx8mn-rpmsg + - fsl,imx8mm-rpmsg + - fsl,imx8mp-rpmsg + + 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 + enum: [0, 1] + default: 0 + description: Instance index for sound card in + M core side, which share one rpmsg + channel. + + fsl,version: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + default: 2 + description: The version of M core image, which is + to make driver compatible with different image. + + 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 + enum: [0, 1, 2] + default: 0 + description: Sometimes the codec is registered by + driver not the device tree, this items + can be used to distinguish codecs. + +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; + }; -- 2.27.0