From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
To: Jai Luthra <jai.luthra@ideasonboard.com>
Cc: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Philippe Baetens <philippebaetens@gmail.com>,
Rob Herring <robh@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 2/2] media: i2c: Add driver for AMS-OSRAM Mira220
Date: Thu, 23 Jul 2026 13:17:09 +0200 [thread overview]
Message-ID: <amH3qaUBCOBOKxjL@zed> (raw)
In-Reply-To: <178480022192.3238585.15132202916626773351@freya>
Hi Jai
On Thu, Jul 23, 2026 at 03:20:21PM +0530, Jai Luthra wrote:
> Hi Jacopo,
>
> Quoting Jacopo Mondi (2026-07-23 14:46:07)
> > Hi Jai
> >
[snip]
> > > > > > +#define MIRA220_MIPI_HSIZE_REG CCI_REG16_LE(0x207d)
> > > > > > +
> > > > > > +/* MIPI bus control */
> > > > > > +#define MIRA220_MIPI_LANES_REG CCI_REG8(0x6012)
> > > > > > +
> > > > > > +#define MIRA220_MIPI_CLK_MODE_REG CCI_REG8(0x6013)
> > > > > > +#define MIRA220_MIPI_CLK_CONTINUOUS 0x00
> > > > > > +#define MIRA220_MIPI_CLK_NON_CONTINUOUS 0x01
> > > > >
> > > > > Does DT allow clock-continuous property? Do we handle it?
> > > > >
> > > >
> > > > The bindings for this sensor allows all properties from
> > > > video-interfaces.yaml, including clock-noncontinuous.
> > > >
> > > > The driver doesn't support it at the moment and unconditionally use
> > > > continuous clock, but I guess it's nice to provide macros for the
> > > > non-continuous configuration as well
> > >
> > > Ah, that's not too good if the DT allows it but the driver silently ignores
> > > it.
> >
> > Why ?
> >
> > We allow all properties from video-interfaces.yaml (something which I
> > think it's wrong, but that's a long time ago discussion with dt
> > maintainers, so I'm not contesting that) and we certainly don't handle
> > them in drivers (in facts, what drivers do is not relevant to which
> > properties are allowed for a device).
> >
>
> I am not saying the bindings shouldn't support that property, bindings are
> for hardware. And yes you are free to not implement all features in the
> driver.
>
> But given the bindings and the hardware both support toggling between
> continuous or non-continous MIPI clock, from a hardware engineer or
> integrators perspective it would be quite confusing that setting the field
> in DT will do nothing, with *no* warning to the user either during the DT
> validation or the driver probe that it was ignored.
>
True that.
But does this mean I should be doing the same for all the properties
that apply to the hardware ?
clock-noncontinuous:
link-frequencies:
lane-polarities:
?
next prev parent reply other threads:[~2026-07-23 11:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 10:55 [PATCH v7 0/2] media: i2c: Add driver for Mira220 Jacopo Mondi
2026-07-22 10:55 ` [PATCH v7 1/2] dt-bindings: media: i2c: Add mira220 image sensor Jacopo Mondi
2026-07-22 16:35 ` Conor Dooley
2026-07-22 10:55 ` [PATCH v7 2/2] media: i2c: Add driver for AMS-OSRAM Mira220 Jacopo Mondi
2026-07-22 12:37 ` Jai Luthra
2026-07-23 7:21 ` Jacopo Mondi
2026-07-23 8:10 ` Jai Luthra
2026-07-23 9:16 ` Jacopo Mondi
2026-07-23 9:50 ` Jai Luthra
2026-07-23 11:17 ` Jacopo Mondi [this message]
2026-07-23 11:50 ` Jai Luthra
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=amH3qaUBCOBOKxjL@zed \
--to=jacopo.mondi@ideasonboard.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jai.luthra@ideasonboard.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=philippebaetens@gmail.com \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.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
all inboxes | Powered by JetHome®