[alsa-devel] Forward: [PATCH 11/11] ASoC: rsnd: add DeviceTree support

Ben Dooks ben at trinity.fluff.org
Mon Mar 10 15:52:54 CET 2014


On Tue, Mar 04, 2014 at 10:39:03PM -0800, Kuninori Morimoto wrote:
> 
> I didn't add device tree ML on this patch.
> Forward it.
> 

Date: Mon, 03 Mar 2014 20:51:29 -0800 (PST)
Message-ID: <87r46izhv5.wl%kuninori.morimoto.gx at gmail.com>
From: Kuninori Morimoto <kuninori.morimoto.gx at gmail.com>
Subject: [PATCH 11/11] ASoC: rsnd: add DeviceTree support
User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0
To: Mark Brown <broonie at kernel.org>
Cc: Linux-ALSA <alsa-devel at alsa-project.org>,
	Liam Girdwood <lgirdwood at gmail.com>,
	Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>,
	Simon <horms at verge.net.au>
In-Reply-To: <878usq1scd.wl%kuninori.morimoto.gx at gmail.com>
References: <87d2ib90t9.wl%kuninori.morimoto.gx at gmail.com>
	<878usq1scd.wl%kuninori.morimoto.gx at gmail.com>
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
> 
> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> 
> Support for loading the Renesas R-Car sound driver via DeviceTree.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> ---
>  .../devicetree/bindings/sound/renesas,rsnd.txt     |  101 ++++++++++++++++
>  sound/soc/sh/rcar/adg.c                            |    1 +
>  sound/soc/sh/rcar/core.c                           |  122 +++++++++++++++++++-
>  sound/soc/sh/rcar/gen.c                            |   15 +++
>  sound/soc/sh/rcar/rsnd.h                           |   11 ++
>  sound/soc/sh/rcar/src.c                            |   36 ++++++
>  sound/soc/sh/rcar/ssi.c                            |   56 +++++++++
>  7 files changed, 339 insertions(+), 3 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> 
> diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> new file mode 100644
> index 0000000..1b64225
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> @@ -0,0 +1,101 @@
> +Renesas R-Car sound
> +
> +Required properties:
> +- compatible			: "renesas,rcar_sound-gen1" if generation1
> +				  "renesas,rcar_sound-gen2" if generation2
> +- reg				: Should contain the register physical address.
> +				  required register is
> +				   SRU/ADG/SSI      if generation1
> +				   SRU/ADG/SSIU/SSI if generation2
> +- rcar_sound,ssi		: SSI subnode
> +- rcar_sound,scu		: SCU subnode
> +- rcar_sound,dai		: DAI subnode
> +
> +SSI subnode properties:
> +- interrupt-parent		: Should contain SSI interrup parent
> +- interrupts			: Should contain SSI interrupt for PIO transfer
> +- shared-pin			: if shared clock pin
> +
> +DAI subnode properties:
> +- playback			: list of playback modules
> +- capture			: list of capture  modules
> +
> +Example:
> +
> +rcar_sound: rcar_sound at 0xffd90000 {
> +	#sound-dai-cells = <1>;
> +	compatible = "renesas,rcar_sound";
> +	reg =	<0xffd90000 0x1000>, /* SRU */
> +		<0xfffe0000 0x24>,   /* ADG */
> +		<0xffd91000 0x1240>; /* SSI */
> +
> +	rcar_sound,src {
> +		src0: src at 0 { };
> +		src1: src at 1 { };
> +		src2: src at 2 { };
> +		src3: src at 3 { };
> +		src4: src at 4 { };
> +		src5: src at 5 { };
> +		src6: src at 6 { };
> +		src7: src at 7 { };
> +		src8: src at 8 { };
> +	};
> +
> +	rcar_sound,ssi {
> +		ssi0: ssi at 0 {
> +			interrupt-parent = <&gic>;
> +			interrupts = <0 101 0x4>;

I thought interrupt parent was not required for the gic interrupts
in the system?


-- 
Ben Dooks, ben at fluff.org, http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.



More information about the Alsa-devel mailing list