Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2385526pxb; Sun, 31 Oct 2021 14:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycRmD0YPFuuQJN6tA08LMr7/D7uJtsfBYcADDSviCcdPHYFZmeiHx/lL13yioKpvuEZokA X-Received: by 2002:a05:6402:27d3:: with SMTP id c19mr35564438ede.70.1635716591420; Sun, 31 Oct 2021 14:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635716591; cv=none; d=google.com; s=arc-20160816; b=uYnsugOuBSwNHb4TBFqJG0b9/hJ8drivTfABSoc5fZ3B1rCTOsgxPQtM0ZuPKLSG/u Bg08a1fmGMV0XtU8D0ScfqIOtSMqI4r6W0Dml+AqXs+EJp+GPROoaDUjoPyKFzxLxv3m eDfFxKzaZ3s7EI3oRebqF/qT3UsxWXdrQDIZIrnmWioBH6UOyyozQUjvdCMbJ7kLqHfg yXoGZxZryaIkOCbbD8A3LDvHzqMI6X29bAwUe8XFtva99Qm9pg2LJjj2V/77SZv4WCYg cRsWoN6pcZ3lA9TFNsjg6dJNFGG07LrpEYF6WLT8Q2b+MMNCLcWknO74zKaa6dtNy7sY WXAQ== 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=FR7paib0uEl/sED3/mdXPaDr+eojob1hVhc0mmDwmaQ=; b=NpgqgcZTTnQTQYywugwErA+W5fKREdu3ZXG5hjQqJ6NcGxUWVFYZhJbULA09WWswXM HnLOEFsWFaFBcwusfrjuo1F6uArTNBECF+Jb43wgVW/qQwXlhg4Kam3PG/237SMkrILn h0CfRzmjMJxJ1QuImy4pjN01+IEgIUPOuUL+lpK/vg4E9WpdVDCTU/AP6Dmy7ono/UOS sPAfCmjchOE75TB6OvtrM69aU3kkv+r9xJ2l/Ivmpnk9LpLg4nu2773DQbMYHyJPFhTe /wXDgae8/ZThybWLh4HBpT+egeMksGapYemjxExU1dusgXbZnFGc5+k38woOqniz2M+T 5muw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=V7deDvKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si14399384edv.121.2021.10.31.14.42.48; Sun, 31 Oct 2021 14:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=V7deDvKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230125AbhJaVnj (ORCPT + 99 others); Sun, 31 Oct 2021 17:43:39 -0400 Received: from ixit.cz ([94.230.151.217]:43194 "EHLO ixit.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbhJaVnj (ORCPT ); Sun, 31 Oct 2021 17:43:39 -0400 Received: from localhost.localdomain (ip-89-176-96-70.net.upcbroadband.cz [89.176.96.70]) (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 48A1823D91; Sat, 30 Oct 2021 14:17:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1635596277; 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=FR7paib0uEl/sED3/mdXPaDr+eojob1hVhc0mmDwmaQ=; b=V7deDvKAoAijgrcoJYKl84VyHZiVhsRr/EbyTU+Raf8Ldt5fnxv7Rd6cOSnf/c7fLtjuzB IKp886hB2PJZHV5oHefoS7ikPAEDRcIt9pdhhMSKNw5tLzI3dkS++bwkRnKdPv7afAYzg8 /JRelF4Jl4yPQep3mYblWWcf4PxA8B4= From: David Heidelberg To: Liam Girdwood , Mark Brown , Rob Herring , - Cc: ~okias/devicetree@lists.sr.ht, phone-devel@vger.kernel.org, David Heidelberg , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: sound: gtm601: convert to YAML Date: Sat, 30 Oct 2021 14:17:52 +0200 Message-Id: <20211030121753.50191-1-david@ixit.cz> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert GTM601 binding to the YAML format. Signed-off-by: David Heidelberg --- 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.33.0