From patchwork Wed Sep 26 19:59:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1510911 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 73E353FCFC for ; Wed, 26 Sep 2012 20:02:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGxlN-0004Fc-HT; Wed, 26 Sep 2012 19:59:17 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TGxlJ-0004FO-Tz for linux-arm-kernel@lists.infradead.org; Wed, 26 Sep 2012 19:59:14 +0000 Received: by obbwd20 with SMTP id wd20so13221obb.36 for ; Wed, 26 Sep 2012 12:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WETChuVvn4c2sdVjiImWxUooTORXOl5Jsera+60GfEU=; b=IWpt/DZPiVSrVPBtr+0jm2PzNzWGwQYmHE28Lbh9UgspKkPQF1rf3qgMK2rWnFaGfx v4A0K5UX4dhBv1eBU1ljir6Eq7CDKiv6Nb7LFWaEfoAZf99xWhSJXjU685Lbqvstzqpc aDnd1bEd5MlyQdkzyXFDzqvZork6vTxhYVZrtlpJH7kZ3NDluc7s+T+0i7CwuVjURfZP cu4nnezSU6y/TPCvhJyCatC1IFrWl3tunNxTPikLJ3p/BpTkNICH9ZYQIJKiCmuxhnoN cQ5kpceYIXP9N2NbFZITCvPemP6xaze0WpyzoAOHC1aeu/D6Zkya4X2HrOsHCb4jUDvu i98Q== MIME-Version: 1.0 Received: by 10.182.69.50 with SMTP id b18mr1301517obu.75.1348689552003; Wed, 26 Sep 2012 12:59:12 -0700 (PDT) Received: by 10.76.4.140 with HTTP; Wed, 26 Sep 2012 12:59:11 -0700 (PDT) Date: Wed, 26 Sep 2012 16:59:11 -0300 Message-ID: Subject: DA9053 support on mx53qsb From: Fabio Estevam To: Sascha Hauer , Shawn Guo , =?UTF-8?B?TWFyZWsgVmHFoXV0?= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] -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: paulliu@debian.org, linux-arm-kernel@lists.infradead.org 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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi, I am trying to enable Dialog DA9053 on mx53qsb and did the following: --- and this is what I get: ... da9052 1-0048: DA9052 ADC IRQ failed ret=-22 ----> fails here BUCK1: 500 <--> 2075 mV at 1250 mV at 3000 mA BUCK2: 925 <--> 2075 mV at 1350 mV at 1500 mA BUCK3: 925 <--> 2500 mV at 1500 mV at 1500 mA BUCK4: at 2475 mV at 1500 mA LDO1: at 1300 mV LDO2: at 1300 mV LDO3: at 3300 mV LDO4: 1725 <--> 1800 mV at 2775 mV LDO5: 1200 <--> 1800 mV at 1300 mV LDO6: 1750 <--> 3300 mV at 1300 mV LDO7: 1750 <--> 3300 mV at 2750 mV LDO8: 1200 <--> 3600 mV at 1800 mV LDO9: 1250 <--> 3600 mV at 1500 mV LDO10: 1200 <--> 3600 mV at 1300 mV .... LDO10: disabling LDO9: disabling LDO8: disabling ?????????? (and then hangs here). Any suggestions as to what I am missing? Thanks, Fabio Estevam diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts index 5bae4c7..f3c71e5 100644 --- a/arch/arm/boot/dts/imx53-qsb.dts +++ b/arch/arm/boot/dts/imx53-qsb.dts @@ -60,6 +60,7 @@ 697 0x80000000 /* MX53_PAD_EIM_DA12__GPIO3_12 */ 701 0x80000000 /* MX53_PAD_EIM_DA13__GPIO3_13 */ 868 0x80000000 /* MX53_PAD_PATA_DA_0__GPIO7_6 */ + 1149 0x80000000 /* MX53_PAD_GPIO_16__GPIO7_11 */ >; }; @@ -106,6 +107,8 @@ pmic: dialog@48 { compatible = "dlg,da9053-aa", "dlg,da9052"; reg = <0x48>; + interrupt-parent = <&gpio7>; + interrupts = <11 0x8>; /* low-level active IRQ at GPIO7_11 */ regulators { buck0 {