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