diff options
Diffstat (limited to 'overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dtsi')
-rw-r--r-- | overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dtsi | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dtsi b/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dtsi new file mode 100644 index 0000000..6e4c462 --- /dev/null +++ b/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dtsi @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// Enable the parallel RGB interface on the Colibri iMX6ULL and the +// LVDS transceiver on the Iris v2.0A. + +&backlight { + status = "okay"; +}; + +&can1 { + // Disabled due to the SODIMM 55 and 63 pins overlapping + status = "disabled"; +}; + +&gpio1 { + // This turns the LVDS transceiver on + lvds-pwron { + gpio-hog; + gpios = <14 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */ + line-name = "LVDS_PWRON"; + output-high; + }; +}; + +&gpio2 { + // This switches the LVDS transceiver to the single-channel output mode + lvds-ch-mode { + gpio-hog; + gpios = <0 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */ + line-name = "LVDS_CH_MODE"; + output-high; + }; + + // This switches the LVDS transceiver to the 24-bit RGB mode + lvds-rgb-mode { + gpio-hog; + gpios = <1 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 = <3 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */ + line-name = "LVDS_COLOR_MAP"; + output-low; + }; +}; + +&lcdif { + status = "okay"; +}; + +&panel_dpi { + data-mapping = "bgr666"; + status = "okay"; +}; + +&pwm4 { + status = "okay"; +}; |