From patchwork Tue Mar 25 04:37:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3885261 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D42F19F2B6 for ; Tue, 25 Mar 2014 04:37:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 070A1201F2 for ; Tue, 25 Mar 2014 04:37:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F39E2013A for ; Tue, 25 Mar 2014 04:37:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751055AbaCYEhW (ORCPT ); Tue, 25 Mar 2014 00:37:22 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:49132 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751023AbaCYEhW (ORCPT ); Tue, 25 Mar 2014 00:37:22 -0400 Received: by mail-pb0-f54.google.com with SMTP id ma3so6369570pbc.41 for ; Mon, 24 Mar 2014 21:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=HuHfXac3PZGA0MKUbmInuIRI5H0nvp+uD0iKTBCB3Yk=; b=rOg8ZBuwTw4qn6lK7kb6RHC+toRU82DRZSztMOb3r6kzWfZl5VpbpVQgUwEfXtmeJX DzX2YfpneYpDuu87pvQ8MCrLpspejLhl/YkigtCp0z5BsCUrfqaFrIYYBx6syTUn4Du1 mT3omKya+unlFR6nzlDVRPQSvxZ+LQqbxyc7+2LwD8lLs8MytnxbIjIp/BBvJ9nYfy80 MYpjrZtPjMnuUsi3SpGJRFvrxjVNebrNleKx+pfQ/jbO0ScpscoKA3JRCyBGZDh6PhIk tlqTvzkiitNdHU2/eWGwJLNbf3oCp1Y9SOCS+u68YZZEnWnecm2E2a/hrLZsv+Li7D/Q wKng== X-Received: by 10.68.244.229 with SMTP id xj5mr77679139pbc.108.1395722241972; Mon, 24 Mar 2014 21:37:21 -0700 (PDT) Received: from morimoto-dell.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id kc9sm38741954pbc.25.2014.03.24.21.37.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 21:37:21 -0700 (PDT) Date: Mon, 24 Mar 2014 21:37:21 -0700 (PDT) Message-ID: <87zjkec2rl.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 6/7] ARM: shmobile: lager: add R-Car sound support on DTS User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <878urydhee.wl%kuninori.morimoto.gx@gmail.com> References: <87ior2dhp9.wl%kuninori.morimoto.gx@gmail.com> <878urydhee.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- arch/arm/boot/dts/r8a7790-lager.dts | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index a55c5f8..bb92a7a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -139,6 +139,21 @@ states = <3300000 1 1800000 0>; }; + + sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,cpu { + sound-dai = <&rcar_sound 0>; + }; + simple-audio-card,codec { + sound-dai = <&snd_codec>; + bitclock-master; + frame-master; + system-clock-frequency = <11289600>; + }; + }; }; &extal_clk { @@ -199,6 +214,14 @@ "msiof1_tx"; renesas,function = "msiof1"; }; + sound_pins: sound { + renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; + renesas,function = "ssi"; + }; + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a"; + renesas,function = "audio_clk"; + }; }; ðer { @@ -297,3 +320,31 @@ cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&i2c2 { + status = "okay"; + snd_codec: ak4643 { + #sound-dai-cells = <0>; + compatible = "asahi-kasei,ak4643"; + reg = <0x12>; + }; +}; + +&rcar_sound { + pinctrl-names = "default", "audio_clock"; + pinctrl-0 = <&sound_pins>; + pinctrl-1 = <&sound_clk_pins>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi1 { + shared-pin; +};