linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] media: rkisp1: Prepare for HDR stitching support
@ 2025-06-16  1:11 Laurent Pinchart
  2025-06-16  1:11 ` [PATCH 1/6] dt-bindings: media: rkisp1: Require pclk clock on i.MX8MP variant Laurent Pinchart
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Laurent Pinchart @ 2025-06-16  1:11 UTC (permalink / raw)
  To: linux-media
  Cc: Stefan Klug, Lucas Stach, Dafna Hirschfeld, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, devicetree, imx

Hello everybody,

This patch series prepares the rkisp1 driver for HDR stitching support
by adding a new clock and power domain.

The ISP instance integrated in the NXP i.MX8MP includes an HDR stitching
module. Unlike other ISP modules, the HDR stitching module requires the
pixel clock to be enabled to access control registers, otherwise the
system freezes. To make the problem more complex, the pixel clock is
gated by the media-blk, which controls the clock gate through the
MIPI_CSI2 power domain.

Adding the pixel clock to the ISP DT node is easy, but enabling the gate
as part of the ISP power domain would be more difficult. This series
instead adds the MIPI_CSI2 power domain as a secondary power domain for
the ISP. Given that the ISP can't be used without the CSI-2 receiver in
the i.MX8MP, this won't result in extra power consumption. Lucas, your
feedback on this approach would be appreciated.

Patches 1/6 and 2/6 update the DT binding to add the clock and power
domain. Patches 3/6 then refactors clock handling in the rkisp1 driver,
and patches 4/6 and 5/6 add support for the additional clock and power
domain. They are optional to avoid breaking backward compatibility with
older device trees. Finally, patch 6/6 updates imx8mp.dtsi to add the
clock and power domain.

The series has been tested by trying to read the HDR stitching registers
at probe time. Without these changes the system locks up, with this
series applied the registers read correctly.

Laurent Pinchart (6):
  dt-bindings: media: rkisp1: Require pclk clock on i.MX8MP variant
  dt-bindings: media: rkisp1: Add second power domain on i.MX8MP
  media: rkisp1: Refactor clocks initialization
  media: rkisp1: Acquire pclk clock on i.MX8MP
  media: rkisp1: Add support for multiple power domains
  arm64: dts: imx8mp: Add pclk clock and second power domain for the ISP

 .../bindings/media/rockchip-isp1.yaml         |  23 +++-
 arch/arm64/boot/dts/freescale/imx8mp.dtsi     |  18 ++-
 .../platform/rockchip/rkisp1/rkisp1-common.h  |  17 ++-
 .../platform/rockchip/rkisp1/rkisp1-dev.c     | 123 +++++++++++++-----
 4 files changed, 140 insertions(+), 41 deletions(-)


base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-09-02 12:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16  1:11 [PATCH 0/6] media: rkisp1: Prepare for HDR stitching support Laurent Pinchart
2025-06-16  1:11 ` [PATCH 1/6] dt-bindings: media: rkisp1: Require pclk clock on i.MX8MP variant Laurent Pinchart
2025-06-26 23:52   ` Rob Herring (Arm)
2025-06-16  1:11 ` [PATCH 2/6] dt-bindings: media: rkisp1: Add second power domain on i.MX8MP Laurent Pinchart
2025-06-26 23:53   ` Rob Herring (Arm)
2025-06-16  1:11 ` [PATCH 3/6] media: rkisp1: Refactor clocks initialization Laurent Pinchart
2025-08-21 18:48   ` Jacopo Mondi
2025-08-21 19:02     ` Laurent Pinchart
2025-08-21 19:15       ` Jacopo Mondi
2025-06-16  1:11 ` [PATCH 4/6] media: rkisp1: Acquire pclk clock on i.MX8MP Laurent Pinchart
2025-08-21 18:51   ` Jacopo Mondi
2025-06-16  1:11 ` [PATCH 5/6] media: rkisp1: Add support for multiple power domains Laurent Pinchart
2025-08-21 19:13   ` Jacopo Mondi
2025-06-16  1:11 ` [PATCH 6/6] arm64: dts: imx8mp: Add pclk clock and second power domain for the ISP Laurent Pinchart
2025-09-02 12:43   ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).