From af6ea0fcf4cebbe97b6e65e132760560b570f4ee Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 24 Nov 2020 11:22:13 +0100 Subject: 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 --- overlays/Makefile | 2 + .../verdin-imx8mp_sn65dsi84-lt170410_overlay.dts | 38 ++++++++++++++ overlays/verdin-imx8mp_sn65dsi84_overlay.dts | 61 ++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts create mode 100644 overlays/verdin-imx8mp_sn65dsi84_overlay.dts 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"; +}; -- cgit v1.2.3