Re: [PATCH RFC 1/2] dt-bindings: regmap: add common schema for no-sequential-read

Mark Brown <[email protected]> Wed, 22 Jul 2026 14:59:12 +0100
Newsgroups dev.linux.lists.driver-core,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, Jul 22, 2026 at 10:42:46AM +0200, Richard Leitner wrote:
> Introduce a common regmap dt-binding schema with an optional boolean
> property no-sequential-read to describe hardware integrations where
> reading multiple consecutive registers in a single operation is not
> reliable and registers must be read individually.

> A typical case are imaging sensors used on vendor-provided camera
> modules whose bus integration does not support reads that advance across
> consecutive register addresses. In such cases, single-register reads
> work, but bulk reads do not. This restriction is a property of the
> concrete hardware integration, not of the chip itself. It therefore
> cannot be identified from the device driver and duplicating firmware
> parsing in each affected driver does not scale.

No, this should not be a DT property.  We should discover this through
the bus, just like we do currently for the various I2C quirks that are
advertied by the I2C subsystem.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpgzK8ACgkQJNaLcl1U
h9Aa7Qf/R5JpFVgprbbnuaU3XoAX/nBI95XkID3JxvqORE9n/z5u85hthFQ4rORJ
psjAZKMHJuNy3xEey4PtxjzaAgf8VQ9DLNopBdQP4oLkLjdPN4hRBlGIJP3UTc6M
zSL/CLqmBCFlAhopF/iGMWHcpsXpu9rSGbC8Ws8C8v9Geh7cWoQeYc2w3Vxzb2jg
Y5mKW8IKTgmqC8dSDSunXE8rGl5DCdbGp7eZ+iCdrnsqhu5cqO1O5r5K9K49Hrxq
TvGaM2B4Qo803WKhnliVDgkNlla/dJOKYQT/kS0s7BrB00d0/B+ERa9m0TScVXo6
DF/wSp7g3WMZ0NF1ThRx9SSC/NrbNw==
=h6WK
-----END PGP SIGNATURE-----