From patchwork Sun Jul 30 19:17:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 128270 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1639044vqg; Sun, 30 Jul 2023 12:44:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7M9MWW9/nUmkDQ87gSetjb1CeFOvIC/jVUnpn73SyOLzBP8QyyFbLi6xqjjtI8C4GX4XB X-Received: by 2002:a17:906:73d1:b0:98e:419b:4cc6 with SMTP id n17-20020a17090673d100b0098e419b4cc6mr4984956ejl.70.1690746247709; Sun, 30 Jul 2023 12:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690746247; cv=none; d=google.com; s=arc-20160816; b=gdWyvW8DG8zbhg60XTW7sVehGsPYW5ejL6BNTCJpw+wqtQf3a6cqlmpgHqfU/C6/YP itRnbhsMmx0/I5w0AXhqdJs4kHgrQ/1+eUYhSCHTNWygC7DL/mtN1c9FhUCMU7Zn57+f EZ08q4bQ7LTNCtfgm75tgPEhVvpEsiiCc0eZvqfaEGkytboZIGyniNEaQQwuHiLpDmJ3 i5JucWdVPkA/KZB08aFD+HkkKHIynaTuH4wl/46rO0bqXMVRLoLkuxekMpcJ9fzEELCr 8fSwxd7aEguSGBji+Dr9cjm7fCFrjd6JhcRLE09EsRtDcZTmcU21kECV2JmqnRqbAdo2 PPbA== 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=3aOPsjffh/SZ8DSz9NQq8wU6zCLorZ+W6HEizruykBA=; fh=u98YNjmyk/xyQkh1sTEb7n4mLe0rIuIpZks55YC5xkc=; b=coLkmuByJq6Rpl6cl5JSjyYBCpKetMUfAAvL7z+MwycM4feY5r51q5i2pQG5tvSxyQ NGhrvbbOIT8gIvMC7esdeWxuVBHFFYkSdlmaY4evo1A8yFBcDolbCtHZ5hyZ20JU0SUX oUZQIyIkrhDX71SnFai6JtgXCc+/tQg0VyyR5qlDScJ5E4hBn3E7oIxcg+Evo9JXemZF V4mTzvSaWUNlnUCtMpykVzZwXdCjRFvR8N8ixvvJ0Nl/w9oGP9iF8EK6XJdmWKQ8ijsB MyZj0m++o/d95k38NepfM87i5uwNkIKXodC/E2lqj1g4GVNxk/AHGalY2b6HZEIh7WMA uh9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hMzo+8at; 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 w8-20020a1709067c8800b0099351214a88si6391015ejo.637.2023.07.30.12.43.44; Sun, 30 Jul 2023 12:44:07 -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=hMzo+8at; 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 S229541AbjG3TSB (ORCPT + 99 others); Sun, 30 Jul 2023 15:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjG3TSA (ORCPT ); Sun, 30 Jul 2023 15:18:00 -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 345EE10FC; Sun, 30 Jul 2023 12:17:58 -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 A85B816030F; Sun, 30 Jul 2023 21:17:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1690744676; 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=3aOPsjffh/SZ8DSz9NQq8wU6zCLorZ+W6HEizruykBA=; b=hMzo+8atehS9KdSyf9rsFlF4AxG4g6wYI+DGKOMJzZVaArpnDkyJJh6J7AuxUh/bbE7mVa xKBPnsary/Em2b1eG8gGJNkmyHXs1nmFgQ7icZzg7w6NS5tB+o3Dv7TS4C07mivD84hdki GGJJebcJV+NIcUfB3ip9YLgsoFgIvCg= 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 v4] dt-bindings: sound: gtm601: convert to YAML Date: Sun, 30 Jul 2023 22:17:42 +0300 Message-Id: <20230730191742.117013-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: 1772875937704628474 X-GMAIL-MSGID: 1772875937704628474 Convert GTM601 binding to the YAML format. Signed-off-by: David Heidelberg Reviewed-by: Krzysztof Kozlowski --- v4: - added missing required property 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 | 40 +++++++++++++++++++ 2 files changed, 40 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..69c2ccc79dc5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/option,gtm601.yaml @@ -0,0 +1,40 @@ +# 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 + +required: + - compatible + +allOf: + - $ref: dai-common.yaml# + +additionalProperties: false + +examples: + - | + codec { + compatible = "option,gtm601"; + #sound-dai-cells = <0>; + };