From patchwork Sun Feb 7 10:23:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 378104 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp3805911jah; Sun, 7 Feb 2021 02:37:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrRR3C7e8gbEGSsAodZCb6Rw9v47ultmyQM5aYaO2WDlCV0akLN8xn86RYoFWfe7GHDrml X-Received: by 2002:a17:906:1f45:: with SMTP id d5mr12524814ejk.76.1612694257047; Sun, 07 Feb 2021 02:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612694257; cv=none; d=google.com; s=arc-20160816; b=f83HwdsT99jA2zc44xqE1+que9U33i2SfCjPDhiFREpg/c27/oqoa3VH8r2NQ9ZLB1 EiQwT+MH9iRd8XkUkuYYdA5pTsCWfmcBQWRTalSS0cOBQobZq8z+qLp/+RHvV/Yle3CY DKou8LT0BQHEEhbbLt7LNLp7+o/7z3HD4NaghT/BNmve86OLmuhAQOwGUgsgx89k1qRb JnoEA1CFVkV6ZK6ImHNl3IrVTLkrwzcuIVkNAnn9n1Xn4Od7ZdxrY4wK11ZjiqEFZVJm z5+7CMz2gpMPN/KSJ2uzTKp03U3nZwW6cTjiKBGyt8O4XoRGz+ibBLdQXYahSH4YlZRr sxMg== 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=7cPXDfI1yR6CzkkcIP6wRTE1vBKD2VfpQ1k0gDv2Uk8=; b=jLy3VW6Cw7xew0X9f00WNd9RC6TgpNfMUlYLiy6rCYh1ZTdz0lr1chy9E7G2DOX2kG RYixEUoGeUmfGV2v4MLgX0M9z0L3xqQXCGwtKNV4i5Uzbehu0gIpr4TGiryXNoVA1WHu XCNCc0Mw/B4cAIaOcB/asGTN0e4U+a+Uf2cus6v6wmSQEz5vU5hLbi78ntktnb89vzsx vmh6hMHPgY7JNXYRf1Mjl/ICNyb/bdngKzSlWdKxnjHPNKxHxTtpwm5XDmkky/6uUV/p VyuCZPosT4dTxsJnzo78JnBQj0NUhs04vnZTKnOiZx8WQNS/noV7Bn6NeF2VCzMm0wnK 4HCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 jg13si11056644ejc.616.2021.02.07.02.37.36; Sun, 07 Feb 2021 02:37:37 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S229684AbhBGKgU (ORCPT + 6 others); Sun, 7 Feb 2021 05:36:20 -0500 Received: from inva020.nxp.com ([92.121.34.13]:50648 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbhBGKgT (ORCPT ); Sun, 7 Feb 2021 05:36:19 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E28C31A195E; Sun, 7 Feb 2021 11:35:31 +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 BB4C71A03DA; Sun, 7 Feb 2021 11:35:26 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 404094028B; Sun, 7 Feb 2021 11:35:20 +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 v2 3/7] ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver Date: Sun, 7 Feb 2021 18:23:51 +0800 Message-Id: <1612693435-31418-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612693435-31418-1-git-send-email-shengjiu.wang@nxp.com> References: <1612693435-31418-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml -- 2.27.0 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 + + 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"; + };