From patchwork Thu Dec 11 00:04:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 27429 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1XyrFa-00068x-38; Thu, 11 Dec 2014 01:04:58 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-8) with esmtp id 1XyrFX-0000Aj-ky; Thu, 11 Dec 2014 01:04:57 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758284AbaLKAEx (ORCPT + 1 other); Wed, 10 Dec 2014 19:04:53 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:44473 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758196AbaLKAEw (ORCPT ); Wed, 10 Dec 2014 19:04:52 -0500 Received: by mail-lb0-f169.google.com with SMTP id p9so3254422lbv.14 for ; Wed, 10 Dec 2014 16:04:51 -0800 (PST) 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=NR88UkE8k5XNLiD4PMVEAbyTaGercTQtnMwspSvKerY=; b=LLu1B3uO93lSTjREjiUl5HlCVhakn6391NvHJUbTdMQRZa4hIbY7SHXvwZTmknQzoc Kjx6OCKHArujnW2fzOrMETLn2JzT5SVciVpIjwuOhUX3jJyezc/d6AsNXObIcJ/tmOm/ bx9dfARTkGZPDn+sfBoSKpE1TIBQ+/Bckhl9MoM46suYgUwvJyrbZHwDnMsV94ttYrL9 CRREPS/GUkqYp4+n/QP71jfBt3r05XAmVnFeBYGuzY81SXkjWnOD1ftkf/Ua7QeR0+nI lV83Vr/8W+qpTfsaZgC2Ev8CqXEAhdzIW+n2mKmAex4xx1UAlPJvjQF8KrDWDeTeExJC vqtA== MIME-Version: 1.0 X-Received: by 10.112.138.137 with SMTP id qq9mr6738206lbb.80.1418256291276; Wed, 10 Dec 2014 16:04:51 -0800 (PST) Received: by 10.152.179.137 with HTTP; Wed, 10 Dec 2014 16:04:51 -0800 (PST) In-Reply-To: <5488C10F.1040508@phoenixsoftware.it> References: <5488C10F.1040508@phoenixsoftware.it> Date: Wed, 10 Dec 2014 22:04:51 -0200 Message-ID: Subject: Re: VPU on iMX51 babbage board From: Fabio Estevam To: Pierluigi Passaro , Philipp Zabel Cc: linux-media Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.12.10.235419 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FORGED_FROM_GMAIL 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, DKIM_SIGNATURE 0, REFERENCES 0, URI_ENDS_IN_HTML 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' On Wed, Dec 10, 2014 at 7:54 PM, Pierluigi Passaro wrote: > Hi all, > I'm trying to use VPU code driver on iMX51 with kernel 3.18, following these > steps: > - disabled DVI interface > - enabled LCD interface > - configured and enabled VPU > - copied iMX51 vpu firmware without header and renamed > v4l-coda7541-imx53.bin in /lib/firmware > > Attached you can find the patch and the defconfig I used. > > The boot process hangs after loading the firmware at the first attempt of > writing in VPU address space in the function coda_write of file > driver/media/platform/coda/coda-common.c > > Is there anything preventing the coda driver to work with iMX51? > Could anyone provide any suggestion on how investigate the problem? I have only tested the coda driver on mx6, but looking at the mx51.dtsi you would need this: Also, not sure if all the required coda patches are available in 3.18, so I tried it on linux-next 20141210 on a imx51-babbage (I had to disable USB, otherwise linux-next will hang on this board): [ 1.368454] coda 83ff4000.vpu: Initialized CODA7541. [ 1.373572] coda 83ff4000.vpu: Firmware version: 1.4.50 [ 1.396695] coda 83ff4000.vpu: codec registered as /dev/video[0-3] Also, no sure if we need to distinguish mx51 versus mx53 in the coda driver. Adding Philipp in case he can comment. Regards, Fabio Estevam --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/arch/arm/boot/dts/imx51.dtsi +++ b/arch/arm/boot/dts/imx51.dtsi @@ -121,6 +121,7 @@ iram: iram@1ffe0000 { compatible = "mmio-sram"; reg = <0x1ffe0000 0x20000>; + clocks = <&clks IMX5_CLK_OCRAM>; }; ipu: ipu@40000000 { @@ -584,6 +585,18 @@ clock-names = "ipg", "ahb", "ptp"; status = "disabled"; }; + + vpu: vpu@83ff4000 { + compatible = "fsl,imx53-vpu"; + reg = <0x83ff4000 0x1000>; + interrupts = <9>; + clocks = <&clks IMX5_CLK_VPU_REFERENCE_GATE>, + <&clks IMX5_CLK_VPU_GATE>; + clock-names = "per", "ahb"; + resets = <&src 1>; + iram = <&iram>; + }; }; + }; };