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    enum:
15      - qcom,sc7280-lpass-tx-macro
16      - qcom,sm8250-lpass-tx-macro
17
18  reg:
19    maxItems: 1
20
21  "#sound-dai-cells":
22    const: 1
23
24  '#clock-cells':
25    const: 0
26
27  clocks:
28    maxItems: 5
29
30  clock-names:
31    items:
32      - const: mclk
33      - const: npl
34      - const: macro
35      - const: dcodec
36      - const: fsgen
37
38  clock-output-names:
39    items:
40      - const: mclk
41
42  power-domains:
43    maxItems: 2
44
45  power-domain-names:
46    items:
47      - const: macro
48      - const: dcodec
49
50  qcom,dmic-sample-rate:
51    description: dmic sample rate
52    $ref: /schemas/types.yaml#/definitions/uint32
53
54required:
55  - compatible
56  - reg
57  - "#sound-dai-cells"
58
59additionalProperties: false
60
61examples:
62  - |
63    #include <dt-bindings/sound/qcom,q6afe.h>
64    codec@3220000 {
65      compatible = "qcom,sm8250-lpass-tx-macro";
66      reg = <0x3220000 0x1000>;
67      #sound-dai-cells = <1>;
68      #clock-cells = <0>;
69      clocks = <&aoncc 0>,
70               <&aoncc 1>,
71               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
72               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
73               <&vamacro>;
74      clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
75      clock-output-names = "mclk";
76      qcom,dmic-sample-rate = <600000>;
77    };
78