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

From: Prabhakar
Date: Thu Feb 16 2023 - 12:54:15 EST


From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

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

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
---
.../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