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