Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5008482rwb; Wed, 21 Sep 2022 01:41:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IL26DlduU1VlaQjjGkDnsmm5/KjoH+sQz0p1PBAo1VSy8n9ojukwqjDbeSYicZD5WzpRb X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr20483980ejb.706.1663749696805; Wed, 21 Sep 2022 01:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663749696; cv=none; d=google.com; s=arc-20160816; b=MnAopIYm0ElEflEXyYLFWRLcdzgVIIcX4MdAUrMqbz85jDbk+Cw5c332YP8+Yrj/CG UU6Jgy3TYTTtuiUhlY2NXxGeVFY3kCfllF+E/XnIPZnKEv3LzZ4+vy/V+75nVrU+R2Wb 01Smcc4LyBsEtsOhsGsxdLg3ML6PPRCMTEjvtoTPI7E+zRYFk2QSvNKcnntn3PJbG55t BLBwjuI2lJfe6l3dIbz4SPqIIdCMuFwydNlPRPO/uSOvYrWFBz3tZLk2K1OJoKxVVKM1 E6BzjfqE3Oy4qbdrTSze7OQdYm3YbNRKtep08Bp2tgbFyh3XmgzWvihiyJmxbGOb88Z3 a8fg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w8KzUewuszzBRNR3DKM4RdYTDxQmFGm6YO23DI5b+0I=; b=hppZZOnyrahsgBbEkn/4eq9OzZW0sE6LWaBAYy/juPX0nrvyJ4f6qGzaFIQ0DQnsKz eT/95u3rzlHg8QZyTP3A9zejp9+4fXd765B2o6j3y05JqkVPQSlIvOAKMcmvtMAQQt9X EF5w+WDHUDxW6DzZo0bRqRaEGrBjLNukytQc8jOZpnGtOG2ZWJB8Cw1Q4EPqSMsrDhnd g5M/f8i2/v9F3bA65A6ea+2qq9kxIU5dOMoMP0G8qb0BMuPWcRQQ7iHRwjxW4BR5kk8z slLqrpzG6Y2WKPk7wUTAmiIijkZeARZnM0nqGvR5yss+rQR6dePXruGlAag8J3f7kUX5 93aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=VhvAd0iQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090658cd00b0078203bcda75si1866096ejs.81.2022.09.21.01.41.08; Wed, 21 Sep 2022 01:41:36 -0700 (PDT) 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; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=VhvAd0iQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbiIUISv (ORCPT + 99 others); Wed, 21 Sep 2022 04:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbiIUISk (ORCPT ); Wed, 21 Sep 2022 04:18:40 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BE5269; Wed, 21 Sep 2022 01:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1663748319; x=1695284319; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w8KzUewuszzBRNR3DKM4RdYTDxQmFGm6YO23DI5b+0I=; b=VhvAd0iQ0k9meYOd0nOV2nS4IsRzKvqGJEDfN+FrtAJy+hsU7wS1l4FH vV2aONp+hkhhF9VEJMcRupyD4RfL47VepVNY+O3rPS61wpQaIzlXoh2hF 7eVGy2ojneOt0AR/SQmz52yiC5Oq2gAoXd0dloQSLKYQE705b/44H9YTa QinJ3NN2/2LJOq4T4GvIJkXrzW5zo4bVFQcPugnwvo4F72xizOh0SoJbU LvOHsgNvKyD/+5GrvHs13vnoVeBq38rh4iGPVYsZo7/HzYHats3kklDhK nd03bbwdG72oTpI2FnjdFaB9AvcCTXlCYYjUHPlMVEmPrvHQ4p0jw5v+V Q==; From: Astrid Rost To: Mark Brown , Liam Girdwood , Krzysztof Kozlowski , Rob Herring , Dylan Reid CC: , , , Astrid Rost , Astrid Rost , Subject: [PATCH v4 1/3] dt-bindings: sound: ti,ts3a227e: convert to yaml Date: Wed, 21 Sep 2022 10:18:32 +0200 Message-ID: <20220921081834.22009-2-astrid.rost@axis.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220921081834.22009-1-astrid.rost@axis.com> References: <20220921081834.22009-1-astrid.rost@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS 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 Convert from ts3a227e.txt to yaml. Signed-off-by: Astrid Rost --- .../bindings/sound/ti,ts3a227e.yaml | 65 +++++++++++++++++++ .../devicetree/bindings/sound/ts3a227e.txt | 30 --------- 2 files changed, 65 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml delete mode 100644 Documentation/devicetree/bindings/sound/ts3a227e.txt diff --git a/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml b/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml new file mode 100644 index 000000000000..327d204cf957 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,ts3a227e.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,ts3a227e.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TS3A227E + Autonomous Audio Accessory Detection and Configuration Switch + +maintainers: + - Dylan Reid + +description: | + The TS3A227E detect headsets of 3-ring and 4-ring standards and + switches automatically to route the microphone correctly. It also + handles key press detection in accordance with the Android audio + headset specification v1.0. + +properties: + compatible: + enum: + - ti,ts3a227e + + reg: + const: 0x3b + + interrupts: + maxItems: 1 + + ti,micbias: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Intended MICBIAS voltage (datasheet section 9.6.7). + enum: + - 0 # 2.1 V + - 1 # 2.2 V + - 2 # 2.3 V + - 3 # 2.4 V + - 4 # 2.5 V + - 5 # 2.6 V + - 6 # 2.7 V + - 7 # 2.8 V + default: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec: audio-controller@3b { + compatible = "ti,ts3a227e"; + reg = <0x3b>; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/sound/ts3a227e.txt b/Documentation/devicetree/bindings/sound/ts3a227e.txt deleted file mode 100644 index 21ab45bc7e8f..000000000000 --- a/Documentation/devicetree/bindings/sound/ts3a227e.txt +++ /dev/null @@ -1,30 +0,0 @@ -Texas Instruments TS3A227E -Autonomous Audio Accessory Detection and Configuration Switch - -The TS3A227E detect headsets of 3-ring and 4-ring standards and -switches automatically to route the microphone correctly. It also -handles key press detection in accordance with the Android audio -headset specification v1.0. - -Required properties: - - - compatible: Should contain "ti,ts3a227e". - - reg: The i2c address. Should contain <0x3b>. - - interrupts: Interrupt number for /INT pin from the 227e - -Optional properies: - - ti,micbias: Intended MICBIAS voltage (datasheet section 9.6.7). - Select 0/1/2/3/4/5/6/7 to specify MICBIAS voltage - 2.1V/2.2V/2.3V/2.4V/2.5V/2.6V/2.7V/2.8V - Default value is "1" (2.2V). - -Examples: - - i2c { - ts3a227e@3b { - compatible = "ti,ts3a227e"; - reg = <0x3b>; - interrupt-parent = <&gpio>; - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; - }; - }; -- 2.20.1