From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Richard Leitner <richard.leitner@linux.dev>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Alexander Stein <alexander.stein@ew.tq-group.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: media: i2c: Add vision-components,mipi-module-controller
Date: Thu, 17 Sep 2026 11:19:17 +0300 [thread overview]
Message-ID: <20260917081917.GB21347@killaraus.ideasonboard.com> (raw)
In-Reply-To: <3dc63afd-ab21-4e3c-b6da-0fb51584ca9a@kernel.org>
On Thu, Sep 17, 2026 at 10:08:15AM +0200, Krzysztof Kozlowski wrote:
> On 17/09/2026 09:55, Richard Leitner wrote:
> >> There is no "clocks" property in the binding. If there is input, then
> >> there is a "clocks".
> >>
> >> Then we never describe external oscillators with "clock-frequency"
> >> property. ACPI does, but not DT.
> >
> > So how would that be best solved in DT?
> >
> > Should there be a "fixed-clock" child node for that external oscillator?
> > Something like:
> >
> > vc_mipi_ctrl: controller@10 {
> > ...
> >
> > vc_mipi_clk: clock {
> > compatible = "fixed-clock";
> > #clock-cells = <0>;
> > clock-frequency = <37125000>;
> > };
> >
>
> Oh, wait, I misread. The external oscillator is not external to the
> module? Below...
>
> > i2c-tunnel {
> > ...
> >
> > vc_mipi_sensor: camera@60 {
> > ...
> >
> > clocks = <&vc_mipi_clk>;
> > clock-names = "inck";
> > };
> > };
> >
> > Or should (as discussed in the other branch of this thread) there be a
> > separate compatible for every vc-mipi sensor variant board? Then this
> > could also be part of the compatible-dependent driver data.
> >
> > Or are there any other/better approaches to this?
> >
> >>
> >>
> >>> uses it for internal purpose, and also to provide a clock to the sensor.
> >>> Very roughly speaking, and ignoring power supplies as we focus on the
> >>> clocks, the camera module is architectured this way:
> >>>
> >>> Connector
> >>> || +--------+
> >>> || <------------ MIPI CSI-2 ------------ | |
> >>> || +-------+ | |
> >>> || <--- I2C ---> | | <--- I2C ---> | Sensor |
> >>> || | FPGA | | |
> >>> || | | --- Clock --> | |
> >>> || +-------+ +--------+
> >>> ^
> >>> |
> >>> +-------+
> >>> | Clock |
> >>> | Osc. |
> >>> +-------+
> >>>
> >>> The frequency of the external clock oscillator is what the
> >>> clock-frequency models.
>
> ... this sentence confused me. If the oscillator is part of the module,
> then clock-frequency property is applicable or it is implied by the
> compatible.
Our replies have crossed each other. I should have waited, it would have
saved me time writing a long message :-)
Yes, the external oscillator is in the module. That's why I initially
proposed using the clock-frequency property. We could still model it as
a separate DT node (see my other e-mail), but I think it brings
complexity for little gain.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2026-09-17 8:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 20:20 [PATCH 0/3] Add Vision Components MIPI Camera Module support Richard Leitner
2026-09-15 20:20 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Vision Components GmbH Richard Leitner
2026-09-15 20:20 ` [PATCH 2/3] dt-bindings: media: i2c: Add vision-components,mipi-module-controller Richard Leitner
2026-09-15 21:57 ` Rob Herring (Arm)
2026-09-16 7:00 ` Krzysztof Kozlowski
2026-09-16 7:33 ` Richard Leitner
2026-09-16 7:45 ` Laurent Pinchart
2026-09-16 8:30 ` Krzysztof Kozlowski
2026-09-16 8:35 ` Krzysztof Kozlowski
2026-09-16 9:01 ` Richard Leitner
2026-09-16 13:41 ` Krzysztof Kozlowski
2026-09-16 14:57 ` Richard Leitner
2026-09-17 6:30 ` Krzysztof Kozlowski
2026-09-17 8:46 ` Laurent Pinchart
2026-09-16 16:52 ` Laurent Pinchart
2026-09-17 6:18 ` Krzysztof Kozlowski
2026-09-17 7:55 ` Richard Leitner
2026-09-17 8:08 ` Krzysztof Kozlowski
2026-09-17 8:19 ` Laurent Pinchart [this message]
2026-09-17 8:28 ` Krzysztof Kozlowski
2026-09-17 8:17 ` Laurent Pinchart
2026-09-15 20:20 ` [PATCH 3/3] media: i2c: vc-mipi: add Vision Components MIPI Module Controller 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=20260917081917.GB21347@killaraus.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@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
all inboxes | Powered by JetHome®