summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-03-28 22:55:07 +0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2021-03-30 23:48:47 +0000
commitc32c1687a733a0adbeee49bcb2540de984658075 (patch)
treef94132af047269502c602dac3e4d5df286a9f865
parented947dc51c45ba641191ab4e84914922a0edd85d (diff)
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 <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/colibri-imx6_lcd-lt170410_overlay.dts31
1 files 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 <dt-bindings/gpio/gpio.h>
/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";
};