Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK
@ 2026-11-05 12:53 Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 1/6] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts Linus Walleij
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij,
	Conor Dooley, Lad Prabhakar

Describe the optional ISP DMA line-tick and IVC frame-start/frame-stop
interrupts. Add the RZ/V2H(P) IVC and Arm Mali-C55 ISP nodes, connect their
video endpoints, and enable both blocks on the RZ/V2H EVK.

A driver fix orders the bulk reset names so that the register and AXI
interface resets are asserted before the ISP core reset. Prabhakar
confirmed that this avoids the register-access hang across repeated
runtime-PM cycles on the RZ/V2H EVK, including with IVC enabled.

After these patches, and enabling the right Linux drivers, we get
this in the console:
mali-c55 16080000.isp: Detected Mali-C55 ISP 9000043.31032022.0

This was done in order to enable booting mainline with mainline
device trees.

The patches were authored with the assistance of an LLM.

Signed-off-by: Linus Walleij <linusw@kernel.org>
---
Changes in v6:
- Rebased on v7.4-rc1.
- Drop both RFC patches; fix reset assertion order using the bulk API.
- Specify hresetn, aresetn, vresetn order in the driver's reset array,
  asserting the ISP core reset last.
- Link to v5: https://patch.msgid.link/20261027-mali-c55-renesas-dts-v5-0-51bbb43969c1@kernel.org

Changes in v5:
- Add two RFC driver patches for explicit clock and reset sequencing.
- Match the call order from the reported DT swap using named handles.
- Link to v4: https://patch.msgid.link/20261012-mali-c55-renesas-dts-v4-0-c410e280bf2d@kernel.org

Changes in v4:
- Provide interrupt names in both bindings, their examples and SoC nodes.
- Use Renesas RZ/V2H interrupt numbers in the binding examples.
- Link to v3: https://patch.msgid.link/20260928-mali-c55-renesas-dts-v3-0-2cf7eb746ebb@kernel.org

Changes in v3:
- Correct the ISP video and register clock/reset mappings by swapping
  vclk/hclk and vresetn/hresetn.
- Add an optional ISP power-domain binding and attach the RZ/V2H ISP
  to the CPG power domain.
- Link to v2: https://patch.msgid.link/20260925-mali-c55-renesas-dts-v2-0-69f728a474a2@kernel.org

Changes in v2:
- Add separate IVC and ISP binding patches describing the optional IVC
  frame-start/frame-stop completion and ISP DMA line-tick IRQs.
  Show all six IRQs in the examples using consecutive mock numbers.
- Add the IVC frame-start/stop and ISP DMA line-tick interrupt lines
  using the confirmed SPI assignments, addressing Geert's IRQ review.
- Correct the IVC and ISP register sizes to 64 KiB and 512 KiB,
  respectively, as requested by Geert. GPV_VIDEO0 is a separate bus
  interconnect region.
- Compact the clock and reset properties and remove blank lines between
  properties, following Geert's review.
- Link to v1: https://patch.msgid.link/20260922-mali-c55-renesas-dts-v1-0-cd63cdb51033@kernel.org

---
Daniel Scally (2):
      arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes
      arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes

Linus Walleij (4):
      dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts
      dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts
      dt-bindings: media: arm,mali-c55: Add power domain
      media: mali-c55: Assert the ISP core reset last

 .../devicetree/bindings/media/arm,mali-c55.yaml    | 27 ++++++++++++-
 .../bindings/media/renesas,r9a09g057-ivc.yaml      | 22 +++++++++-
 arch/arm64/boot/dts/renesas/r9a09g057.dtsi         | 47 ++++++++++++++++++++++
 .../boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts    |  8 ++++
 .../media/platform/arm/mali-c55/mali-c55-core.c    | 11 ++++-
 5 files changed, 109 insertions(+), 6 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20260922-mali-c55-renesas-dts-74d4727f59e5

Best regards,
--  
Linus Walleij <linusw@kernel.org>


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

