public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema
@ 2026-04-24 21:03 Manish Baing
  2026-04-28  7:05 ` Krzysztof Kozlowski
  2026-04-28  8:01 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Manish Baing @ 2026-04-24 21:03 UTC (permalink / raw)
  To: lgirdwood, broonie, robh, krzk+dt, conor+dt
  Cc: matthias.bgg, angelogioacchino.delregno, kaichieh.chuang,
	linux-sound, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, manishbaing2789

Convert MediaTek MT6351 Audio CODEC bindings from text format to
YAML schema to enable dtbs_check validation.

Signed-off-by: Manish Baing <manishbaing2789@gmail.com>
---
 .../bindings/sound/mediatek,mt6351-sound.yaml | 32 +++++++++++++++++++
 .../devicetree/bindings/sound/mt6351.txt      | 16 ----------
 2 files changed, 32 insertions(+), 16 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt6351-sound.yaml
 delete mode 100644 Documentation/devicetree/bindings/sound/mt6351.txt

diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt6351-sound.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt6351-sound.yaml
new file mode 100644
index 000000000000..f9fab8962325
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/mediatek,mt6351-sound.yaml
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/mediatek,mt6351-sound.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek MT6351 Audio CODEC
+
+maintainers:
+  - KaiChieh Chuang <kaichieh.chuang@mediatek.com>
+
+description:
+  MT6351 Audio CODEC is a part of the MediaTek MT6351 PMIC.
+  It communicates with the SoC through the MediaTek PMIC wrapper(pwrap).
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    const: mediatek,mt6351-sound
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    sound {
+       compatible = "mediatek,mt6351-sound";
+    };
diff --git a/Documentation/devicetree/bindings/sound/mt6351.txt b/Documentation/devicetree/bindings/sound/mt6351.txt
deleted file mode 100644
index 7fb2cb99245e..000000000000
--- a/Documentation/devicetree/bindings/sound/mt6351.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-Mediatek MT6351 Audio Codec
-
-The communication between MT6351 and SoC is through Mediatek PMIC wrapper.
-For more detail, please visit Mediatek PMIC wrapper documentation.
-
-Must be a child node of PMIC wrapper.
-
-Required properties:
-
-- compatible : "mediatek,mt6351-sound".
-
-Example:
-
-mt6351_snd {
-	compatible = "mediatek,mt6351-sound";
-};
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema
  2026-04-24 21:03 [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema Manish Baing
@ 2026-04-28  7:05 ` Krzysztof Kozlowski
  2026-04-28  8:01 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-04-28  7:05 UTC (permalink / raw)
  To: Manish Baing
  Cc: lgirdwood, broonie, robh, krzk+dt, conor+dt, matthias.bgg,
	angelogioacchino.delregno, kaichieh.chuang, linux-sound,
	devicetree, linux-kernel, linux-arm-kernel, linux-mediatek

On Fri, Apr 24, 2026 at 09:03:02PM +0000, Manish Baing wrote:
> +description:
> +  MT6351 Audio CODEC is a part of the MediaTek MT6351 PMIC.
> +  It communicates with the SoC through the MediaTek PMIC wrapper(pwrap).
> +
> +allOf:
> +  - $ref: dai-common.yaml#
> +
> +properties:
> +  compatible:
> +    const: mediatek,mt6351-sound
> +
> +required:
> +  - compatible
> +
> +additionalProperties: false

This should be unevaluatedProperties and you probably miss here
sound-dai-cells, but this is semi-abandoned incomplete device without
users, so pretty does not matter. Conversion to DT schema also does not
matter that much. :/

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema
  2026-04-24 21:03 [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema Manish Baing
  2026-04-28  7:05 ` Krzysztof Kozlowski
@ 2026-04-28  8:01 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-04-28  8:01 UTC (permalink / raw)
  To: lgirdwood, robh, krzk+dt, conor+dt, Manish Baing
  Cc: matthias.bgg, angelogioacchino.delregno, kaichieh.chuang,
	linux-sound, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek

On Fri, 24 Apr 2026 21:03:02 +0000, Manish Baing wrote:
> ASoC: dt-bindings: mediatek,mt6351: convert to DT schema

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.2

Thanks!

[1/1] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema
      https://git.kernel.org/broonie/asoc/c/0770899ca192

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-29  4:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 21:03 [PATCH] ASoC: dt-bindings: mediatek,mt6351: convert to DT schema Manish Baing
2026-04-28  7:05 ` Krzysztof Kozlowski
2026-04-28  8:01 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox