From patchwork Thu Jun 4 18:08:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Bharadwaj X-Patchwork-Id: 6548781 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 757CB9F1CC for ; Thu, 4 Jun 2015 18:09:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A39DE20798 for ; Thu, 4 Jun 2015 18:09:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B536F20793 for ; Thu, 4 Jun 2015 18:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932072AbbFDSJJ (ORCPT ); Thu, 4 Jun 2015 14:09:09 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35160 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753503AbbFDSIX (ORCPT ); Thu, 4 Jun 2015 14:08:23 -0400 Received: by padjw17 with SMTP id jw17so34261160pad.2 for ; Thu, 04 Jun 2015 11:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gumstix.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qnapJBr8UEabp6voRfjgCKyzjg5GotY3Hsi6BBqbI20=; b=Jpo+0Rnv1bR71Hadsnw7pCh838NJHz2nxEGJZuMu5dxA5Yhi+c+TR4g4Q3IQgFK7x5 pYqaxx2UrbYYn5cvAgHV9bOjHTGhavLnANQMCSuKfRd4mvrrqpYgc/Scxq2VkcksYoU9 1+DFjq76RMOwCX9nvVs1CaTgtO6GGzU6a6GTk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qnapJBr8UEabp6voRfjgCKyzjg5GotY3Hsi6BBqbI20=; b=hrM6EcptMij9qWyCekhhuy9IqTsKuy/+RiV7u4cV0eRdSFbAu3rIazyIb7Zl/Ckpqs g+xzbMwkpuMVESHYrIKVv1+NxPl4IgRXRiecNKXidQ1MuwE8KIhWXZkbhd6Wm7ggELlX zEVfk7ki/Vpx0u7Q/sFmL8/YaLzmgWGxtDBmn+7dakKDRNDiIpaiZUupfWPCJ+nX6Qgq ENu2rRHReqV5oYRmb8/US2J+qrTQrdQHA6++8xWifwKZTEKZSoy01q0aNyDhR1vICMg1 DLLR4UiVvzRGvnBjcY5NwDC6UCmfH/oHNVec6dwmuZgOBKt8gqvzATWUIrjQ0xOGPM5B 2LbQ== X-Gm-Message-State: ALoCoQnBYl90H7eanEhksOSS36C0UoR1S13gCuQshXqHFER9ZqooQ2LImYtSINu9XidiD/95W12s X-Received: by 10.70.0.143 with SMTP id 15mr71653411pde.13.1433441302498; Thu, 04 Jun 2015 11:08:22 -0700 (PDT) Received: from localhost.localdomain (s206-116-3-180.bc.hsia.telus.net. [206.116.3.180]) by mx.google.com with ESMTPSA id pd10sm4464432pdb.66.2015.06.04.11.08.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 11:08:21 -0700 (PDT) From: Arun Bharadwaj To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Adam YH Lee , Ash Charles Subject: [PATCH 1/3] ARM: dts: Correct audio input route & set mic bias Date: Thu, 4 Jun 2015 11:08:17 -0700 Message-Id: <1433441299-18887-2-git-send-email-arun@gumstix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433441299-18887-1-git-send-email-arun@gumstix.com> References: <1433441299-18887-1-git-send-email-arun@gumstix.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_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: Adam YH Lee Audio-in was incorrectly routed to Line In. It should be Mic3L as per schematic. Using mic-bias voltage at 2.0v (<0x1>) does not work for some reason. There is no voltage seen on micbias (R127). Mic-bias voltage of 2.5v (<0x2>) works. I see voltage of 2.475v across GND and micbias. With these changes, I can record audio with a pair of proliferate TRRS earbuds. Signed-off-by: Ash Charles --- arch/arm/boot/dts/am335x-pepper.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-pepper.dts b/arch/arm/boot/dts/am335x-pepper.dts index 0d35ab6..473d8ee 100644 --- a/arch/arm/boot/dts/am335x-pepper.dts +++ b/arch/arm/boot/dts/am335x-pepper.dts @@ -74,6 +74,7 @@ audio_codec: tlv320aic3106@1b { compatible = "ti,tlv320aic3106"; reg = <0x1b>; + ai3x-micbias-vg = <0x2>; }; accel: lis331dlh@1d { @@ -153,7 +154,7 @@ ti,audio-routing = "Headphone Jack", "HPLOUT", "Headphone Jack", "HPROUT", - "LINE1L", "Line In"; + "MIC3L", "Mic3L Switch"; }; &mcasp0 {