Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3654095rwb; Sun, 30 Jul 2023 12:45:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqozAnrK8ra/ROtI6tZeuwBEYr4dMDBjyZ/RI+dVTaEjTIbSL2xMvx821VcMXmWv55rDMW X-Received: by 2002:a05:6402:1511:b0:522:5957:44e0 with SMTP id f17-20020a056402151100b00522595744e0mr6367366edw.28.1690746319434; Sun, 30 Jul 2023 12:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690746319; cv=none; d=google.com; s=arc-20160816; b=z5HfJ6VBjqZJvbxaURZT0eP4/4TnmlDZ624eH4FJ5kal5AaByjEXWREffgqGDfbr4q P5JatCx/LLQFkwoSotC0ElZn8QXAknjvJqn/6QTVSsus9veDJYsaFtxX8mpV+SsKh1Fn 4nqm691OXMTc0YSQ9CbE+V+bzInhIQMqKsNZ/7g7G9gtfxsMO8OgRGEiMGFYbeLQLMnu pzZjmSjt+2Rl/at1F03SGWUB1KSr5VL+2NlHAQ2ZXLZ/Msf/eNVwseGMSV8elXPW1PRU W+SCVqFp6SSQBNgtj+/F8zkO+loMIu1GigAwSKpTOLEGtJ1wQuossjcA8STYP5UNlTaE OnvQ== 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=6I5dY1NDAxP3uueqRntXqaNhJKdf+j54GnkWtVAQikQ=; fh=u98YNjmyk/xyQkh1sTEb7n4mLe0rIuIpZks55YC5xkc=; b=dpMzuDrejS3DKPWdkW1mxPY7ieo6WNodnsszDLVUwv+xVt7bpClanUbZ7b+gODX8YO DN1Lf7YTRN2+6Mx+HjmQQ1Vr0t5w4PypU8y8Eia7cZPep6XIZZcf57aOWwXwri3DrMV/ xL94pp7yCGDTyuHU/byR9fudGx8Pm98Li4lTxDRwPgzC4y/LjUwWKsczYmy7fjwU6IO8 JnVzfO7+ZweO3SW5JOoRiVe9PHZgq3JuT06RsRSn1/1iCQvOlQ0kwUP4ITV8jlXpYSYd fjReEdjnq1toZRDot254FZmVy33YP1cKGV1Qtz14i/ixETAbPMEbNhSWKJX2YsT39CQz 5D3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hFrusvsM; 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 e4-20020a056402148400b00522216849ebsi2537968edv.280.2023.07.30.12.44.55; Sun, 30 Jul 2023 12:45:19 -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=hFrusvsM; 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 S229622AbjG3TDS (ORCPT + 99 others); Sun, 30 Jul 2023 15:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjG3TDH (ORCPT ); Sun, 30 Jul 2023 15:03:07 -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 33BE9A8; Sun, 30 Jul 2023 12:03:00 -0700 (PDT) Received: from localhost.localdomain (unknown [109.229.201.16]) (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 8427A160182; Sun, 30 Jul 2023 21:02:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1690743778; 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=6I5dY1NDAxP3uueqRntXqaNhJKdf+j54GnkWtVAQikQ=; b=hFrusvsMKQ98O5mhlAvxGyQOMQ7JGoQZt0fCOPWSGpBRTjbb4p78UFG8U9uHSUn/QLMn69 Upn62YFUYCWRyGjJ7mVRZUlxCQYX/wcC0lhJbOgRwiP33dxhwFkfljjX3sWUvQ3xPw2KML i5QePacRD2EVHePQW15ipRsd5QadHOk= From: David Heidelberg To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , - Cc: =?UTF-8?q?Guido=20G=C3=BCnther?= , David Heidelberg , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] dt-bindings: sound: gtm601: convert to YAML Date: Sun, 30 Jul 2023 22:02:41 +0300 Message-Id: <20230730190243.113105-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 --- v3: - incorporated feedback from Krzysztof v2: - add #sound-dai-cells - put kernel@puri.sm into maintainers .../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../bindings/sound/option,gtm601.yaml | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/option,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/option,gtm601.yaml b/Documentation/devicetree/bindings/sound/option,gtm601.yaml new file mode 100644 index 000000000000..9a70d20eb30d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/option,gtm601.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/option,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: # 48 kHz stereo + - const: broadmobi,bm818 + - const: option,gtm601 + - const: option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +allOf: + - $ref: dai-common.yaml# + +additionalProperties: false + +examples: + - | + codec { + compatible = "option,gtm601"; + #sound-dai-cells = <0>; + }; -- 2.40.1