Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sound / renesas,rsnd.txt
1 Renesas R-Car sound
2
3 Required properties:
4 - compatible                    : "renesas,rcar_sound-gen1" if generation1
5                                   "renesas,rcar_sound-gen2" if generation2
6 - reg                           : Should contain the register physical address.
7                                   required register is
8                                    SRU/ADG/SSI      if generation1
9                                    SRU/ADG/SSIU/SSI if generation2
10 - rcar_sound,ssi                : Should contain SSI feature.
11                                   The number of SSI subnode should be same as HW.
12                                   see below for detail.
13 - rcar_sound,src                : Should contain SRC feature.
14                                   The number of SRC subnode should be same as HW.
15                                   see below for detail.
16 - rcar_sound,dai                : DAI contents.
17                                   The number of DAI subnode should be same as HW.
18                                   see below for detail.
19
20 SSI subnode properties:
21 - interrupts                    : Should contain SSI interrupt for PIO transfer
22 - shared-pin                    : if shared clock pin
23
24 SRC subnode properties:
25 no properties at this point
26
27 DAI subnode properties:
28 - playback                      : list of playback modules
29 - capture                       : list of capture  modules
30
31 Example:
32
33 rcar_sound: rcar_sound@0xffd90000 {
34         #sound-dai-cells = <1>;
35         compatible = "renesas,rcar_sound-gen2";
36         reg =   <0 0xec500000 0 0x1000>, /* SCU */
37                 <0 0xec5a0000 0 0x100>,  /* ADG */
38                 <0 0xec540000 0 0x1000>, /* SSIU */
39                 <0 0xec541000 0 0x1280>; /* SSI */
40
41         rcar_sound,src {
42                 src0: src@0 { };
43                 src1: src@1 { };
44                 src2: src@2 { };
45                 src3: src@3 { };
46                 src4: src@4 { };
47                 src5: src@5 { };
48                 src6: src@6 { };
49                 src7: src@7 { };
50                 src8: src@8 { };
51                 src9: src@9 { };
52         };
53
54         rcar_sound,ssi {
55                 ssi0: ssi@0 {
56                         interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
57                 };
58                 ssi1: ssi@1 {
59                         interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
60                 };
61                 ssi2: ssi@2 {
62                         interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
63                 };
64                 ssi3: ssi@3 {
65                         interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
66                 };
67                 ssi4: ssi@4 {
68                         interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
69                 };
70                 ssi5: ssi@5 {
71                         interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
72                 };
73                 ssi6: ssi@6 {
74                         interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
75                 };
76                 ssi7: ssi@7 {
77                         interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
78                 };
79                 ssi8: ssi@8 {
80                         interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
81                 };
82                 ssi9: ssi@9 {
83                         interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
84                 };
85         };
86
87         rcar_sound,dai {
88                 dai0 {
89                         playback = <&ssi5 &src5>;
90                         capture  = <&ssi6>;
91                 };
92                 dai1 {
93                         playback = <&ssi3>;
94                 };
95                 dai2 {
96                         capture  = <&ssi4>;
97                 };
98                 dai3 {
99                         playback = <&ssi7>;
100                 };
101                 dai4 {
102                         capture  = <&ssi8>;
103                 };
104         };
105 };