diff options
author | Aishwarya Kothari <aishwarya.kothari@toradex.com> | 2022-09-28 14:11:24 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2022-10-03 16:23:30 +0200 |
commit | 943af5413b7521723a3a80a11e9e1e438846ac9b (patch) | |
tree | 976dfbd0290d04813b5f5896c9f57ab16c4eb431 /overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi | |
parent | a309fb3c2df3db40c2dd9e4c56c960c3f0a7580c (diff) |
colibri-imx7: move to one overlay per accessory
Move the existing overlays to dtsi files and include them into one
accessory dts.
Provide data-mapping timings appropriately for each machine instead
of the hardcoding and use a single overlay per SoC to avoid code
duplication.
Signed-off-by: Aishwarya Kothari <aishwarya.kothari@toradex.com>
Diffstat (limited to 'overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi')
-rw-r--r-- | overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi b/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi new file mode 100644 index 0000000..ed03a8a --- /dev/null +++ b/overlays/colibri-imx7_parallel-rgb-lvds-rgb24-single_overlay.dtsi @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// Enable the parallel RGB interface on the Colibri iMX7. + +&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 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-pwron { + gpio-hog; + gpios = <11 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 = <2 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */ + line-name = "LVDS_RGB_MODE"; + output-low; + }; +}; + +&lcdif { + status = "okay"; +}; + +&panel_dpi { + data-mapping = "bgr666"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lvds_transceiver>; + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; |