* [PATCH v3 0/3] rcar-isp: Add support for R-Car V4M
@ 2024-10-02 10:33 Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback Niklas Söderlund
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Niklas Söderlund @ 2024-10-02 10:33 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sakari Ailus, Geert Uytterhoeven, Laurent Pinchart,
linux-media, devicetree
Cc: linux-renesas-soc, Niklas Söderlund
Hi,
This series adds bindings and support to rcar-isp for R-Car V4M by the
means of adding a Gen4 family fallback compatible.
Previous versions of this work did not recognise that the CSISP on found
on R-Car Gen4 is very similar and a family compatible to cover them all
would have been beneficial. The same is true for the VIN module found on
Gen4, and similar work adds a family compatible for that modules
[1]. This series mirrors that work for the CSISP module. Hopefully this
pain now will pay off later.
This change requires updating existing DTS files to add this new family
fallback. This is done in a backward compatible way and the driver
retains the compatible values. These patches where previously part of
this series but have now already been merged by Geert in the Renesas
tree.
See individual patches for changes since previous versions.
1. commit 9fba8eb8d55d ("dt-bindings: media: renesas,vin: Add Gen4 family fallback")
Niklas Söderlund (3):
dt-bindings: media: renesas,isp: Add Gen4 family fallback
media: rcar-isp: Add family compatible for R-Car Gen4 family
dt-bindings: media: renesas,isp: Add binding for V4M
Documentation/devicetree/bindings/media/renesas,isp.yaml | 4 +++-
drivers/media/platform/renesas/rcar-isp.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
--
2.46.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback
2024-10-02 10:33 [PATCH v3 0/3] rcar-isp: Add support for R-Car V4M Niklas Söderlund
@ 2024-10-02 10:33 ` Niklas Söderlund
2024-10-04 0:54 ` Rob Herring
2024-10-02 10:33 ` [PATCH v3 2/3] media: rcar-isp: Add family compatible for R-Car Gen4 family Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 3/3] dt-bindings: media: renesas,isp: Add binding for V4M Niklas Söderlund
2 siblings, 1 reply; 5+ messages in thread
From: Niklas Söderlund @ 2024-10-02 10:33 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sakari Ailus, Geert Uytterhoeven, Laurent Pinchart,
linux-media, devicetree
Cc: linux-renesas-soc, Niklas Söderlund
The ISP Channel Selector IP is the same for all current Gen4 devices.
This was not known when adding support for V3U and V4H and a single SoC
specific compatible was used.
Before adding more SoC specific bindings for V4M add a family compatible
fallback for Gen4. That way the driver only needs to be updated once for
Gen4, and we still have the option to fix any problems in the driver if
any testable differences between the SoCs are found.
There are already DTS files using the V3U and V4H compatibles which
needs to be updated to not produce a warning for DTS checks. The driver
also needs to kept the compatible values to be backward compatible , but
for new Gen4 SoCs such as V4M we can avoid this.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
* Changes since v1
- New in v2.
---
Documentation/devicetree/bindings/media/renesas,isp.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/media/renesas,isp.yaml b/Documentation/devicetree/bindings/media/renesas,isp.yaml
index 33650a1ea034..730c86f2d7b1 100644
--- a/Documentation/devicetree/bindings/media/renesas,isp.yaml
+++ b/Documentation/devicetree/bindings/media/renesas,isp.yaml
@@ -22,6 +22,7 @@ properties:
- enum:
- renesas,r8a779a0-isp # V3U
- renesas,r8a779g0-isp # V4H
+ - const: renesas,rcar-gen4-isp # Generic R-Car Gen4
reg:
maxItems: 1
@@ -116,7 +117,7 @@ examples:
#include <dt-bindings/power/r8a779a0-sysc.h>
isp1: isp@fed20000 {
- compatible = "renesas,r8a779a0-isp";
+ compatible = "renesas,r8a779a0-isp", "renesas,rcar-gen4-isp";
reg = <0xfed20000 0x10000>;
interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 613>;
--
2.46.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 2/3] media: rcar-isp: Add family compatible for R-Car Gen4 family
2024-10-02 10:33 [PATCH v3 0/3] rcar-isp: Add support for R-Car V4M Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback Niklas Söderlund
@ 2024-10-02 10:33 ` Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 3/3] dt-bindings: media: renesas,isp: Add binding for V4M Niklas Söderlund
2 siblings, 0 replies; 5+ messages in thread
From: Niklas Söderlund @ 2024-10-02 10:33 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sakari Ailus, Geert Uytterhoeven, Laurent Pinchart,
linux-media, devicetree
Cc: linux-renesas-soc, Niklas Söderlund, Laurent Pinchart
Add the Gen4 family compatible. This will be used instead of a SoC
specific compatible for the new Gen4 SoC V4M. Two Gen4 boards (V3U and
V4H) have already been added prior and their bindings need to be kept
for backward compatibility.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
* Changes since v2
- Drop comma after sentinel.
- Rewrite comment about compatibility with old DTB files.
* Changes since v1
- Reworked to add a family compatible instead of V4M specific one.
---
drivers/media/platform/renesas/rcar-isp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/renesas/rcar-isp.c b/drivers/media/platform/renesas/rcar-isp.c
index 4512ac338ca5..acc30bcb13ef 100644
--- a/drivers/media/platform/renesas/rcar-isp.c
+++ b/drivers/media/platform/renesas/rcar-isp.c
@@ -431,7 +431,9 @@ static int risp_probe_resources(struct rcar_isp *isp,
static const struct of_device_id risp_of_id_table[] = {
{ .compatible = "renesas,r8a779a0-isp" },
{ .compatible = "renesas,r8a779g0-isp" },
- { /* sentinel */ },
+ /* Keep above for compatibility with old DTB files. */
+ { .compatible = "renesas,rcar-gen4-isp" },
+ { /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, risp_of_id_table);
--
2.46.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 3/3] dt-bindings: media: renesas,isp: Add binding for V4M
2024-10-02 10:33 [PATCH v3 0/3] rcar-isp: Add support for R-Car V4M Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 2/3] media: rcar-isp: Add family compatible for R-Car Gen4 family Niklas Söderlund
@ 2024-10-02 10:33 ` Niklas Söderlund
2 siblings, 0 replies; 5+ messages in thread
From: Niklas Söderlund @ 2024-10-02 10:33 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sakari Ailus, Geert Uytterhoeven, Laurent Pinchart,
linux-media, devicetree
Cc: linux-renesas-soc, Niklas Söderlund, Laurent Pinchart,
Krzysztof Kozlowski
Document support for the ISP module in the Renesas V4M (r8a779h0) SoC.
This device is compatible with the CSISP module on the other Gen4 SoCs.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
---
* Changes since v1
- Add to commit message that V4M is compatible with other Gen4 SoCs.
---
Documentation/devicetree/bindings/media/renesas,isp.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/media/renesas,isp.yaml b/Documentation/devicetree/bindings/media/renesas,isp.yaml
index 730c86f2d7b1..c4de4555b753 100644
--- a/Documentation/devicetree/bindings/media/renesas,isp.yaml
+++ b/Documentation/devicetree/bindings/media/renesas,isp.yaml
@@ -22,6 +22,7 @@ properties:
- enum:
- renesas,r8a779a0-isp # V3U
- renesas,r8a779g0-isp # V4H
+ - renesas,r8a779h0-isp # V4M
- const: renesas,rcar-gen4-isp # Generic R-Car Gen4
reg:
maxItems: 1
--
2.46.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback
2024-10-02 10:33 ` [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback Niklas Söderlund
@ 2024-10-04 0:54 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2024-10-04 0:54 UTC (permalink / raw)
To: Niklas Söderlund
Cc: Mauro Carvalho Chehab, Krzysztof Kozlowski, Conor Dooley,
Sakari Ailus, Geert Uytterhoeven, Laurent Pinchart, linux-media,
devicetree, linux-renesas-soc
On Wed, Oct 02, 2024 at 12:33:16PM +0200, Niklas Söderlund wrote:
> The ISP Channel Selector IP is the same for all current Gen4 devices.
> This was not known when adding support for V3U and V4H and a single SoC
> specific compatible was used.
>
> Before adding more SoC specific bindings for V4M add a family compatible
> fallback for Gen4. That way the driver only needs to be updated once for
> Gen4, and we still have the option to fix any problems in the driver if
> any testable differences between the SoCs are found.
>
> There are already DTS files using the V3U and V4H compatibles which
> needs to be updated to not produce a warning for DTS checks. The driver
> also needs to kept the compatible values to be backward compatible , but
> for new Gen4 SoCs such as V4M we can avoid this.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> * Changes since v1
> - New in v2.
> ---
> Documentation/devicetree/bindings/media/renesas,isp.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-04 0:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 10:33 [PATCH v3 0/3] rcar-isp: Add support for R-Car V4M Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 1/3] dt-bindings: media: renesas,isp: Add Gen4 family fallback Niklas Söderlund
2024-10-04 0:54 ` Rob Herring
2024-10-02 10:33 ` [PATCH v3 2/3] media: rcar-isp: Add family compatible for R-Car Gen4 family Niklas Söderlund
2024-10-02 10:33 ` [PATCH v3 3/3] dt-bindings: media: renesas,isp: Add binding for V4M Niklas Söderlund
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).