hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/devicetree/bindings/sound/qcom,q6asm.txt
....@@ -27,13 +27,44 @@
2727 Value type: <u32>
2828 Definition: Must be 1
2929
30
-= EXAMPLE
30
+== ASM DAI is subnode of "dais" and represent a dai, it includes board specific
31
+configuration of each dai. Must contain the following properties.
3132
32
-q6asm@7 {
33
+- reg
34
+ Usage: required
35
+ Value type: <u32>
36
+ Definition: Must be dai id
37
+
38
+- direction:
39
+ Usage: Required for Compress offload dais
40
+ Value type: <u32>
41
+ Definition: Specifies the direction of the dai stream
42
+ Q6ASM_DAI_TX_RX (0) for both tx and rx
43
+ Q6ASM_DAI_TX (1) for only tx (Capture/Encode)
44
+ Q6ASM_DAI_RX (2) for only rx (Playback/Decode)
45
+
46
+- is-compress-dai:
47
+ Usage: Required for Compress offload dais
48
+ Value type: <boolean>
49
+ Definition: present for Compress offload dais
50
+
51
+
52
+= EXAMPLE
53
+#include <dt-bindings/sound/qcom,q6asm.h>
54
+
55
+apr-service@7 {
3356 compatible = "qcom,q6asm";
3457 reg = <APR_SVC_ASM>;
3558 q6asmdai: dais {
3659 compatible = "qcom,q6asm-dais";
60
+ #address-cells = <1>;
61
+ #size-cells = <0>;
3762 #sound-dai-cells = <1>;
63
+
64
+ dai@0 {
65
+ reg = <0>;
66
+ direction = <Q6ASM_DAI_RX>;
67
+ is-compress-dai;
68
+ };
3869 };
3970 };