2014-03-17 20:29:55 -06:00
|
|
|
Renesas R-Car sound
|
|
|
|
|
|
|
|
Required properties:
|
2014-11-10 12:00:42 -07:00
|
|
|
- compatible : "renesas,rcar_sound-<soctype>", fallbacks
|
|
|
|
"renesas,rcar_sound-gen1" if generation1, and
|
2014-03-17 20:29:55 -06:00
|
|
|
"renesas,rcar_sound-gen2" if generation2
|
2014-11-10 12:00:42 -07:00
|
|
|
Examples with soctypes are:
|
2015-06-01 04:44:15 -06:00
|
|
|
- "renesas,rcar_sound-r8a7778" (R-Car M1A)
|
2014-11-10 12:00:42 -07:00
|
|
|
- "renesas,rcar_sound-r8a7790" (R-Car H2)
|
|
|
|
- "renesas,rcar_sound-r8a7791" (R-Car M2-W)
|
2014-03-17 20:29:55 -06:00
|
|
|
- reg : Should contain the register physical address.
|
|
|
|
required register is
|
|
|
|
SRU/ADG/SSI if generation1
|
|
|
|
SRU/ADG/SSIU/SSI if generation2
|
2014-03-23 21:29:15 -06:00
|
|
|
- rcar_sound,ssi : Should contain SSI feature.
|
|
|
|
The number of SSI subnode should be same as HW.
|
|
|
|
see below for detail.
|
|
|
|
- rcar_sound,src : Should contain SRC feature.
|
|
|
|
The number of SRC subnode should be same as HW.
|
|
|
|
see below for detail.
|
2014-06-22 18:59:28 -06:00
|
|
|
- rcar_sound,dvc : Should contain DVC feature.
|
|
|
|
The number of DVC subnode should be same as HW.
|
|
|
|
see below for detail.
|
2014-03-23 21:29:15 -06:00
|
|
|
- rcar_sound,dai : DAI contents.
|
|
|
|
The number of DAI subnode should be same as HW.
|
|
|
|
see below for detail.
|
2014-03-17 20:29:55 -06:00
|
|
|
|
|
|
|
SSI subnode properties:
|
|
|
|
- interrupts : Should contain SSI interrupt for PIO transfer
|
|
|
|
- shared-pin : if shared clock pin
|
2014-05-23 00:25:49 -06:00
|
|
|
- pio-transfer : use PIO transfer mode
|
2014-06-22 18:56:23 -06:00
|
|
|
- no-busif : BUSIF is not ussed when [mem -> SSI] via DMA case
|
2015-02-20 03:32:49 -07:00
|
|
|
- dma : Should contain Audio DMAC entry
|
|
|
|
- dma-names : SSI case "rx" (=playback), "tx" (=capture)
|
|
|
|
SSIU case "rxu" (=playback), "txu" (=capture)
|
2014-03-17 20:29:55 -06:00
|
|
|
|
2014-03-23 21:29:15 -06:00
|
|
|
SRC subnode properties:
|
2015-02-20 03:32:49 -07:00
|
|
|
- dma : Should contain Audio DMAC entry
|
|
|
|
- dma-names : "rx" (=playback), "tx" (=capture)
|
|
|
|
|
|
|
|
DVC subnode properties:
|
|
|
|
- dma : Should contain Audio DMAC entry
|
|
|
|
- dma-names : "tx" (=playback/capture)
|
2014-03-23 21:29:15 -06:00
|
|
|
|
2014-03-17 20:29:55 -06:00
|
|
|
DAI subnode properties:
|
|
|
|
- playback : list of playback modules
|
|
|
|
- capture : list of capture modules
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2015-04-27 06:49:09 -06:00
|
|
|
rcar_sound: sound@ec500000 {
|
2014-03-17 20:29:55 -06:00
|
|
|
#sound-dai-cells = <1>;
|
2014-11-10 12:00:42 -07:00
|
|
|
compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2";
|
2014-03-17 20:29:55 -06:00
|
|
|
reg = <0 0xec500000 0 0x1000>, /* SCU */
|
|
|
|
<0 0xec5a0000 0 0x100>, /* ADG */
|
|
|
|
<0 0xec540000 0 0x1000>, /* SSIU */
|
2015-02-20 03:33:09 -07:00
|
|
|
<0 0xec541000 0 0x1280>, /* SSI */
|
|
|
|
<0 0xec740000 0 0x200>; /* Audio DMAC peri peri*/
|
|
|
|
reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
|
2014-03-17 20:29:55 -06:00
|
|
|
|
2015-02-20 03:32:15 -07:00
|
|
|
clocks = <&mstp10_clks R8A7790_CLK_SSI_ALL>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SSI9>, <&mstp10_clks R8A7790_CLK_SSI8>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SSI7>, <&mstp10_clks R8A7790_CLK_SSI6>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SSI5>, <&mstp10_clks R8A7790_CLK_SSI4>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SSI3>, <&mstp10_clks R8A7790_CLK_SSI2>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SSI1>, <&mstp10_clks R8A7790_CLK_SSI0>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_SRC9>, <&mstp10_clks R8A7790_CLK_SCU_SRC8>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_SRC7>, <&mstp10_clks R8A7790_CLK_SCU_SRC6>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>,
|
|
|
|
<&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>,
|
|
|
|
<&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
|
|
|
|
clock-names = "ssi-all",
|
|
|
|
"ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
|
|
|
|
"ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
|
|
|
|
"src.9", "src.8", "src.7", "src.6", "src.5",
|
|
|
|
"src.4", "src.3", "src.2", "src.1", "src.0",
|
|
|
|
"dvc.0", "dvc.1",
|
|
|
|
"clk_a", "clk_b", "clk_c", "clk_i";
|
|
|
|
|
2014-06-22 18:59:28 -06:00
|
|
|
rcar_sound,dvc {
|
2015-02-20 03:32:49 -07:00
|
|
|
dvc0: dvc@0 {
|
|
|
|
dmas = <&audma0 0xbc>;
|
|
|
|
dma-names = "tx";
|
|
|
|
};
|
|
|
|
dvc1: dvc@1 {
|
|
|
|
dmas = <&audma0 0xbe>;
|
|
|
|
dma-names = "tx";
|
|
|
|
};
|
2014-06-22 18:59:28 -06:00
|
|
|
};
|
|
|
|
|
2014-03-17 20:29:55 -06:00
|
|
|
rcar_sound,src {
|
2015-02-20 03:31:55 -07:00
|
|
|
src0: src@0 {
|
|
|
|
interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x85>, <&audma1 0x9a>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src1: src@1 {
|
|
|
|
interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x87>, <&audma1 0x9c>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src2: src@2 {
|
|
|
|
interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x89>, <&audma1 0x9e>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src3: src@3 {
|
|
|
|
interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x8b>, <&audma1 0xa0>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src4: src@4 {
|
|
|
|
interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x8d>, <&audma1 0xb0>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src5: src@5 {
|
|
|
|
interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x8f>, <&audma1 0xb2>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src6: src@6 {
|
|
|
|
interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x91>, <&audma1 0xb4>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src7: src@7 {
|
|
|
|
interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x93>, <&audma1 0xb6>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src8: src@8 {
|
|
|
|
interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x95>, <&audma1 0xb8>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
|
|
|
src9: src@9 {
|
|
|
|
interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x97>, <&audma1 0xba>;
|
|
|
|
dma-names = "rx", "tx";
|
2015-02-20 03:31:55 -07:00
|
|
|
};
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
rcar_sound,ssi {
|
|
|
|
ssi0: ssi@0 {
|
|
|
|
interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi1: ssi@1 {
|
|
|
|
interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi2: ssi@2 {
|
|
|
|
interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi3: ssi@3 {
|
|
|
|
interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi4: ssi@4 {
|
|
|
|
interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi5: ssi@5 {
|
|
|
|
interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi6: ssi@6 {
|
|
|
|
interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi7: ssi@7 {
|
|
|
|
interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi8: ssi@8 {
|
|
|
|
interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
ssi9: ssi@9 {
|
|
|
|
interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
|
2015-02-20 03:32:49 -07:00
|
|
|
dmas = <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>;
|
|
|
|
dma-names = "rx", "tx", "rxu", "txu";
|
2014-03-17 20:29:55 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rcar_sound,dai {
|
|
|
|
dai0 {
|
|
|
|
playback = <&ssi5 &src5>;
|
|
|
|
capture = <&ssi6>;
|
|
|
|
};
|
|
|
|
dai1 {
|
|
|
|
playback = <&ssi3>;
|
|
|
|
};
|
|
|
|
dai2 {
|
|
|
|
capture = <&ssi4>;
|
|
|
|
};
|
|
|
|
dai3 {
|
|
|
|
playback = <&ssi7>;
|
|
|
|
};
|
|
|
|
dai4 {
|
|
|
|
capture = <&ssi8>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|