* [PATCH v6 1/6] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 2/6] dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts Linus Walleij
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij,
	Conor Dooley, Lad Prabhakar

The RZ/V2H IVC provides input frame-start and frame-stop completion
interrupts alongside its input frame-end interrupt.

Describe these optional interrupts and their signal names from Table 3.1
of the RZ/V2H(P) hardware manual's ISP additional document. Require frame
end first for compatibility with drivers using index-based IRQ lookup.
Keep interrupt-names optional and require only the first interrupt to
preserve support for existing device trees. Extend the example to show
all three interrupts with their names and RZ/V2H interrupt numbers.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 .../bindings/media/renesas,r9a09g057-ivc.yaml      | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/renesas,r9a09g057-ivc.yaml b/Documentation/devicetree/bindings/media/renesas,r9a09g057-ivc.yaml
index c09cbd8c9e35..75ecb47422b2 100644
--- a/Documentation/devicetree/bindings/media/renesas,r9a09g057-ivc.yaml
+++ b/Documentation/devicetree/bindings/media/renesas,r9a09g057-ivc.yaml
@@ -21,7 +21,21 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    description:
+      The image input frame-end interrupt must be specified first to remain
+      compatible with drivers that retrieve it by index.
+    minItems: 1
+    items:
+      - description: Image input frame-end interrupt
+      - description: Image input frame-start interrupt
+      - description: Frame-stop processing completion interrupt
+
+  interrupt-names:
+    minItems: 1
+    items:
+      - const: isp_vvalid_ifp
+      - const: isp_vvalid_irp
+      - const: isp_int_fstop
 
   clocks:
     items:
@@ -92,7 +106,11 @@ examples:
                <&cpg 0xd3>;
       reset-names = "reg", "axi", "isp";
 
-      interrupts = <GIC_SPI 861 IRQ_TYPE_EDGE_RISING>;
+      /* RZ/V2H interrupt numbers. */
+      interrupts = <GIC_SPI 861 IRQ_TYPE_EDGE_RISING>,
+                   <GIC_SPI 860 IRQ_TYPE_EDGE_RISING>,
+                   <GIC_SPI 864 IRQ_TYPE_LEVEL_HIGH>;
+      interrupt-names = "isp_vvalid_ifp", "isp_vvalid_irp", "isp_int_fstop";
 
       port {
         ivc_out: endpoint {

-- 
2.56.0


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

* [PATCH v6 2/6] dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 1/6] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 3/6] dt-bindings: media: arm,mali-c55: Add power domain Linus Walleij
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij,
	Lad Prabhakar

Mali-C55 exposes separate full-resolution and UV DMA writer line-tick
interrupts in addition to its combined core interrupt.

Describe these optional interrupts from Tables 6-14 and 6-24 of the
Mali-C55 Configuration and Integration Manual. Use combined_interrupt
for the combined core interrupt and the signal names for the line-tick
interrupts.

Require the core interrupt first for compatibility with drivers using
index-based IRQ lookup. Keep interrupt-names optional and require only
the first interrupt to preserve support for existing device trees.
Extend the example to show all three interrupts with their names and
RZ/V2H interrupt numbers.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 .../devicetree/bindings/media/arm,mali-c55.yaml    | 23 ++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/arm,mali-c55.yaml b/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
index 39af7ffc70b4..0a2a7720ef94 100644
--- a/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
+++ b/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
@@ -18,7 +18,21 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    description:
+      The combined ISP core interrupt must be specified first to remain
+      compatible with drivers that retrieve it by index.
+    minItems: 1
+    items:
+      - description: Combined ISP core interrupt
+      - description: Full-resolution DMA writer line-tick interrupt
+      - description: Full-resolution UV DMA writer line-tick interrupt
+
+  interrupt-names:
+    minItems: 1
+    items:
+      - const: combined_interrupt
+      - const: fr_dma_writer_linetick_out
+      - const: fr_uv_dma_writer_linetick_out
 
   clocks:
     items:
