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