From nobody Fri Jun 19 22:16:37 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2316434EEE8 for ; Tue, 21 Apr 2026 15:46:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776786403; cv=none; b=TMoZKGFYTScm+Fhpn6BS9zwGn6UeLoeL3QKLarc5zwdWa+XZPM3WVjITWKGOKN9TLbk2d4sZAYpB3b5qWX8cWbSErK66BWJh+Ge6yFdiFBsqAjfCNhsUUXPN7DQKSXSvu880BvrvDxkeUHUBPWAaJbpvSxgei38B1v/0VpkIvFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776786403; c=relaxed/simple; bh=KePFdqtxhzIfGgpRbgVIP0PIcNTO7D89nGU8iW1dSUc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bclUDbe3qWIxO4xGHOt6+FNzFJYSh0CJHMtI2a32gAfTlZrfQF5GDFrXVf9dojxRga9gEfcu8AC1Eh05ld7n/X+mJ3Yvd6bMtiqKrzCbOIRrOU2MASMhL9BANNQHIL2kEo3WtC54Cej0mJAnGKg3cLR0nG25YGQb8eW2iMDCEvo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HIpUZy0I; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HIpUZy0I" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488b150559bso34895055e9.1 for ; Tue, 21 Apr 2026 08:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776786398; x=1777391198; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Pm67qKOM3Exkx05WtLYkzfFidvA4Ig/U45KGlldfDxA=; b=HIpUZy0IYUP5lCQy7pxb1J0+f0HavkN8rIbhPtyxSRxmH51G6eY2uFwRUquZtGG8ad wy3sHcNvFMdfgblKKb4GfUnvMk9UoP1oXglPvu6PqLF1duOeYwf4/2IEOd8z8M36M+t9 E7M/Sbyhvnvc5U+AHgQbAZBE/csgyDFUl43giKg6izGvmKJg7OvX9K9OU2Mu/GltX/v6 rsBQZ3Ctq3TgQSx710mgw+rQ9ifI9dYK9w4WLKSp6VL0KGJFom1hT+i1QBEjrihMPhKf GJeUGHWQAQB/Rou9RdbIeqAAKW9S3S10IOU8/JR+/+0eSM9hOWWbqKl9Fv8qfWrs/d9y H5Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776786398; x=1777391198; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Pm67qKOM3Exkx05WtLYkzfFidvA4Ig/U45KGlldfDxA=; b=HzVCvuZSLkE5syqo0y8rxDMhDdvdZvRrikcMXRbufZvtxP/4yBjCWjr5EzNBBeoWBn Ph6aEmlyCmQBFpD+PZLhVCwnSGiHzy81C0OBgRz2cuAK6N+ostWqvI0sW01OvRqtYm+N 3Jl+w0xzyTgvU8di0m/LN0CtDwZyxDb85VcMJBtfZwyg3mABvxUlJneJsndrmlWUf8nE QbRhaAmoQFqfdwXKtxbvEGqZMOr8KuX4d1hV39Sjy+ge0sJAePPoxxFWSLCp7rM7t+yO L6vfNWAM3HHS4VpEv3NUBQ4xV+AnSJ0rcPMwzv1bZTwplbajM2KYk6Dw3Y+2HwS2cf43 bsOA== X-Forwarded-Encrypted: i=1; AFNElJ/SZPdQLhQ8DvJ50v0yWjlFqIcRaiYawWvw4KPzxfowGFpMGHtoqN99sVyXiYK4JvDG3WekFRq48FO+lVQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yzyj/C2EWR8iY67C4ycNnQTggQc2N9CvlbrEzyuLFYA7zJ1kly+ 1JmxQ5lQ6D2N7LOAboGuTRZlRRAQhdnC0lrFIPPIcCNS4K49O9KfYdWA X-Gm-Gg: AeBDieskkSe8IqJTryZieYZH1iXt49+Gqr0fcpd//k3nPrkWUUqITlYjpm1Iho3jA66 n9tSdi0ddtk8dnc5LzZt4beU2bFWCGUcushmRCgb0F98bM28fu0jir+EkLcH/a9hDHUJUPAzdro XzroLNt23QZT3fE7sM8fhFbHYQHxDOCI0ViSgNFQ0rOxcbzO60ZOCpYkSexl694ZJqjbN8reH5v TrQcPqEzL7xJgLyep+sjqqchkdVJSezuvCJkAuhmYkXDoEXZyxwIzQ/PrNF67gjrWHrwKHAtJCq 7kcrIq9LQ54+tNnxxWab3SCA77SVqfIPaHyJCX3IEd/NF8l1kvihi2ig6+FD+FoCDKtt8ZOA2Ni 7QSoU7eUIUp6FdykO+kSq6AsWp45AkC/fy/nMQlbhGOHX1M4Cy1oREttMuMqvM1+2zavnV2XEc8 b2xPquu56SP9JfDYVYk3ZE434k9RTBXw== X-Received: by 2002:a05:600c:4ec6:b0:489:1f98:71e3 with SMTP id 5b1f17b1804b1-4891f987487mr114165495e9.28.1776786397946; Tue, 21 Apr 2026 08:46:37 -0700 (PDT) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4891c318636sm174759655e9.7.2026.04.21.08.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2026 08:46:37 -0700 (PDT) From: Luca Leonardo Scorcia To: linux-sound@vger.kernel.org Cc: Luca Leonardo Scorcia , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] ASoC: dt-bindings: mediatek: Convert mtk-btcvsd-snd to DT Schema Date: Tue, 21 Apr 2026 16:46:07 +0100 Message-ID: <20260421154619.227039-1-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert the mtk-btcvsd-snd.txt DT binding to DT Schema format. Signed-off-by: Luca Leonardo Scorcia --- Changes in v2: - Fixed issues from make dt_binding_check - Set myself as maintainer for the binding .../sound/mediatek,mtk-btcvsd-snd.yaml | 60 +++++++++++++++++++ .../bindings/sound/mtk-btcvsd-snd.txt | 24 -------- 2 files changed, 60 insertions(+), 24 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mtk-bt= cvsd-snd.yaml delete mode 100644 Documentation/devicetree/bindings/sound/mtk-btcvsd-snd.= txt diff --git a/Documentation/devicetree/bindings/sound/mediatek,mtk-btcvsd-sn= d.yaml b/Documentation/devicetree/bindings/sound/mediatek,mtk-btcvsd-snd.ya= ml new file mode 100644 index 000000000000..1ec50c7611df --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mediatek,mtk-btcvsd-snd.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mtk-btcvsd-snd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek ALSA BT SCO CVSD/MSBC Driver + +maintainers: + - Luca Leonardo Scorcia + +properties: + compatible: + const: mediatek,mtk-btcvsd-snd + + reg: + items: + - description: Register location and size of PKV + - description: Register location and size of SRAM_BANK2 + + interrupts: + items: + - description: BT-SCO interrupt + + mediatek,infracfg: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the infracfg controller + + mediatek,offset: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Array of register offsets and masks + items: + - description: infra_misc_offset + - description: infra_conn_bt_cvsd_mask + - description: cvsd_mcu_read_offset + - description: cvsd_mcu_write_offset + - description: cvsd_packet_indicator_offset + +required: + - compatible + - reg + - interrupts + - mediatek,infracfg + - mediatek,offset + +additionalProperties: false + +examples: + - | + #include + #include + + mtk-btcvsd-snd@18000000 { + compatible =3D "mediatek,mtk-btcvsd-snd"; + reg =3D <0x18000000 0x1000>, + <0x18080000 0x8000>; + interrupts =3D ; + mediatek,infracfg =3D <&infrasys>; + mediatek,offset =3D <0xf00 0x800 0xfd0 0xfd4 0xfd8>; + }; diff --git a/Documentation/devicetree/bindings/sound/mtk-btcvsd-snd.txt b/D= ocumentation/devicetree/bindings/sound/mtk-btcvsd-snd.txt deleted file mode 100644 index 679e44839b48..000000000000 --- a/Documentation/devicetree/bindings/sound/mtk-btcvsd-snd.txt +++ /dev/null @@ -1,24 +0,0 @@ -Mediatek ALSA BT SCO CVSD/MSBC Driver - -Required properties: -- compatible =3D "mediatek,mtk-btcvsd-snd"; -- reg: register location and size of PKV and SRAM_BANK2 -- interrupts: should contain BTSCO interrupt -- mediatek,infracfg: the phandles of INFRASYS -- mediatek,offset: Array contains of register offset and mask - infra_misc_offset, - infra_conn_bt_cvsd_mask, - cvsd_mcu_read_offset, - cvsd_mcu_write_offset, - cvsd_packet_indicator_offset - -Example: - - mtk-btcvsd-snd@18000000 { - compatible =3D "mediatek,mtk-btcvsd-snd"; - reg=3D<0 0x18000000 0 0x1000>, - <0 0x18080000 0 0x8000>; - interrupts =3D ; - mediatek,infracfg =3D <&infrasys>; - mediatek,offset =3D <0xf00 0x800 0xfd0 0xfd4 0xfd8>; - }; --=20 2.43.0