GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / sound / qcom,lpass-wsa-macro.yaml
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-wsa-macro.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: LPASS(Low Power Audio Subsystem) VA Macro audio codec DT bindings
8
9 maintainers:
10   - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11
12 properties:
13   compatible:
14     enum:
15       - qcom,sc7280-lpass-wsa-macro
16       - qcom,sm8250-lpass-wsa-macro
17       - qcom,sm8450-lpass-wsa-macro
18       - qcom,sc8280xp-lpass-wsa-macro
19
20   reg:
21     maxItems: 1
22
23   "#sound-dai-cells":
24     const: 1
25
26   '#clock-cells':
27     const: 0
28
29   clocks:
30     maxItems: 5
31
32   clock-names:
33     items:
34       - const: mclk
35       - const: npl
36       - const: macro
37       - const: dcodec
38       - const: fsgen
39
40   clock-output-names:
41     items:
42       - const: mclk
43
44   qcom,dmic-sample-rate:
45     description: dmic sample rate
46     $ref: /schemas/types.yaml#/definitions/uint32
47
48   vdd-micb-supply:
49     description: phandle to voltage regulator of MIC Bias
50
51 required:
52   - compatible
53   - reg
54   - "#sound-dai-cells"
55
56 additionalProperties: false
57
58 examples:
59   - |
60     #include <dt-bindings/sound/qcom,q6afe.h>
61     codec@3240000 {
62       compatible = "qcom,sm8250-lpass-wsa-macro";
63       reg = <0x3240000 0x1000>;
64       #sound-dai-cells = <1>;
65       #clock-cells = <0>;
66       clocks = <&audiocc 1>,
67                <&audiocc 0>,
68                <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
69                <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
70                <&vamacro>;
71       clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
72       clock-output-names = "mclk";
73     };