xref: /linux/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*32f7b910SJerome Brunet# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*32f7b910SJerome Brunet%YAML 1.2
3*32f7b910SJerome Brunet---
4*32f7b910SJerome Brunet$id: http://devicetree.org/schemas/sound/amlogic,axg-spdifout.yaml#
5*32f7b910SJerome Brunet$schema: http://devicetree.org/meta-schemas/core.yaml#
6*32f7b910SJerome Brunet
7*32f7b910SJerome Brunettitle: Amlogic Audio AXG SPDIF Output
8*32f7b910SJerome Brunet
9*32f7b910SJerome Brunetmaintainers:
10*32f7b910SJerome Brunet  - Jerome Brunet <jbrunet@baylibre.com>
11*32f7b910SJerome Brunet
12*32f7b910SJerome Brunetproperties:
13*32f7b910SJerome Brunet  compatible:
14*32f7b910SJerome Brunet    oneOf:
15*32f7b910SJerome Brunet      - const: amlogic,axg-spdifout
16*32f7b910SJerome Brunet      - items:
17*32f7b910SJerome Brunet          - enum:
18*32f7b910SJerome Brunet              - amlogic,g12a-spdifout
19*32f7b910SJerome Brunet              - amlogic,sm1-spdifout
20*32f7b910SJerome Brunet          - const: amlogic,axg-spdifout
21*32f7b910SJerome Brunet
22*32f7b910SJerome Brunet  reg:
23*32f7b910SJerome Brunet    maxItems: 1
24*32f7b910SJerome Brunet
25*32f7b910SJerome Brunet  "#sound-dai-cells":
26*32f7b910SJerome Brunet    const: 0
27*32f7b910SJerome Brunet
28*32f7b910SJerome Brunet  clocks:
29*32f7b910SJerome Brunet    items:
30*32f7b910SJerome Brunet      - description: Peripheral clock
31*32f7b910SJerome Brunet      - description: SPDIF output master clock
32*32f7b910SJerome Brunet
33*32f7b910SJerome Brunet  clock-names:
34*32f7b910SJerome Brunet    items:
35*32f7b910SJerome Brunet      - const: pclk
36*32f7b910SJerome Brunet      - const: mclk
37*32f7b910SJerome Brunet
38*32f7b910SJerome Brunet  resets:
39*32f7b910SJerome Brunet    maxItems: 1
40*32f7b910SJerome Brunet
41*32f7b910SJerome Brunetrequired:
42*32f7b910SJerome Brunet  - compatible
43*32f7b910SJerome Brunet  - reg
44*32f7b910SJerome Brunet  - "#sound-dai-cells"
45*32f7b910SJerome Brunet  - clocks
46*32f7b910SJerome Brunet  - clock-names
47*32f7b910SJerome Brunet
48*32f7b910SJerome BrunetallOf:
49*32f7b910SJerome Brunet  - $ref: dai-common.yaml#
50*32f7b910SJerome Brunet
51*32f7b910SJerome Brunet  - if:
52*32f7b910SJerome Brunet      properties:
53*32f7b910SJerome Brunet        compatible:
54*32f7b910SJerome Brunet          contains:
55*32f7b910SJerome Brunet            enum:
56*32f7b910SJerome Brunet              - amlogic,g12a-spdifout
57*32f7b910SJerome Brunet              - amlogic,sm1-spdifout
58*32f7b910SJerome Brunet    then:
59*32f7b910SJerome Brunet      required:
60*32f7b910SJerome Brunet        - resets
61*32f7b910SJerome Brunet
62*32f7b910SJerome Brunet    else:
63*32f7b910SJerome Brunet      properties:
64*32f7b910SJerome Brunet        resets: false
65*32f7b910SJerome Brunet
66*32f7b910SJerome BrunetunevaluatedProperties: false
67*32f7b910SJerome Brunet
68*32f7b910SJerome Brunetexamples:
69*32f7b910SJerome Brunet  - |
70*32f7b910SJerome Brunet    #include <dt-bindings/clock/axg-audio-clkc.h>
71*32f7b910SJerome Brunet
72*32f7b910SJerome Brunet    audio-controller@480 {
73*32f7b910SJerome Brunet        compatible = "amlogic,axg-spdifout";
74*32f7b910SJerome Brunet        reg = <0x480 0x50>;
75*32f7b910SJerome Brunet        #sound-dai-cells = <0>;
76*32f7b910SJerome Brunet        clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
77*32f7b910SJerome Brunet                 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
78*32f7b910SJerome Brunet        clock-names = "pclk", "mclk";
79*32f7b910SJerome Brunet    };
80