From f54016ff489148b9147aeaaa250c90d58ce6e567 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Sun, 28 Mar 2021 22:24:49 +0300 Subject: overlays: colibri-imx6: add LVDS transceiver Add the overlay to support LCD-LVDS transceiver on Iris v2.0A. Signed-off-by: Oleksandr Suvorov --- overlays/Makefile | 1 + .../colibri-imx6_parallel-rgb-lvds_overlay.dts | 65 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 overlays/colibri-imx6_parallel-rgb-lvds_overlay.dts diff --git a/overlays/Makefile b/overlays/Makefile index 421a1e5..79e7d95 100644 --- a/overlays/Makefile +++ b/overlays/Makefile @@ -32,6 +32,7 @@ dtb-y += colibri-imx6_atmel-mxt-adapter_overlay.dtbo dtb-y += colibri-imx6_atmel-mxt-connector_overlay.dtbo dtb-y += colibri-imx6_hdmi_overlay.dtbo 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 diff --git a/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dts b/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dts new file mode 100644 index 0000000..84e2e3d --- /dev/null +++ b/overlays/colibri-imx6_parallel-rgb-lvds_overlay.dts @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2021 Toradex + */ + +// Enable the parallel RGB interface on the Colibri iMX6DL and the +// LVDS trasceiver on the Iris v2.0A. +// Make sure to also select a valid display configuration. + +#include + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri_imx6dl"; +}; + +&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_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_display { + status = "okay"; +}; + +&panel_dpi { + 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"; +}; -- cgit v1.2.3