From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 3/3] ARM: shmobile: armadillo: add FSI support for DTS
Date: Thu, 05 Dec 2013 05:09:21 +0000	[thread overview]
Message-ID: <20131205050918.GF12774@verge.net.au> (raw)
In-Reply-To: <87wqjlz9nr.wl%kuninori.morimoto.gx@renesas.com>
On Tue, Dec 03, 2013 at 05:28:59PM -0800, Kuninori Morimoto wrote:
> This patch support FSI-WM8978 with simple audio card
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  .../boot/dts/r8a7740-armadillo800eva-reference.dts |   37 ++++++++++++++++++++
>  1 file changed, 37 insertions(+)
Thanks, I will queue this up.
> 
> diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
> index 7b80f19..6d6fd3d 100644
> --- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
> +++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
> @@ -87,6 +87,24 @@
>  		pinctrl-0 = <&backlight_pins>;
>  		pinctrl-names = "default";
>  	};
> +
> +	sound {
> +		compatible = "simple-audio-card";
> +
> +		simple-audio-card,format = "i2s";
> +
> +		simple-audio-card,cpu {
> +			sound-dai = <&sh_fsi2 0>;
> +			bitclock-inversion;
> +		};
> +
> +		simple-audio-card,codec {
> +			sound-dai = <&wm8978>;
> +			bitclock-master;
> +			frame-master;
> +			system-clock-frequency = <12288000>;
> +		};
> +	};
>  };
>  
>  &i2c0 {
> @@ -100,6 +118,12 @@
>  		pinctrl-names = "default";
>  		gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
>  	};
> +
> +	wm8978: wm8978@1a {
> +		#sound-dai-cells = <0>;
> +		compatible = "wlf,wm8978";
> +		reg = <0x1a>;
> +	};
>  };
>  
>  &pfc {
> @@ -130,6 +154,12 @@
>  		renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
>  		renesas,function = "sdhi0";
>  	};
> +
> +	fsia_pins: sounda {
> +		renesas,groups = "fsia_sclk_in", "fsia_mclk_out",
> +				 "fsia_data_in_1", "fsia_data_out_0";
> +		renesas,function = "fsia";
> +	};
>  };
>  
>  &tpu {
> @@ -156,3 +186,10 @@
>  	cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
>  	status = "okay";
>  };
> +
> +&sh_fsi2 {
> +	pinctrl-0 = <&fsia_pins>;
> +	pinctrl-names = "default";
> +
> +	status = "okay";
> +};
> -- 
> 1.7.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
     prev parent reply	other threads:[~2013-12-05  5:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04  1:28 [PATCH 3/3] ARM: shmobile: armadillo: add FSI support for DTS Kuninori Morimoto
2013-12-05  5:09 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=20131205050918.GF12774@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).