Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2393276rwb; Mon, 19 Sep 2022 04:38:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5dPgLdlVKj+UGlwquwskq9xEwcvflyfUcvivkvbVcCh/qUKPb1JSuNrEMEVwLIGAP00AHW X-Received: by 2002:a17:907:75dc:b0:730:9c68:9a2e with SMTP id jl28-20020a17090775dc00b007309c689a2emr12697800ejc.22.1663587490636; Mon, 19 Sep 2022 04:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663587490; cv=none; d=google.com; s=arc-20160816; b=YzHbaTSRSW5KUuLVd6T8xIlTzbIPRou50xOxNXyRFcSkJx/O4UeLPyoxJRLEfpzAqi tmb7+gjffI8r3eE5GTO1+x/goCyvpUoBfyOXWjcr+yksYD0al9bZhEANA6IHmbNMZZ0Y fU+rRvEA4bI90z975QlJU9dc5s6XAPF3NHaa7cqrNTOc8IyLrwxCV+rWWTqUstVVTxNv D61ny0ys6SZf9f/C3hZwOuaG00Mf0tgf3X9jSp4qofRfVqVfgE8c+xvM62+YTHowGn01 HLRiyWIV/Fq8GMcUE0lsxWrfoRHfnGGAUO9d2IfT6f30supK5olzuzM/F+AuacaHgQG1 xZDg== 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=nRbKMyucXH45XfzmahgfT9/hl4jDv+tUHA6qLnLDUgim6MlHROqls4oaMVY0dv4QwW kUi4yCl+WzGkVR7vvWqzm4ZmcAISdTeURgTygBLhzk1bzNeh9ETMoCrP59TiEfMVMIkq vxoxG29PnCA1jX0QPEsYArlHR6DESbVlotKPG+LRCEh2HnxgUTy1+RDwkpW7AU5AGRsi H+J1wzDfV7aGVsGRg2msSxhFdMjAocx4UMFfES2ZXsV2CmYlrplQ2NhfLDd2SHp+RxBZ hCcIZKhFmpjUxaAOiukqJvRqRPwnas/MZhVg7weEu0X4L9bjCV8O/ULNH0j1xJOkPwAx EtQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=oGtsfIhP; 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 oz13-20020a170906cd0d00b0077d854aa10dsi15402953ejb.57.2022.09.19.04.37.45; Mon, 19 Sep 2022 04:38:10 -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=oGtsfIhP; 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 S230043AbiISLNP (ORCPT + 99 others); Mon, 19 Sep 2022 07:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiISLNI (ORCPT ); Mon, 19 Sep 2022 07:13:08 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56DA513F7D; Mon, 19 Sep 2022 04:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1663585986; x=1695121986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w8KzUewuszzBRNR3DKM4RdYTDxQmFGm6YO23DI5b+0I=; b=oGtsfIhPDp3triA2iIVJf1ksiz9+MP8PLdTfi6h3JlYvM1x+qAPXPbyY e0TjI+2ICpAUxfCvAXwfSer3xTCYA6k2tNyTeIdL0vSvpZo5/eMrNzE1p BaApGdaBtppzV6UdZWSoKW0Bh99dFDLc+FdvcoYS2FDdImqDN5YjQeREv tpTbkF/YFiwi5bdopQCVXjdXbydebOv42u4HAVJ/ZjMPMFp8qxnUDZfRN 5VbBaVL96hFnzibeZr317dU+F1dRkEF8pqKyS2Ro393HJwXV5tZUtN5Vb cIHLuHdVPRuqtOW8Kjtf3/5lq70t10E3HP9LSBdJaSbrVx1h6HH08R6OE w==; From: Astrid Rost To: Mark Brown , Liam Girdwood , Krzysztof Kozlowski , Rob Herring , Dylan Reid CC: , , , Astrid Rost , Astrid Rost , Subject: [PATCH v3 1/3] dt-bindings: sound: ti,ts3a227e: convert to yaml Date: Mon, 19 Sep 2022 13:12:56 +0200 Message-ID: <20220919111258.3774-2-astrid.rost@axis.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220919111258.3774-1-astrid.rost@axis.com> References: <20220919111258.3774-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