[PATCH 1/4] ASoC: dt-bindings: xlnx,audio-formatter: add the AXI4-Stream clocks
From: Dhanunjanrao Katta
Date: Wed Nov 25 2026 - 06:49:58 EST
The formatter has four clock inputs. Besides the AXI4-Lite control
clock and the audio master clock, each of the two data movers has its
own AXI4-Stream clock. Only the first two are described, so a device
tree that lists a stream clock fails validation.
The MM2S and S2MM movers are instantiated independently of each other
and a design may have only one of them. Let the third name be either
stream clock, so a capture only design does not have to leave a hole
where the MM2S clock would go.
The descriptions of the two existing clocks are wrong as well.
s_axi_lite_aclk is the control interface clock and not a clock for the
data stream, and aud_mclk is the audio master clock.
While here, move allOf below required to match the layout used by the
other bindings.
Signed-off-by: Dhanunjanrao Katta <katta.dhanunjanrao@xxxxxxx>
---
.../bindings/sound/xlnx,audio-formatter.yaml | 22 +++++++++++++------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/sound/xlnx,audio-formatter.yaml b/Documentation/devicetree/bindings/sound/xlnx,audio-formatter.yaml
index 82fa448bd2e9..a9463f3bf864 100644
--- a/Documentation/devicetree/bindings/sound/xlnx,audio-formatter.yaml
+++ b/Documentation/devicetree/bindings/sound/xlnx,audio-formatter.yaml
@@ -13,9 +13,6 @@ description:
maintainers:
- Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
-allOf:
- - $ref: dai-common.yaml#
-
properties:
compatible:
enum:
@@ -38,15 +35,22 @@ properties:
clock-names:
minItems: 1
+ uniqueItems: true
items:
- const: s_axi_lite_aclk
- const: aud_mclk
+ - enum: [m_axis_mm2s_aclk, s_axis_s2mm_aclk]
+ - const: s_axis_s2mm_aclk
clocks:
minItems: 1
items:
- - description: clock for the axi data stream
- - description: clock for the MEMS microphone data stream
+ - description: AXI4-Lite control interface clock
+ - description: audio master clock
+ - description:
+ AXI4-Stream clock of the MM2S data mover, or of the S2MM data
+ mover in a design that only has the S2MM one
+ - description: AXI4-Stream clock of the S2MM data mover
required:
- compatible
@@ -56,6 +60,9 @@ required:
- clock-names
- clocks
+allOf:
+ - $ref: dai-common.yaml#
+
additionalProperties: false
examples:
@@ -66,7 +73,8 @@ examples:
interrupt-names = "irq_mm2s", "irq_s2mm";
interrupt-parent = <&gic>;
interrupts = <0 104 4>, <0 105 4>;
- clock-names = "s_axi_lite_aclk", "aud_mclk";
- clocks = <&clk 71>, <&clk_wiz_1 0>;
+ clock-names = "s_axi_lite_aclk", "aud_mclk",
+ "m_axis_mm2s_aclk", "s_axis_s2mm_aclk";
+ clocks = <&clk 71>, <&clk_wiz_1 0>, <&clk 72>, <&clk 73>;
};
...
--
2.34.1