From patchwork Sun Jul 30 19:02:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 128271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1639086vqg; Sun, 30 Jul 2023 12:44:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWoA9+/2MI3Gf81/g3PQv53FRYx4wFwPNISxMx/vP9IDJqRQXRisBbZEz/zGDb5H22L2uJ X-Received: by 2002:a17:906:114:b0:973:ff8d:2a46 with SMTP id 20-20020a170906011400b00973ff8d2a46mr4904013eje.3.1690746261152; Sun, 30 Jul 2023 12:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690746261; cv=none; d=google.com; s=arc-20160816; b=M2xVTNg1CtneiIKlWysfAhbQviPsvhZ7kfCdlm+Vf1+5ajX/r0k5L6/H2jZ77/Xh3g cSC/FjsobU9AF/M+ioIPRa58U2ORJKHq5fEE+53txfWlcCNzX6Of0L/WqjALl4pDSLtA 2Qrhc9tJqmhCyymiXKHX08yj0ylEjFARTHNq44HCbwUAkB7sofKFNprVw1j8C29qEAi/ v7Nm+UgqbGb4RDopBuhy1zCDV0gRlHvrmAdWSFM/KxO/oU3D8I3bGkjZjdyP3lLNHccu oOFJCQbmST9AN+IIZMXGtRg499o5Aw9p0velRayHA9P0RQ9PlzeX6qfK3LprGosbc+p/ A6jA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s26-20020aa7d79a000000b0052256bd1890si5661408edq.516.2023.07.30.12.43.57; Sun, 30 Jul 2023 12:44:21 -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 S229538AbjG3TDT (ORCPT + 99 others); Sun, 30 Jul 2023 15:03:19 -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_G=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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772848359393343492 X-GMAIL-MSGID: 1772875951661664068 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>; + };