Re: OMAP34XXCAM: Micron mt9d111 sensor support?

Gary Thomas
2009-06-23T13:23:03Z

Aguirre Rodriguez, Sergio Alberto wrote:
>> -----Original Message-----
>> From: Gary Thomas [mailto:gary@mlbassoc.com]
>> Sent: Monday, June 22, 2009 1:06 PM
>> To: Aguirre Rodriguez, Sergio Alberto
>> Cc: Zach LeRoy; linux-omap; linux-media@vger.kernel.org; Sakari Ailus
>> Subject: Re: OMAP34XXCAM: Micron mt9d111 sensor support?
>>
>> Aguirre Rodriguez, Sergio Alberto wrote:
>>>> -----Original Message-----
>>>> From: linux-media-owner@vger.kernel.org [mailto:linux-media-
>>>> owner@vger.kernel.org] On Behalf Of Zach LeRoy
>>>> Sent: Wednesday, June 17, 2009 5:06 PM
>>>> To: linux-omap; linux-media@vger.kernel.org
>>>> Subject: OMAP34XXCAM: Micron mt9d111 sensor support?
>>>>
>>>> I am working on adding support for a micron 2 MP sensor: mt9d111 on a
>>>> gumsitx overo. This is a i2c-controlled sensor. Ideally, I would like
>> to
>>>> use the omap34xxcam driver to interface with this sensor. I am
>> wondering
>>>> if there are currently any distributions which already include support
>> for
>>>> this sensor through the omap34xxcam driver, or if anyone else is
>>>> interested in this topic.
>>>>
>>> Hi Zach,
>>>
>>> I'm working along with Sakari Ailus and others in this omap34xxcam
>> driver you're talking about, and we are in the process to provide a newer
>> patchset to work on the latest l-o tree.
>>> Sakari is sharing the camera core here:
>>>
>>> http://gitorious.org/omap3camera
>>>
>>> And I have also this repository which contains a snapshot of Sakari's
>> tree + support from some sensors I have available for the 3430SDP and LDP
>> (the name could confuse with the above, but I'll change the name/location
>> soon):
>>> http://gitorious.org/omap3-linux-camera-driver
>>>
>>> Testing the driver with as much sensors as we can is very interesting
>> (at least for me), because that help us spot possible bugs that aren't
>> seen with our current HW. So, I'll be looking forward if you add this
>> sensor driver to the supported list :)
>> I'd like to move forward using this on OMAP/3530 with TVP5150 (S-video in)
>>
>> Sadly, the tree above (omap3-linux-camera-driver) won't build for the
>> Zoom/LDP:
>> CC arch/arm/mach-omap2/board-ldp-camera.o
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:59:
>> error: implicit declaration of function 'PAGE_ALIGN'
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:59:
>> error: initializer element is not constant
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:59:
>> error: (near initialization for 'ov3640_hwc.capture_mem')
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-camera.c:
>> In function 'ov3640_sensor_set_prv_data':
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:89:
>> error: 'hwc' undeclared (first use in this function)
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:89:
>> error: (Each undeclared identifier is reported only once
>> /local/omap3-linux-camera-driver/arch/arm/mach-omap2/board-ldp-
>> camera.c:89:
>> error: for each function it appears in.)
>>
>> Looking at the code, it seems that some pieces are missing - merge
>> problem maybe?
>
> Hi Gary,
>
> I'm currently on the process to rebase and verify all this code on 3430SDP, Zoom1 and soon Zoom2.
>
> Here you can find my progress:
>
> http://dev.omapzoom.org/?p=saaguirre/linux-omap-camera.git;a=summary
>
> Check devel branch, which contains all latest Sakari's tree patches (http://gitorious.org/omap3camera) rebased on top of latest Kevin's l-o PM tree, plus the patches, which are still in works, to make the above mentioned platforms to work.
>
> I'm first trying to make 3430SDP work, don't have a Zoom1/Zoom2 handy right now...
>
> My gitorious tree will eventually disappear, as I can work better with this new one.
>
> I'll consolidate some patches when this sensor code is ready, and will CC you if interested.
>

Thanks. I've already checked out this tree and at least
it builds for the Zoom (I have one here). Is this in a
state where I can test it for you? What do you use to
capture video from the sensor?

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------