From patchwork Sat Feb 16 07:33:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anil Kumar X-Patchwork-Id: 2151191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 0ABB53FD4F for ; Sat, 16 Feb 2013 07:38:36 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U6cJ8-0006Ux-FF; Sat, 16 Feb 2013 07:35:38 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U6cJ4-0006US-JO for linux-arm-kernel@lists.infradead.org; Sat, 16 Feb 2013 07:35:35 +0000 Received: by mail-pa0-f52.google.com with SMTP id fb1so2031421pad.25 for ; Fri, 15 Feb 2013 23:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=rwhrWslUrjN5JTjJ4/ziVtVFLL2hRQUj5hYb+wlbhD0=; b=YBh9D6JK/aRuv8hD0CUiP7LCQtjAqKIqZo79z0oUxlI7iLHBRDFdYXapfdXJhFHNn3 nZ//gQ9Aedr4LPVHJP94EB+/faUxmIouvTMLya9C0m1Q8kKXi6MHeE+VY3i1V3NWQndI cIlayTblJebEOTOOHXasluoXhECGCQOzUHR8LyU55cuAfm+36qa5teEnIRvl/typr71v e7r/hC5IubuyC/g8sqummCrSr5reZ1DZLNrVeSYy4cXdLaA4rzYIUmv9MpZylAO0BpsZ O0p0tgxpVstzqlHVumhi1mpxbb5PmFsrYtN4lx7tmd8oOckoMW53t2OJQ3ImMk1uVklv VNmQ== X-Received: by 10.68.31.230 with SMTP id d6mr12550919pbi.41.1361000133079; Fri, 15 Feb 2013 23:35:33 -0800 (PST) Received: from localhost.localdomain ([123.237.222.239]) by mx.google.com with ESMTPS id iu10sm7258280pbc.13.2013.02.15.23.35.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 15 Feb 2013 23:35:32 -0800 (PST) From: Anil Kumar To: devicetree-discuss@lists.ozlabs.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org Subject: [PATCH V2] ARM: dts: omap3-devkit8000: Enable audio support Date: Sat, 16 Feb 2013 13:03:56 +0530 Message-Id: <1361000036-18121-1-git-send-email-anilk4.v@gmail.com> X-Mailer: git-send-email 1.7.0.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130216_023534_766332_BC37D217 X-CRM114-Status: GOOD ( 11.74 ) X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.52 listed in list.dnswl.org] 3.0 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anilk4.v[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: peter.ujfalusi@ti.com, linux@arm.linux.org.uk, b-cousson@ti.com, tony@atomide.com, grant.likely@secretlab.ca, anilk4.v@gmail.com, thomas@tomweber.eu X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add the needed sections to enable audio support on Devkit8000 when booted with DT blob. Signed-off-by: Anil Kumar Acked-by: Peter Ujfalusi --- This patch is based on top of kernel 3.8-rc5 and the following patches. Peter Ujfalusi:- ASoC: twl4030: Correct the support for Voice port ASoC: twl4030: Convert MICBIAS to SUPPLY widget ASoC: omap-twl4030: Add support for routing, voice port and jack detect Anil Kumar:- ARM: dts: add minimal DT support for DevKit8000 https://patchwork.kernel.org/patch/2122461/ -Tested for playback and capture on Devkit8000. Test process:- #amixer set 'PredriveR Mixer AudioR2' on #amixer set 'PredriveL Mixer AudioL2' on #amixer set PreDriv 100 unmute #amixer set 'DAC2 Digital Fine' 100 #amixer cset numid=27 1 #arecord | aplay For V2: - Remove pin mux as done at device boot time by default. :100644 100644 6338993... c70116f... M arch/arm/boot/dts/omap3-devkit8000.dts arch/arm/boot/dts/omap3-devkit8000.dts | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts index 6338993..c70116f 100644 --- a/arch/arm/boot/dts/omap3-devkit8000.dts +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -42,6 +42,19 @@ }; }; + + sound { + compatible = "ti,omap-twl4030"; + ti,model = "devkit8000"; + + ti,mcbsp = <&mcbsp2>; + ti,codec = <&twl_audio>; + ti,audio-routing = + "Ext Spk", "PREDRIVEL", + "Ext Spk", "PREDRIVER", + "MAINMIC", "Main Mic", + "Main Mic", "Mic Bias 1"; + }; }; &i2c1 { @@ -51,6 +64,12 @@ reg = <0x48>; interrupts = <7>; /* SYS_NIRQ cascaded to intc */ interrupt-parent = <&intc>; + + twl_audio: audio { + compatible = "ti,twl4030-audio"; + codec { + }; + }; }; }; @@ -86,10 +105,6 @@ status = "disabled"; }; -&mcbsp2 { - status = "disabled"; -}; - &mcbsp3 { status = "disabled"; };