From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Julien Massot <julien.massot@collabora.com>,
sakari.ailus@iki.fi, devicetree@vger.kernel.org,
kernel@collabora.com, linux-kernel@vger.kernel.org,
mchehab@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, linux-media@vger.kernel.org,
conor+dt@kernel.org
Subject: Re: [PATCH v7 0/5] Add support for MAX96714/F and MAX96717/F GMSL2 ser/des
Date: Thu, 6 Jun 2024 18:55:22 +0300 [thread overview]
Message-ID: <e506a0c8-56ea-420f-b8f6-ac3374c1457d@ideasonboard.com> (raw)
In-Reply-To: <20240606152428.GA26663@pendragon.ideasonboard.com>
On 06/06/2024 18:24, Laurent Pinchart wrote:
>> But if the i2c translation is used, it would mean that, say, the sensor
>> driver would need to use the "virtual" address, not the real one to
>> communicate with the sensor device, which doesn't sound right...
>
> How so ? With FPD-Link, with ATR is enabled, doesn't the sensor driver
> also use the "virtual" (as in host-visible) I2C address instead of the
> real one (as in the address used on the bus physically connected to the
> sensor) ?
No. If we, say, have a sensor hardware that responds to address 0x30, we
create a new "virtual" or "remote" i2c-bus (let's say i2c-10), on which
there's the sensor with address 0x30. So for the driver and this
i2c-bus, everything looks just like the sensor would be connected
"normally" to the SoC's i2c bus.
So, we have i2c-10 bus with sensor@30. This is what the userspace sees,
and how the driver sees it. And if we have, say, 2 identical cameras
behind two links, we have i2c-10 with sensor@30 and i2c-11 with sensor@30.
When the sensor driver does an i2c transaction, the i2c-atr driver will
catch that transaction before it goes to HW. It will replace the address
30 in the message with the appropriate alias (say, 50), and issue a HW
transaction on the SoC's i2c bus where the deserializer resides.
The deserializer sees a message to address 50, and knows that it's a
message to link 0 with alias 30 (based on the programmed translation
table). It takes the message, replaces 50 with 30, and sends it to the
serializer on link 0. The serializer will then transmit that message on
its i2c master, which will then be received by the sensor@30.
On a reply, the same happens but in reverse.
Tomi
next prev parent reply other threads:[~2024-06-06 15:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 13:19 Julien Massot
2024-04-30 13:19 ` [PATCH v7 1/5] dt-bindings: media: add Maxim MAX96717 GMSL2 Serializer Julien Massot
2024-04-30 13:19 ` [PATCH v7 2/5] dt-bindings: media: add Maxim MAX96714 GMSL2 Deserializer Julien Massot
2024-04-30 13:19 ` [PATCH v7 3/5] media: i2c: add MAX96717 driver Julien Massot
2024-05-31 13:56 ` Sakari Ailus
2024-06-03 7:29 ` Tommaso Merciai
2024-04-30 13:19 ` [PATCH v7 4/5] media: i2c: add MAX96714 driver Julien Massot
2024-04-30 13:19 ` [PATCH v7 5/5] drivers: media: max96717: stop the csi receiver before the source Julien Massot
2024-05-17 14:16 ` [PATCH v7 0/5] Add support for MAX96714/F and MAX96717/F GMSL2 ser/des Tommaso Merciai
2024-06-06 13:34 ` Tomi Valkeinen
2024-06-06 15:24 ` Laurent Pinchart
2024-06-06 15:55 ` Tomi Valkeinen [this message]
2024-06-07 9:27 ` Julien Massot
2024-06-07 9:01 ` Julien Massot
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=e506a0c8-56ea-420f-b8f6-ac3374c1457d@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=julien.massot@collabora.com \
--cc=kernel@collabora.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@iki.fi \
/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®