From: Mehdi Djait <mehdi.djait@linux.intel.com>
To: Tarang Raval <tarang.raval@siliconsignals.io>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Himanshu Bhavani <himanshu.bhavani@siliconsignals.io>,
Elgin Perumbilly <elgin.perumbilly@siliconsignals.io>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil+cisco@kernel.org>,
Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 07/15] media: i2c: os05b10: Add test pattern options
Date: Thu, 2 Jul 2026 10:29:29 +0200 [thread overview]
Message-ID: <akYgPq1G9DzhCK_E@mdjait-mobl> (raw)
In-Reply-To: <20260325114404.95188-8-tarang.raval@siliconsignals.io>
Hi Tarang,
On Wed, Mar 25, 2026 at 05:13:53PM +0530, Tarang Raval wrote:
> Add V4L2_CID_TEST_PATTERN support with multiple sensor test-pattern modes
> and program them via register 0x5080. Drop the fixed 0x5080 setting from
> the common register sequence so the pattern is selected only through the
> control.
>
> Signed-off-by: Tarang Raval <tarang.raval@siliconsignals.io>
> ---
> drivers/media/i2c/os05b10.c | 55 +++++++++++++++++++++++++++++++++++--
> 1 file changed, 53 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/i2c/os05b10.c b/drivers/media/i2c/os05b10.c
> index bf848eb9ba52..c8de7f5601bf 100644
> --- a/drivers/media/i2c/os05b10.c
> +++ b/drivers/media/i2c/os05b10.c
> @@ -103,6 +103,17 @@
> #define OS05B10_REG_FORMAT2 CCI_REG8(0x3821)
> #define OS05B10_HDR_ENABLE 0x04
>
> +#define OS05B10_REG_PRE_ISP_20_0 CCI_REG8(0x5080)
> +#define OS05B10_DISABLED 0x00
> +#define OS05B10_COLOR_BAR_1 0x80
> +#define OS05B10_COLOR_BAR_2 0x84
> +#define OS05B10_COLOR_BAR_3 0x88
> +#define OS05B10_COLOR_BAR_4 0x8c
> +#define OS05B10_COLOR_SQUARE 0x82
> +#define OS05B10_BW_SQUARE 0x92
> +#define OS05B10_TRANSPARENT_EFFECT 0xa0
> +#define OS05B10_ROLLING_BAR_EFFECT 0xc0
> +
> #define OS05B10_LINK_FREQ_600MHZ (600 * HZ_PER_MHZ)
>
> static const struct v4l2_rect os05b10_native_area = {
> @@ -396,7 +407,6 @@ static const struct cci_reg_sequence os05b10_common_regs[] = {
> { CCI_REG8(0x5004), 0x00 },
> { CCI_REG8(0x5005), 0x0e },
> { CCI_REG8(0x5036), 0x00 },
> - { CCI_REG8(0x5080), 0x04 },
I suppose not writing 0x04 like before does not change anything ? Maybe
mention this value in the commit message ?
> { CCI_REG8(0x5082), 0x00 },
> { CCI_REG8(0x5180), 0x00 },
> { CCI_REG8(0x5181), 0x10 },
> @@ -514,6 +524,30 @@ static const u32 os05b10_mbus_codes[] = {
> MEDIA_BUS_FMT_SBGGR10_1X10,
> };
>
two nits here:
> +static const char * const os05b10_test_pattern_menu[] = {
> + "Disabled",
Uppercase
> + "colour bar type 1",
or lowercase ?
> + "colour bar type 2",
> + "colour bar type 3",
> + "colour bar type 4",
so colour
> + "color square",
or color ?
> + "black-white square",
> + "transparent effect",
> + "rolling bar effect",
> +};
--
Kind Regards
Mehdi Djait
next prev parent reply other threads:[~2026-07-02 8:30 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 11:43 [PATCH v2 00/15] media: i2c: os05b10: Refactor driver and Add new features Tarang Raval
2026-03-25 11:43 ` [PATCH v2 01/15] media: i2c: os05b10: Use pm_runtime_get_if_active() when applying controls Tarang Raval
2026-06-29 15:22 ` Mehdi Djait
2026-06-30 7:17 ` Tarang Raval
2026-03-25 11:43 ` [PATCH v2 02/15] media: i2c: os05b10: drop unused group-hold programming Tarang Raval
2026-06-29 15:22 ` Mehdi Djait
2026-03-25 11:43 ` [PATCH v2 03/15] media: i2c: os05b10: add register definitions and use them in init table Tarang Raval
2026-06-29 15:45 ` Mehdi Djait
2026-06-30 7:24 ` Tarang Raval
2026-03-25 11:43 ` [PATCH v2 04/15] media: i2c: os05b10: split common and mode-specific init registers Tarang Raval
2026-06-30 15:17 ` Mehdi Djait
2026-07-01 6:35 ` Tarang Raval
2026-06-30 15:24 ` Mehdi Djait
2026-06-30 15:25 ` Mehdi Djait
2026-03-25 11:43 ` [PATCH v2 05/15] media: i2c: os05b10: add V4L2 digital gain control Tarang Raval
2026-06-30 15:27 ` Mehdi Djait
2026-03-25 11:43 ` [PATCH v2 06/15] media: i2c: os05b10: Add H/V flip support Tarang Raval
2026-07-02 8:06 ` Mehdi Djait
2026-03-25 11:43 ` [PATCH v2 07/15] media: i2c: os05b10: Add test pattern options Tarang Raval
2026-07-02 8:29 ` Mehdi Djait [this message]
2026-07-02 10:45 ` Tarang Raval
2026-03-25 11:43 ` [PATCH v2 08/15] media: i2c: os05b10: add 12-bit RAW mode support Tarang Raval
2026-07-02 15:00 ` Mehdi Djait
2026-03-25 11:43 ` [PATCH v2 09/15] media: i2c: os05b10: update pixel rate on 10/12-bit mode switch Tarang Raval
2026-03-25 11:43 ` [PATCH v2 10/15] media: i2c: os05b10: Add 1080p and 2x2 binning 720p modes Tarang Raval
2026-03-25 11:43 ` [PATCH v2 11/15] media: i2c: os05b10: keep vblank and exposure range in sync on mode switch Tarang Raval
2026-03-25 11:43 ` [PATCH v2 12/15] media: i2c: os05b10: Update active format before adjusting framing controls Tarang Raval
2026-03-25 11:43 ` [PATCH v2 13/15] media: i2c: os05b10: Rename vmax variable in VBLANK control Tarang Raval
2026-03-25 11:44 ` [PATCH v2 14/15] media: i2c: os05b10: add 2-lane support Tarang Raval
2026-03-25 11:44 ` [PATCH v2 15/15] media: i2c: os05b10: fix negative hblank calculation Tarang Raval
2026-04-27 9:24 ` [PATCH v2 00/15] media: i2c: os05b10: Refactor driver and Add new features Tarang Raval
2026-05-26 7:09 ` Tarang Raval
2026-05-26 8:36 ` Mehdi Djait
2026-05-26 9:22 ` Tarang Raval
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=akYgPq1G9DzhCK_E@mdjait-mobl \
--to=mehdi.djait@linux.intel.com \
--cc=elgin.perumbilly@siliconsignals.io \
--cc=himanshu.bhavani@siliconsignals.io \
--cc=hverkuil+cisco@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tarang.raval@siliconsignals.io \
--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