linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Prashanth Subramanya <sprashanth@aptina.com>,
	linux-media@vger.kernel.org, mchehab@infradead.org,
	g.liakhovetski@gmx.de, s.nawrocki@samsung.com,
	kyungmin.park@samsung.com,
	sakari.ailus@maxwell.research.nokia.com,
	scott.jiang.linux@gmail.com, DRittersdorf@xrite.com
Subject: Re: [PATCH 2/2] drivers: media: video: Add support for Aptina ar0130 sensor
Date: Thu, 25 Oct 2012 01:33:02 +0200	[thread overview]
Message-ID: <4198456.Ul2KJFuirD@avalon> (raw)
In-Reply-To: <20121024214818.GE23933@valkosipuli.retiisi.org.uk>

Hi Sakari,

On Thursday 25 October 2012 00:48:18 Sakari Ailus wrote:
> On Fri, Sep 28, 2012 at 07:50:49PM +0530, Prashanth Subramanya wrote:
> > This driver adds basic support for Aptina ar0130 1.2M sensor.
> > 
> > Changes for v2:
> > 1: Include new test pattern control as pointed by Hans and Lad.
> > 2: Remove soc_camera.h as suggested by Guennadi.
> > 3: Change auto exposure control as pointed by Dan Rittersdorf.
> > 4: Change incorrect return value as pointed by Nicolas.
> > 5: Change crop and binning settings.
> > 
> > Signed-off-by: Prashanth Subramanya <sprashanth@aptina.com>
> > ---

[snip]

> > +/**
> > + * PLL Dividers
> > + *
> > + * Calculated according to the following formula:
> > + *
> > + *    target_freq = (ext_freq x M) / (N x P1 x P2)
> > + *    VCO_freq    = (ext_freq x M) / N
> > + *
> > + * And subject to the following limitations:
> > + *
> > + *    Limitations of PLL parameters
> > + *    -----------------------------
> > + *    32     ≤ M        ≤ 384
> > + *    1      ≤ N        ≤ 64
> > + *    1      ≤ P1       ≤ 16
> > + *    4      ≤ P2       ≤ 16
> > + *    384MHz ≤ VCO_freq ≤ 768MHz
> > + *
> > + * TODO: Use Aptina PLL Helper module to calculate dividers
> > + */
> > +
> > +static const struct ar0130_pll_divs ar0130_divs[] = {
> > +	/* ext_freq	target_freq	M	N	p1	p2 */
> > +	{24000000,	48000000,	32,	2,	2,	4},
> > +	{24000000,	66000000,	44,	2,	2,	4},
> > +	{48000000,	48000000,	40,	5,	2,	4}
> > +};
> 
> Do you think you could use the smiapp-pll PLL calculator, as your pll looks
> similar to that? Here you're making a lot of assumptions you wouldn't have
> to make.

The patches that we have worked on together in the past few days are for this 
driver. So, yes, it should use smiapp-pll :-) I've sent the smiapp-pll patches 
to Prashanth already.

-- 
Regards,

Laurent Pinchart


      reply	other threads:[~2012-10-24 23:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 14:20 [PATCH 2/2] drivers: media: video: Add support for Aptina ar0130 sensor Prashanth Subramanya
2012-10-01 12:20 ` Laurent Pinchart
2012-10-04  6:40   ` Subramanya Prashanth
2012-10-24 21:48 ` Sakari Ailus
2012-10-24 23:33   ` Laurent Pinchart [this message]

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=4198456.Ul2KJFuirD@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=DRittersdorf@xrite.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sakari.ailus@iki.fi \
    --cc=sakari.ailus@maxwell.research.nokia.com \
    --cc=scott.jiang.linux@gmail.com \
    --cc=sprashanth@aptina.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).