Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3239663pxb; Sun, 7 Feb 2021 02:39:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGWYO2fwmW8UU/wE1xXGRpy3IUcZAiHiblcHJfk1X7LMXF9eIPYTIC/+V+BNF1qD/xjwrx X-Received: by 2002:aa7:d8c9:: with SMTP id k9mr12292826eds.366.1612694387853; Sun, 07 Feb 2021 02:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612694387; cv=none; d=google.com; s=arc-20160816; b=R9IbCGW0JhOuoAdVdtueC4jlnYHhi8nkAUR9DrnmVBjjOZQTnJXPPNbydthnE2n6HY m8LSe6QTlaTjzVaZSUg003sJ5pyYdmgaNaEvnlaWG1g8iDsLEbx3jJs9EQ79YU4JFjAG liPLQG3oZhW9qFoOVVgi55rH68snkTUwSAIXaax6wU/dqhp7sayRKIav5EyaQBWQeI6s TM9yR/+NIZj2tC0MqS/8tuRStUeOWCt/GywIc7OlHndlxO6JbCGjjMNyoIIzfDiTaNNG Z7Kter3PcaaNhSydeicoxSDpoeVOg8DY6dTHY5iDh4I7286DmwQLMYGaC2hlGT7lHkId E/AA== 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=FyNgsAHNQgrwk+C5YuMBWMimwZmEOVJn56W1AdFNLlbqbsefKqJ6J6UyG8Z29/pUe1 WfvbZ0o/gN2bX1eTW+c8nYF7jQrvuaboO72bYGZIC2a++tl72ODukAhAXNNHxdaHVegn KBEIQv0bY8yFfuFI/VCXOW4g6vltV0ThVtE1RTQ175OEHwwcRpmfFMVPJntz3Vz0rZFR tcLcM8V9O0y1o0mLYBnHWmCQ/bDU+s5QNhGk3V9xc0MIN6eEkndm0r+uIaqiWxcdJeHp 2h46/T67rOnTXffy/Nem/6LadT2Gcxq08M3MUl2xkamhf/YwZhoQ20CmEUN0WDl0ZIxb awKg== 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 jg20si9409178ejc.125.2021.02.07.02.39.24; Sun, 07 Feb 2021 02:39:47 -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 S229704AbhBGKgX (ORCPT + 99 others); Sun, 7 Feb 2021 05:36:23 -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: 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 | 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 + + 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