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-tx-macro.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: LPASS(Low Power Audio Subsystem) TX Macro audio codec DT bindings
8
9maintainers:
10  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11
12properties:
13  compatible:
14    const: qcom,sm8250-lpass-tx-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
44required:
45  - compatible
46  - reg
47  - "#sound-dai-cells"
48
49additionalProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/sound/qcom,q6afe.h>
54    codec@3220000 {
55      compatible = "qcom,sm8250-lpass-tx-macro";
56      reg = <0x3220000 0x1000>;
57      #sound-dai-cells = <1>;
58      #clock-cells = <0>;
59      clocks = <&aoncc 0>,
60               <&aoncc 1>,
61               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
62               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
63               <&vamacro>;
64      clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
65      clock-output-names = "mclk";
66      qcom,dmic-sample-rate = <600000>;
67    };
68