From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 81296E00848; Tue, 16 Sep 2014 06:35:19 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [64.78.47.38 listed in list.dnswl.org] * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.2440] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 604 seconds by postgrey-1.32 at yocto-www; Tue, 16 Sep 2014 06:35:15 PDT Received: from EXHUB003-2.exch003intermedia.net (exhub003-2.exch003intermedia.net [64.78.47.38]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5647BE007A0 for ; Tue, 16 Sep 2014 06:35:15 -0700 (PDT) Received: from EXVMBX003-6.exch003intermedia.net ([10.249.32.15]) by EXHUB003-2.exch003intermedia.net ([64.78.47.38]) with mapi; Tue, 16 Sep 2014 06:25:09 -0700 From: Jacob Pedersen To: "meta-freescale@yoctoproject.org" Date: Tue, 16 Sep 2014 06:25:04 -0700 Thread-Topic: OV5640 MIPI-CSI2 driver - why the limitations? Thread-Index: Ac/RsZMcFJTI5hBPTzmwS3kSwGtgpw== Message-ID: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Subject: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 13:35:19 -0000 Content-Language: da-DK Content-Type: multipart/alternative; boundary="_000_883E391C593F724B94C42216FF27FF4841EEA8A891EXVMBX0036exc_" --_000_883E391C593F724B94C42216FF27FF4841EEA8A891EXVMBX0036exc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi folks, I'm using a OmniVision OV5640 MIPI-CSI2 image sensor with a iMX6 Quad board= , and I'm doing some computer vision applications. I'm curious to know why = the driver for the OV5640 sensor is limited to 30 fps, even though the sens= or can do 60 fps at 720p and 90 fps at VGA? As far as I can see in the driv= er, the frame rate is clamped to maximum 30 fps. Is there a technical reason, or is it just because it hasn't been updated f= or all the supported modes? The driver also limits the available image formats, which makes one require= d to do the conversion in software or (as in my case) using the IPU. The IP= U is fairly fast to do the simple UYVY to RGB24 conversion, but still slowe= r than just getting an RGB image from the sensor. Best, Jacob --_000_883E391C593F724B94C42216FF27FF4841EEA8A891EXVMBX0036exc_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

= Hi folks,

 

I'm using a OmniVisi= on OV5640 MIPI-CSI2 image sensor with a iMX6 Quad board, and I'm doing some= computer vision applications. I'm curious to know why the driver for the O= V5640 sensor is limited to 30 fps, even though the sensor can do 60 fps at = 720p and 90 fps at VGA? As far as I can see in the driver, the frame rate i= s clamped to maximum 30 fps.

 

Is there a technical re= ason, or is it just because it hasn't been updated for all the supported mo= des?

<= span lang=3DEN-US style=3D'font-size:10.0pt;font-family:"Helvetica","sans-s= erif";color:#3D3D3D'> 

The driver also limits the available image form= ats, which makes one required to do the conversion in software or (as in my= case) using the IPU. The IPU is fairly fast to do the simple UYVY to RGB24= conversion, but still slower than just getting an RGB image from the senso= r.

 

Best,

Jacob

 

=
= --_000_883E391C593F724B94C42216FF27FF4841EEA8A891EXVMBX0036exc_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6B501E00848; Tue, 16 Sep 2014 06:44:01 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (daiane.list[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.169 listed in list.dnswl.org] * -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 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A3194E007A0 for ; Tue, 16 Sep 2014 06:43:52 -0700 (PDT) Received: by mail-wi0-f169.google.com with SMTP id cc10so3956072wib.2 for ; Tue, 16 Sep 2014 06:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Pqn7Z+4mllrzHswbpobmG0hJDl6OMqaqZJEUK3RYbKw=; b=G5gZTzc1MSPJSr9gUno0rESf75M/pItkxyCMPaLC5NGCyXeCUr8wc+zz2oRhCsDe5K xa8Mhskr9DJDd1jdI8xOFdC9MxIwfudH6E9XGARHzCkZGW8xeDq2IBUbsjq+JZQWupWb 38inGONTur7Cv7lTAb77roKvRAjARA6iTfx1eMbI0Tsxfo58MPqrSZh7a2Yg9PCiVFDF u8CZmG5nAvYO2N9xq8koyRU6iEAuBY85GooJiC8lkoDMHwivizt2+XhHH9M8o+wBlq4I d1UMAYpIrdGmz5SrED6zz9On//ZnhXDRM6c4GGf8QCwSkTaNh/PYyU8ew0QaipH5sPws Q4WQ== MIME-Version: 1.0 X-Received: by 10.194.58.41 with SMTP id n9mr37385552wjq.20.1410875029362; Tue, 16 Sep 2014 06:43:49 -0700 (PDT) Sender: angolini@gmail.com X-Google-Sender-Delegation: angolini@gmail.com Received: by 10.180.18.162 with HTTP; Tue, 16 Sep 2014 06:43:49 -0700 (PDT) In-Reply-To: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> Date: Tue, 16 Sep 2014 10:43:49 -0300 X-Google-Sender-Auth: beyb_0RB6RNU0w_PSbP2fhcQMsc Message-ID: From: Daiane Angolini To: Jacob Pedersen Cc: "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 13:44:01 -0000 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 16, 2014 at 10:25 AM, Jacob Pedersen wrote: > Hi folks, > > > > I'm using a OmniVision OV5640 MIPI-CSI2 image sensor with a iMX6 Quad board, > and I'm doing some computer vision applications. I'm curious to know why the > driver for the OV5640 sensor is limited to 30 fps, even though the sensor > can do 60 fps at 720p and 90 fps at VGA? As far as I can see in the driver, > the frame rate is clamped to maximum 30 fps. > > > > Is there a technical reason, or is it just because it hasn't been updated > for all the supported modes? > > > > The driver also limits the available image formats, which makes one required > to do the conversion in software or (as in my case) using the IPU. The IPU > is fairly fast to do the simple UYVY to RGB24 conversion, but still slower > than just getting an RGB image from the sensor. This limitation is due to the camera device driver. Only few configurations are implemented. Daiane From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B2750E00563; Tue, 16 Sep 2014 07:00:19 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.172 listed in list.dnswl.org] Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8C288E0049D for ; Tue, 16 Sep 2014 07:00:13 -0700 (PDT) Received: by mail-pd0-f172.google.com with SMTP id v10so8720638pde.17 for ; Tue, 16 Sep 2014 07:00:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=CkOi+KyNfzs1Py9pEU+/rqB5Y4HKERHnZef+cC0HBso=; b=JYDCjrWenNZChVgNA3uMbcA8mJ939nBFdKWo6E1ZFzaKt12AirUCLRhLyafRpA9Dp+ TMibmufLh9oqEA93vPyyMrAea0+hedCaPh92bBRCHiV+FCZpbX43It9zFsf2EXy2GA0s Xll98jx6TExXmIXagId4EbfG2WfnQVCI9A121JIlHwFvP2cDwpmkBddHU3NvzOJdPpDf TzuqmLyo0wGw9jwv0DFJp6wcOLA13+IGL2+ByyVo8PqQ9U62hMK4yYN4VR9SPTnrLOEl YmGUSoabH+sh4qZ8BRPwhGXENQGn1cRE6JI54IWjRu6BE2R61xdI6ycxstB/No4S01h/ 3ihQ== X-Gm-Message-State: ALoCoQnvW4XRmOWwcBWkiDw51m6kvHjuwA8tHsjrDXoGMutBrvraTrG2TFVf1zuyWYFQUVByqqxN X-Received: by 10.68.242.134 with SMTP id wq6mr19094246pbc.135.1410876013314; Tue, 16 Sep 2014 07:00:13 -0700 (PDT) Received: from [192.168.1.7] (ip98-165-98-97.ph.ph.cox.net. [98.165.98.97]) by mx.google.com with ESMTPSA id r7sm14237258pdj.75.2014.09.16.07.00.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Sep 2014 07:00:11 -0700 (PDT) Message-ID: <54184269.2000701@boundarydevices.com> Date: Tue, 16 Sep 2014 07:00:09 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Daiane Angolini , Jacob Pedersen References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 14:00:19 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 09/16/2014 06:43 AM, Daiane Angolini wrote: > On Tue, Sep 16, 2014 at 10:25 AM, Jacob Pedersen wrote: >> Hi folks, >> >> >> >> I'm using a OmniVision OV5640 MIPI-CSI2 image sensor with a iMX6 Quad board, >> and I'm doing some computer vision applications. I'm curious to know why the >> driver for the OV5640 sensor is limited to 30 fps, even though the sensor >> can do 60 fps at 720p and 90 fps at VGA? As far as I can see in the driver, >> the frame rate is clamped to maximum 30 fps. >> >> >> >> Is there a technical reason, or is it just because it hasn't been updated >> for all the supported modes? >> >> >> >> The driver also limits the available image formats, which makes one required >> to do the conversion in software or (as in my case) using the IPU. The IPU >> is fairly fast to do the simple UYVY to RGB24 conversion, but still slower >> than just getting an RGB image from the sensor. > > This limitation is due to the camera device driver. Only few > configurations are implemented. > Those I2C blobs are pretty difficult to get right! Regards, Eric From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EE001E00566; Tue, 16 Sep 2014 07:04:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [64.78.47.38 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from EXHUB003-2.exch003intermedia.net (exhub003-2.exch003intermedia.net [64.78.47.38]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C7313E0049D for ; Tue, 16 Sep 2014 07:04:37 -0700 (PDT) Received: from EXVMBX003-6.exch003intermedia.net ([10.249.32.15]) by EXHUB003-2.exch003intermedia.net ([64.78.47.38]) with mapi; Tue, 16 Sep 2014 07:04:37 -0700 From: Jacob Pedersen To: Eric Nelson , Daiane Angolini Date: Tue, 16 Sep 2014 07:04:32 -0700 Thread-Topic: [meta-freescale] OV5640 MIPI-CSI2 driver - why the limitations? Thread-Index: Ac/RtoqUfn5hcV8KReOqIz6fp6/G3QAADLgg Message-ID: <883E391C593F724B94C42216FF27FF4841EEA8A899@EXVMBX003-6.exch003intermedia.net> References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> <54184269.2000701@boundarydevices.com> In-Reply-To: <54184269.2000701@boundarydevices.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Cc: "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 14:04:46 -0000 Content-Language: da-DK Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 U28gaXQncyBhIG1hdHRlciBhYm91dCBnZXR0aW5nIHRoZSBkYXRhc2hlZXQgZm9yIHRoZSBpbWFn ZSBzZW5zb3IgYW5kIHRoZW4gYWRkaW5nIGEgbmV3IG1vZGUgKGFycmF5IG9mIHJlZ192YWx1ZSBz dHJ1Y3RzKSAgdG8gdGhlIGRyaXZlcj8NCg0KQmVzdCwNCkphY29iDQoNCi0tLS0tT3ByaW5kZWxp ZyBtZWRkZWxlbHNlLS0tLS0NCkZyYTogRXJpYyBOZWxzb24gW21haWx0bzplcmljLm5lbHNvbkBi b3VuZGFyeWRldmljZXMuY29tXSANClNlbmR0OiAxNi4gc2VwdGVtYmVyIDIwMTQgMTY6MDANClRp bDogRGFpYW5lIEFuZ29saW5pOyBKYWNvYiBQZWRlcnNlbg0KQ2M6IG1ldGEtZnJlZXNjYWxlQHlv Y3RvcHJvamVjdC5vcmcNCkVtbmU6IFJlOiBbbWV0YS1mcmVlc2NhbGVdIE9WNTY0MCBNSVBJLUNT STIgZHJpdmVyIC0gd2h5IHRoZSBsaW1pdGF0aW9ucz8NCg0KT24gMDkvMTYvMjAxNCAwNjo0MyBB TSwgRGFpYW5lIEFuZ29saW5pIHdyb3RlOg0KPiBPbiBUdWUsIFNlcCAxNiwgMjAxNCBhdCAxMDoy NSBBTSwgSmFjb2IgUGVkZXJzZW4gPGpwQGNpcmNsZWNvbnN1bHQuZGs+IHdyb3RlOg0KPj4gSGkg Zm9sa3MsDQo+Pg0KPj4NCj4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kdC IGltYWdlIGZyb20gdGhlIHNlbnNvci4NCj4gDQo+IFRoaXMgbGltaXRhdGlvbiBpcyBkdWUgdG8g dGhlIGNhbWVyYSBkZXZpY2UgZHJpdmVyLiBPbmx5IGZldyANCj4gY29uZmlndXJhdGlvbnMgYXJl IGltcGxlbWVudGVkLg0KPiANCg0KVGhvc2UgSTJDIGJsb2JzIGFyZSBwcmV0dHkgZGlmZmljdWx0 IHRvIGdldCByaWdodCENCg0KUmVnYXJkcywNCg0KDQpFcmljDQoNCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F2235E00566; Tue, 16 Sep 2014 07:05:07 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (daiane.list[at]gmail.com) * -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 * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.176 listed in list.dnswl.org] Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 30DA2E0086F for ; Tue, 16 Sep 2014 07:04:57 -0700 (PDT) Received: by mail-wi0-f176.google.com with SMTP id ex7so6353432wid.15 for ; Tue, 16 Sep 2014 07:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=0E1Zrhj016SlYCG2BDLDy/kBu/vTn1noeVlol1qPXNk=; b=Ma1WsYAajSsl3pjS8zeWU8lJKOu9nScJIdH/ZYFCQBDfWMkKMxHENjQOOI+k51kqAa m30eiSiZOwHgTbBevzlqTjhQFUnjzsNhUhO8CEXw43tPdSBqjvztMV6g+EfXHcxbsjwG jvvw4DmP8Ngg75Uy+vmOMUVM6mKxfIWw9x9obKcH9B5uLFRxKxT2IvbbRf+ytvLtzOJ7 2pFCXSPR+CMBDYpxx9KW0lCuMRi+1irUhAE5F43aUcT9E9tP0MZ66OFRvkaLWurCf/3z tyyL0t1SDStjqqf+oNA7CrLNE09UmrAnC2B3UkQhnDqg8wvDipmp064RdxFqvKDQgfbz jrfQ== MIME-Version: 1.0 X-Received: by 10.194.58.41 with SMTP id n9mr37573665wjq.20.1410876288394; Tue, 16 Sep 2014 07:04:48 -0700 (PDT) Sender: angolini@gmail.com X-Google-Sender-Delegation: angolini@gmail.com Received: by 10.180.18.162 with HTTP; Tue, 16 Sep 2014 07:04:48 -0700 (PDT) In-Reply-To: <54184269.2000701@boundarydevices.com> References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> <54184269.2000701@boundarydevices.com> Date: Tue, 16 Sep 2014 11:04:48 -0300 X-Google-Sender-Auth: zY7Sn8iAKRKlSi1EweaHhxRKhcA Message-ID: From: Daiane Angolini To: Eric Nelson Cc: Jacob Pedersen , "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 14:05:08 -0000 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 16, 2014 at 11:00 AM, Eric Nelson wrote: > On 09/16/2014 06:43 AM, Daiane Angolini wrote: >> On Tue, Sep 16, 2014 at 10:25 AM, Jacob Pedersen wrote: >>> Hi folks, >>> >>> >>> >>> I'm using a OmniVision OV5640 MIPI-CSI2 image sensor with a iMX6 Quad board, >>> and I'm doing some computer vision applications. I'm curious to know why the >>> driver for the OV5640 sensor is limited to 30 fps, even though the sensor >>> can do 60 fps at 720p and 90 fps at VGA? As far as I can see in the driver, >>> the frame rate is clamped to maximum 30 fps. >>> >>> >>> >>> Is there a technical reason, or is it just because it hasn't been updated >>> for all the supported modes? >>> >>> >>> >>> The driver also limits the available image formats, which makes one required >>> to do the conversion in software or (as in my case) using the IPU. The IPU >>> is fairly fast to do the simple UYVY to RGB24 conversion, but still slower >>> than just getting an RGB image from the sensor. >> >> This limitation is due to the camera device driver. Only few >> configurations are implemented. >> > > Those I2C blobs are pretty difficult to get right! +1 Daiane From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C2225E0084D; Wed, 17 Sep 2014 05:25:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [64.78.47.39 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from EXHUB003-3.exch003intermedia.net (exhub003-3.exch003intermedia.net [64.78.47.39]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 57E64E00786 for ; Wed, 17 Sep 2014 05:24:53 -0700 (PDT) Received: from EXVMBX003-6.exch003intermedia.net ([10.249.32.15]) by EXHUB003-3.exch003intermedia.net ([64.78.47.39]) with mapi; Wed, 17 Sep 2014 05:24:52 -0700 From: Jacob Pedersen To: Daiane Angolini , Eric Nelson Date: Wed, 17 Sep 2014 05:24:46 -0700 Thread-Topic: [meta-freescale] OV5640 MIPI-CSI2 driver - why the limitations? Thread-Index: Ac/RtzFAehpel6hbRU+uKQpfWTwY9gAugauA Message-ID: <883E391C593F724B94C42216FF27FF4841EEA8A97D@EXVMBX003-6.exch003intermedia.net> References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> <54184269.2000701@boundarydevices.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Cc: "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 12:25:02 -0000 Content-Language: da-DK Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSd2ZSBiZWVuIGxvb2tpbmcgaW50byB0aGUgaW1wbGVtZW50YXRpb24gKGRyaXZlcnMvbWVkaWEv cGxhdGZvcm0vbXhjL2NhcHR1cmUvb3Y1NjQwX21pcGkuYyksIGFuZCBmb3VuZCB0aGF0IHRoZSBv bmx5IGRpZmZlcmVuY2UgYmV0d2VlbiB0aGUgMTUgZnBzIGFuZCB0aGUgMzAgZnBzIGkyYyBibG9i cyBpcyB0aGUgdmFsdWUgb2YgdGhlIDB4MzAzNSByZWdpc3Rlci4gVGhlIDB4MzAzNSBpcyB0aGUg c3lzdGVtIGNsb2NrIGRpdmlkZXIgYW5kIE1JUEkgUENMSyBzY2FsZSBkaXZpZGVyLg0KDQpGb3Ig dGhlIDMwIGZwcyBWR0EgbW9kZSB0aGUgdmFsdWUgaXMgMHgxNCwgYW5kIGZvciB0aGUgMTU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Zhc3QgdG8gZG8gdGhlIHNpbXBsZSBVWVZZIHRvIFJHQjI0IA0KPj4+IGNvbnZlcnNpb24s IGJ1dCBzdGlsbCBzbG93ZXIgdGhhbiBqdXN0IGdldHRpbmcgYW4gUkdCIGltYWdlIGZyb20gdGhl IHNlbnNvci4NCj4+DQo+PiBUaGlzIGxpbWl0YXRpb24gaXMgZHVlIHRvIHRoZSBjYW1lcmEgZGV2 aWNlIGRyaXZlci4gT25seSBmZXcgDQo+PiBjb25maWd1cmF0aW9ucyBhcmUgaW1wbGVtZW50ZWQu DQo+Pg0KPg0KPiBUaG9zZSBJMkMgYmxvYnMgYXJlIHByZXR0eSBkaWZmaWN1bHQgdG8gZ2V0IHJp Z2h0IQ0KDQoNCisxDQoNCkRhaWFuZQ0K From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 91B46E00853; Wed, 17 Sep 2014 15:23:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.tames.com (tames.com [72.2.119.182]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 44F20E007AA for ; Wed, 17 Sep 2014 15:23:36 -0700 (PDT) Received: from [192.168.15.12] (187-177-90-210.dynamic.axtel.net [187.177.90.210]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: alfonso@tames.com) by mail.tames.com (Postfix) with ESMTPSA id 4DA4E25C50; Wed, 17 Sep 2014 22:23:10 +0000 (UTC) Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: =?windows-1252?Q?Alfonso_Tam=E9s?= In-Reply-To: <883E391C593F724B94C42216FF27FF4841EEA8A97D@EXVMBX003-6.exch003intermedia.net> Date: Wed, 17 Sep 2014 17:23:24 -0500 Message-Id: References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> <54184269.2000701@boundarydevices.com> <883E391C593F724B94C42216FF27FF4841EEA8A97D@EXVMBX003-6.exch003intermedia.net> To: Jacob Pedersen X-Mailer: Apple Mail (2.1878.6) X-Virus-Scanned: clamav-milter 0.98.1 at 56cb6755-5e21-c698-f8be-a3023abd5444 X-Virus-Status: Clean Cc: "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 22:23:44 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Excuse me for the off topic question but does anyone know where to find = complete documentation for the ov5640? I successfully patched a = Wandboard Kernel with Eric=92s patches from the Boundary Kernel to = enable autofocus but would like to explore if it can be set to any other = position beside the center of the image. Thanks, Alfonso On Sep 17, 2014, at 7:24 AM, Jacob Pedersen wrote: > I've been looking into the implementation = (drivers/media/platform/mxc/capture/ov5640_mipi.c), and found that the = only difference between the 15 fps and the 30 fps i2c blobs is the value = of the 0x3035 register. The 0x3035 is the system clock divider and MIPI = PCLK scale divider. >=20 > For the 30 fps VGA mode the value is 0x14, and for the 15 fps VGA mode = the value is 0x22. >=20 > I tried changing the value to 0x12 (divide MIPI PCLK by two instead of = four), which should double the frequency and enable 60 fps. That's = unfortunately not the case - it's still running at 30 fps.=20 >=20 > What else to I need to change in the driver? >=20 > Best, > Jacob >=20 > -----Oprindelig meddelelse----- > Fra: angolini@gmail.com [mailto:angolini@gmail.com] P=E5 vegne af = Daiane Angolini > Sendt: 16. september 2014 16:05 > Til: Eric Nelson > Cc: Jacob Pedersen; meta-freescale@yoctoproject.org > Emne: Re: [meta-freescale] OV5640 MIPI-CSI2 driver - why the = limitations? >=20 > On Tue, Sep 16, 2014 at 11:00 AM, Eric Nelson = wrote: >> On 09/16/2014 06:43 AM, Daiane Angolini wrote: >>> On Tue, Sep 16, 2014 at 10:25 AM, Jacob Pedersen = wrote: >>>> Hi folks, >>>>=20 >>>>=20 >>>>=20 >>>> I'm using a OmniVision OV5640 MIPI-CSI2 image sensor with a iMX6=20 >>>> Quad board, and I'm doing some computer vision applications. I'm=20 >>>> curious to know why the driver for the OV5640 sensor is limited to=20= >>>> 30 fps, even though the sensor can do 60 fps at 720p and 90 fps at=20= >>>> VGA? As far as I can see in the driver, the frame rate is clamped = to maximum 30 fps. >>>>=20 >>>>=20 >>>>=20 >>>> Is there a technical reason, or is it just because it hasn't been=20= >>>> updated for all the supported modes? >>>>=20 >>>>=20 >>>>=20 >>>> The driver also limits the available image formats, which makes one=20= >>>> required to do the conversion in software or (as in my case) using=20= >>>> the IPU. The IPU is fairly fast to do the simple UYVY to RGB24=20 >>>> conversion, but still slower than just getting an RGB image from = the sensor. >>>=20 >>> This limitation is due to the camera device driver. Only few=20 >>> configurations are implemented. >>>=20 >>=20 >> Those I2C blobs are pretty difficult to get right! >=20 >=20 > +1 >=20 > Daiane > --=20 > _______________________________________________ > meta-freescale mailing list > meta-freescale@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-freescale From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BABE3E00858; Thu, 18 Sep 2014 02:26:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [178.32.228.6 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 4750 seconds by postgrey-1.32 at yocto-www; Thu, 18 Sep 2014 02:26:13 PDT Received: from mo6.mail-out.ovh.net (mo6.mail-out.ovh.net [178.32.228.6]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4247BE00855 for ; Thu, 18 Sep 2014 02:26:13 -0700 (PDT) Received: from mail180.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo6.mail-out.ovh.net (Postfix) with SMTP id 7717CFF9012 for ; Thu, 18 Sep 2014 10:06:53 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 18 Sep 2014 10:06:52 +0200 Received: from pac33-3-88-170-243-169.fbx.proxad.net (HELO e6520eb) (eric%eukrea.com@88.170.243.169) by ns0.ovh.net with SMTP; 18 Sep 2014 10:06:51 +0200 Date: Thu, 18 Sep 2014 10:06:51 +0200 From: Eric =?ISO-8859-1?B?QuluYXJk?= To: Alfonso =?ISO-8859-1?B?VGFt6XM=?= Message-ID: <20140918100651.0f0e5574@e6520eb> In-Reply-To: References: <883E391C593F724B94C42216FF27FF4841EEA8A891@EXVMBX003-6.exch003intermedia.net> <54184269.2000701@boundarydevices.com> <883E391C593F724B94C42216FF27FF4841EEA8A97D@EXVMBX003-6.exch003intermedia.net> Organization: =?ISO-8859-1?B?RXVrculh?= Electromatique X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Ovh-Tracer-Id: 10564037351447833882 X-Ovh-Remote: 88.170.243.169 (pac33-3-88-170-243-169.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejgedrgeefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejgedrgeefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: Jacob Pedersen , "meta-freescale@yoctoproject.org" Subject: Re: OV5640 MIPI-CSI2 driver - why the limitations? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2014 09:26:22 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi Alfonso, Le Wed, 17 Sep 2014 17:23:24 -0500, Alfonso Tamés a écrit : > > > Excuse me for the off topic question but does anyone know where to find complete documentation for the ov5640? I successfully patched a Wandboard Kernel with Eric’s patches from the Boundary Kernel to enable autofocus but would like to explore if it can be set to any other position beside the center of the image. > you need an NDA with Omnivision ... maybe asking google for "ov5640 manual pdf" could help who knows ;-) Eric