summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml
blob: 320f0002649d55575a18c20d805c55c9f9505d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/amlogic,axg-tdm-iface.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Audio TDM Interfaces

maintainers:
  - Jerome Brunet <jbrunet@baylibre.com>

allOf:
  - $ref: dai-common.yaml#

properties:
  compatible:
    const: amlogic,axg-tdm-iface

  "#sound-dai-cells":
    const: 0

  clocks:
    minItems: 2
    items:
      - description: Bit clock
      - description: Sample clock
      - description: Master clock #optional

  clock-names:
    minItems: 2
    items:
      - const: sclk
      - const: lrclk
      - const: mclk

required:
  - compatible
  - "#sound-dai-cells"
  - clocks
  - clock-names

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/axg-audio-clkc.h>

    audio-controller {
        compatible = "amlogic,axg-tdm-iface";
        #sound-dai-cells = <0>;
        clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
                 <&clkc_audio AUD_CLKID_MST_A_LRCLK>,
                 <&clkc_audio AUD_CLKID_MST_A_MCLK>;
        clock-names = "sclk", "lrclk", "mclk";
    };