From patchwork Wed Jul 4 18:23:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 169037 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E31B62C007F for ; Thu, 5 Jul 2012 04:27:23 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SmUET-0004i1-Qz; Wed, 04 Jul 2012 18:23:21 +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 1SmUEO-0004hn-1b for linux-arm-kernel@lists.infradead.org; Wed, 04 Jul 2012 18:23:16 +0000 Received: by obbta17 with SMTP id ta17so12433961obb.36 for ; Wed, 04 Jul 2012 11:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kw8WpNuC2VmF3UyK6hEP14yjyX90FkI6BdFZR4F1j+E=; b=WE9jpFjH3vHRdsmPuu6UT320JJAipuGTiDup/6RzbFflIjmhrEQPa8uOKc5I030yPz YTS0NSeFKE3ow81DqEzhr7USxWcoQ6Cplx6ZeaT4KcA/qwz/IcYv3o5Euhudnoua4t1b UPlOa9X0Hl1LZbkYDfDs+0Zy60p/iS4hxeHzAtojqTIpHb8EQTMFouDvH6reKVcUsEOC PeuOCfnZJChIJ0flbmonkc7TH1r7rDULM8LNfLszM6hW1WAiinmoMYSiKCqeAaRHpKPO MZjRtWGFVxF986tuba18ABFsmH72Ira8oAWwO5lmO16jnorIaoSjUwfLgzqUJRnt0qaa gQDA== MIME-Version: 1.0 Received: by 10.60.2.131 with SMTP id 3mr23529991oeu.59.1341426183457; Wed, 04 Jul 2012 11:23:03 -0700 (PDT) Received: by 10.76.119.79 with HTTP; Wed, 4 Jul 2012 11:23:03 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Jul 2012 15:23:03 -0300 Message-ID: Subject: Re: Clock problems in i.MX27 Visstrim M10 (linux-3.5-rc5). From: Fabio Estevam To: javier Martin 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: Sascha Hauer , Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org On Wed, Jul 4, 2012 at 8:41 AM, Fabio Estevam wrote: > So the original mx2_camera patch i sent you plus the clk-imx27.c > changes (calling clk_register_clkdev again with the > second name) fixes the issue for you? Ok, I have tested the mx2_camera patch I sent you plus the one below: ,and I get the following on probe: soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0 mx2-camera mx2-camera.0: Camera driver attached to camera 0 ov2640 0-0030: Product ID error fb:fb mx2-camera mx2-camera.0: Camera driver detached from camera 0 mx2-camera mx2-camera.0: MX2 Camera (CSI) driver probed, clock frequency: 665000 Looks like an i2c error when trying to read the ov2640 ID. Is your camera connected to i2c? Do you get it probed correctly? Any suggestions are welcome. Thanks, Fabio Estevam --- a/arch/arm/mach-imx/clk-imx27.c +++ b/arch/arm/mach-imx/clk-imx27.c @@ -250,8 +250,10 @@ int __init mx27_clocks_init(unsigned long fref) clk_register_clkdev(clk[i2c2_ipg_gate], NULL, "imx-i2c.1"); clk_register_clkdev(clk[owire_ipg_gate], NULL, "mxc_w1.0"); clk_register_clkdev(clk[kpp_ipg_gate], NULL, "imx-keypad"); - clk_register_clkdev(clk[emma_ahb_gate], "ahb", "imx-emma"); - clk_register_clkdev(clk[emma_ipg_gate], "ipg", "imx-emma"); + clk_register_clkdev(clk[emma_ahb_gate], "ahb", "mx2-camera.0"); + clk_register_clkdev(clk[emma_ipg_gate], "ipg", "mx2-camera.0"); + clk_register_clkdev(clk[emma_ahb_gate], "ahb", "m2m-emmaprp.0"); + clk_register_clkdev(clk[emma_ipg_gate], "ipg", "m2m-emmaprp.0"); clk_register_clkdev(clk[iim_ipg_gate], "iim", NULL); clk_register_clkdev(clk[gpio_ipg_gate], "gpio", NULL); clk_register_clkdev(clk[brom_ahb_gate], "brom", NULL);