From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Frank Li <Frank.Li@nxp.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Kumar M <anil.mamidala@xilinx.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, imx@lists.linux.dev,
"Guoniu.zhou" <guoniu.zhou@nxp.com>,
Stefan Hladnik <stefan.hladnik@gmail.com>,
Florian Rebaudo <frebaudo@witekio.com>
Subject: Re: [PATCH v3 2/2] media: i2c: Add ON Semiconductor AP1302 ISP driver
Date: Tue, 24 Jun 2025 01:47:01 +0300 [thread overview]
Message-ID: <20250623224701.GE15951@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20250623-ap1302-v3-2-c9ca5b791494@nxp.com>
Hi Frank,
Thank you for the patch.
On Mon, Jun 23, 2025 at 03:17:38PM -0400, Frank Li wrote:
> From: Anil Kumar Mamidala <anil.mamidala@xilinx.com>
>
> The AP1302 is a standalone ISP for ON Semiconductor sensors.
> AP1302 ISP supports single and dual sensor inputs. The driver
> code supports AR1335, AR0144 and AR0330 sensors with single and
> dual mode by loading the corresponding firmware.
>
> Signed-off-by: Anil Kumar Mamidala <anil.mamidala@xilinx.com>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Signed-off-by: Stefan Hladnik <stefan.hladnik@gmail.com>
> Signed-off-by: Florian Rebaudo <frebaudo@witekio.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Change in v3:
> - add extra empty line between difference register define
> - add bits.h
> - use GEN_MASK and align regiser bit define from 31 to 0.
> - add ap1302_sensor_supply
> - add enable gpio
> - update firmware header format
One of the main issues with this driver is that we need to standardize
the header format. The standardized format will need to be approved by
onsemi as we will need to provide not just a driver, but also a
toolchain that will produce firmwares in the right format. Furthermore,
some time ago the AP1302 firmware was extended with the ability to
dynamically compute PLL parameters IIRC. This needs to be taken into
account.
I want to resuscitate this driver and get it merged. There's more work
to do, in collaboration with onsemi, and I haven't had time to tackle
it. If you want to propose a proper design for firmware handling I would
be happy to participate in the discussion.
> - update raw sensor supply delay time
> - use gpiod_set_value_cansleep() insteand gpiod_set_value()
> - update use latest v4l2 api
> - use ctrl_to_sd() helper function
> - add ap1302_g_volatile_ctrl()
> - remove ap1302_get_fmt()
> - use guard for mutex.
> - use dev_err_probe
> - use devm_add_action_or_reset to simple error handle at probe.
> - use read_poll_timeout() simple dma idle polling.
>
> previous upstream:
> https://lore.kernel.org/linux-media/1631091372-16191-1-git-send-email-anil.mamidala@xilinx.com/
> ---
> MAINTAINERS | 1 +
> drivers/media/i2c/Kconfig | 9 +
> drivers/media/i2c/Makefile | 1 +
> drivers/media/i2c/ap1302.c | 2838 ++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 2849 insertions(+)
[snip]
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2025-06-23 22:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-23 19:17 [PATCH v3 0/2] media: i2c: Add ON Semiconductor AP1302 ISP driver Frank Li
2025-06-23 19:17 ` [PATCH v3 1/2] dt-bindings: media: i2c: Add bindings for AP1302 and AR0144 Frank Li
2025-06-23 22:41 ` Laurent Pinchart
2025-06-24 18:41 ` Frank Li
2025-06-24 18:54 ` Laurent Pinchart
2025-06-24 19:45 ` Frank Li
2025-06-26 12:40 ` Laurent Pinchart
2025-06-26 15:58 ` Frank Li
2025-06-26 19:07 ` Laurent Pinchart
2025-06-26 22:14 ` Frank Li
2025-06-23 19:17 ` [PATCH v3 2/2] media: i2c: Add ON Semiconductor AP1302 ISP driver Frank Li
2025-06-23 22:47 ` Laurent Pinchart [this message]
2025-06-24 18:47 ` Frank Li
2025-06-24 18:56 ` Laurent Pinchart
2025-06-24 19:18 ` Frank Li
2025-06-26 12:42 ` Laurent Pinchart
2025-06-26 14:58 ` Frank Li
2025-06-26 19:09 ` Laurent Pinchart
2025-06-26 22:17 ` Frank Li
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=20250623224701.GE15951@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=Frank.Li@nxp.com \
--cc=anil.mamidala@xilinx.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frebaudo@witekio.com \
--cc=guoniu.zhou@nxp.com \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=stefan.hladnik@gmail.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