From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bryan O'Donoghue <bod@kernel.org>,
Hans de Goede <hansg@kernel.org>,
Jingjing Xiong <jingjing.xiong@intel.com>,
Hao Yao <hao.yao@intel.com>, Jim Lai <jim.lai@intel.com>,
You-Sheng Yang <vicamo.yang@canonical.com>,
Alan Stern <stern@rowland.harvard.edu>,
Hans de Goede <hdegoede@redhat.com>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/2] media: i2c: ov02e10: add OV02E10 image sensor driver
Date: Tue, 1 Apr 2025 01:34:29 +0100 [thread overview]
Message-ID: <47dd7daa-cce4-4ad0-ab57-4c76304b0aa6@linaro.org> (raw)
In-Reply-To: <Z-UAFkshOgeytfB4@kekkonen.localdomain>
On 27/03/2025 07:36, Sakari Ailus wrote:
>> +static u64 to_pixel_rate(u32 f_index)
>> +{
>> + u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV02E10_DATA_LANES;
>> +
>> + do_div(pixel_rate, OV02E10_RGB_DEPTH);
> The pixel rate control is for the pixel rate on the pixel array, not on the
> CSI-2 interface. Without binning or sub-sampling these may the same still,
> but this only works in special cases really.
Hmm computer says no, I don't think I have understood this comment..
Looking at other drivers, I'd say the above pattern is pretty common -
taking ov8856 as an example that's pretty much equivalent logic to the
above, ov08x40 does something similar.
=>
pixel_rate == link_freq * 2 * #oflanes / RGB_DEPTH
=> 360MHz * 2 * 2 / 10
=> 360000000 * 2 * 2 / 10
=> 144000000
If I'm understanding you though you mean the pixel rate for the control
V4L2_CID_PIXEL_RATE expressed here should be the resolution * the FPS /
bits_per_pixel
pixel_rate = wdith x height x fps / bpp
=> 1928 * 1088 * 30 / 10
=> 6292992
i.e. the pixel rate not related to the CSI2 link frequency ?
---
bod
next prev parent reply other threads:[~2025-04-01 0:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 14:49 [PATCH v2 0/2] Import IPU6 ov02e10 sensor driver and enable OF usage of it Bryan O'Donoghue
2025-03-25 14:49 ` [PATCH v2 1/2] media: dt-bindings: Add OmniVision OV02E10 Bryan O'Donoghue
2025-03-26 8:07 ` Krzysztof Kozlowski
2025-03-25 14:49 ` [PATCH v2 2/2] media: i2c: ov02e10: add OV02E10 image sensor driver Bryan O'Donoghue
2025-03-27 7:36 ` Sakari Ailus
2025-04-01 0:34 ` Bryan O'Donoghue [this message]
2025-04-01 2:35 ` Alan Stern
2025-04-01 8:11 ` Bryan O'Donoghue
2025-04-01 8:12 ` Hans de Goede
2025-04-01 9:42 ` Sakari Ailus
2025-04-01 13:34 ` Hans de Goede
2025-04-03 13:06 ` Sakari Ailus
2025-03-27 7:41 ` Sakari Ailus
2025-03-27 9:10 ` Hans de Goede
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=47dd7daa-cce4-4ad0-ab57-4c76304b0aa6@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=bod@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hansg@kernel.org \
--cc=hao.yao@intel.com \
--cc=hdegoede@redhat.com \
--cc=jim.lai@intel.com \
--cc=jingjing.xiong@intel.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=stern@rowland.harvard.edu \
--cc=vicamo.yang@canonical.com \
/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®