summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-03-29 00:14:03 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-04-05 19:04:37 +0300
commit2cf998f267656cea1ac04a103f0a0eb70de75c88 (patch)
treeaddc73c162833fd7c16204a053268c3010018cd9
parent299d12de333dca882c6ecb79020f0edcbf698913 (diff)
overlays: colibri-imx7: improve LVDS transceiver overlay
Handle the LVDS transceiver signals to be sure they set properly. Related-to: ELB-3898 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/colibri-imx7_lcd-lt170410_overlay.dts55
1 files changed, 53 insertions, 2 deletions
diff --git a/overlays/colibri-imx7_lcd-lt170410_overlay.dts b/overlays/colibri-imx7_lcd-lt170410_overlay.dts
index c8d0aff..4f86874 100644
--- a/overlays/colibri-imx7_lcd-lt170410_overlay.dts
+++ b/overlays/colibri-imx7_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 iMX7
+// Enable the LCDIF interface and LVDS trasceiver, tuning settings
+// for Toradex Cap LVDS 10" Display on the Colibri iMX7.
+
+#include <dt-bindings/gpio/gpio.h>
/dts-v1/;
/plugin/;
@@ -25,6 +27,55 @@
};
};
+/* Need to be disabled due to overlapped pins SODIMM_55, SODIMM_63 */
+&flexcan1 {
+ status = "disabled";
+};
+
+&gpio2 {
+ /*
+ * This switches the LVDS transceiver to VESA color mapping mode.
+ */
+ LVDS_COLOR_MAP {
+ gpio-hog;
+ gpios = <13 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */
+ line-name = "LVDS_COLOR_MAP";
+ output-low;
+ };
+
+};
+
+&gpio7 {
+ /*
+ * This switches the LVDS transceiver to the 24-bit RGB mode.
+ */
+ LVDS_RGB_MODE {
+ gpio-hog;
+ gpios = <2 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */
+ line-name = "LVDS_RGB_MODE";
+ output-low;
+ };
+
+ /*
+ * This switches the LVDS transceiver to the single-channel
+ * output mode.
+ */
+ LVDS_CH_MODE {
+ gpio-hog;
+ gpios = <3 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */
+ line-name = "LVDS_CH_MODE";
+ output-high;
+ };
+
+ /* This turns the LVDS transceiver on */
+ LVDS_POWER_ON {
+ gpio-hog;
+ gpios = <11 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
+ line-name = "LVDS_POWER_ON";
+ output-high;
+ };
+};
+
&lcdif {
status = "okay";
};