diff mbox series

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

Message ID 20230216175347.99778-4-prabhakar.mahadev-lad.rj@bp.renesas.com
State New
Headers show
Series RZ/G2L: Add CRU, CSI support | expand

Commit Message

Lad, Prabhakar Feb. 16, 2023, 5:53 p.m. UTC
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(+)

Comments

Geert Uytterhoeven March 6, 2023, 7:27 p.m. UTC | #1
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
diff mbox series

Patch

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>;
 			};
 		};
 	};