ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
ASoC simple SCU Sound Card
|
2015-03-26 12:01:27 +08:00
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
Simple-Card specifies audio DAI connections of SoC <-> codec.
|
2015-03-26 12:01:27 +08:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- compatible : "simple-scu-audio-card"
|
|
|
|
"renesas,rsrc-card"
|
2016-08-23 09:33:57 +08:00
|
|
|
|
2015-03-26 12:01:27 +08:00
|
|
|
Optional properties:
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,name : User specified audio sound card name, one string
|
2015-03-26 12:01:27 +08:00
|
|
|
property.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,cpu : CPU sub-node
|
|
|
|
- simple-audio-card,codec : CODEC sub-node
|
2015-03-26 12:01:27 +08:00
|
|
|
|
|
|
|
Optional subnode properties:
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,format : CPU/CODEC common audio format.
|
2015-03-26 12:01:27 +08:00
|
|
|
"i2s", "right_j", "left_j" , "dsp_a"
|
|
|
|
"dsp_b", "ac97", "pdm", "msb", "lsb"
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,frame-master : Indicates dai-link frame master.
|
2015-03-26 12:01:27 +08:00
|
|
|
phandle to a cpu or codec subnode.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,bitclock-master : Indicates dai-link bit clock master.
|
2015-03-26 12:01:27 +08:00
|
|
|
phandle to a cpu or codec subnode.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,bitclock-inversion : bool property. Add this if the
|
2015-03-26 12:01:27 +08:00
|
|
|
dai-link uses bit clock inversion.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,frame-inversion : bool property. Add this if the
|
2015-03-26 12:01:27 +08:00
|
|
|
dai-link uses frame clock inversion.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
- simple-audio-card,convert-rate : platform specified sampling rate convert
|
|
|
|
- simple-audio-card,convert-channels : platform specified converted channel size (2 - 8 ch)
|
|
|
|
- simple-audio-card,prefix : see audio-routing
|
|
|
|
- simple-audio-card,routing : A list of the connections between audio components.
|
2015-07-15 15:08:05 +08:00
|
|
|
Each entry is a pair of strings, the first being the connection's sink,
|
|
|
|
the second being the connection's source. Valid names for sources.
|
|
|
|
use audio-prefix if some components is using same sink/sources naming.
|
|
|
|
it can be used if compatible was "renesas,rsrc-card";
|
2015-03-26 12:01:27 +08:00
|
|
|
|
|
|
|
Required CPU/CODEC subnodes properties:
|
|
|
|
|
|
|
|
- sound-dai : phandle and port of CPU/CODEC
|
|
|
|
|
|
|
|
Optional CPU/CODEC subnodes properties:
|
|
|
|
|
|
|
|
- clocks / system-clock-frequency : specify subnode's clock if needed.
|
|
|
|
it can be specified via "clocks" if system has
|
|
|
|
clock node (= common clock), or "system-clock-frequency"
|
|
|
|
(if system doens't support common clock)
|
|
|
|
If a clock is specified, it is
|
|
|
|
enabled with clk_prepare_enable()
|
|
|
|
in dai startup() and disabled with
|
|
|
|
clk_disable_unprepare() in dai
|
|
|
|
shutdown().
|
|
|
|
|
2016-08-25 09:58:10 +08:00
|
|
|
Example 1. Sampling Rate Covert
|
2015-03-26 12:01:27 +08:00
|
|
|
|
|
|
|
sound {
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
compatible = "simple-scu-audio-card";
|
2015-03-26 12:01:27 +08:00
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
simple-audio-card,name = "rsnd-ak4643";
|
|
|
|
simple-audio-card,format = "left_j";
|
|
|
|
simple-audio-card,format = "left_j";
|
|
|
|
simple-audio-card,bitclock-master = <&sndcodec>;
|
|
|
|
simple-audio-card,frame-master = <&sndcodec>;
|
2015-03-26 12:01:27 +08:00
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
simple-audio-card,convert-rate = <48000>; /* see audio_clk_a */
|
|
|
|
|
|
|
|
simple-audio-card,prefix = "ak4642";
|
|
|
|
simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
|
|
|
|
"DAI0 Capture", "ak4642 Capture";
|
|
|
|
|
|
|
|
sndcpu: simple-audio-card,cpu {
|
2015-03-26 12:01:27 +08:00
|
|
|
sound-dai = <&rcar_sound>;
|
|
|
|
};
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 09:34:43 +08:00
|
|
|
sndcodec: simple-audio-card,codec {
|
2015-03-26 12:01:27 +08:00
|
|
|
sound-dai = <&ak4643>;
|
|
|
|
system-clock-frequency = <11289600>;
|
|
|
|
};
|
|
|
|
};
|
2016-08-25 09:58:10 +08:00
|
|
|
|
|
|
|
Example 2. 2 CPU 1 Codec
|
|
|
|
|
|
|
|
sound {
|
|
|
|
compatible = "renesas,rsrc-card";
|
|
|
|
|
|
|
|
card-name = "rsnd-ak4643";
|
|
|
|
format = "left_j";
|
|
|
|
bitclock-master = <&dpcmcpu>;
|
|
|
|
frame-master = <&dpcmcpu>;
|
|
|
|
|
|
|
|
convert-rate = <48000>; /* see audio_clk_a */
|
|
|
|
|
|
|
|
audio-prefix = "ak4642";
|
|
|
|
audio-routing = "ak4642 Playback", "DAI0 Playback",
|
|
|
|
"ak4642 Playback", "DAI1 Playback";
|
|
|
|
|
|
|
|
dpcmcpu: cpu@0 {
|
|
|
|
sound-dai = <&rcar_sound 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
sound-dai = <&rcar_sound 1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
codec {
|
|
|
|
sound-dai = <&ak4643>;
|
|
|
|
clocks = <&audio_clock>;
|
|
|
|
};
|
|
|
|
};
|