[PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CRU and CSI nodes

Prabhakar posted 3 patches 2 years, 6 months ago
There is a newer version of this series
[PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CRU and CSI nodes
Posted by Prabhakar 2 years, 6 months ago
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Enable CRU and CSI nodes and tie the CSI remote endpoint with
OV5645 endpoint.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 .../boot/dts/renesas/r9a07g044l2-smarc.dts    |  1 +
 .../boot/dts/renesas/rz-smarc-common.dtsi     | 23 +++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts
index 275e760324f3..25da4c93e0a4 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts
+++ b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts
@@ -9,6 +9,7 @@
 
 /* comment the #define statement if OV5645 is not connected to CN1  */
 #define CAM_INTERFACE_OV5645	1
+#define CRU_INTERFACE_AVAILABLE	1
 
 #include "r9a07g044l2.dtsi"
 #include "rzg2l-smarc-som.dtsi"
diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
index 915ad7e3935d..0f9a96ef5f6a 100644
--- a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
@@ -132,6 +132,28 @@ channel1 {
 	};
 };
 
+#ifdef CRU_INTERFACE_AVAILABLE
+&cru {
+	status = "okay";
+};
+
+&csi2 {
+	status = "okay";
+
+	ports {
+		port@0 {
+			csi2_in: endpoint {
+				clock-lanes = <0>;
+				data-lanes = <1 2>;
+#ifdef CAM_INTERFACE_OV5645
+				remote-endpoint = <&ov5645_ep>;
+#endif
+			};
+		};
+	};
+};
+#endif
+
 &ehci0 {
 	dr_mode = "otg";
 	status = "okay";
@@ -168,6 +190,7 @@ port {
 			ov5645_ep: endpoint {
 				clock-lanes = <0>;
 				data-lanes = <1 2>;
+				remote-endpoint = <&csi2_in>;
 			};
 		};
 	};
-- 
2.25.1
Re: [PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CRU and CSI nodes
Posted by Geert Uytterhoeven 2 years, 6 months ago
On Thu, Feb 16, 2023 at 6:54 PM Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Enable CRU and CSI nodes and tie the CSI remote endpoint with
> OV5645 endpoint.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds