summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-03-31 18:10:32 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-04-01 14:28:48 +0300
commit381b8bec47de1d343356afa8d6d7eb7c4a873699 (patch)
treeb1e6a6a5de73c322b54ce1bb132d553a73b85907
parentf54016ff489148b9147aeaaa250c90d58ce6e567 (diff)
overlays: colibri-imx7: LCD-LVDS transceiver
Add the overlay to support the LCD-LVDS transceiver on Iris v2.0A in single-channel RGB24 mode. Related-to: ELB-3898 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/Makefile3
-rw-r--r--overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dts83
2 files changed, 85 insertions, 1 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index 79e7d95..1dc26f1 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -35,9 +35,10 @@ dtb-y += colibri-imx6_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx6_parallel-rgb-lvds_overlay.dtbo
dtb-y += colibri-imx6_stmpe-ts_overlay.dtbo
dtb-y += colibri-imx7_ad7879_overlay.dtbo
-dtb-y += colibri-imx7_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx7_atmel-mxt-adapter_overlay.dtbo
dtb-y += colibri-imx7_atmel-mxt-connector_overlay.dtbo
+dtb-y += colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtbo
+dtb-y += colibri-imx7_parallel-rgb_overlay.dtbo
dtb-y += display-dpi-lt170410_overlay.dtbo
dtb-y += display-edt5.7_overlay.dtbo
dtb-y += display-edt7_overlay.dtbo
diff --git a/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dts b/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dts
new file mode 100644
index 0000000..e5d407e
--- /dev/null
+++ b/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dts
@@ -0,0 +1,83 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2020-2021 Toradex
+ */
+
+// Enable the parallel RGB interface on the Colibri iMX7
+
+#include <dt-bindings/gpio/gpio.h>
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri-imx7d",
+ "toradex,colibri-imx7d-emmc",
+ "toradex,colibri-imx7s";
+};
+
+&backlight {
+ status = "okay";
+};
+
+/* 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 on the LVDS transceiver */
+ LVDS_POWER_ON {
+ gpio-hog;
+ gpios = <11 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
+ line-name = "LVDS_POWER_ON";
+ output-high;
+ };
+};
+
+&lcdif {
+ status = "okay";
+};
+
+&panel_dpi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lvds_transceiver>;
+ status = "okay";
+};
+
+&pwm1 {
+ status = "okay";
+};