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