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      - qcom,sm8450-lpass-va-macro
18      - qcom,sc8280xp-lpass-va-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: 3
31
32  clock-names:
33    oneOf:
34      - items:   #for ADSP based platforms
35          - const: mclk
36          - const: core
37          - const: dcodec
38      - items:   #for ADSP bypass based platforms
39          - const: mclk
40
41  clock-output-names:
42    items:
43      - const: fsgen
44
45  power-domains:
46    maxItems: 2
47
48  power-domain-names:
49    items:
50      - const: macro
51      - const: dcodec
52
53  qcom,dmic-sample-rate:
54    description: dmic sample rate
55    $ref: /schemas/types.yaml#/definitions/uint32
56
57  vdd-micb-supply:
58    description: phandle to voltage regulator of MIC Bias
59
60required:
61  - compatible
62  - reg
63  - "#sound-dai-cells"
64
65additionalProperties: false
66
67examples:
68  - |
69    #include <dt-bindings/sound/qcom,q6afe.h>
70    codec@3370000 {
71      compatible = "qcom,sm8250-lpass-va-macro";
72      reg = <0x3370000 0x1000>;
73      #sound-dai-cells = <1>;
74      #clock-cells = <0>;
75      clocks = <&aoncc 0>,
76               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
77               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
78      clock-names = "mclk", "core", "dcodec";
79      clock-output-names = "fsgen";
80      qcom,dmic-sample-rate = <600000>;
81      vdd-micb-supply = <&vreg_s4a_1p8>;
82    };
83