Skip to content

Commit f133de9

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b165457 commit f133de9

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/qcom,lpass-rx-macro.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: LPASS(Low Power Audio Subsystem) RX Macro audio codec DT bindings
8+
9+
maintainers:
10+
- Srinivas Kandagatla <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: qcom,sm8250-lpass-rx-macro
15+
16+
reg:
17+
maxItems: 1
18+
19+
"#sound-dai-cells":
20+
const: 1
21+
22+
'#clock-cells':
23+
const: 0
24+
25+
clocks:
26+
maxItems: 5
27+
28+
clock-names:
29+
items:
30+
- const: mclk
31+
- const: npl
32+
- const: macro
33+
- const: dcodec
34+
- const: fsgen
35+
36+
clock-output-names:
37+
items:
38+
- const: mclk
39+
40+
required:
41+
- compatible
42+
- reg
43+
- "#sound-dai-cells"
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/sound/qcom,q6afe.h>
50+
codec@3200000 {
51+
compatible = "qcom,sm8250-lpass-rx-macro";
52+
reg = <0x3200000 0x1000>;
53+
#sound-dai-cells = <1>;
54+
#clock-cells = <0>;
55+
clocks = <&audiocc 0>,
56+
<&audiocc 1>,
57+
<&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
58+
<&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
59+
<&vamacro>;
60+
clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
61+
clock-output-names = "mclk";
62+
};

0 commit comments

Comments
 (0)