From patchwork Wed Aug 10 22:12:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Flax X-Patchwork-Id: 1665379 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4M34233jsrz9s5W for ; Thu, 11 Aug 2022 08:12:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbiHJWMz (ORCPT ); Wed, 10 Aug 2022 18:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbiHJWMz (ORCPT ); Wed, 10 Aug 2022 18:12:55 -0400 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 3802D832DC for ; Wed, 10 Aug 2022 15:12:54 -0700 (PDT) Received: by dev.flatmax.com (Postfix, from userid 1000) id 0E2EC3846DF8; Thu, 11 Aug 2022 08:12:51 +1000 (AEST) From: Matt Flax To: devicetree@vger.kernel.org Cc: broonie@kernel.org, alsa-devel@alsa-project.org, Matt Flax Subject: [PATCH v2] ASoC: codecs: dt bind. doc for the new TI SRC4392 codec Date: Thu, 11 Aug 2022 08:12:32 +1000 Message-Id: <20220810221232.1596488-1-flatmax@flatmax.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: devicetree@vger.kernel.org Signed-off-by: Matt Flax --- Notes: v2: * Added myself as the maintainer .../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..368bb4ba1a77 --- /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: + - Matt Flax + +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>; + }; + }; +...