All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Richard Leitner <richard.leitner@linux.dev>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	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 10:08:15 +0200	[thread overview]
Message-ID: <3dc63afd-ab21-4e3c-b6da-0fb51584ca9a@kernel.org> (raw)
In-Reply-To: <aquan_6JiKkEw-Kp@bombadil>

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.


Best regards,
Krzysztof

  reply	other threads:[~2026-09-17  8:08 UTC|newest]

Thread overview: 26+ 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:27   ` sashiko-bot
2026-09-15 20:20 ` [PATCH 2/3] dt-bindings: media: i2c: Add vision-components,mipi-module-controller Richard Leitner
2026-09-15 20:27   ` sashiko-bot
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-28  9:30                   ` Richard Leitner
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 [this message]
2026-09-17  8:19                     ` Laurent Pinchart
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
2026-09-15 20:30   ` sashiko-bot

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=3dc63afd-ab21-4e3c-b6da-0fb51584ca9a@kernel.org \
    --to=krzk@kernel.org \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.