Merge tag 'arm-defconfig-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / sound / marvell,mmp-sspa.yaml
1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/marvell,mmp-sspa.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Marvel SSPA Digital Audio Interface Bindings
8
9 maintainers:
10   - Lubomir Rintel <lkundrak@v3.sk>
11
12 properties:
13   $nodename:
14     pattern: "^audio-controller(@.*)?$"
15
16   compatible:
17     const: marvell,mmp-sspa
18
19   reg:
20     items:
21       - description: RX block
22       - description: TX block
23
24   interrupts:
25     maxItems: 1
26
27   clocks:
28     items:
29       - description: Clock for the Audio block
30       - description: I2S bit clock
31
32   clock-names:
33     items:
34       - const: audio
35       - const: bitclk
36
37   power-domains:
38     maxItems: 1
39
40   '#sound-dai-cells':
41     const: 0
42
43   dmas:
44     items:
45       - description: TX DMA Channel
46       - description: RX DMA Channel
47
48   dma-names:
49     items:
50       - const: tx
51       - const: rx
52
53   port:
54     $ref: audio-graph-port.yaml#
55     unevaluatedProperties: false
56
57     properties:
58       endpoint:
59         type: object
60
61         properties:
62           dai-format:
63             const: i2s
64
65 required:
66   - "#sound-dai-cells"
67   - compatible
68   - reg
69   - interrupts
70   - clocks
71   - clock-names
72   - dmas
73   - dma-names
74   - port
75
76 additionalProperties: false
77
78 examples:
79   - |
80     #include <dt-bindings/clock/marvell,mmp2.h>
81
82     audio-controller@d42a0c00 {
83       compatible = "marvell,mmp-sspa";
84       reg = <0xd42a0c00 0x30>,
85             <0xd42a0c80 0x30>;
86       interrupts = <2>;
87       clock-names = "audio", "bitclk";
88       clocks = <&soc_clocks 127>,
89                <&audio_clk 1>;
90       #sound-dai-cells = <0>;
91       dmas = <&adma0 0>, <&adma0 1>;
92       dma-names = "tx", "rx";
93       port {
94         endpoint {
95           remote-endpoint = <&rt5631_0>;
96           dai-format = "i2s";
97         };
98       };
99     };
100
101 ...