Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1732448pxb; Thu, 4 Feb 2021 23:13:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5LLww+SEU36RgiDrozNJfmnxaiJVGB2PnsirLqhoMvvB+GzKXj2V8PXL88azR/AERuhME X-Received: by 2002:a05:6402:46:: with SMTP id f6mr2211386edu.163.1612509234197; Thu, 04 Feb 2021 23:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612509234; cv=none; d=google.com; s=arc-20160816; b=MzW4h6vJ0V0jMgqPX7m+BmVpMRjFVlz+vKMGRDOOCF1PhkrzpOYBapwaqlne6ZNhGo I51Ogz/E9z7w+YnGPv9YtuLNeXX5a8QrBwPplzLpLSzn5o4+clU4uJ0CZAQIgOcDBBuq Fn7+8DXJgCYU/l3WAqZSTZxtGD/5g9vKXHASB5WtohOa+ehR6GTqAmQah3S42YWgqUez 7AY9iKtNeLoLC73MDHCdD+Jc8vC9E83nJSWItZyhjyuUkVgnpPN7WcAkZsv/N9h3qvPy Kg8bV+eELLYpwpOasP9V1F2Wq1jN89SUmLB17i6LB9iWtM/HIzkR/GHixXHQaX78bqHU hv2Q== 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=11i2eNX4p8KA8vY2Pneaya6nQfClBYXOk/d/5FBs4dk=; b=RPy7PMhDTtB4jd+QpnQmx4N+RE54WG1DI1Hlulp5sZqQs97FTeUDsl7FUEWt7X7Ut3 JcPGcb56KfXkNksDkZAnBE3ftG+/MGxepU6LfeM74D13b44p2HdnFTSZ9vV1epxBmMez m7i/Wgilj57WOEwz2ldZkAFWfpxuByL1HjXB/rG32JV0rJwGn4fNPF/3D5/0G1Ht3CKk LUbMsLwda+6HlTJZ+tX23eZZ/74ixChDrbewkAiTHBpfwPYdkeOk3INANDoxcHNBsscE yFOqeTQKEE8mSGeW9o4lOaAeGCRh/C02sYBmLs1wHtCoD+QILOcDNx9Ajkn1uEEGerBU 2W0w== 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 v8si5043122ejq.163.2021.02.04.23.13.29; Thu, 04 Feb 2021 23:13:54 -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 S231401AbhBEHKH (ORCPT + 99 others); Fri, 5 Feb 2021 02:10:07 -0500 Received: from inva021.nxp.com ([92.121.34.21]:59068 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbhBEHJf (ORCPT ); Fri, 5 Feb 2021 02:09:35 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 48E78200B61; Fri, 5 Feb 2021 08:08:48 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2DA0C200B08; Fri, 5 Feb 2021 08:08:43 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EE4F940305; Fri, 5 Feb 2021 08:08:36 +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 3/7] ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver Date: Fri, 5 Feb 2021 14:57:26 +0800 Message-Id: <1612508250-10586-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612508250-10586-1-git-send-email-shengjiu.wang@nxp.com> References: <1612508250-10586-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 dummy driver, 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..1c2679fac31e --- /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 Dummy Controller + +maintainers: + - Shengjiu Wang + +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 + description: instance index for rpmsg image + + fsl,version: + $ref: /schemas/types.yaml#/definitions/uint32 + description: rpmsg image version index + + 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 + +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"; + }; -- 2.27.0