@@ -75,7 +89,12 @@ examples:
       clock-names = "vclk", "aclk", "hclk";
       resets = <&resets 0>, <&resets 1>, <&resets 2>;
       reset-names = "vresetn", "aresetn", "hresetn";
-      interrupts = <GIC_SPI 861 IRQ_TYPE_EDGE_RISING>;
+      /* RZ/V2H interrupt numbers. */
+      interrupts = <GIC_SPI 859 IRQ_TYPE_LEVEL_HIGH>,
+                   <GIC_SPI 865 IRQ_TYPE_EDGE_RISING>,
+                   <GIC_SPI 866 IRQ_TYPE_EDGE_RISING>;
+      interrupt-names = "combined_interrupt", "fr_dma_writer_linetick_out",
+                        "fr_uv_dma_writer_linetick_out";
 
       port {
         isp_in: endpoint {

-- 
2.56.0


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

* [PATCH v6 3/6] dt-bindings: media: arm,mali-c55: Add power domain
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 1/6] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 2/6] dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-05 12:53 ` [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes Linus Walleij
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij,
	Lad Prabhakar

Some Mali-C55 integrations place the ISP in a power domain. In
particular, RZ/V2H uses the CPG domain to manage its module clocks
through runtime PM.

Allow a single power domain and describe it in the example. Keep the
property optional for integrations that do not expose a power domain.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 Documentation/devicetree/bindings/media/arm,mali-c55.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/media/arm,mali-c55.yaml b/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
index 0a2a7720ef94..ad1afae93f45 100644
--- a/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
+++ b/Documentation/devicetree/bindings/media/arm,mali-c55.yaml
@@ -46,6 +46,9 @@ properties:
       - const: aclk
       - const: hclk
 
+  power-domains:
+    maxItems: 1
+
   resets:
     items:
       - description: vclk domain reset
@@ -87,6 +90,7 @@ examples:
       reg = <0x400000 0x200000>;
       clocks = <&clk 0>, <&clk 1>, <&clk 2>;
       clock-names = "vclk", "aclk", "hclk";
+      power-domains = <&power>;
       resets = <&resets 0>, <&resets 1>, <&resets 2>;
       reset-names = "vresetn", "aresetn", "hresetn";
       /* RZ/V2H interrupt numbers. */

-- 
2.56.0


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

* [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
                   ` (2 preceding siblings ...)
  2026-11-05 12:53 ` [PATCH v6 3/6] dt-bindings: media: arm,mali-c55: Add power domain Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-06 10:50   ` Lad, Prabhakar
  2026-11-05 12:53 ` [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes Linus Walleij
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij

From: Daniel Scally <dan.scally@ideasonboard.com>

Add the Input Video Control Block and Arm Mali-C55 ISP to the device
tree file for the RZ/V2H(P) SoC.

[Rebase onto v7.4-rc1, place the nodes in address order, add the missing
 interrupts in binding order and name them. - Linus Walleij]

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 47 ++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
index bbaab75681c2..10e3434d0997 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
@@ -1849,6 +1849,53 @@ queue3 {
 			};
 		};
 
+		ivc: isp-input@16040000 {
+			compatible = "renesas,r9a09g057-ivc";
+			reg = <0 0x16040000 0 0x10000>;
+			clocks = <&cpg CPG_MOD 0xe3>, <&cpg CPG_MOD 0xe4>,
+				 <&cpg CPG_MOD 0xe5>;
+			clock-names = "reg", "axi", "isp";
+			interrupts = <GIC_SPI 861 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 860 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 864 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "isp_vvalid_ifp", "isp_vvalid_irp",
+					  "isp_int_fstop";
+			power-domains = <&cpg>;
+			resets = <&cpg 0xd4>, <&cpg 0xd1>, <&cpg 0xd3>;
+			reset-names = "reg", "axi", "isp";
+			status = "disabled";
+
+			port {
+				ivc_out: endpoint {
+					remote-endpoint = <&isp_in>;
+				};
+			};
+		};
+
+		isp: isp@16080000 {
+			compatible = "arm,mali-c55";
+			reg = <0 0x16080000 0 0x80000>;
+			clocks = <&cpg CPG_MOD 0xe5>, <&cpg CPG_MOD 0xe4>,
+				 <&cpg CPG_MOD 0xe2>;
+			clock-names = "vclk", "aclk", "hclk";
+			interrupts = <GIC_SPI 859 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 865 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 866 IRQ_TYPE_EDGE_RISING>;
+			interrupt-names = "combined_interrupt",
+					  "fr_dma_writer_linetick_out",
+					  "fr_uv_dma_writer_linetick_out";
+			power-domains = <&cpg>;
+			resets = <&cpg 0xd3>, <&cpg 0xd1>, <&cpg 0xd2>;
+			reset-names = "vresetn", "aresetn", "hresetn";
+			status = "disabled";
+
+			port {
+				isp_in: endpoint {
+					remote-endpoint = <&ivc_out>;
+				};
+			};
+		};
+
 		dsi: dsi@16430000 {
 			compatible = "renesas,r9a09g057-mipi-dsi";
 			reg = <0 0x16430000 0 0x20000>;

-- 
2.56.0


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

* [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
                   ` (3 preceding siblings ...)
  2026-11-05 12:53 ` [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-06 10:51   ` Lad, Prabhakar
  2026-11-05 12:53 ` [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last Linus Walleij
  2026-11-23  0:11 ` [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
  6 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij

From: Daniel Scally <dan.scally@ideasonboard.com>

Add nodes to devicetree enabling the ISP and IVC that are found on
the RZ/V2H(P) SoC.

[Rebase onto v7.4-rc1 and sort the board overrides by label.
 - Linus Walleij]

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
index 0926ab891fa5..0b3106b45074 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
+++ b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
@@ -305,6 +305,14 @@ versa3: clock-generator@69 {
 	};
 };
 
