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: 2151171 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 30A23DF2A1 for ; Sat, 16 Feb 2013 07:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751413Ab3BPHfe (ORCPT ); Sat, 16 Feb 2013 02:35:34 -0500 Received: from mail-pb0-f43.google.com ([209.85.160.43]:48004 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809Ab3BPHfd (ORCPT ); Sat, 16 Feb 2013 02:35:33 -0500 Received: by mail-pb0-f43.google.com with SMTP id md12so911867pbc.2 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 Cc: linux@arm.linux.org.uk, b-cousson@ti.com, tony@atomide.com, grant.likely@secretlab.ca, peter.ujfalusi@ti.com, thomas@tomweber.eu, anilk4.v@gmail.com 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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"; };