From: Charan Pedumuru <charan.pedumuru@gmail.com>
To: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Charan Pedumuru <charan.pedumuru@gmail.com>
Subject: [PATCH] ASoC: dt-bindings: ti,omap4-dmic: Convert TI OMAP4+ DMIC binding to YAML
Date: Tue, 30 Jun 2026 12:25:49 +0000 [thread overview]
Message-ID: <20260630-ti-dmic-v1-1-9e4400230266@gmail.com> (raw)
Convert the ti,omap4-dmic text binding to DT schema format for
validation with dt_binding_check and dtbs_check.
Changes during conversion:
- dtbs_check flagged reg-names, dmas, and dma-names as undocumented
on all four in-tree omap5 boards using this compatible (cm-t54,
igep0050, sbc-t54, uevm)
- Add these as required properties to reflect actual hardware usage,
since the original text binding was incomplete
- Drop ti,hwmods from required, as it is a legacy property tied to
the OMAP hwmod framework and is not mandatory for DT schema
validation going forward
- Update the example to exercise all newly documented properties so
the schema validates cleanly against real board DTS files
Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
---
.../devicetree/bindings/sound/omap-dmic.txt | 20 -------
.../devicetree/bindings/sound/ti,omap4-dmic.yaml | 68 ++++++++++++++++++++++
2 files changed, 68 insertions(+), 20 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/omap-dmic.txt b/Documentation/devicetree/bindings/sound/omap-dmic.txt
deleted file mode 100644
index 418e30e72e89..000000000000
--- a/Documentation/devicetree/bindings/sound/omap-dmic.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-* Texas Instruments OMAP4+ Digital Microphone Module
-
-Required properties:
-- compatible: "ti,omap4-dmic"
-- reg: Register location and size as an array:
- <MPU access base address, size>,
- <L3 interconnect address, size>;
-- interrupts: Interrupt number for DMIC
-- ti,hwmods: Name of the hwmod associated with OMAP dmic IP
-
-Example:
-
-dmic: dmic@4012e000 {
- compatible = "ti,omap4-dmic";
- reg = <0x4012e000 0x7f>, /* MPU private access */
- <0x4902e000 0x7f>; /* L3 Interconnect */
- interrupts = <0 114 0x4>;
- interrupt-parent = <&gic>;
- ti,hwmods = "dmic";
-};
diff --git a/Documentation/devicetree/bindings/sound/ti,omap4-dmic.yaml b/Documentation/devicetree/bindings/sound/ti,omap4-dmic.yaml
new file mode 100644
index 000000000000..4719ac48238e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ti,omap4-dmic.yaml
@@ -0,0 +1,68 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/ti,omap4-dmic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments OMAP4+ Digital Microphone Module
+
+maintainers:
+ - Peter Ujfalusi <peter.ujfalusi@ti.com>
+
+description:
+ The OMAP4+ Digital Microphone (DMIC) controller captures audio from
+ up to three stereo digital microphone pairs over an I2S-like
+ interface and transfers the resulting PCM data to memory via DMA.
+ The controller exposes two register regions, one for MPU-private
+ control and status access and one for the L3 interconnect side
+ used for data transfer, and is found on OMAP4, OMAP5 and DRA7xx
+ family SoCs.
+
+properties:
+ compatible:
+ const: ti,omap4-dmic
+
+ reg:
+ maxItems: 2
+
+ reg-names:
+ items:
+ - const: mpu
+ - const: dma
+
+ interrupts:
+ maxItems: 1
+
+ ti,hwmods:
+ description: Name of the hwmod associated with OMAP DMIC IP.
+ const: dmic
+
+ dmas:
+ maxItems: 1
+
+ dma-names:
+ const: up_link
+
+required:
+ - reg
+ - compatible
+ - reg-names
+ - interrupts
+ - dmas
+ - dma-names
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ dmic@4012e000 {
+ compatible = "ti,omap4-dmic";
+ reg = <0x4012e000 0x7f>, /* MPU private access */
+ <0x4902e000 0x7f>; /* L3 Interconnect */
+ reg-names = "mpu", "dma";
+ interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
+ dmas = <&sdma 67>;
+ dma-names = "up_link";
+ ti,hwmods = "dmic";
+ };
---
base-commit: 7de6ae9e12207ec146f2f3f1e58d1a99317e88bc
change-id: 20260630-ti-dmic-09ef117f987b
Best regards,
--
Charan Pedumuru <charan.pedumuru@gmail.com>
next reply other threads:[~2026-06-30 12:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 12:25 Charan Pedumuru [this message]
2026-07-10 21:59 ` [PATCH] ASoC: dt-bindings: ti,omap4-dmic: Convert TI OMAP4+ DMIC binding to YAML Rob Herring (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260630-ti-dmic-v1-1-9e4400230266@gmail.com \
--to=charan.pedumuru@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=peter.ujfalusi@ti.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox