From 000053a5c133dc5a65d8b643cf811ca99f17289d Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 29 Aug 2022 17:25:44 +0200 Subject: verdin-imx8mp_sn65dsi84_overlay: update against toradex_5.15-2.0.x-imx Update the overlay against the changes in the kernel device tree. Related-to: ELB-4599, ELB-4645 Signed-off-by: Max Krummenacher --- .../verdin-imx8mp_sn65dsi84-lt170410_overlay.dts | 68 +++++++++++++--------- overlays/verdin-imx8mp_sn65dsi84_overlay.dts | 20 +++++-- 2 files changed, 55 insertions(+), 33 deletions(-) diff --git a/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts b/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts index d8e585d..01ee40e 100644 --- a/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts +++ b/overlays/verdin-imx8mp_sn65dsi84-lt170410_overlay.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* - * Copyright 2020-2021 Toradex + * Copyright 2020-2022 Toradex */ // Verdin DSI to LVDS Adapter with connected LT170410 display (10 inch) with a @@ -13,32 +13,46 @@ compatible = "toradex,verdin-imx8mp"; }; -&lvds_ti_sn65dsi83 { - 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 on NXP i.MX 8M 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>; +&lvds_ti_sn65dsi84 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + reg = <2>; + + lvds_out_panel: endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; +}; + +&panel_lvds { + compatible = "panel-lvds"; + backlight = <&backlight>; + data-mapping = "vesa-24"; + height-mm = <136>; + width-mm = <217>; + status = "okay"; + + panel-timing { + clock-frequency = <68900000 71100000 73400000>; + de-active = <1>; + hactive = <1280 1280 1280>; + hback-porch = <23 60 71>; + hfront-porch = <23 60 71>; + hsync-len = <15 40 47>; + pixelclk-active = <1>; /* positive edge */ + vactive = <800 800 800>; + vback-porch = <5 7 10>; + vfront-porch = <5 7 10>; + vsync-len = <6 9 12>; + }; + + port { + panel_in_lvds: endpoint { + remote-endpoint = <&lvds_out_panel>; }; }; }; diff --git a/overlays/verdin-imx8mp_sn65dsi84_overlay.dts b/overlays/verdin-imx8mp_sn65dsi84_overlay.dts index a3bb25c..72f67e0 100644 --- a/overlays/verdin-imx8mp_sn65dsi84_overlay.dts +++ b/overlays/verdin-imx8mp_sn65dsi84_overlay.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* - * Copyright 2020-2021 Toradex + * Copyright 2020-2022 Toradex */ // Verdin DSI to LVDS Adapter orderable at Toradex. @@ -29,12 +29,20 @@ status = "okay"; }; -&lvds_ti_sn65dsi83 { +&lvds_ti_sn65dsi84 { status = "okay"; - port { - dsi85_in: endpoint { - remote-endpoint = <&mipi_dsi_bridge1_out>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dsi84_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&mipi_dsi_bridge1_out>; + }; }; }; }; @@ -46,8 +54,8 @@ port@1 { mipi_dsi_bridge1_out: endpoint { - remote-endpoint = <&dsi85_in>; attach-bridge; + remote-endpoint = <&dsi84_in>; }; }; }; -- cgit v1.2.3