summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2020-11-24 11:22:13 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-26 19:19:44 +0100
commitaf6ea0fcf4cebbe97b6e65e132760560b570f4ee (patch)
tree71494cfafd4a92e3f255efc1d2b07d417854502d
parent109a3edd33b13b58efe7ea12bcd8070fab595fbb (diff)
overlays: verdin-imx8mp_sn65dsi84_overlay: verdin dsi to lvds adapter
Add device tree overlays for Verdin DSI to LVDS Adapter and a connected display lt170410 orderable at Toradex. Related to: ELB-3209 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--overlays/Makefile2
-rw-r--r--overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts38
-rw-r--r--overlays/verdin-imx8mp_sn65dsi84_overlay.dts61
3 files changed, 101 insertions, 0 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index 687ed53..6af31e5 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -49,6 +49,8 @@ dtb-y += verdin-imx8mm_lt8912_overlay.dtbo
dtb-y += verdin-imx8mm_ov5640_overlay.dtbo
dtb-y += verdin-imx8mm_sn65dsi84_overlay.dtbo
dtb-y += verdin-imx8mp_lt8912_overlay.dtbo
+dtb-y += verdin-imx8mp_sn65dsi84_overlay.dtbo
+dtb-y += verdin-imx8mp_sn65dsi84-lt170410_overlay.dtbo
targets += $(dtb-y)
always := $(dtb-y)
diff --git a/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts b/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts
new file mode 100644
index 0000000..d301886
--- /dev/null
+++ b/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts
@@ -0,0 +1,38 @@
+// Verdin DSI to LVDS Adapter with connected LT170410 display (10inch) with a
+// resolution of 1280x800 pixel. Adapter and display can be ordered at Toradex.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,verdin-imx8mp";
+};
+
+&bridge_2c {
+ ti,dsi-lanes = <4>;
+ ti,height-mm = <136>;
+ ti,lvds-bpp = <24>;
+ ti,lvds-format = <2>;
+ ti,width-mm = <217>;
+
+ display-timings {
+ native-mode = <&lvds_timing0>;
+ lvds_timing0: lt170410_2whc {
+ /*
+ * PLL1 is at 2079000000, take PLL1/30
+ * otherwise we don't get a picture NXP i.MX8M Plus
+ */
+ clock-frequency = <69300000>;
+ hactive = <1280 1280 1280>;
+ hfront-porch = <23 60 71>;
+ hback-porch = <23 60 71>;
+ hsync-len = <15 40 47>;
+ vactive = <800 800 800>;
+ vfront-porch = <5 7 10>;
+ vback-porch = <5 7 10>;
+ vsync-len = <6 9 12>;
+ de-active = <1>;
+ pixelclk-active = <0>;
+ };
+ };
+};
diff --git a/overlays/verdin-imx8mp_sn65dsi84_overlay.dts b/overlays/verdin-imx8mp_sn65dsi84_overlay.dts
new file mode 100644
index 0000000..8da4f4e
--- /dev/null
+++ b/overlays/verdin-imx8mp_sn65dsi84_overlay.dts
@@ -0,0 +1,61 @@
+// Verdin DSI to LVDS Adapter orderable at Toradex.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,verdin-imx8mp";
+};
+
+&backlight {
+ status = "okay";
+};
+
+&gpu_2d {
+ status = "okay";
+};
+
+&gpu_3d {
+};
+
+&bridge_2c {
+ status = "okay";
+
+ port {
+ dsi85_in: endpoint {
+ remote-endpoint = <&mipi_dsi_bridge1_out>;
+ };
+ };
+};
+
+&touch_4a {
+ status = "okay";
+};
+
+/* LCDIF to MIPI-DSI */
+&lcdif1 {
+ status = "okay";
+};
+
+&mipi_dsi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ port@1 {
+ reg = <1>;
+
+ mipi_dsi_bridge1_out: endpoint {
+ remote-endpoint = <&dsi85_in>;
+ attach-bridge;
+ };
+ };
+};
+
+&mix_gpu_ml {
+ status = "okay";
+};
+
+&ml_vipsi {
+ status = "okay";
+};