All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Gershgorin <alexg@meprolight.com>
To: "'Laurent Pinchart'" <laurent.pinchart@ideasonboard.com>
Cc: "'Sakari Ailus'" <sakari.ailus@iki.fi>,
	"'Michael Jones'" <michael.jones@matrix-vision.de>,
	"'linux-media@vger.kernel.org'" <linux-media@vger.kernel.org>,
	"'agersh@rambler.ru'" <agersh@rambler.ru>
Subject: RE: FW: OMAP 3 ISP
Date: Wed, 29 Jun 2011 19:34:13 +0300	[thread overview]
Message-ID: <4875438356E7CA4A8F2145FCD3E61C0B2A5D211E45@MEP-EXCH.meprolight.com> (raw)
In-Reply-To: <201106291755.07304.laurent.pinchart@ideasonboard.com>

Hi Laurent

Good news!
Now registration is successful, many thanks.
Now I can move on to the next stage of work.

Regards,

Alex Gershgorin


-----Original Message-----
From: Laurent Pinchart [mailto:laurent.pinchart@ideasonboard.com]
Sent: Wednesday, June 29, 2011 6:55 PM
To: Alex Gershgorin
Cc: 'Sakari Ailus'; 'Michael Jones'; 'linux-media@vger.kernel.org'; 'agersh@rambler.ru'
Subject: Re: FW: OMAP 3 ISP

Hi Alex,

On Wednesday 29 June 2011 15:50:54 Alex Gershgorin wrote:
> On Wednesday, June 29, 2011 2:33 PM Laurent Pinchart wrote:
> > On Wednesday 29 June 2011 13:18:10 Alex Gershgorin wrote:
> > >
> > > From previous correspondence:
> > >
> > > My video source is not the video camera and performs many other
> > > functions.
> > >
> > > For this purpose I have RS232 port.
> > >
> > > As for the video, it runs continuously and is not subject to control
> > > except for the power supply.
> > >
> > > > As a quick hack, you can create an I2C driver for your video source
> > > > that doesn't access the device and just returns fixed format and frame
> > > > size.
> > > >
> > > > The correct fix is to implement support for platform subdevs in the
> > > > V4L2 core.
> > >
> > > Yes, I wrote a simple driver, now it looks like this:
> > >
> > > [    2.029754] Linux media interface: v0.10
> > > [    2.034851] Linux video capture interface: v2.00
> > > [    2.041015] My_probe I2C subdev probed

[snip]

> > > [    2.047058] omap3isp omap3isp: Revision 2.0 found
> > > [    2.052307] omap-iommu omap-iommu.0: isp: version 1.1
> > > [    2.069854] i2c i2c-3: Failed to register i2c client my-te at 0x21
> > > -16)
> >
> > Make sure you don't already have an I2C device at address 0x21 on the same
> > bus.

[snip]

> Here is my platform device registration
>
> #define SENSOR_I2C_BUS_NUM    3
>
> static struct i2c_board_info __initdata camera_i2c_devices[] = {
>       {
>              I2C_BOARD_INFO("my-te", 0x21),
>       },
> };
>
> static struct isp_subdev_i2c_board_info camera_i2c_subdevs[] = {
>       {
>             .board_info = &camera_i2c_devices[0],
>             .i2c_adapter_id = SENSOR_I2C_BUS_NUM,
>       },
>       { NULL, 0, },
> };
>
> static struct isp_v4l2_subdevs_group camera_subdevs[] = {
>       {
>             .subdevs = camera_i2c_subdevs,
>             .interface = ISP_INTERFACE_PARALLEL,
>             .bus = {
>                   .parallel = {
>                         .data_lane_shift = 1,
>                         .clk_pol = 0,
>                         .hs_pol  = 0,
>                         .vs_pol  = 0,
>                         .bridge = ISPCTRL_PAR_BRIDGE_DISABLE,
>                   }
>             },
>       },
>       {},
> };
>
> static struct isp_platform_data isp_platform_data = {
>       .subdevs = camera_subdevs,
> };
>
> int __init camera_init(void)
> {
> omap_register_i2c_bus(3,camera_i2c_devices,ARRAY_SIZE(camera_i2c_devices))
> ;

Doesn't omap_register_i2c_bus() take 4 arguments ?

Anyway, you must not register the I2C devices here, they will be registered by
the OMAP3 ISP driver. You still need to register the bus though, with the last
two arguments sets to NULL, 0.

> return omap3_init_camera(&isp_platform_data);
> }

--
Regards,

Laurent Pinchart


__________ Information from ESET NOD32 Antivirus, version of virus signature database 6250 (20110629) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 6250 (20110629) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


  parent reply	other threads:[~2011-06-29 16:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4875438356E7CA4A8F2145FCD3E61C0B2A5D211E43@MEP-EXCH.meprolight.com>
2011-06-29 15:55 ` FW: OMAP 3 ISP Laurent Pinchart
2011-06-29 16:16   ` Alex Gershgorin
2011-06-29 16:34   ` Alex Gershgorin [this message]
     [not found] <B9D34818-CE30-4125-997B-71C50CFC4F0D@yahoo.com>
2012-05-29  7:08 ` Alex Gershgorin
2012-05-29  8:15   ` jean-philippe francois
     [not found]     ` <CA+2YH7s9F+4WQuQ9zioCetpJ5f8_3pihf5wcNVp5SjLuiq3k3g@mail.gmail.com>
2012-05-29 10:22       ` Laurent Pinchart
     [not found] <4875438356E7CA4A8F2145FCD3E61C0B2A5D211E42@MEP-EXCH.meprolight.com>
2011-06-29 11:32 ` Laurent Pinchart
2011-05-19 11:36 FW: " Alex Gershgorin
2011-05-19 12:51 ` Alex Gershgorin
2011-05-19 13:02   ` Laurent Pinchart
2011-05-19 13:44     ` Michael Jones
2011-05-19 13:56       ` Laurent Pinchart
2011-05-19 14:24         ` Michael Jones
2011-05-19 14:27           ` Laurent Pinchart
2011-05-19 15:13             ` Alex Gershgorin
2011-05-19 15:32               ` Sakari Ailus
2011-05-24 14:11                 ` Alex Gershgorin
2011-05-25  7:22                   ` Laurent Pinchart
2011-05-25  9:58                     ` Alex Gershgorin
2011-05-25 10:01                       ` Laurent Pinchart
2011-05-25 10:54                         ` Alex Gershgorin
2011-06-28  7:47                         ` Alex Gershgorin
2011-06-28 22:35                           ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4875438356E7CA4A8F2145FCD3E61C0B2A5D211E45@MEP-EXCH.meprolight.com \
    --to=alexg@meprolight.com \
    --cc=agersh@rambler.ru \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=michael.jones@matrix-vision.de \
    --cc=sakari.ailus@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.