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