Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp670635rwn; Thu, 15 Sep 2022 05:00:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7woE/AMvRqtXymeZckPmzLR5UYoURN9bARCVgjadYI6rkqHGQCdHPZWUw63ysMkpp+d8S0 X-Received: by 2002:a05:6a00:22c7:b0:544:bbf0:8780 with SMTP id f7-20020a056a0022c700b00544bbf08780mr16952938pfj.80.1663243213615; Thu, 15 Sep 2022 05:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663243213; cv=none; d=google.com; s=arc-20160816; b=uC69VVDddIEyD5HhRqG9d2UkzaUMpX9fJv2UhdMYjkhZCIU5V4X2QBS0UihoPEgM/C H1k63D/Mjj+z9pWTUN7rm9IQjC2YKyhE94MVLQ5XrAOW5aexPmwyyfdg6bN+3TrS85t4 TlCOvmH9OnhtIyOJS1D3+TpXHmdm3H49oRqC+7rtKzp61xAJqXIXzv941z+Y6J2OGrj2 TKDbCZkZrXeMXZEQsUN25WH/dKZ6SkIxzT5cJ0iYoobtjNWVT2/UcuYyQUohbvN4iXoJ 6QQNP35HFCT8bms5hb1i3y+HgtxnjW90pyXxMM/zoEZQP0LUCRCs0U/Dd0Nd/mmh5wKh 4Iog== 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=q7H5ypMruUoIfTG08+A5et2lb9798ejAy9cXwmsde80=; b=1K81aB2JxnpYMzgIiYRDyXnO8XSXgBW1PlT2hcUz8ngtLUr0DYGjydzlh4fVNc69l6 V7h0EpxKOBP6oSAnAiff0Jjx9ChKeHBqNW3eulB01kSo5i6kYqRB+STUA+XWfr5A9c+y 7Vm8nFHej184pCRzvNAedwPD9pV50tDIwOyVbRaz7O3XDwpgzZYBilJo//yfDYM+qOC8 JDslBGzb87oysk7fD5acYe0Tzidu4tl385xXImRJXTPJ9ex+hIEEBkKUKbDDOWUbK7ed Wbd8Faf0kpuLF3FaPGXaATMRDizfd9C2JyzAik2jd3BvqyaApEfhGFhlwQuOzuqPV86D tSGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=dmi6Gy28; 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 w6-20020a056a0014c600b005381dd35d73si14752862pfu.357.2022.09.15.05.00.01; Thu, 15 Sep 2022 05:00:13 -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=dmi6Gy28; 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 S229853AbiIOLkJ (ORCPT + 99 others); Thu, 15 Sep 2022 07:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiIOLkC (ORCPT ); Thu, 15 Sep 2022 07:40:02 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E1F303F5; Thu, 15 Sep 2022 04:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1663242001; x=1694778001; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q7H5ypMruUoIfTG08+A5et2lb9798ejAy9cXwmsde80=; b=dmi6Gy28lTJrtX7hOVz+8U9u2o01j4fGIT4H3bJ9BxmziEjk+9jH5aqE gwZqZPbGExAtGo1MnExqmf3k/zoKne4y17JFuZRT3cXYNybRQYAPsd5uT MVI8e3h7pHBPaOMplYNL+eq5f7DC2eyyzSCLMImoawTIo4Kw93hXSoS+H tov47dMbHrmbHADkIvkOTJiAqbZKttkCEskLx+oT3R3MDHpMUPjwjtgqe SB/9OleqkNK7Vmgcg2FoscDA1niIjAw8uTATum91cr/kkSvz0Cp8/aSC0 OOUKFdMZ6o46KDs3IefaXjOjjFX9wNGp0iNqv+9qRzQ6aXhL1gb1GsjFv Q==; From: Astrid Rost To: Mark Brown , Liam Girdwood , Krzysztof Kozlowski , Dylan Reid , Rob Herring CC: , , , Astrid Rost , Astrid Rost , Subject: [PATCH v2 1/3] dt-bindings: sound: ts3a227e: convert to yaml Date: Thu, 15 Sep 2022 13:39:53 +0200 Message-ID: <20220915113955.22521-2-astrid.rost@axis.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220915113955.22521-1-astrid.rost@axis.com> References: <20220915113955.22521-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 --- .../devicetree/bindings/sound/ts3a227e.txt | 30 -------- .../devicetree/bindings/sound/ts3a227e.yaml | 69 +++++++++++++++++++ 2 files changed, 69 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/ts3a227e.txt create mode 100644 Documentation/devicetree/bindings/sound/ts3a227e.yaml 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>; - }; - }; diff --git a/Documentation/devicetree/bindings/sound/ts3a227e.yaml b/Documentation/devicetree/bindings/sound/ts3a227e.yaml new file mode 100644 index 000000000000..3512b1f1e32b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ts3a227e.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/sound/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: + description: I2C address of the device. + const: 0x3b + + interrupts: + maxItems: 1 + description: | + Interrupt number for /INT pin from the ts3a227e. + + 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: 2 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + codec: ts3a227e@3b { + compatible = "ti,ts3a227e"; + reg = <0x3b>; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + }; + }; + +... -- 2.20.1