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