summaryrefslogtreecommitdiff
path: root/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi')
-rw-r--r--overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi81
1 files changed, 81 insertions, 0 deletions
diff --git a/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi b/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi
new file mode 100644
index 0000000..0c7c26c
--- /dev/null
+++ b/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dtsi
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2020-2022 Toradex
+ */
+
+// Enable the parallel RGB interface on the Colibri iMX6 and the
+// LVDS trasceiver on the Iris v2.0A.
+
+&backlight {
+ 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-ch-mode {
+ gpio-hog;
+ gpios = <7 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */
+ line-name = "LVDS_CH_MODE";
+ output-high;
+ };
+
+ /* This turns the LVDS transceiver on */
+ lvds-pwron {
+ gpio-hog;
+ gpios = <12 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
+ line-name = "LVDS_PWRON";
+ output-high;
+ };
+
+ /* This switches the LVDS transceiver to the 24-bit RGB mode */
+ lvds-rgb-mode {
+ gpio-hog;
+ gpios = <8 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */
+ line-name = "LVDS_RGB_MODE";
+ output-low;
+ };
+};
+
+&gpio5 {
+ /* This switches the LVDS transceiver to VESA color mapping mode */
+ lvds-color-map {
+ gpio-hog;
+ gpios = <0 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */
+ line-name = "LVDS_COLOR_MAP";
+ output-low;
+ };
+};
+
+&pinctrl_weim_gpio_5 {
+ /* PAD_EIM_WAIT pin used for LVDS */
+ fsl,pins = <>;
+};
+
+&lcd_display {
+ /* use the bus-format as specified from the panel */
+ interface-pix-fmt = "";
+ status = "okay";
+};
+
+&panel_dpi {
+ data-mapping = "bgr666";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lvds_transceiver>;
+ status = "okay";
+};
+
+&pwm3 {
+ status = "okay";
+};
+
+/* Need to be disabled due to the overlapped pin SODIMM_99 */
+&weim {
+ status = "disabled";
+};