Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3388748rwb; Sun, 30 Jul 2023 06:43:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGildNRpCLi0pg050pXnFuQmv6shh9PYaXaUi1qh9cfPp8Auc7C85jNGe7EJsurWH9rfQEp X-Received: by 2002:a17:902:9049:b0:1af:aafb:64c8 with SMTP id w9-20020a170902904900b001afaafb64c8mr6954408plz.21.1690724582657; Sun, 30 Jul 2023 06:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690724582; cv=none; d=google.com; s=arc-20160816; b=kjekp0Cit03raYpBBanelxKwlGU/VLZtNnBTe7rbZulzp/ZwuPP5yhpQ4E/FcUZQOi G+bf0A6Kl69nlqThapubljvWQ5BLwtYFWXQOZ2eM5c32m5cJ6X8ckdsxv9hffrUYCrJB JyuyV8zqmK53PkCUPJeNf94oqU4uEIMAxfD9o3SnK6X/mO5i4Knd/WAycZqN1JUA4hO4 yXV9w8HrAIQbTOXcbPSClVE6MgOeTos4zvkywTHl3fVJfKRpwfj23n83MxpoX0CJg23+ /XndHPT1bOlKnZV9zw7IlGTc6nZ7Lq1VGuVOtPYBnVeWpEKrqzjedOWZOpICp3kEbUYC 8mkg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Ovt4Qpvn4486eU5bed4MB8D25IRv5/81RC376BDybAA=; fh=57UguCK6GjKOoNAMpsI1Pnr10uW8bshiG9stnmR958A=; b=AI0IprHsM99dT17zHJy9rTcwB0Ap0pbMS/sqLc77lzEUkfnLi+LlhyXxL0vN904PjR s9eholsTF2SN6EKOp99Qsg1NjIsjcC8ru7guZPIQwJ3rFnsxzsZf2X9A4g5tdkISsMl6 8Qa6O0RbTHwefc+VUj7QKuKtULu+5oqz9liOHvgasuHLHy8eVE3Ayu2csT1S6KZRx0VZ yC7q4BQy771ARg6DFe0smCePetIqhijcDy8ON3r0Ev9GjvJaBOqbc569+RlIWah0eNkI OWPh6um5mpqn1m4lKpxtPgiAJkWfkdLjLHQSsOYi1rRldG8fjWUSH8fkzebbrJFWefw1 IjhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hQdlEPrk; 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=REJECT dis=NONE) header.from=ixit.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a170902d4d200b001bb6d711625si6149265plg.279.2023.07.30.06.42.49; Sun, 30 Jul 2023 06:43:02 -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 header.i=@ixit.cz header.s=dkim header.b=hQdlEPrk; 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=REJECT dis=NONE) header.from=ixit.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjG3Lwx (ORCPT + 99 others); Sun, 30 Jul 2023 07:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjG3Lww (ORCPT ); Sun, 30 Jul 2023 07:52:52 -0400 Received: from ixit.cz (ip-89-177-23-149.bb.vodafone.cz [89.177.23.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CB68C7; Sun, 30 Jul 2023 04:52:49 -0700 (PDT) Received: from localhost.localdomain (fhswifi.lu.lv [5.179.19.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 0903716048A; Sun, 30 Jul 2023 13:52:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1690717966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Ovt4Qpvn4486eU5bed4MB8D25IRv5/81RC376BDybAA=; b=hQdlEPrkpgDa6aIXfcQWbw2CR+KTbZVVhBkSxutv6kddE9G/tgb7Ma7w2p29tWk60Iqroj KTAaza/AnTQNnE+MNkClBGhSugpdIlJYM50Vk59qgDH4RSaHREppXORX1+xz6PZiiWlAuL u4GHnW34uZAvkrYqRzdwcRDUFnjOdlk= From: David Heidelberg To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , - Cc: David Heidelberg , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2] dt-bindings: sound: gtm601: convert to YAML Date: Sun, 30 Jul 2023 14:51:50 +0300 Message-Id: <20230730115150.38887-1-david@ixit.cz> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS,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: linux-kernel@vger.kernel.org Convert GTM601 binding to the YAML format. Signed-off-by: David Heidelberg Cc: kernel@puri.sm --- v2: - add #sound-dai-cells - put kernel@puri.sm into maintainers .../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../devicetree/bindings/sound/gtm601.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/gtm601.yaml diff --git a/Documentation/devicetree/bindings/sound/gtm601.txt b/Documentation/devicetree/bindings/sound/gtm601.txt deleted file mode 100644 index efa32a486c4a..000000000000 --- a/Documentation/devicetree/bindings/sound/gtm601.txt +++ /dev/null @@ -1,19 +0,0 @@ -GTM601 UMTS modem audio interface CODEC - -This device has no configuration interface. The sample rate and channels are -based on the compatible string - "option,gtm601" = 8kHz mono - "broadmobi,bm818" = 48KHz stereo - -Required properties: - - - compatible : one of - "option,gtm601" - "broadmobi,bm818" - - -Example: - -codec: gtm601_codec { - compatible = "option,gtm601"; -}; diff --git a/Documentation/devicetree/bindings/sound/gtm601.yaml b/Documentation/devicetree/bindings/sound/gtm601.yaml new file mode 100644 index 000000000000..e81a6aa75522 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/gtm601.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/gtm601.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GTM601 UMTS modem audio interface CODEC + +maintainers: + - kernel@puri.sm + +description: > + This device has no configuration interface. The sample rate and channels are + based on the compatible string + +properties: + compatible: + oneOf: + - items: + - const: broadmobi,bm818 + - const: option,gtm601 + - items: + - enum: + - broadmobi,bm818 # 48 kHz stereo + - option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +additionalProperties: false + +examples: + - | + gtm601_codec { + compatible = "option,gtm601"; + }; -- 2.40.1