From patchwork Thu Feb 25 02:52:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 387190 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp889971jap; Wed, 24 Feb 2021 19:07:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf32kDweyABRm1qc9TrsALdJSJ/uknnn5utltf53pYgv3F/Y6L8Sr9MiIFhzGNy+XeSBtO X-Received: by 2002:a17:906:28d6:: with SMTP id p22mr659461ejd.365.1614222439366; Wed, 24 Feb 2021 19:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614222439; cv=none; d=google.com; s=arc-20160816; b=ddZEueIoOsd1i/vsimD+4/qEZvf9++Pa/hC75mt98OHf19mRMRSf9OId0/4Z4TWzKR PDtmAFrRdbH8hKPX65Tp+DRqwMtCrr/fQmGBZ8OA4X4HqnUP5YQBUf/FJ/iOCstb/qv9 boAKX97pvboihs1hLDSorQ9qRKqBYspFC5O8EtTNEEEsGJtkP0p9MuTXbVYMcNQfWbUG h1qJLpJKbtGSN50OLllnzmxfzdxDw1Vc/f+gYYT3lfBTOhhZVBJ2CifpoyYqgCiJZ7qj bmMnRvYVtaP0j0vKdo8Su3+u5vwrKHu0v1as+yULlsefHXY81Ku2uP3LajG9OV+IR8lx LPGw== 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=SqOHTsmrB1oq+cIr19T3EMS8LqvPz/kYUu9e3ZuVvtB+gB8LbqIbl49IJbv3/TQL4k 2kx1na4dmaHWDB1cZYk3HzgJMxl6lCJjpzvg7xN8ko7u+kt2XGdNMwYgAJzoVfQxlqRC nZGnX/H/OWp5dC6klDN5KVB/BePhYeiuLeaKFbPtVfDUPJNcM1fjMOOPhonZtC2VoKE7 EXQYJfiiKvBHmmJHbbRlI6kavps7vvNHCxUaub9q/xHyW2r9QwMJbX0tTOMkDysgKxBo Dt2/edH+YtjDFru/QNptPIqitoekMwQNzioAWLCSB5wmcQVkzShSvt9TjFOuM+3ySuv8 r2Jw== 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 hs7si2757584ejc.745.2021.02.24.19.07.19; Wed, 24 Feb 2021 19:07:19 -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 S231845AbhBYDGP (ORCPT + 6 others); Wed, 24 Feb 2021 22:06:15 -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: 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 | 94 +++++++++++++++++++ 1 file changed, 94 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..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; + };