[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230216175347.99778-4-prabhakar.mahadev-lad.rj@bp.renesas.com>
Date: Thu, 16 Feb 2023 17:53:47 +0000
From: Prabhakar <prabhakar.csengg@...il.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
Magnus Damm <magnus.damm@...il.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>,
Niklas Söderlund
<niklas.soderlund+renesas@...natech.se>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
linux-renesas-soc@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Prabhakar <prabhakar.csengg@...il.com>,
Biju Das <biju.das.jz@...renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
Subject: [PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CRU and CSI nodes
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@...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@...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
Powered by blists - more mailing lists