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
12properties:
13  compatible:
14    const: qcom,sm8250-lpass-wsa-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: 5
27
28  clock-names:
29    items:
30      - const: mclk
31      - const: npl
32      - const: macro
33      - const: dcodec
34      - const: fsgen
35
36  clock-output-names:
37    items:
38      - const: mclk
39
40  qcom,dmic-sample-rate:
41    description: dmic sample rate
42    $ref: /schemas/types.yaml#/definitions/uint32
43
44  vdd-micb-supply:
45    description: phandle to voltage regulator of MIC Bias
46
47required:
48  - compatible
49  - reg
50  - "#sound-dai-cells"
51
52additionalProperties: false
53
54examples:
55  - |
56    #include <dt-bindings/sound/qcom,q6afe.h>
57    codec@3240000 {
58      compatible = "qcom,sm8250-lpass-wsa-macro";
59      reg = <0x3240000 0x1000>;
60      #sound-dai-cells = <1>;
61      #clock-cells = <0>;
62      clocks = <&audiocc 1>,
63               <&audiocc 0>,
64               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
65               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
66               <&vamacro>;
67      clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
68      clock-output-names = "mclk";
69    };
70