this RFCv3, codename "FOSDEM Fries", of RFC patches to support the TI DS90UB9xx serializer/deserializer chipsets with I2C address translation. I sent RFCv2 back in 2019 (!). After that I have applied most of the improvements proposed during code review, most notably device tree representation and proper use of kernel abstractions for clocks and GPIO. I have also done many improvements all over the drivers code. However I still don't consider these drivers "ready", hence the RFC status. One reason is that, while the I2C ATR idea has been considered good by Wolfram, its implementation requires I2C core changes that have been tried but never made it to mainline. I think that discussion needs to be reopened and work has to be done on that side. Thus for the time being this code still has the alias pool: it is an interim solution until I2C core is ready. Also be aware that the only hardware where I sould test this code runs a v4.19 kernel. I cannot guarantee it will work perfectly on mainline. And since my hardware has only one camera connected to each deserializer I dropped support. However I wrote the code to be able to easily add support for 2 and 4 camera inputs as well as 2 CSI-2 outputs (DS90UB960). Finally, I dropped all attempts at supporting hotplug. The goals I had 2+ years ago are not reasonably doable even with current kernels. Luckily all the users that I talked with are happy without hotplug. For this reason I simplified the serializer management in the DS90UB954 driver by keeping the serializer always instantiated. Even with the above limitations I felt I'd send this v3 anyway since several people have contacted me since v2 asking whether this implementation has made progress towards mainline. Some even improved on top of my code it their own forks. As I cannot afford to work on this topic in the near future, here is the latest and greatest version I can produce, with all the improvements I made so far. That's all, enjoy the code! References: [RFCv2] https://lore.kernel.org/lkml/20190723203723.11730-1-luca@xxxxxxxxxxxxxxxx/ [RFCv1] https://lore.kernel.org/linux-media/20190108223953.9969-1-luca@xxxxxxxxxxxxxxxx/ Best regards. Luca Luca Ceresoli (6): i2c: core: let adapters be notified of client attach/detach i2c: add I2C Address Translator (ATR) support media: dt-bindings: add DS90UB953-Q1 video serializer media: dt-bindings: add DS90UB954-Q1 video deserializer media: ds90ub954: new driver for TI DS90UB954-Q1 video deserializer media: ds90ub953: new driver for TI DS90UB953-Q1 video serializer .../bindings/media/i2c/ti,ds90ub953-q1.yaml | 96 + .../bindings/media/i2c/ti,ds90ub954-q1.yaml | 235 +++ MAINTAINERS | 22 + drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/i2c-atr.c | 557 ++++++ drivers/i2c/i2c-core-base.c | 18 +- drivers/media/i2c/Kconfig | 22 + drivers/media/i2c/Makefile | 3 + drivers/media/i2c/ds90ub953.c | 560 ++++++ drivers/media/i2c/ds90ub954.c | 1648 +++++++++++++++++ include/dt-bindings/media/ds90ub953.h | 16 + include/linux/i2c-atr.h | 82 + include/linux/i2c.h | 16 + 14 files changed, 3284 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub954-q1.yaml create mode 100644 drivers/i2c/i2c-atr.c create mode 100644 drivers/media/i2c/ds90ub953.c create mode 100644 drivers/media/i2c/ds90ub954.c create mode 100644 include/dt-bindings/media/ds90ub953.h create mode 100644 include/linux/i2c-atr.h -- 2.25.1