summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAishwarya Kothari <aishwarya.kothari@toradex.com>2023-05-23 11:27:26 +0200
committerAishwarya Kothari <aishwarya.kothari@toradex.com>2023-06-05 14:34:00 +0200
commitb1ce42f23fac37e997d1e3b1070bd6bdc0f610d3 (patch)
treecd8af699e6f0698b7b07d2659daaa6fd7d3150ba
parent7fab0e4d7309bfbe1f6c04949e84ac212241e627 (diff)
apalis-imx6: add hdmi-csi bridge overlay
This overlay adds the tc358743 HDMI to MIPI-CSI2 bridge driver on the apalis iMX6 camera interface. Related-to: ELB-5141 Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
-rw-r--r--overlays/Makefile1
-rw-r--r--overlays/apalis-imx6_tc358743_overlay.dts76
2 files changed, 77 insertions, 0 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index c9cd3ed..7606138 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -30,6 +30,7 @@ dtb-y += apalis-imx6_panel-edt-7inch_overlay.dtbo
dtb-y += apalis-imx6_panel-res-touch-7inch_overlay.dtbo
dtb-y += apalis-imx6_spi1_spidev_overlay.dtbo
dtb-y += apalis-imx6_spi2_spidev_overlay.dtbo
+dtb-y += apalis-imx6_tc358743_overlay.dtbo
dtb-y += apalis-imx6_vga-640x480_overlay.dtbo
dtb-y += colibri-imx6_hdmi_overlay.dtbo
dtb-y += colibri-imx6_panel-cap-touch-7inch_adapter_overlay.dtbo
diff --git a/overlays/apalis-imx6_tc358743_overlay.dts b/overlays/apalis-imx6_tc358743_overlay.dts
new file mode 100644
index 0000000..db1bcf0
--- /dev/null
+++ b/overlays/apalis-imx6_tc358743_overlay.dts
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2023 Toradex
+ */
+
+// TC358743 HDMI to MIPI-CSI2 bridge driver.
+
+/dts-v1/;
+/plugin/;
+
+#include <imx6q-pinfunc.h>
+#include <dt-bindings/clock/imx6qdl-clock.h>
+
+/ {
+ compatible = "toradex,apalis_imx6q";
+};
+
+&{/} {
+ clk27m: bridge-clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <27000000>;
+ };
+};
+
+&gpr {
+ ipu1_csi0_mux {
+ status = "okay";
+ };
+};
+
+&i2c3 {
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ tc358743@f {
+ compatible = "toshiba,tc358743";
+ reg = <0x0f>;
+ clock-names = "refclk";
+ clocks = <&clk27m>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_cam_mclk>;
+
+ port {
+ tc358743_to_mipi_csi2: endpoint {
+ clock-lanes = <0>;
+ data-lanes = <1 2 3 4>;
+ link-frequencies = /bits/ 64 <297000000>;
+ remote-endpoint = <&mipi_csi2_from_tc358743>;
+ };
+ };
+ };
+};
+
+
+&mipi_csi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ port@0 {
+ reg = <0>;
+
+ mipi_csi2_from_tc358743: endpoint@1 {
+ clock-lanes = <0>;
+ csis-clk-settle = <2>;
+ csis-hs-settle = <13>;
+ csis-wclk;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&tc358743_to_mipi_csi2>;
+ };
+ };
+};
+