Re: [PATCH] media: i2c: IMX296 camera sensor driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 4, 2019 at 4:03 PM Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
>
> Hi Rob,
>
> On Mon, Nov 04, 2019 at 03:08:57PM -0600, Rob Herring wrote:
> > On Mon, Nov 4, 2019 at 7:42 AM Laurent Pinchart wrote:
> > > On Fri, Nov 01, 2019 at 08:22:46PM +0530, Manivannan Sadhasivam wrote:
> > > > Hi Laurent,
> > > >
> > > > Thanks for the improved version of the driver. I haven't tested it on
> > > > my setup yet. Once I do, I'll add a Tested-by tag.
> > > >
> > > > I just have few minor commments on top of Sakari's review. Overall it
> > > > looks good.
> > > >
> > > > On Thu, Oct 31, 2019 at 03:23:09PM +0200, Laurent Pinchart wrote:
> > > > > The IMX296LLR is a monochrome 1.60MP CMOS sensor from Sony. The driver
> > > > > supports cropping and binning (but not both at the same time due to
> > > > > hardware limitations) and exposure, gain, vertical blanking and test
> > > > > pattern controls.
> > > > >
> > > > > Preliminary support is also included for the color IMX296LQR sensor.
> > > > >
> > > > > Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
> > > > > ---
> >
> > > > > +   imx->reset = devm_gpiod_get_optional(&client->dev, "reset",
> > > > > +                                        GPIOD_OUT_HIGH);
> > > > > +   if (IS_ERR(imx->reset)) {
> > > > > +           if (PTR_ERR(imx->reset) != -EPROBE_DEFER)
> > > > > +                   dev_err(&client->dev, "failed to get xclr gpio (%ld)\n",
> > > >
> > > > If you want to keep device specific naming for resources, I'd suggest using
> > > > `xclr` instead of `reset` in DT itself.
> > >
> > > For GPIOs I think there's an overall consensus that standard names are
> > > preferred, while I don't think this applies to clocks. It's a bit of a
> > > grey area though, so I'm open to change on or the other.
> > >
> > > Rob, any preference ?
> >
> > If in fact that's a reset, then yes, use 'reset-gpios'. 'xclr' is an
> > unusual name though.
>
> Vendors are always inventive :-)
>
> How about clock names ? Do you think they should be standardized too,

No, because I don't see any benefit of doing that in general. Using
'reset-gpios' could enable some common reset handling. I don't see
that with clocks. The only chance for common clock handling is really
turn on/off all clocks and names don't matter for that.

> should we decide on a name for the main functional clock, or should we
> use the pin name ?

I don't really care because that's not something we could ever
enforce. I'd pick the pin name if I had to.

Rob



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux