diff mbox series

[5.10.y-cip,4/5] arm64: dts: renesas: rzg2ul-smarc: Enable CRU, CSI support

Message ID 20241106160307.10263-5-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
State New
Headers show
Series Enable CRU, CSI support on RZ/{G2LC, G2UL} | expand

Commit Message

Prabhakar Nov. 6, 2024, 4:03 p.m. UTC
From: Biju Das <biju.das.jz@bp.renesas.com>

commit f66d8501c94b547552cd389fb19dab2f1e63d243 upstream.

Enable CRU and CSI on RZ/G2UL SMARC EVK and tie the CSI to the OV5645
sensor using a Device Tree overlay.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240213141300.159847-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[PL: dropped overlay support and instead directly enabled in board dtsi]
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi
index 876eb9d60f76f..e146075b707b1 100644
--- a/arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi
@@ -9,6 +9,9 @@ 
 #include "rzg2ul-smarc-pinfunction.dtsi"
 #include "rz-smarc-common.dtsi"
 
+#define OV5645_PARENT_I2C i2c0
+#include "rz-smarc-cru-csi-ov5645.dtsi"
+
 #if (!SW_ET0_EN_N)
 &canfd {
 	/delete-property/ pinctrl-0;
@@ -123,6 +126,11 @@  &spi1 {
 };
 #endif
 
+&ov5645 {
+	enable-gpios = <&pinctrl RZG2L_GPIO(4, 4) GPIO_ACTIVE_HIGH>;
+	reset-gpios = <&pinctrl RZG2L_GPIO(0, 1) GPIO_ACTIVE_LOW>;
+};
+
 #if (SW_ET0_EN_N && PMOD_SCI0_EN)
 &pinctrl {
 	can0-stb-hog {