From patchwork Thu Jan 5 16:03:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 39660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp377034wrt; Thu, 5 Jan 2023 08:15:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtT2mpqWRWR1gWzY/n/Pa3CEPBJxi9BkOt82a+HhPj+P+jnL8DMZTTd/O0u8YTjoCyp9bib X-Received: by 2002:a50:ab1e:0:b0:47f:8c6f:5f31 with SMTP id s30-20020a50ab1e000000b0047f8c6f5f31mr46787232edc.14.1672935324722; Thu, 05 Jan 2023 08:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672935324; cv=none; d=google.com; s=arc-20160816; b=c++bE798jnnVl8O9XMv7TrReuH3OTyw+GgmGBzdPKEzYg9RKpMvqkYz8iMAF4jSsva +sXn3YS6mn23JhwlWHtYdgixbfjBsQkw0ScrLH0q+J8RHgMRymq7RUBZE8h34uA8kJyD a7988+25TLgkafHQ9HrpfkL5mX0cBRf5tkATgNR+SwlLZQy/6hmwaDa+p1uETF6GiA0v b/lWY2KqYaCpR7dt1HvUcezzzu9DE6Qe3h0fsBZTlQQkqUi3E5+FIfMLHwISWzxTs8xo br3OBR9H+L59s16AcvNg2qHwigNDsrLml3G0wPTwkaIW7uGRM2N51oTtfEM6bLjPG21/ DHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hFmiNWo0G91iiEK+7JWiXhLo72k0jbIE4EIXbsXP1tY=; b=Kh4iW+g0k3iJIvOdXQjEdRetaZYkyh5j3wJetigQDBuVCpMoFqQVI3saaoiT9RGY+6 BmCUmnlBR6kHL8SXKPqRDC2RBrx8NWZ0b/OqlTHtHCDQ17PIAsGSt0F05iq475OSUz9r K0ISj1RB8GC7l8PIB35P62kDMgz3uLr6njc7F8d17l34Zf+ugV0colt4dRqnb5gEewtc ihzSGwEvd6IU4BlbBXkMz5U3vMLVwX7fbNUItwuCZc/yboVakWCd4ZAwLjX5o/xQ+rKw RF8sJ3lC2OQOxbnvBzSoWzPuALy+GN72HmoIKrffY105JtRFaheqJhiOO9S7THWzIAMc dMjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a50a40f000000b0045fca739593si31765878edb.188.2023.01.05.08.14.57; Thu, 05 Jan 2023 08:15:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234692AbjAEQEW (ORCPT + 99 others); Thu, 5 Jan 2023 11:04:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234749AbjAEQED (ORCPT ); Thu, 5 Jan 2023 11:04:03 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D6981AA15; Thu, 5 Jan 2023 08:04:02 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A563F1063; Thu, 5 Jan 2023 08:04:43 -0800 (PST) Received: from R913NWR2.arm.com (unknown [10.163.47.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5B9CC3F71A; Thu, 5 Jan 2023 08:03:58 -0800 (PST) From: Faiz Abbas To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, broonie@kernel.org Cc: lgirdwood@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kuninori.morimoto.gx@renesas.com, Anurag.Koul@arm.com, Deepak.Pandey@arm.com, Faiz Abbas Subject: [PATCH] ASoC: dt-bindings: simple-card: Document simple-audio-card,plat Date: Thu, 5 Jan 2023 21:33:46 +0530 Message-Id: <20230105160346.29018-1-faiz.abbas@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754199831494595200?= X-GMAIL-MSGID: =?utf-8?q?1754199831494595200?= The simple card driver has support for adding cpu, codec and platform nodes with the simple-audio-card prefix. Add documentation for the plat binding. Signed-off-by: Faiz Abbas --- .../bindings/sound/simple-card.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Documentation/devicetree/bindings/sound/simple-card.yaml index ed19899bc94b..fa67c76d4dbb 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.yaml +++ b/Documentation/devicetree/bindings/sound/simple-card.yaml @@ -205,6 +205,8 @@ patternProperties: $ref: "#/definitions/dai" "^simple-audio-card,codec(@[0-9a-f]+)?$": $ref: "#/definitions/dai" + "^simple-audio-card,plat(@[0-9a-f]+)?$": + $ref: "#/definitions/dai" "^simple-audio-card,dai-link(@[0-9a-f]+)?$": description: | @@ -285,6 +287,27 @@ examples: }; }; +#------------------------------- +# single DAI link with platform +#------------------------------- + - | + sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,mclk-fs = <384>; + simple-audio-card,cpu { + sound-dai = <&iofpga_i2s>; + }; + + simple-audio-card,codec { + sound-dai = <&hdmi_tx>; + }; + + simple-audio-card,plat { + sound-dai = <&audio_formatter>; + }; +}; + #-------------------- # Multi DAI links #--------------------