mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Jai Luthra <jai.luthra@ideasonboard.com>
Cc: Dave Stevenson <dave.stevenson@raspberrypi.com>,
	David Heidelberg via B4 Relay <devnull+david.ixit.cz@kernel.org>,
	Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	david@ixit.cz, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] media: imx355: reuse existing CCS defines
Date: Tue, 22 Sep 2026 11:35:28 +0300	[thread overview]
Message-ID: <arI90AxJJ2zHK3AT@kekkonen.localdomain> (raw)
In-Reply-To: <178850538534.11722.13162391406704193341@freya>

Hi Jai,

On Fri, Sep 04, 2026 at 12:33:05PM +0530, Jai Luthra wrote:

> the datasheet's recommendations at more than one occasion.
> 
> Do note that IMX708 and I assume this one too is not *actually*
> CCS-compliant, just similar enough. The CCS_R_MIPI_CCS_VERSION register
> reads 0x0. So we should take other limit registers with a grain of salt.

Indeed. As I wrote to David, the limit and capability registers are often
where the errors are and this is one of the primary reasons why we have CCS
static data: it avoids having to put the information to registers, which
cost time and (€ || $ || £ || ¤). (The last one is obviously a squirrel
skin, which was used as a currency in Finland in historic times. It's very
nice we have a character for it in ASCII.)

> 
> > >  
> > > -#define IMX355_REG_LLP                 CCI_REG16(0x0342)
> > >  #define IMX355_LLP_MAX                 0xffff
> > >  
> > > -#define IMX355_REG_X_ADD_START         CCI_REG16(0x0344)
> > > -#define IMX355_REG_Y_ADD_START         CCI_REG16(0x0346)
> > > -#define IMX355_REG_X_ADD_END           CCI_REG16(0x0348)
> > > -#define IMX355_REG_Y_ADD_END           CCI_REG16(0x034a)
> > > -#define IMX355_REG_X_OUT_SIZE          CCI_REG16(0x034c)
> > > -#define IMX355_REG_Y_OUT_SIZE          CCI_REG16(0x034e)
> > > -
> > 
> > But when a whole block comes out like this - that makes me think perhaps
> > the crop control or fmts might just be a common function ?
> > 
> 
> Indeed common helpers should be possible for typical ops for crop, formats,
> bit depth etc. I've already started working on something like this for the
> common raw sensor framework, but it should be possible to also handle the
> register writes for a whole "class" of sensors like CCS, Sony-CCS-similar
> (like this one, IMX708, IMX576, IMX519, IMX219?) and Starvis series etc.

The imx519 can be controlled using the CCS driver, probably quite a few
others, too. If you need dynamic control of something that doesn't exist in
CCS (I'm talking about semantics, not register address), then that possibly
requires quirks in CCS driver.

-- 
Regards,

Sakari Ailus

  reply	other threads:[~2026-09-22  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27  9:26 David Heidelberg via B4 Relay
2026-09-01 10:54 ` Jai Luthra
2026-09-01 16:51 ` Dave Stevenson
2026-09-03 22:30 ` Kieran Bingham
2026-09-04  7:03   ` Jai Luthra
2026-09-22  8:35     ` Sakari Ailus [this message]
2026-09-22  8:24   ` Sakari Ailus

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=arI90AxJJ2zHK3AT@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=david@ixit.cz \
    --cc=devnull+david.ixit.cz@kernel.org \
    --cc=jai.luthra@ideasonboard.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /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

all inboxes | Powered by JetHome®