From: Conor Dooley <conor@kernel.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Richard Leitner <richard.leitner@linux.dev>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Alexander Stein <alexander.stein@ew.tq-group.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
driver-core@lists.linux.dev
Subject: Re: [PATCH RFC 1/2] dt-bindings: regmap: add common schema for no-sequential-read
Date: Tue, 28 Jul 2026 16:34:40 +0100 [thread overview]
Message-ID: <20260728-pointy-habitual-b46592dec7ba@spud> (raw)
In-Reply-To: <20260728092856.GB1494774@killaraus.ideasonboard.com>
[-- Attachment #1: Type: text/plain, Size: 5151 bytes --]
On Tue, Jul 28, 2026 at 12:28:56PM +0300, Laurent Pinchart wrote:
> On Tue, Jul 28, 2026 at 09:13:09AM +0200, Richard Leitner wrote:
> > On Fri, Jul 24, 2026 at 12:28:12PM +0300, Laurent Pinchart wrote:
> > > On Thu, Jul 23, 2026 at 08:55:18PM +0200, Richard Leitner wrote:
> > > > On Thu, Jul 23, 2026 at 07:10:48PM +0300, Laurent Pinchart wrote:
> > > > > On Thu, Jul 23, 2026 at 05:02:42PM +0100, Conor Dooley wrote:
> > > > > > On Thu, Jul 23, 2026 at 06:45:41PM +0300, Laurent Pinchart wrote:
> > > > > > > On Thu, Jul 23, 2026 at 01:01:11PM +0200, Richard Leitner wrote:
> > > > > > > > On Wed, Jul 22, 2026 at 11:03:09PM +0100, Mark Brown wrote:
> > > > > > > > > On Wed, Jul 22, 2026 at 11:58:46PM +0200, Richard Leitner wrote:
> > > > > > > > >
> > > > > > > > > > @Mark: I understood that if the fpga really intercepts the I2C bus, it
> > > > > > > > > > should be modelled accordingly in device tree. But what would be the
> > > > > > > > > > preferred implementation if both devices sit on the same I2C bus, but
> > > > > > > > > > one is messing up some register reads on purpose?
> > > > > > > > >
> > > > > > > > > I think we would need to have a coherent understanding and description
> > > > > > > > > of the actual issue to know how to describe it.
> > > > > > > >
> > > > > > > > Understood. I will try to figure out how the hardware is really wired
> > > > > > > > and come back to you.
> > > > > > >
> > > > > > > Based on the information I have received so far, the FPGA is interposed
> > > > > > > between the host and sensor. It could therefore be modelled in DT as
> > > > > > > child of the I2C bus and a parent of the sensor.
> > > > > > >
> > > > > > > New version of some of the Vision Components modules have fixed the
> > > > > > > multi-read bug, so we will still need a property in the FPGA DT node to
> > > > > > > indicate if the quirk should be activated.
> > > > > >
> > > > > > Or come up with a compatible for the FPGA DT node that uniquely
> > > > > > identifies the revision of the RTL in use.
> > > > > > That's my preference for things that use some custom RTL that aren't
> > > > > > configuration parameters.
> > > > >
> > > > > I'm afraid we won't be able to get that information. We have limited
> > > > > visibility on the ecosystem of modules and what the FPGA does in each of
> > > > > them.
> > > >
> > > > Thanks for the clarification. Should I continue working on this topic
> > > > (i.e. modelling the FPGA as I2C controller with the sensor as a
> > > > "subdevice")? Or do you want to take over Laurent? Do you have any other
> > > > downstream work on the vc-mipi stuff, except the patches in your gitlab
> > > > repo?
> > >
> > > I'm afraid I won't have time for the time being, as I will soon start my
> > > summer holidays. The patches in the git tree you mentioned are all I
> > > have.
> >
> > Ok. Thanks. Then I will give it a try.
> >
> > I did some more research on that module and it features a Lattice FPGA
> > (LCMXO3LF-1300E) which to all of my measurement intercepts the I2C bus
> > as expected.
> >
> > As it additionally manages the regulators my approach would be to
> > implement a Multi-Function Devices (MFD) driver for it.
> >
> > The resulting DTS layout would then be something like:
> >
> > &i2c1 {
> > fpga@10 {
> > compatible = "visioncomponents,vc-mipi-controller";
> > reg = <0x10>;
> >
> > i2c-mux {
> > compatible = "visioncomponents,vc-mipi-i2c-mux";
> >
> > i2c@0 {
> > reg = <0>;
> >
> > ov9282: camera-sensor@60 {
> > compatible = "ovti,ov9282";
> > reg = <0x60>;
> > ...
> > };
> > };
> > };
> >
> > vc_mipi_reg: regulator {
> > compatible = "visioncomponents,vc-mipi-regulator";
> > };
> > };
> > };
> >
> > Mark, Laurent, if that's incorrect or otherwise not acceptable,
> > please reach out. Thanks a lot!
>
> You could also simplify it to
>
> &i2c1 {
> fpga@10 {
> compatible = "visioncomponents,vc-mipi-controller";
> reg = <0x10>;
>
> i2c@0 {
> reg = <0>;
>
> ov9282: camera-sensor@60 {
> compatible = "ovti,ov9282";
> reg = <0x60>;
> ...
> };
> };
> };
> };
>
> and use a single driver that registers an I2C mux (and instantiate I2C
> child devices) as well as a regulator, without using the MFD framework.
> That could reduce the runtime complexity, which would be nice. If you
> prefer using the MFD framework with more complex bindings I'm not
> opposed to it though.
I prefer this version, however I think it becomes problematic because
there are different types of child nodes, Richard mentioned regulators
plural and even a single regulator I think should have a dedicated node.
>
> > > > I've additionally wrote "my Vision Components contact" an email asking
> > > > for clarification of the I2C bus layout on the modules yesterday. If I
> > > > get any new information from that path I will of course take it into account.
> > > >
> > > > Thanks a lot, Laurent!
>
> --
> Regards,
>
> Laurent Pinchart
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-28 15:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 8:42 [PATCH RFC 0/2] regmap: support firmware-described non-sequential register reads Richard Leitner
2026-07-22 8:42 ` [PATCH RFC 1/2] dt-bindings: regmap: add common schema for no-sequential-read Richard Leitner
2026-07-22 8:49 ` sashiko-bot
2026-07-22 13:59 ` Mark Brown
2026-07-22 18:24 ` Richard Leitner
2026-07-22 20:16 ` Laurent Pinchart
2026-07-22 21:58 ` Richard Leitner
2026-07-22 22:03 ` Mark Brown
2026-07-23 11:01 ` Richard Leitner
2026-07-23 15:45 ` Laurent Pinchart
2026-07-23 16:02 ` Conor Dooley
2026-07-23 16:10 ` Laurent Pinchart
2026-07-23 16:31 ` Conor Dooley
2026-07-23 16:38 ` Laurent Pinchart
2026-07-23 18:55 ` Richard Leitner
2026-07-24 9:28 ` Laurent Pinchart
2026-07-28 7:13 ` Richard Leitner
2026-07-28 9:28 ` Laurent Pinchart
2026-07-28 15:34 ` Conor Dooley [this message]
2026-07-22 20:20 ` Mark Brown
2026-07-22 8:42 ` [PATCH RFC 2/2] regmap: implement no-sequential-read firmware property Richard Leitner
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=20260728-pointy-habitual-b46592dec7ba@spud \
--to=conor@kernel.org \
--cc=alexander.stein@ew.tq-group.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=dakr@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=richard.leitner@linux.dev \
--cc=robh@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