Open josuah opened 4 weeks ago
It might not be required to push any bugfix for v4.0.0
:
Currently, the sensor drivers do not do anything with the remote-endpoint-label
, so passing them remote-endpoint-label = "unused";
will work with MIPI/DVP controllers with the old API: not ideal but not broken.
Also, as pointed-out here, adding the remote-endpoint-label
is not expected to break the compilation.
Thanks @josuah for creating the issue. I made some modifications in the description. Since it is not considered as "bug" with the current situation (i.e. declare remote-endpoint
in DT but not use it in drivers and declare redundant phandle references source / sensor dev in DT) so I removed the bug label.
remote-endpoint
is declared in some dts but not actually used in any Zephyr driver. And while we don't declare a binding for the endpoint, declaring or not the remote-endpoint
or anything else doesn't matter, it still compiles.
However, migration to use the video-interfaces binding is strongly recommended because of the following benefits:
remote-endpoint-label
to retrieve the peer remote device object in the driver without the need of extra direct phandle reference.
Describe the situation
Following https://github.com/zephyrproject-rtos/zephyr/pull/74415, video drivers are in the middle of a migration away from an ad-hoc devicetree API.
Migration to use the
video-interfaces
binding is strongly recommended because of the following benefices:remote-endpoint-label
to retrieve the peer remote device object in the driver without the need of redundant direct phandle reference in DT.video-interfaces
binding to avoid declaring so many vendor custom properties in each vendor binding.With the new
video-interfaces
binding,remote-endpoint
must be replaced byremote-endpoint-label
in the devicetree. The reason for it was https://github.com/zephyrproject-rtos/zephyr/issues/57708 and the workaround is https://github.com/zephyrproject-rtos/zephyr/pull/74415. A final conversion fromremote-endpoint-label
toremote-endpoint
will need to happen once #57708 is addressed, but will be trivial to propagate.Old API, drivers that need conversion
New API, drivers that got converted
Impact
Additional context
Zephyr v4.0 is in feature-freeze: not possible to rush every vendor to complete the migration of their driver in time.
This can be done gradually as here, as commented in the following PR, for example: