From patchwork Wed Aug 10 01:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Flax X-Patchwork-Id: 596546 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49B96C19F2D for ; Wed, 10 Aug 2022 01:44:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbiHJBoR (ORCPT ); Tue, 9 Aug 2022 21:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbiHJBny (ORCPT ); Tue, 9 Aug 2022 21:43:54 -0400 X-Greylist: delayed 514 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 09 Aug 2022 18:43:52 PDT Received: from dev.flatmax.com (41.68.233.220.static.exetel.com.au [220.233.68.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED04D6FA2A for ; Tue, 9 Aug 2022 18:43:52 -0700 (PDT) Received: by dev.flatmax.com (Postfix, from userid 1000) id 572C33846DF8; Wed, 10 Aug 2022 11:35:12 +1000 (AEST) From: Matt Flax To: devicetree@vger.kernel.org Cc: broonie@kernel.org, alsa-devel@alsa-project.org, Matt Flax Subject: [PATCH] ASoC: codecs: dt bind. doc for the new TI SRC4392 codec Date: Wed, 10 Aug 2022 11:35:02 +1000 Message-Id: <20220810013502.1544961-1-flatmax@flatmax.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Matt Flax --- .../devicetree/bindings/sound/src4xxx.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/src4xxx.yaml diff --git a/Documentation/devicetree/bindings/sound/src4xxx.yaml b/Documentation/devicetree/bindings/sound/src4xxx.yaml new file mode 100644 index 000000000000..0d9dcac2a067 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/src4xxx.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/src4xxx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments SRC4392 Device Tree Bindings + +description: | + The SRC4392 is a digital audio codec that can be connected via + I2C or SPI. Currently, only I2C bus is supported. + +maintainers: + - Mark Brown + +allOf: + - $ref: name-prefix.yaml# + +properties: + compatible: + const: ti,src4392 + + "#sound-dai-cells": + const: 0 + + reg: + description: + The I2C address of the device + maxItems: 1 + +required: + - "#sound-dai-cells" + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + src4392@70 { + #sound-dai-cells = <0>; + compatible = "ti,src4392"; + reg = <0x70>; + }; + }; +...