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