From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Hans Verkuil <hverkuil@xs4all.nl>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/7] dt-bindings: media: renesas,isp: Add ISP core function block
Date: Tue, 18 Mar 2025 09:05:17 +0100 [thread overview]
Message-ID: <20250318080517.GD949127@ragnatech.se> (raw)
In-Reply-To: <4134b49c-f3f2-4b46-bf2c-52986fca265f@kernel.org>
On 2025-03-18 08:27:36 +0100, Krzysztof Kozlowski wrote:
> On 17/03/2025 16:34, Niklas Söderlund wrote:
> > SoCs. I know it's confusing and not logical but that's how they are
> > made.
> >
> > - One part is the ISP Channel Selector, this is a function that sits on
> > the CIS-2 receiver data bus. It is responsible for selecting which
> > CSI-2 Virtual Channel is routed to which DMA capture engine.
> >
> > This part is what the rcar-isp.ko driver have always supported and
> > every instance of the ISP that is described in tree deals with just
> > this one function as this is the one we always had documentation for.
> >
> > This block is the one the reg-names and clock-names labels "cs".
> >
> > - One part that we now wish to add is the ISP Core. This is a
> > traditional ISP that act on image data in different ways. This is what
> > I try to model with the reg-name and clock-name labeled "core".
> >
> > This is new and we have not had documentation for this until recently.
> > Unfortunately the "core" and "cs" functions is implemented in the same
> > IP block. And to operate the "core" one needs to also deal with "cs".
> >
> > To make it more interesting all ISP Channel Selectors (cs) do not have a
> > companion ISP Core, but most do. The lack of a ISP core is OK, it just
> > means that video capture path can't manipulate the image as much as
> > paths that do.
> >
> > It's not ideal but to support the ISP Core and ISP Channel Selecotr the
> > rcar-isp.ko module needs both "core" and "cs" clocks and regs. And to
> > support just the Channel Selector it only needs the "cs" resources.
> >
> >
> > Sorry if I have been confusing. A good example of this is patch 4/7 in
> > this series. It shows the V4M board that have 2 ISP instances, one that
> > have both cs and core functions, and one that only have cs function.
>
> Based on this I think the instances with ISP core are not the same
> hardware as instances without. You have there different (new)
> programming model for entirely new part of hardware not present in "old"
> instances.
>
> Different device means different compatible.
>
> And judging by the address:
> reg = <0 0xfed00000 0 0x10000>, <0 0xfec00000 0 0x100000>;
> 1. 0xfec0 < 0xfed0
> 2. Huge address range
>
> that's not "renesas,r8a779h0-isp" at all, but your old "ISP" device is
> actually a part of that 0xfec0_0000.
>
> Probably the channel selector should have never been called "ISP"
> because it does not process images. :/
There are always room for improvement, but we can only try and create
bindings that describe the hardware as it is documented.
In the block diagrams the channel selector and the core isp are in the
same block. And for better or worse to operate the ISP to process
images the driver need to poke at the channel selector, even tho I fail
to see why some of the core registers where put in the cs block.
On Gen3 an equally interesting hardware design can be found, the CSI-2
channel selector was there placed together with the IP block for image
capture DMA engines... Luckily that only created a mess in the driver
and not in the bindings.
Thanks again for your feedback, I really learn a lot!
>
> >
> >>
> >> What is this ISP core responsible for inside Renesas ISP? How many ISPs
> >> are inside of SoC?
> >
> > The ISP core is responsible for image manipulation. ISP Channel Selector
> > for CSI-2 channel routing. The number of ISP varies between SoCs:
> >
> >
> > V3U: Have 4 ISP instances, all 4 have cs and core.
> > V4H: Have 2 ISP instances, both have cs and core.
> > V4M: Have 2 ISP instances, one have cs and core, one have only cs.
>
>
> Best regards,
> Krzysztof
--
Kind Regards,
Niklas Söderlund
next prev parent reply other threads:[~2025-03-18 8:05 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-15 15:27 [PATCH 0/7] rcar-isp: Prepare for ISP core support Niklas Söderlund
2025-03-15 15:27 ` [PATCH 1/7] dt-bindings: media: renesas,isp: Add ISP core function block Niklas Söderlund
2025-03-17 11:31 ` Krzysztof Kozlowski
2025-03-17 11:49 ` Niklas Söderlund
2025-03-17 15:02 ` Krzysztof Kozlowski
2025-03-17 15:34 ` Niklas Söderlund
2025-03-18 7:27 ` Krzysztof Kozlowski
2025-03-18 8:05 ` Geert Uytterhoeven
2025-03-18 8:05 ` Niklas Söderlund [this message]
2025-03-17 11:33 ` Krzysztof Kozlowski
2025-03-17 11:50 ` Niklas Söderlund
2025-03-17 14:57 ` Krzysztof Kozlowski
2025-03-17 15:37 ` Niklas Söderlund
2025-03-17 19:21 ` Geert Uytterhoeven
2025-03-17 19:44 ` Niklas Söderlund
2025-03-18 7:29 ` Krzysztof Kozlowski
2025-03-18 7:56 ` Niklas Söderlund
2025-03-18 7:50 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 2/7] arm64: dts: renesas: r8a779a0: " Niklas Söderlund
2025-03-19 14:50 ` Jacopo Mondi
2025-03-19 15:07 ` Niklas Söderlund
2025-03-19 15:19 ` Jacopo Mondi
2025-04-10 15:54 ` Geert Uytterhoeven
2025-04-10 16:40 ` Niklas Söderlund
2025-03-15 15:27 ` [PATCH 3/7] arm64: dts: renesas: r8a779g0: " Niklas Söderlund
2025-03-19 14:37 ` Jacopo Mondi
2025-04-10 15:54 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 4/7] arm64: dts: renesas: r8a779h0: " Niklas Söderlund
2025-03-19 14:40 ` Jacopo Mondi
2025-04-10 15:57 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 5/7] media: rcar-isp: Move driver to own directory Niklas Söderlund
2025-03-19 14:25 ` Jacopo Mondi
2025-03-15 15:27 ` [PATCH 6/7] media: rcar-isp: Rename base register variable Niklas Söderlund
2025-03-19 14:26 ` Jacopo Mondi
2025-03-15 15:27 ` [PATCH 7/7] media: rcar-isp: Parse named cs memory region Niklas Söderlund
2025-03-19 14:28 ` Jacopo Mondi
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=20250318080517.GD949127@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=hverkuil@xs4all.nl \
--cc=jacopo.mondi@ideasonboard.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.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