From patchwork Mon May 10 07:07:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 433051 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2592395jao; Mon, 10 May 2021 00:24:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO4VtVVL+HEWNr9Tn60uHm299ExnQ/68cRlvq27vq676DC2jajaYlOOy/T0Gk8QacTwMkH X-Received: by 2002:a5d:8e03:: with SMTP id e3mr359215iod.60.1620631444946; Mon, 10 May 2021 00:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620631444; cv=none; d=google.com; s=arc-20160816; b=Q8I7MzkM8EXcgosa1P7F0N6z3L3QfuaPCy5cEN3PMCZGRfzj28QLUybFpqkCCm8F2U xM+ZY1+qA+MZEN5QqN83UZvZvzIWAuHw4dSe7Y8gWQwmy9mHwiMtTqHe+D3r+2iOR8gW 0KYiDJHFziKoAGMbwjzoKmqIHT4XBKl/+9j+ZZbUo9X2a5LYVkWbB4MVnZRx+ssCNmRO R1R0WKllntmcEl2oqLzxtLJjAQSjxhh7lq0aqkqAKKmXHqnNqkmQ6g2zHkMg7QMLWOsj ehcxitQfc3KosUAzpeg1mK8fLnPFFnrJ50Qu/ETnZb+QS2tJVv0moM1C075u1Cat7QnS 95kw== 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=12tuZcM5k5V4xT5I1WtmCmHkIHERnfDWlr8pbL9Io5Y=; b=Uk3p89Qq1ojUIzvdcBNf4iuIA9ccfDqtaHGc97WVGEoduBXwaDwIw06DVbAORjBOIB keM0z3J9MK6pjdyilU6jw1MrIm/SqxDj2WP+vPxTvDqGyULUU7mGcxSQ5qCleoKuTpCb NOhTG0bdHVHWgKHgrf4Ust5P8dBQryq3LLnP8ngDNWU4Lzv5dWPb2nEmoFulADQt83Z/ S4kd1Ah039OBYPfLnWQoMwq5K9seQvf1B+qL8xC1QZxi2wOfo6MXdu1zpk9UO6mLmOGp YzEMpiAAIW5zmj4BehN49ldjWxu2xjzvV+zqXLuGx+dAfNol2xuGv9Af0e1gam8VA2nD aQ6Q== 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 j28si14240997jaq.115.2021.05.10.00.24.04; Mon, 10 May 2021 00:24:04 -0700 (PDT) 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 S229684AbhEJHZI (ORCPT + 7 others); Mon, 10 May 2021 03:25:08 -0400 Received: from inva021.nxp.com ([92.121.34.21]:34018 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbhEJHZH (ORCPT ); Mon, 10 May 2021 03:25:07 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D6AE7200121; Mon, 10 May 2021 09:24:01 +0200 (CEST) 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 C939F203C37; Mon, 10 May 2021 09:23:51 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 405384030C; Mon, 10 May 2021 15:23:40 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/2] ASoC: dt-bindings: imx-akcodec: Add binding doc for akcodec machine driver Date: Mon, 10 May 2021 15:07:21 +0800 Message-Id: <1620630441-14358-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620630441-14358-1-git-send-email-shengjiu.wang@nxp.com> References: <1620630441-14358-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 Imx-akcodec is a new added machine driver for supporting ak4458/ak5558/ak5552/ak4497 codec on i.MX platforms. Signed-off-by: Shengjiu Wang --- changes in v2: - update doc accoring to Rob's comment, use the common porperties. .../bindings/sound/imx-audio-akcodec.yaml | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/imx-audio-akcodec.yaml -- 2.27.0 diff --git a/Documentation/devicetree/bindings/sound/imx-audio-akcodec.yaml b/Documentation/devicetree/bindings/sound/imx-audio-akcodec.yaml new file mode 100644 index 000000000000..0812c4779b59 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/imx-audio-akcodec.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/imx-audio-akcodec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX audio complex with AK4458/AK5558/AK5552/AK4497 codec + +maintainers: + - Shengjiu Wang + +properties: + compatible: + enum: + - fsl,imx8mq-audio-akcodec + - fsl,imx-audio-akcodec + + model: + $ref: /schemas/types.yaml#/definitions/string + description: User specified audio sound card name + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: + A list of the connections between audio components. Each entry is a + pair of strings, the first being the connection's sink, the second + being the connection's source. Valid names could be power supplies, + MicBias of codec and the jacks on the board. + +patternProperties: + ".*-dai-link$": + description: + Each subnode represents a dai link. Subnodes of each dai links would be + cpu/codec dais. + + type: object + + properties: + link-name: + description: Indicates dai-link name and PCM stream name. + $ref: /schemas/types.yaml#/definitions/string + maxItems: 1 + + format: + description: audio format. + items: + enum: + - i2s + - dsp_b + + cpu: + description: Holds subnode which indicates cpu dai. + type: object + properties: + sound-dai: true + + codec: + description: Holds subnode which indicates codec dai. + type: object + properties: + sound-dai: true + + required: + - link-name + - cpu + + additionalProperties: false + +required: + - compatible + - model + +additionalProperties: false + +examples: + - | + sound-ak4458 { + compatible = "fsl,imx-audio-akcodec"; + model = "ak4458-audio"; + pri-dai-link { + link-name = "akcodec"; + format = "i2s"; + cpu { + sound-dai = <&sai1>; + }; + codec { + sound-dai = <&ak4458_1>, <&ak4458_2>; + }; + }; + fe-dai-link { + link-name = "HiFi-ASRC-FE"; + format = "i2s"; + cpu { + sound-dai = <&easrc>; + }; + }; + be-dai-link { + link-name = "HiFi-ASRC-BE"; + format = "dsp_b"; + cpu { + sound-dai = <&sai1>; + }; + codec { + sound-dai = <&ak4458_1>, <&ak4458_2>; + }; + }; + };