xref: /linux/Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1*cdff9112SJerome Brunet# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cdff9112SJerome Brunet%YAML 1.2
3*cdff9112SJerome Brunet---
4*cdff9112SJerome Brunet$id: http://devicetree.org/schemas/sound/amlogic,axg-tdm-iface.yaml#
5*cdff9112SJerome Brunet$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cdff9112SJerome Brunet
7*cdff9112SJerome Brunettitle: Amlogic Audio TDM Interfaces
8*cdff9112SJerome Brunet
9*cdff9112SJerome Brunetmaintainers:
10*cdff9112SJerome Brunet  - Jerome Brunet <jbrunet@baylibre.com>
11*cdff9112SJerome Brunet
12*cdff9112SJerome BrunetallOf:
13*cdff9112SJerome Brunet  - $ref: dai-common.yaml#
14*cdff9112SJerome Brunet
15*cdff9112SJerome Brunetproperties:
16*cdff9112SJerome Brunet  compatible:
17*cdff9112SJerome Brunet    const: amlogic,axg-tdm-iface
18*cdff9112SJerome Brunet
19*cdff9112SJerome Brunet  "#sound-dai-cells":
20*cdff9112SJerome Brunet    const: 0
21*cdff9112SJerome Brunet
22*cdff9112SJerome Brunet  clocks:
23*cdff9112SJerome Brunet    minItems: 2
24*cdff9112SJerome Brunet    items:
25*cdff9112SJerome Brunet      - description: Bit clock
26*cdff9112SJerome Brunet      - description: Sample clock
27*cdff9112SJerome Brunet      - description: Master clock # optional
28*cdff9112SJerome Brunet
29*cdff9112SJerome Brunet  clock-names:
30*cdff9112SJerome Brunet    minItems: 2
31*cdff9112SJerome Brunet    items:
32*cdff9112SJerome Brunet      - const: sclk
33*cdff9112SJerome Brunet      - const: lrclk
34*cdff9112SJerome Brunet      - const: mclk
35*cdff9112SJerome Brunet
36*cdff9112SJerome Brunetrequired:
37*cdff9112SJerome Brunet  - compatible
38*cdff9112SJerome Brunet  - "#sound-dai-cells"
39*cdff9112SJerome Brunet  - clocks
40*cdff9112SJerome Brunet  - clock-names
41*cdff9112SJerome Brunet
42*cdff9112SJerome BrunetunevaluatedProperties: false
43*cdff9112SJerome Brunet
44*cdff9112SJerome Brunetexamples:
45*cdff9112SJerome Brunet  - |
46*cdff9112SJerome Brunet    #include <dt-bindings/clock/axg-audio-clkc.h>
47*cdff9112SJerome Brunet
48*cdff9112SJerome Brunet    audio-controller {
49*cdff9112SJerome Brunet        compatible = "amlogic,axg-tdm-iface";
50*cdff9112SJerome Brunet        #sound-dai-cells = <0>;
51*cdff9112SJerome Brunet        clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
52*cdff9112SJerome Brunet                 <&clkc_audio AUD_CLKID_MST_A_LRCLK>,
53*cdff9112SJerome Brunet                 <&clkc_audio AUD_CLKID_MST_A_MCLK>;
54*cdff9112SJerome Brunet        clock-names = "sclk", "lrclk", "mclk";
55*cdff9112SJerome Brunet    };
56