+&isp {
+	status = "okay";
+};
+
+&ivc {
+	status = "okay";
+};
+
 &mdio0 {
 	phy0: ethernet-phy@0 {
 		compatible = "ethernet-phy-id0022.1640";

-- 
2.56.0


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

* [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
                   ` (4 preceding siblings ...)
  2026-11-05 12:53 ` [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes Linus Walleij
@ 2026-11-05 12:53 ` Linus Walleij
  2026-11-06 10:51   ` Lad, Prabhakar
  2026-11-23  0:11 ` [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
  6 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2026-11-05 12:53 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Linus Walleij,
	Lad Prabhakar

Asserting the ISP core reset before the register and AXI interface resets
can leave the RZ/V2H ISP in a state where the first register access after
the next power-on stalls the bus.

Keep the bulk reset API and reorder the reset names so that hresetn and
aresetn are asserted before vresetn. The bulk API asserts resets in array
order and deasserts them in reverse order, so this also releases vresetn,
aresetn and hresetn in that order.

Suggested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 drivers/media/platform/arm/mali-c55/mali-c55-core.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-core.c b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
index 241a625f7284..e37f87e36eab 100644
--- a/drivers/media/platform/arm/mali-c55/mali-c55-core.c
+++ b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
@@ -70,10 +70,17 @@ static const char * const mali_c55_clk_names[MALI_C55_NUM_CLKS] = {
 	"hclk",
 };
 
+/*
+ * The reset bulk API asserts the resets in array order and deasserts them in
+ * reverse order. The video core reset (vresetn) must be asserted last, after
+ * the register (hresetn) and AXI (aresetn) interface resets. Otherwise the
+ * ISP can be left in a state where the first register access after the next
+ * power-on stalls the bus.
+ */
 static const char * const mali_c55_reset_names[MALI_C55_NUM_RESETS] = {
-	"vresetn",
-	"aresetn",
 	"hresetn",
+	"aresetn",
+	"vresetn",
 };
 
 /*

-- 
2.56.0


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

* Re: [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes
  2026-11-05 12:53 ` [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes Linus Walleij
@ 2026-11-06 10:50   ` Lad, Prabhakar
  0 siblings, 0 replies; 13+ messages in thread
From: Lad, Prabhakar @ 2026-11-06 10:50 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, linux-media, devicetree, linux-renesas-soc

On Thu, Nov 5, 2026 at 1:17 PM Linus Walleij <linusw@kernel.org> wrote:
>
> From: Daniel Scally <dan.scally@ideasonboard.com>
>
> Add the Input Video Control Block and Arm Mali-C55 ISP to the device
> tree file for the RZ/V2H(P) SoC.
>
> [Rebase onto v7.4-rc1, place the nodes in address order, add the missing
>  interrupts in binding order and name them. - Linus Walleij]
>
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
>  arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 47 ++++++++++++++++++++++++++++++
>  1 file changed, 47 insertions(+)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Cheers,
Prabhakar

> diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
> index bbaab75681c2..10e3434d0997 100644
> --- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
> @@ -1849,6 +1849,53 @@ queue3 {
>                         };
>                 };
>
> +               ivc: isp-input@16040000 {
> +                       compatible = "renesas,r9a09g057-ivc";
> +                       reg = <0 0x16040000 0 0x10000>;
> +                       clocks = <&cpg CPG_MOD 0xe3>, <&cpg CPG_MOD 0xe4>,
> +                                <&cpg CPG_MOD 0xe5>;
> +                       clock-names = "reg", "axi", "isp";
> +                       interrupts = <GIC_SPI 861 IRQ_TYPE_EDGE_RISING>,
> +                                    <GIC_SPI 860 IRQ_TYPE_EDGE_RISING>,
> +                                    <GIC_SPI 864 IRQ_TYPE_LEVEL_HIGH>;
> +                       interrupt-names = "isp_vvalid_ifp", "isp_vvalid_irp",
> +                                         "isp_int_fstop";
> +                       power-domains = <&cpg>;
> +                       resets = <&cpg 0xd4>, <&cpg 0xd1>, <&cpg 0xd3>;
> +                       reset-names = "reg", "axi", "isp";
> +                       status = "disabled";
> +
> +                       port {
> +                               ivc_out: endpoint {
> +                                       remote-endpoint = <&isp_in>;
> +                               };
> +                       };
> +               };
> +
> +               isp: isp@16080000 {
> +                       compatible = "arm,mali-c55";
> +                       reg = <0 0x16080000 0 0x80000>;
> +                       clocks = <&cpg CPG_MOD 0xe5>, <&cpg CPG_MOD 0xe4>,
> +                                <&cpg CPG_MOD 0xe2>;
> +                       clock-names = "vclk", "aclk", "hclk";
> +                       interrupts = <GIC_SPI 859 IRQ_TYPE_LEVEL_HIGH>,
> +                                    <GIC_SPI 865 IRQ_TYPE_EDGE_RISING>,
> +                                    <GIC_SPI 866 IRQ_TYPE_EDGE_RISING>;
> +                       interrupt-names = "combined_interrupt",
> +                                         "fr_dma_writer_linetick_out",
> +                                         "fr_uv_dma_writer_linetick_out";
> +                       power-domains = <&cpg>;
> +                       resets = <&cpg 0xd3>, <&cpg 0xd1>, <&cpg 0xd2>;
> +                       reset-names = "vresetn", "aresetn", "hresetn";
> +                       status = "disabled";
> +
> +                       port {
> +                               isp_in: endpoint {
> +                                       remote-endpoint = <&ivc_out>;
> +                               };
> +                       };
> +               };
> +
>                 dsi: dsi@16430000 {
>                         compatible = "renesas,r9a09g057-mipi-dsi";
>                         reg = <0 0x16430000 0 0x20000>;
>
> --
> 2.56.0
>
>

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

* Re: [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes
  2026-11-05 12:53 ` [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes Linus Walleij
@ 2026-11-06 10:51   ` Lad, Prabhakar
  0 siblings, 0 replies; 13+ messages in thread
From: Lad, Prabhakar @ 2026-11-06 10:51 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, linux-media, devicetree, linux-renesas-soc

On Thu, Nov 5, 2026 at 1:18 PM Linus Walleij <linusw@kernel.org> wrote:
>
> From: Daniel Scally <dan.scally@ideasonboard.com>
>
> Add nodes to devicetree enabling the ISP and IVC that are found on
> the RZ/V2H(P) SoC.
>
> [Rebase onto v7.4-rc1 and sort the board overrides by label.
>  - Linus Walleij]
>
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
>  arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Cheers,
Prabhakar

> diff --git a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
> index 0926ab891fa5..0b3106b45074 100644
> --- a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
> +++ b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
> @@ -305,6 +305,14 @@ versa3: clock-generator@69 {
>         };
>  };
>
> +&isp {
> +       status = "okay";
> +};
> +
> +&ivc {
> +       status = "okay";
> +};
> +
>  &mdio0 {
>         phy0: ethernet-phy@0 {
>                 compatible = "ethernet-phy-id0022.1640";
>
> --
> 2.56.0
>
>

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

* Re: [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last
  2026-11-05 12:53 ` [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last Linus Walleij
@ 2026-11-06 10:51   ` Lad, Prabhakar
  0 siblings, 0 replies; 13+ messages in thread
From: Lad, Prabhakar @ 2026-11-06 10:51 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, linux-media, devicetree, linux-renesas-soc,
	Lad Prabhakar

On Thu, Nov 5, 2026 at 1:02 PM Linus Walleij <linusw@kernel.org> wrote:
>
> Asserting the ISP core reset before the register and AXI interface resets
> can leave the RZ/V2H ISP in a state where the first register access after
> the next power-on stalls the bus.
>
> Keep the bulk reset API and reorder the reset names so that hresetn and
> aresetn are asserted before vresetn. The bulk API asserts resets in array
> order and deasserts them in reverse order, so this also releases vresetn,
> aresetn and hresetn in that order.
>
> Suggested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
>  drivers/media/platform/arm/mali-c55/mali-c55-core.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Cheers,
Prabhakar

> diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-core.c b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
> index 241a625f7284..e37f87e36eab 100644
> --- a/drivers/media/platform/arm/mali-c55/mali-c55-core.c
> +++ b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
> @@ -70,10 +70,17 @@ static const char * const mali_c55_clk_names[MALI_C55_NUM_CLKS] = {
>         "hclk",
>  };
>
> +/*
> + * The reset bulk API asserts the resets in array order and deasserts them in
> + * reverse order. The video core reset (vresetn) must be asserted last, after
> + * the register (hresetn) and AXI (aresetn) interface resets. Otherwise the
> + * ISP can be left in a state where the first register access after the next
> + * power-on stalls the bus.
> + */
>  static const char * const mali_c55_reset_names[MALI_C55_NUM_RESETS] = {
> -       "vresetn",
> -       "aresetn",
>         "hresetn",
> +       "aresetn",
> +       "vresetn",
>  };
>
>  /*
>
> --
> 2.56.0
>
>

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

* Re: [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK
  2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
                   ` (5 preceding siblings ...)
  2026-11-05 12:53 ` [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last Linus Walleij
@ 2026-11-23  0:11 ` Linus Walleij
  2026-11-23  7:55   ` Jacopo Mondi
  6 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2026-11-23  0:11 UTC (permalink / raw)
  To: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm
  Cc: linux-media, devicetree, linux-renesas-soc, Conor Dooley,
	Lad Prabhakar

On Thu, Nov 5, 2026 at 1:53 PM Linus Walleij <linusw@kernel.org> wrote:

> Describe the optional ISP DMA line-tick and IVC frame-start/frame-stop
> interrupts. Add the RZ/V2H(P) IVC and Arm Mali-C55 ISP nodes, connect their
> video endpoints, and enable both blocks on the RZ/V2H EVK.

Gentle ping on this series, everyone happy?

I guess the DTS patches go to the
renesas tree and Jacopo picks up the dt-bindings and the driver fix?

Yours,
Linus Walleij

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

* Re: [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK
  2026-11-23  0:11 ` [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
@ 2026-11-23  7:55   ` Jacopo Mondi
  2026-11-23  8:39     ` Linus Walleij
  0 siblings, 1 reply; 13+ messages in thread
From: Jacopo Mondi @ 2026-11-23  7:55 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, linux-media, devicetree, linux-renesas-soc,
	Conor Dooley, Lad Prabhakar

Hi Linus

On Mon, Nov 23, 2026 at 01:11:22AM +0100, Linus Walleij wrote:
> On Thu, Nov 5, 2026 at 1:53 PM Linus Walleij <linusw@kernel.org> wrote:
>
> > Describe the optional ISP DMA line-tick and IVC frame-start/frame-stop
> > interrupts. Add the RZ/V2H(P) IVC and Arm Mali-C55 ISP nodes, connect their
> > video endpoints, and enable both blocks on the RZ/V2H EVK.
>
> Gentle ping on this series, everyone happy?
>

I have queued the patches already for my forthcoming PR for 7.5
https://gitlab.freedesktop.org/linux-media/users/jmondi/-/commits/pr/mali-ivc/for-7.5

> I guess the DTS patches go to the
> renesas tree and Jacopo picks up the dt-bindings and the driver fix?
>

As we prefer, I got a PR for all 6 patches ready.

> Yours,
> Linus Walleij

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

* Re: [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK
  2026-11-23  7:55   ` Jacopo Mondi
@ 2026-11-23  8:39     ` Linus Walleij
  0 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2026-11-23  8:39 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: Daniel Scally, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, linux-media, devicetree, linux-renesas-soc,
	Conor Dooley, Lad Prabhakar

On Mon, Nov 23, 2026 at 8:55 AM Jacopo Mondi
<jacopo.mondi@ideasonboard.com> wrote:

> I have queued the patches already for my forthcoming PR for 7.5
> https://gitlab.freedesktop.org/linux-media/users/jmondi/-/commits/pr/mali-ivc/for-7.5

Thanks Jacopo excellent news!

> > I guess the DTS patches go to the
> > renesas tree and Jacopo picks up the dt-bindings and the driver fix?
>
> As we prefer, I got a PR for all 6 patches ready.

That works fine, I don't think there will be any conflicts.

Yours,
Linus Walleij

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

end of thread, other threads:[~2026-11-23  8:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 12:53 [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
2026-11-05 12:53 ` [PATCH v6 1/6] dt-bindings: media: renesas,r9a09g057-ivc: Describe additional interrupts Linus Walleij
2026-11-05 12:53 ` [PATCH v6 2/6] dt-bindings: media: arm,mali-c55: Describe DMA line-tick interrupts Linus Walleij
2026-11-05 12:53 ` [PATCH v6 3/6] dt-bindings: media: arm,mali-c55: Add power domain Linus Walleij
2026-11-05 12:53 ` [PATCH v6 4/6] arm64: dts: renesas: r9a09g057: Add IVC and ISP nodes Linus Walleij
2026-11-06 10:50   ` Lad, Prabhakar
2026-11-05 12:53 ` [PATCH v6 5/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Add ISP and IVC nodes Linus Walleij
2026-11-06 10:51   ` Lad, Prabhakar
2026-11-05 12:53 ` [PATCH v6 6/6] media: mali-c55: Assert the ISP core reset last Linus Walleij
2026-11-06 10:51   ` Lad, Prabhakar
2026-11-23  0:11 ` [PATCH v6 0/6] arm64: dts: renesas: Enable ISP and IVC on RZ/V2H EVK Linus Walleij
2026-11-23  7:55   ` Jacopo Mondi
2026-11-23  8:39     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox