From c32c1687a733a0adbeee49bcb2540de984658075 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Sun, 28 Mar 2021 22:55:07 +0300 Subject: overlays: colibri-imx6: improve LVDS transceiver overlay Handle the PowerDown and Channel Mode signals of the LVDS transceiver to be sure they set properly. Signed-off-by: Oleksandr Suvorov --- overlays/colibri-imx6_lcd-lt170410_overlay.dts | 31 ++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/overlays/colibri-imx6_lcd-lt170410_overlay.dts b/overlays/colibri-imx6_lcd-lt170410_overlay.dts index dbd495d..913e8f9 100644 --- a/overlays/colibri-imx6_lcd-lt170410_overlay.dts +++ b/overlays/colibri-imx6_lcd-lt170410_overlay.dts @@ -3,8 +3,10 @@ * Copyright 2020-2021 Toradex */ -// Enable the LCDIF interface, tuning settings for -// Toradex Cap LVDS 10 inch Display on the Colibri iMX6DL +// Enable the LCDIF interface and LVDS trasceiver, tuning settings +// for Toradex Cap LVDS 10" Display on the Colibri iMX6DL. + +#include /dts-v1/; /plugin/; @@ -17,6 +19,31 @@ status = "okay"; }; +/* Need to be disabled due to overlapped pins SODIMM_55, SODIMM_63 */ +&can1 { + status = "disabled"; +}; + +&gpio1 { + /* This switches the LVDS transceiver to the single-channel + * output mode. + */ + LVDS_MODE { + gpio-hog; + gpios = <7 GPIO_ACTIVE_HIGH>; + line-name = "LVDS_MODE"; + output-high; + }; + + /* This turns the LVDS transceiver on */ + LVDS_PWRDWN { + gpio-hog; + gpios = <12 GPIO_ACTIVE_HIGH>; + line-name = "LVDS_PWRDWN"; + output-high; + }; +}; + &lcd { status = "okay"; }; -- cgit v1.2.3