* [PATCH] dt-bindings: sound: Convert TI DA830 EVM audio to DT schema
@ 2026-08-11 9:17 Eduard Bostina
0 siblings, 0 replies; only message in thread
From: Eduard Bostina @ 2026-08-11 9:17 UTC (permalink / raw)
To: Conor Dooley, devicetree, Eduard Bostina, Krzysztof Kozlowski,
Liam Girdwood, linux-kernel, linux-sound, Mark Brown, Rob Herring
Cc: daniel.baluta, simona.toaca, goledhruva, m-chawdhry
Convert the Texas Instruments DA830 EVM audio complex bindings
to DT schema.
Signed-off-by: Eduard Bostina <egbostina@gmail.com>
---
.../bindings/sound/davinci-evm-audio.txt | 49 -----------
.../bindings/sound/ti,da830-evm-audio.yaml | 83 +++++++++++++++++++
2 files changed, 83 insertions(+), 49 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/davinci-evm-audio.txt
create mode 100644 Documentation/devicetree/bindings/sound/ti,da830-evm-audio.yaml
diff --git a/Documentation/devicetree/bindings/sound/davinci-evm-audio.txt b/Documentation/devicetree/bindings/sound/davinci-evm-audio.txt
deleted file mode 100644
index 963e100514c2..000000000000
--- a/Documentation/devicetree/bindings/sound/davinci-evm-audio.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-* Texas Instruments SoC audio setups with TLV320AIC3X Codec
-
-Required properties:
-- compatible : "ti,da830-evm-audio" : forDM365/DA8xx/OMAPL1x/AM33xx
-- ti,model : The user-visible name of this sound complex.
-- ti,audio-codec : The phandle of the TLV320AIC3x audio codec
-- ti,mcasp-controller : The phandle of the McASP controller
-- ti,audio-routing : A list of the connections between audio components.
- Each entry is a pair of strings, the first being the connection's sink,
- the second being the connection's source. Valid names for sources and
- sinks are the codec's pins, and the jacks on the board:
-
-Optional properties:
-- ti,codec-clock-rate : The Codec Clock rate (in Hz) applied to the Codec.
-- clocks : Reference to the master clock
-- clock-names : The clock should be named "mclk"
-- Either codec-clock-rate or the codec-clock reference has to be defined. If
- the both are defined the driver attempts to set referenced clock to the
- defined rate and takes the rate from the clock reference.
-
- Board connectors:
-
- * Headphone Jack
- * Line Out
- * Mic Jack
- * Line In
-
-
-Example:
-
-sound {
- compatible = "ti,da830-evm-audio";
- ti,model = "DA830 EVM";
- ti,audio-codec = <&tlv320aic3x>;
- ti,mcasp-controller = <&mcasp1>;
- ti,codec-clock-rate = <12000000>;
- ti,audio-routing =
- "Headphone Jack", "HPLOUT",
- "Headphone Jack", "HPROUT",
- "Line Out", "LLOUT",
- "Line Out", "RLOUT",
- "MIC3L", "Mic Bias 2V",
- "MIC3R", "Mic Bias 2V",
- "Mic Bias 2V", "Mic Jack",
- "LINE1L", "Line In",
- "LINE2L", "Line In",
- "LINE1R", "Line In",
- "LINE2R", "Line In";
-};
diff --git a/Documentation/devicetree/bindings/sound/ti,da830-evm-audio.yaml b/Documentation/devicetree/bindings/sound/ti,da830-evm-audio.yaml
new file mode 100644
index 000000000000..b4a1cf67582b
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ti,da830-evm-audio.yaml
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/ti,da830-evm-audio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments SoC audio setups with TLV320AIC3X Codec
+
+maintainers:
+ - Eduard Bostina <egbostina@gmail.com>
+
+properties:
+ compatible:
+ const: ti,da830-evm-audio
+
+ ti,model:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: The user-visible name of this sound complex.
+
+ ti,audio-codec:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: The phandle of the TLV320AIC3x audio codec
+
+ ti,mcasp-controller:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: The phandle of the McASP controller
+
+ ti,audio-routing:
+ $ref: /schemas/types.yaml#/definitions/non-unique-string-array
+ description:
+ A list of the connections between audio components. Each entry is a
+ pair of strings, the first being the connection's sink, the second
+ being the connection's source. Valid names for sources and sinks
+ are the codec's pins, and the jacks on the board (Headphone Jack,
+ Line Out, Mic Jack, Line In).
+
+ ti,codec-clock-rate:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: The Codec Clock rate (in Hz) applied to the Codec.
+
+ clocks:
+ maxItems: 1
+ description: Reference to the master clock
+
+ clock-names:
+ const: mclk
+
+required:
+ - compatible
+ - ti,model
+ - ti,audio-codec
+ - ti,mcasp-controller
+ - ti,audio-routing
+
+anyOf:
+ - required:
+ - ti,codec-clock-rate
+ - required:
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ sound {
+ compatible = "ti,da830-evm-audio";
+ ti,model = "DA830 EVM";
+ ti,audio-codec = <&tlv320aic3x>;
+ ti,mcasp-controller = <&mcasp1>;
+ ti,codec-clock-rate = <12000000>;
+ ti,audio-routing =
+ "Headphone Jack", "HPLOUT",
+ "Headphone Jack", "HPROUT",
+ "Line Out", "LLOUT",
+ "Line Out", "RLOUT",
+ "MIC3L", "Mic Bias 2V",
+ "MIC3R", "Mic Bias 2V",
+ "Mic Bias 2V", "Mic Jack",
+ "LINE1L", "Line In",
+ "LINE2L", "Line In",
+ "LINE1R", "Line In",
+ "LINE2R", "Line In";
+ };
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-11 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 9:17 [PATCH] dt-bindings: sound: Convert TI DA830 EVM audio to DT schema Eduard Bostina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox