From: "sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>
To: Himanshu Bhavani <himanshu.bhavani@siliconsignals.io>
Cc: "Vladimir Zapolskiy" <vladimir.zapolskiy@linaro.org>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"Elgin Perumbilly" <elgin.perumbilly@siliconsignals.io>,
"Mehdi Djait" <mehdi.djait@linux.intel.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Hans Verkuil" <hverkuil@kernel.org>,
"Hans de Goede" <hansg@kernel.org>,
"André Apitzsch" <git@apitzsch.eu>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Dongcheng Yan" <dongcheng.yan@intel.com>,
"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
"Sylvain Petinot" <sylvain.petinot@foss.st.com>,
"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
"Heimir Thor Sverrisson" <heimir.sverrisson@gmail.com>,
"Jingjing Xiong" <jingjing.xiong@intel.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v7 2/2] media: i2c: add os05b10 image sensor driver
Date: Thu, 1 Jan 2026 22:05:28 +0200 [thread overview]
Message-ID: <aVbTiM35Z_64mwFA@kekkonen.localdomain> (raw)
In-Reply-To: <PN0P287MB2019969BACCD6EF1325BE3069ABAA@PN0P287MB2019.INDP287.PROD.OUTLOOK.COM>
Hi Himanshu,
On Thu, Jan 01, 2026 at 06:19:02AM +0000, Himanshu Bhavani wrote:
> >> +#define OS05B10_PIXEL_RATE (480 * HZ_PER_MHZ)
> >
> >Here pixel rate should not be hardcoded, it'd be computed in runtime
> >as 600MHz * 2 * 4 lanes / 10 bpp = 480MHz.
> >
> >The sensor may be wired over 2 lanes or (presumably) it can stream 8 bpp data.
>
> We are not supporting 2 lanes right now, driver supports only for 4 lanes and
> 10 bpp data. So technically OS05B10_PIXEL_RATE will never change.
> For reference I will add OS05B10_PIXEL_RATE calculation in comments.
> I would prefer the hardcoded at the moment. Other than this comment
> I will resolve and send new version.
The pixel rate on the pixel array may be disconnected from the link
frequency (and throughput) -- it may be more (with e.g. binning) or less,
depending on the sensor of course. Calculating it, if possible, is always
better than using a fixed value; experience has shown these are often
simply incorrect and sometimes not updated when other changes are made (and
same goes for the link frequency).
--
Kind regards,
Sakari Ailus
next prev parent reply other threads:[~2026-01-01 20:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-31 7:06 [PATCH v7 0/2] media: i2c: Add os05b10 camera sensor driver Himanshu Bhavani
2025-12-31 7:06 ` [PATCH v7 1/2] dt-bindings: media: i2c: Add os05b10 sensor Himanshu Bhavani
2025-12-31 7:06 ` [PATCH v7 2/2] media: i2c: add os05b10 image sensor driver Himanshu Bhavani
2025-12-31 7:58 ` Vladimir Zapolskiy
2026-01-01 6:19 ` Himanshu Bhavani
2026-01-01 20:05 ` sakari.ailus [this message]
2026-01-02 6:10 ` Himanshu Bhavani
2026-01-02 21:23 ` sakari.ailus
2025-12-31 13:48 ` Christophe JAILLET
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=aVbTiM35Z_64mwFA@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=benjamin.mugnier@foss.st.com \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dongcheng.yan@intel.com \
--cc=elgin.perumbilly@siliconsignals.io \
--cc=git@apitzsch.eu \
--cc=hansg@kernel.org \
--cc=heimir.sverrisson@gmail.com \
--cc=himanshu.bhavani@siliconsignals.io \
--cc=hverkuil@kernel.org \
--cc=jingjing.xiong@intel.com \
--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=mehdi.djait@linux.intel.com \
--cc=robh@kernel.org \
--cc=sylvain.petinot@foss.st.com \
--cc=vladimir.zapolskiy@linaro.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