From patchwork Tue Mar 25 04:37:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3885271 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5421CBF540 for ; Tue, 25 Mar 2014 04:37:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64996201F2 for ; Tue, 25 Mar 2014 04:37:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 727A02013A for ; Tue, 25 Mar 2014 04:37:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbaCYEha (ORCPT ); Tue, 25 Mar 2014 00:37:30 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:46123 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbaCYEh3 (ORCPT ); Tue, 25 Mar 2014 00:37:29 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so6213023pdi.19 for ; Mon, 24 Mar 2014 21:37:29 -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=cARFZgEckVWEvPl0HlBmzDk42/z6mT9Xrfrpb36tWnM=; b=XkoDH4cuCUFgfIco1YTreCFVlyXcId3s9ILfAbNl0nY6LYEWHgknhdKRskGeMV3Gl0 VR0Pctp08BfjuDlQWTfNYUWN5AzI68YePl9fHgq0XOOorIxUMfuWr8da1m6mwFODI5OO DcizyVHWcDihtHXPcvrnLEQtliJmlFCklQH7oeVjxotIqkHKonbaqv8HpegUcgLyHgDD XaN1YcpvZK1NB0ckwXo0bSQJcvUsxoercdpaT1SeobsFtkWSxTzsygHXtL4cNx3dxb66 mxTa+z2PVnEvQUnUqMiMWg2YlyIT20Wc/voLDykImCKD8s6vpAwXdomWMWtbp+/7BsIA mpUw== X-Received: by 10.67.14.69 with SMTP id fe5mr76490096pad.120.1395722249309; Mon, 24 Mar 2014 21:37:29 -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 jd5sm38746908pbb.18.2014.03.24.21.37.27 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 21:37:28 -0700 (PDT) Date: Mon, 24 Mar 2014 21:37:28 -0700 (PDT) Message-ID: <87y4zyc2re.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 7/7] ARM: shmobile: bockw: 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/r8a7778-bockw-reference.dts | 138 +++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts index f76f6ec..7d467f6 100644 --- a/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -53,6 +53,87 @@ vdd33a-supply = <&fixedregulator3v3>; }; + sound_card1 { + 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 = <&ak4643_codec>; + bitclock-master; + frame-master; + system-clock-frequency = <11289600>; + }; + }; + + sound_card2 { + compatible = "simple-audio-card"; + + simple-audio-card,format = "right_j"; + simple-audio-card,cpu { + sound-dai = <&rcar_sound 1>; + bitclock-master; + frame-master; + }; + simple-audio-card,codec { + sound-dai = <&ak4554_codec_0>; + }; + }; + + sound_card3 { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,cpu { + sound-dai = <&rcar_sound 2>; + bitclock-master; + frame-master; + }; + simple-audio-card,codec { + sound-dai = <&ak4554_codec_0>; + }; + }; + + sound_card4 { + compatible = "simple-audio-card"; + + simple-audio-card,format = "right_j"; + simple-audio-card,cpu { + sound-dai = <&rcar_sound 3>; + bitclock-master; + frame-master; + }; + simple-audio-card,codec { + sound-dai = <&ak4554_codec_1>; + }; + }; + + sound_card5 { + compatible = "simple-audio-card"; + + simple-audio-card,format = "right_j"; + simple-audio-card,cpu { + sound-dai = <&rcar_sound 4>; + bitclock-master; + frame-master; + }; + simple-audio-card,codec { + sound-dai = <&ak4554_codec_1>; + }; + }; + + ak4554_codec_0: ak4554 { + #sound-dai-cells = <0>; + compatible = "asahi-kasei,ak4554"; + }; + + ak4554_codec_1: ak4554 { + #sound-dai-cells = <0>; + compatible = "asahi-kasei,ak4554"; + }; + }; &mmcif { @@ -93,6 +174,19 @@ renesas,groups = "hspi0_a"; renesas,function = "hspi0"; }; + + sound_pins: sound { + renesas,groups = "ssi34_ctrl", "ssi3_data", "ssi4_data", + "ssi5_ctrl", "ssi5_data", "ssi6_ctrl", + "ssi6_data", "ssi78_ctrl", "ssi7_data", + "ssi8_data"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a", "audio_clk_b"; + renesas,function = "audio_clk"; + }; }; &sdhi0 { @@ -124,3 +218,47 @@ }; }; }; + +&i2c0 { + status = "okay"; + ak4643_codec: ak4643 { + #sound-dai-cells = <0>; + compatible = "asahi-kasei,ak4643"; + reg = <0x12>; + }; +}; + +&rcar_sound { + pinctrl-names = "default", "audio_clock"; + pinctrl-0 = <&sound_pins>; + pinctrl-2 = <&sound_clk_pins>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi5>; + capture = <&ssi6>; + }; + dai1 { + playback = <&ssi3>; + }; + dai2 { + capture = <&ssi4>; + }; + dai3 { + capture = <&ssi7>; + }; + dai4 { + capture = <&ssi8>; + }; + }; +}; + +&ssi4 { + shared-pin; +}; + +&ssi8 { + shared-pin; +};