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-va-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
12properties:
13  compatible:
14    enum:
15      - qcom,sc7280-lpass-va-macro
16      - qcom,sm8250-lpass-va-macro
17
18  reg:
19    maxItems: 1
20
21  "#sound-dai-cells":
22    const: 1
23
24  '#clock-cells':
25    const: 0
26
27  clocks:
28    maxItems: 3
29
30  clock-names:
31    items:
32      - const: mclk
33      - const: core
34      - const: dcodec
35
36  clock-output-names:
37    items:
38      - const: fsgen
39
40  power-domains:
41    maxItems: 2
42
43  power-domain-names:
44    items:
45      - const: macro
46      - const: dcodec
47
48  qcom,dmic-sample-rate:
49    description: dmic sample rate
50    $ref: /schemas/types.yaml#/definitions/uint32
51
52  vdd-micb-supply:
53    description: phandle to voltage regulator of MIC Bias
54
55required:
56  - compatible
57  - reg
58  - "#sound-dai-cells"
59
60additionalProperties: false
61
62examples:
63  - |
64    #include <dt-bindings/sound/qcom,q6afe.h>
65    codec@3370000 {
66      compatible = "qcom,sm8250-lpass-va-macro";
67      reg = <0x3370000 0x1000>;
68      #sound-dai-cells = <1>;
69      #clock-cells = <0>;
70      clocks = <&aoncc 0>,
71               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
72               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
73      clock-names = "mclk", "core", "dcodec";
74      clock-output-names = "fsgen";
75      qcom,dmic-sample-rate = <600000>;
76      vdd-micb-supply = <&vreg_s4a_1p8>;
77    };
78