From patchwork Wed Nov 25 06:37:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7695861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 82D5BBF90C for ; Wed, 25 Nov 2015 06:42:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A97F5208AA for ; Wed, 25 Nov 2015 06:42:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C053D20726 for ; Wed, 25 Nov 2015 06:42:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1TjJ-0006N5-Qt; Wed, 25 Nov 2015 06:39:01 +0000 Received: from relmlor3.renesas.com ([210.160.252.173] helo=relmlie2.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1TiX-0005S7-A5 for linux-arm-kernel@lists.infradead.org; Wed, 25 Nov 2015 06:38:14 +0000 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 25 Nov 2015 15:37:52 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 41B5C4B99C; Wed, 25 Nov 2015 15:37:51 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 2DE0F2806F; Wed, 25 Nov 2015 15:37:51 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 261222806D; Wed, 25 Nov 2015 15:37:51 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id RBP26889; Wed, 25 Nov 2015 15:37:51 +0900 X-IronPort-AV: E=Sophos;i="5.20,341,1444662000"; d="scan'";a="199264046" Received: from mail-hk2apc01lp0213.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.213]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Nov 2015 15:37:50 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HK2PR06MB1012.apcprd06.prod.outlook.com (10.161.188.28) with Microsoft SMTP Server (TLS) id 15.1.325.17; Wed, 25 Nov 2015 06:37:49 +0000 Message-ID: <87twoa7fo5.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 06/12] arm64: renesas: salvator-x: Sound SSI PIO support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Simon In-Reply-To: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> References: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 25 Nov 2015 06:37:49 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0006.jpnprd01.prod.outlook.com (25.161.131.144) To HK2PR06MB1012.apcprd06.prod.outlook.com (25.161.188.28) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1012; 2:lHcKbM0L+CTbmn6NBvt2IwBGrnKwTY0JblBRebEMcoTawVj5OiF7GJ/88w1+MbZNFB+lnSj0UxL00SAK7lAyAfJScf26ikX1R42rT0OscHAcbQQKgTOy/M/W0yj3nB2P2zavAbec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V/6SOLBVdV6Pa9; 4:RhD6GDjfwbov37p6mjkApQx8X7K4z4peXahSpfWiuAS4K8YtLkuxpq+ZGh+uFvU0YmOOIjKGgeerkZ0oElbvRFoaziy1MrIvycrRx9j+3hDlt9WJpbuU0QJxetXJpmLVsRDUgSXwU0d1oBELypKB9fKmS9ZYgGqcywQ3QWrodiLBKNy+BA5g/xYmvDV0+StkwjxDaEweVNa0r1ALS8WbxEFU10d2wiWEC639bd9+31MQ5fnGulOxt2eKphv8rLkaGusqfyjloNja/nKMVV3xqPKM8CCjVt5pR7xT2D/sDWq6rGzZiMFZXXtmM1sWUD+Chs5a7R8BD7DrAWmq1ySweFBlxc0439Hv+xyAkkFk/tvIEwqeK2hE/ABJl/7nbX51 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:HK2PR06MB1012; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB1012; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(4001350100001)(87976001)(92566002)(69596002)(5007970100001)(6116002)(36756003)(586003)(50466002)(81156007)(2950100001)(50986999)(76176999)(101416001)(3846002)(5008740100001)(83506001)(54356999)(189998001)(46406003)(229853001)(86362001)(53416004)(77096005)(106356001)(19580405001)(97736004)(23726003)(5004730100002)(19580395003)(110136002)(122386002)(40100003)(42186005)(33646002)(5001920100001)(47776003)(105586002)(5001960100002)(66066001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB1012; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB1012; 23:bm57kQCWE+33A1fdYY38TCAchCxbdqBWlwhcyOZ26?= =?us-ascii?Q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FG7G5iO0z?= =?us-ascii?Q?HnaBKjC5VUrMyyIxins1ZxK6WtnTsnTlnol0hv3vXpYW+wkUYeVHXW3yxjw4?= =?us-ascii?Q?p7j4n0UjZ92+Zc0V54982JD1+jgQXj5lmrbtxw+sfL8BXr58HV9SFMmwFoFL?= =?us-ascii?Q?wrtkiFuVD2KL/Y/McE0zZfLkPI4oxV6Lfu6edooJruAd7haryUJvRxHNk/pz?= =?us-ascii?Q?se+hwFUJvXsg1l4O1Qc4blnYA4TG8jinbsN1Et7rykUldT0UNKc+n49EKEwU?= =?us-ascii?Q?pn12Bibdo3MUNE=3D?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1012; 5:TdM5sENYPZ2UIgupYIzv0/MpK8pHmkZ6ajFMqQR36WhlBf300Xn432OqLoW+gAAV7bEyoMSj5q7IK145tdqnOH0aWoP73Iiop2I68nWMlCM5j+4V91o6cXdmXdgNRswLcZCbemfByINHqumGJOcDpQ==; 24:Om/jn3py1c1NCclvN6fKWGQfG+5bt9V0dyDqO+aPoJBQGc9GAI+so1UcM+u2gayHxc9DqEa3P10rAfaYFRZRfZE9C00LRojo0H/Jaq+iGYY=; 20:8BDmqITOtc7t2K5kBwxl2OqG7OkwDIuRDd9ywvTcgo5Kvm6nJ3ZIHp0xHTdkDx2EKLHJ15ppp399eNG+tG8XoJ1ODZZrqNMsD2jMMxIW31liZU2DYL2eEPGQlvtv9oA3UbiSGWESqPGZ6kDdH1t60pDRZtYXwmjFHgoqhC5zI3A= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2015 06:37:49.3798 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB1012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151124_223813_738451_D05F7CF5 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.2 (---) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Magnus , linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch adds PIO sound support for Salvator-X board. It can use 44.1kHz base sound only at this point, since 48kHz base sound needs CS2000, but it is not yet upstreamed. Signed-off-by: Kuninori Morimoto --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts index d829fda..90ca7fa 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -31,6 +31,28 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + x12_clk: x12_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24576000>; + }; + + rsnd_ak4613: sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcpu>; + simple-audio-card,frame-master = <&sndcpu>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&ak4613>; + }; + }; }; &extal_clk { @@ -56,6 +78,17 @@ renesas,groups = "avb_mdc"; renesas,function = "avb"; }; + + sound_pins: sound { + renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a"; + renesas,function = "ssi"; + }; + + sound_clk_pins: sound_clk { + renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a", + "audio_clkout_a", "audio_clkout3_a"; + renesas,function = "audio_clk"; + }; }; &scif1 { @@ -77,6 +110,49 @@ pinctrl-names = "default"; status = "okay"; + + clock-frequency = <100000>; + + ak4613: codec@10 { + compatible = "asahi-kasei,ak4613"; + #sound-dai-cells = <0>; + reg = <0x10>; + clocks = <&rcar_sound 3>; + }; +}; + +&rcar_sound { + pinctrl-0 = <&sound_pins &sound_clk_pins>; + pinctrl-names = "default"; + + /* Single DAI */ + #sound-dai-cells = <0>; + + /* audio_clkout0/1/2/3 */ + #clock-cells = <1>; + clock-frequency = <11289600>; + + status = "okay"; + + rcar_sound,dai { + dai0 { + playback = <&ssi0>; + capture = <&ssi1>; + }; + }; +}; + +&ssi0 { + pio-transfer; +}; + +&ssi1 { + pio-transfer; + shared-pin; +}; + +&audio_clk_a { + clock-frequency = <22579200>; }; &avb {