Skip to contentSkip to conversation

ARM: dts: imx6ull-colibri-emmc: Add DPI display and VGA overlays

PATCH Applied Francesco Dolcini 2 participants 10 messages Nov 9 – Nov 19

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: imx6ull-colibri-emmc: Add DPI display and VGA overlays

From: Francesco Dolcini <[email protected]>

Add device tree overlays for the Toradex display accessories on the Colibri iMX6ULL eMMC parallel RGB LCD interface, mirroring what was recently merged for the Colibri iMX7 eMMC:

- Capacitive Touch Display 7" Parallel, touch on the 10-way Capacitive Touch Interface connector (Iris v2, Aster)
- Capacitive Touch Display 7" Parallel, touch through the Capacitive Touch Adapter (Eval v3)
- Resistive Touch Display 7" Parallel (Eval v3)
- VGA output through a non-programmable video DAC (Aster, Eval v3, Iris, Iris v2)

The panel, backlight and LCDIF part of each overlay is identical between the two modules, both using the same LCDIF binding and labels. Instead of duplicating it, each patch moves that part out of the corresponding Colibri iMX7 eMMC overlay into a dtsi shared by the two modules and includes it from both. Only the Atmel MaxTouch wiring, the conflicting PWM channels and the BL_ON pinctrl and GPIO driving the VGA DAC power-save input stay in the SoC specific overlays. The shared files follow the imx6ul-imx6ull-*.dtsi naming already used in the same directory.

The overlay names are the Toradex product names of the accessories, and a product name is unique only together with its vendor. Following the discussion on the Apalis iMX6 overlays [1], the Toradex accessories get a "tdx" vendor prefix, the same way third-party accessories on Toradex boards already carry theirs, e.g. "rpi" in k3-am625-verdin-rpi-display-2-7in.dtso.

Patches 1 and 2 are fixes and come first, so they can be backported without the rename. Patch 1 (from Emanuele) drives the VGA DAC power-save input through the BL_ON signal, without it the Eval and Aster carrier boards show a black image. Patch 2 adds the Colibri iMX7 eMMC touch adapter and resistive touch .dtbo to dtb-y, as they were built only as a dependency of the combined DTBs and never shipped by dtbs_install. Patch 3 adds the tdx vendor prefix to the existing Colibri iMX7 eMMC display overlays. Patch 4 aligns the Colibri iMX6ULL backlight brightness levels with the Colibri iMX7 ones, the LED driver of the 7" displays turns off below roughly 15% duty cycle and only the three highest of the current levels produced a visible image.

[1] https://lore.kernel.org/all/20261026111149.GA46946@francesco-nb/

v2:
- add patch 3, tdx vendor prefix for the Colibri iMX7 eMMC display overlays
- add the tdx vendor prefix to the new Colibri iMX6ULL display overlays, the shared dtsi and the combined DTBs
v1: https://lore.kernel.org/all/[email protected]/

Emanuele Ghidoli (1):
ARM: dts: imx7d-colibri-emmc: Enable the VGA DAC

Francesco Dolcini (7):
ARM: dts: imx7d-colibri-emmc: Add missing touch display overlays to
dtb-y
ARM: dts: imx7d-colibri-emmc: Add tdx vendor prefix to display
overlays
ARM: dts: imx6ull-colibri: Align backlight brightness levels with
Colibri iMX7
ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display
7" Parallel
ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display
7" Parallel with Touch Adapter
ARM: dts: imx6ull-colibri-emmc: Add Toradex Resistive Touch Display 7"
Parallel
ARM: dts: imx6ull-colibri-emmc: Add VGA overlay

 arch/arm/boot/dts/nxp/imx/Makefile            | 73 +++++++++++++++----
 ...ap-touch-7inch-parallel-touch-adapter.dtso | 46 ++++++++++++
 ...mc-tdx-panel-cap-touch-7inch-parallel.dtso | 31 ++++++++
 ...mc-tdx-panel-res-touch-7inch-parallel.dtso | 16 ++++
 .../dts/nxp/imx/imx6ull-colibri-emmc-vga.dtso | 24 ++++++
 .../arm/boot/dts/nxp/imx/imx6ull-colibri.dtsi |  4 +-
 ...ri-tdx-panel-cap-touch-7inch-parallel.dtsi | 29 ++++++++
 ...i-tdx-panel-res-touch-7inch-parallel.dtsi} |  8 +-
 .../dts/nxp/imx/imx6ull-imx7-colibri-vga.dtsi | 61 ++++++++++++++++
 ...p-touch-7inch-parallel-touch-adapter.dtso} | 16 +---
 ...c-tdx-panel-cap-touch-7inch-parallel.dtso} | 16 +---
 ...mc-tdx-panel-res-touch-7inch-parallel.dtso | 16 ++++
 .../dts/nxp/imx/imx7d-colibri-emmc-vga.dtso   | 49 ++-----------
 13 files changed, 299 insertions(+), 90 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-vga.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtso => imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi} (77%)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-vga.dtsi
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtso => imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso} (90%)
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtso => imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso} (86%)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso
Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 1/8 ARM: dts: imx7d-colibri-emmc: Enable the VGA DAC

From: Emanuele Ghidoli <[email protected]>

On the Colibri Evaluation Board and Aster carrier board, the BL_ON signal on SODIMM 71 controls the active-low power-save input of the ADV7125 VGA DAC. The VGA overlay does not drive this signal, leaving the DAC disabled. The monitor receives the sync signals but displays a black image. On the Iris carrier board, the DAC power-save input is pulled high so the missing GPIO configuration does not prevent the VGA output from working.

Add the pinctrl configuration and an active-high enable GPIO to the VGA bridge so that the simple-bridge driver takes the DAC out of power-save when enabling the output.

Fixes cc6c96f0bdd7 ("ARM: dts: imx7d-colibri-emmc: Add VGA overlay")

---
v2: no changes

---
 arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-vga.dtso | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-vga.dtso +5 -0
index cda214c13876..363c0c2cc43e 100644
@@ -12,9 +12,14 @@
 /dts-v1/;
 /plugin/;
 
+#include <dt-bindings/gpio/gpio.h>
+
 &{/} {
 	vga-encoder {
 		compatible = "dumb-vga-dac";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_bl_on>;
+		enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
 
 		ports {
 			#address-cells = <1>;
Signature · 1 line
2.47.3
#2 lore raw

PATCH v2 2/8 ARM: dts: imx7d-colibri-emmc: Add missing touch display overlays to dtb-y

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

The Capacitive Touch Display 7" Parallel with Touch Adapter and the Resistive Touch Display 7" Parallel overlays are only built as a dependency of the combined Eval carrier board DTBs and are not listed in dtb-y, so the standalone .dtbo files are not installed by dtbs_install.

Add them to dtb-y like the other Colibri iMX7 eMMC overlays.

Fixes 64e7d6ba2037 ("ARM: dts: imx7d-colibri-emmc: Add Toradex Capacitive Touch Display 7" Parallel with Touch Adapter")
Fixes 392bbdb0357b ("ARM: dts: imx7d-colibri-emmc: Add Toradex Resistive Touch Display 7" Parallel")

---
v2: no changes

---
 arch/arm/boot/dts/nxp/imx/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/nxp/imx/Makefile +2 -0
index a0ad7ee583e8..f22abbd01434 100644
@@ -472,6 +472,8 @@ dtb-$(CONFIG_SOC_IMX7D) += \
 	imx7d-colibri-emmc-eval-v3-panel-res-touch-7inch-parallel.dtb \
 	imx7d-colibri-emmc-eval-v3-vga.dtb \
 	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtbo \
+	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
+	imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtbo \
 	imx7d-colibri-emmc-vga.dtbo \
 	imx7d-colibri-eval-v3.dtb \
 	imx7d-colibri-iris.dtb \
Signature · 1 line
2.47.3
#3 lore raw

PATCH v2 3/8 ARM: dts: imx7d-colibri-emmc: Add tdx vendor prefix to display overlays

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

The Toradex Capacitive Touch Display 7" Parallel and Resistive Touch Display 7" Parallel are Toradex accessories, and the overlay names are their product names. A product name is unique only within its vendor:
"panel-cap-touch-7inch-parallel" on its own reads as a generic panel description and could just as well name another vendor's display.

Prefix the accessory with its vendor, "tdx", as is already done for third-party accessories on Toradex boards, e.g. "rpi" in k3-am625-verdin-rpi-display-2-7in.dtso. The combined DTBs are renamed accordingly.

---
v2: new patch

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 30 +++++++++----------
 ...p-touch-7inch-parallel-touch-adapter.dtso} |  0
 ...c-tdx-panel-cap-touch-7inch-parallel.dtso} |  0
 ...c-tdx-panel-res-touch-7inch-parallel.dtso} |  0
 4 files changed, 15 insertions(+), 15 deletions(-)
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtso => imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso} (100%)
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtso => imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso} (100%)
 rename arch/arm/boot/dts/nxp/imx/{imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtso => imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso} (100%)
arch/arm/boot/dts/nxp/imx/Makefile +15 -15
index f22abbd01434..c05cc9ff782d 100644
@@ -424,21 +424,21 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ulz-14x14-evk.dtb \
 	imx6ulz-bsh-smm-m2.dtb
 
-imx7d-colibri-emmc-aster-panel-cap-touch-7inch-parallel-dtbs := \
+imx7d-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel-dtbs := \
 	imx7d-colibri-emmc-aster.dtb \
-	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtbo
+	imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo
 
-imx7d-colibri-emmc-iris-v2-panel-cap-touch-7inch-parallel-dtbs := \
+imx7d-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel-dtbs := \
 	imx7d-colibri-emmc-iris-v2.dtb \
-	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtbo
+	imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo
 
-imx7d-colibri-emmc-eval-v3-panel-cap-touch-7inch-parallel-touch-adapter-dtbs := \
+imx7d-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter-dtbs := \
 	imx7d-colibri-emmc-eval-v3.dtb \
-	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtbo
+	imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo
 
-imx7d-colibri-emmc-eval-v3-panel-res-touch-7inch-parallel-dtbs := \
+imx7d-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel-dtbs := \
 	imx7d-colibri-emmc-eval-v3.dtb \
-	imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtbo
+	imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo
 
 imx7d-colibri-emmc-aster-vga-dtbs := \
 	imx7d-colibri-emmc-aster.dtb \
@@ -460,20 +460,20 @@ dtb-$(CONFIG_SOC_IMX7D) += \
 	imx7d-cl-som-imx7.dtb \
 	imx7d-colibri-aster.dtb \
 	imx7d-colibri-emmc-aster.dtb \
-	imx7d-colibri-emmc-aster-panel-cap-touch-7inch-parallel.dtb \
+	imx7d-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx7d-colibri-emmc-aster-vga.dtb \
 	imx7d-colibri-emmc-iris.dtb \
 	imx7d-colibri-emmc-iris-vga.dtb \
 	imx7d-colibri-emmc-iris-v2.dtb \
-	imx7d-colibri-emmc-iris-v2-panel-cap-touch-7inch-parallel.dtb \
+	imx7d-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx7d-colibri-emmc-iris-v2-vga.dtb \
 	imx7d-colibri-emmc-eval-v3.dtb \
-	imx7d-colibri-emmc-eval-v3-panel-cap-touch-7inch-parallel-touch-adapter.dtb \
-	imx7d-colibri-emmc-eval-v3-panel-res-touch-7inch-parallel.dtb \
+	imx7d-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtb \
+	imx7d-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel.dtb \
 	imx7d-colibri-emmc-eval-v3-vga.dtb \
-	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtbo \
-	imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
-	imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtbo \
+	imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo \
+	imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
+	imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo \
 	imx7d-colibri-emmc-vga.dtbo \
 	imx7d-colibri-eval-v3.dtb \
 	imx7d-colibri-iris.dtb \
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso renamed from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtso +0 -0
similarity index 100%
rename from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-cap-touch-7inch-parallel-touch-adapter.dtso
rename to arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso renamed from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtso +0 -0
similarity index 100%
rename from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-cap-touch-7inch-parallel.dtso
rename to arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso renamed from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtso +0 -0
similarity index 100%
rename from arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-panel-res-touch-7inch-parallel.dtso
rename to arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso
Signature · 1 line
2.47.3
#4 lore raw

PATCH v2 4/8 ARM: dts: imx6ull-colibri: Align backlight brightness levels with Colibri iMX7

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

The LED driver of the Toradex 7" parallel displays turns the backlight off below roughly 15% PWM duty cycle, with the current brightness levels only the three highest ones produce a visible image.

Use the same brightness levels as on the Colibri iMX7, which is used with the same displays, keeping the default brightness at about the same value.

---
v2: no changes

---
 arch/arm/boot/dts/nxp/imx/imx6ull-colibri.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6ull-colibri.dtsi +2 -2
index 1eb1cf2d7395..dd2dc23f0cf1 100644
@@ -14,8 +14,8 @@ aliases {
 
 	backlight: backlight {
 		compatible = "pwm-backlight";
-		brightness-levels = <0 4 8 16 32 64 128 255>;
-		default-brightness-level = <6>;
+		brightness-levels = <0 45 63 88 119 158 203 255>;
+		default-brightness-level = <4>;
 		enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_gpio_bl_on>;
Signature · 1 line
2.47.3
#5 lore raw

PATCH v2 5/8 ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display 7" Parallel

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add a device tree overlay for the Capacitive Touch Display 7" Parallel on the Colibri iMX6ULL eMMC parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHC 7" WVGA TFT Transmissive LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

The touch controller is connected to the Toradex 10-way Capacitive Touch Interface connector available on Iris v2 and Aster carrier boards.

The panel, backlight and LCDIF configuration is identical to the Colibri iMX7 eMMC one, only the Atmel MaxTouch controller wiring is SoC specific. To avoid duplicating it, rework the Colibri iMX7 eMMC overlay moving the common part to a new dtsi shared between the two modules, and include it from both overlays.

The overlay is also combined with the Iris v2 and Aster carrier board device tree to provide a ready-to-use DTB.

---
v2: add the tdx vendor prefix to the overlay, shared dtsi and combined DTB names

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 12 +++++++
 ...mc-tdx-panel-cap-touch-7inch-parallel.dtso | 31 +++++++++++++++++++
 ...ri-tdx-panel-cap-touch-7inch-parallel.dtsi | 29 +++++++++++++++++
 ...mc-tdx-panel-cap-touch-7inch-parallel.dtso | 16 ++--------
 4 files changed, 74 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi
arch/arm/boot/dts/nxp/imx/Makefile +12 -0
index c05cc9ff782d..a0d22028f20d 100644
@@ -356,6 +356,15 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
 	imx6sx-udoo-neo-basic.dtb \
 	imx6sx-udoo-neo-extended.dtb \
 	imx6sx-udoo-neo-full.dtb
+
+imx6ull-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel-dtbs := \
+	imx6ull-colibri-emmc-aster.dtb \
+	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo
+
+imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel-dtbs := \
+	imx6ull-colibri-emmc-iris-v2.dtb \
+	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo
+
 dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-14x14-evk.dtb \
 	imx6ul-ccimx6ulsbcexpress.dtb \
@@ -384,9 +393,12 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ull-14x14-evk.dtb \
 	imx6ull-colibri-aster.dtb \
 	imx6ull-colibri-emmc-aster.dtb \
+	imx6ull-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-eval-v3.dtb \
 	imx6ull-colibri-emmc-iris.dtb \
 	imx6ull-colibri-emmc-iris-v2.dtb \
+	imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel.dtb \
+	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo \
 	imx6ull-colibri-eval-v3.dtb \
 	imx6ull-colibri-iris.dtb \
 	imx6ull-colibri-iris-v2.dtb \
arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso new file +31 -0
new file mode 100644
index 000000000000..6d0ad21ae2d7
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Capacitive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display and 10-way Capacitive Touch Interface connectors
+ * (as featured on Iris v2 and Aster v1.1 carrier boards).
+ *
+ * https://docs.toradex.com/104497-7-inch-parallel-capacitive-touch-display-800x480-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/capacitive-touch-display-7-inch-parallel
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+#include "imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi"
+
+&atmel_mxt_ts {
+	pinctrl-0 = <&pinctrl_atmel_conn &pinctrl_atmel_snvs_conn>;
+	/* SODIMM 107 / TOUCH_INT# */
+	interrupt-parent = <&gpio5>;
+	interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
+	/* SODIMM 106 / TOUCH_RST# */
+	reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
+
+	status = "okay";
+};
arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi new file +29 -0
new file mode 100644
index 000000000000..21688c63d11f
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Panel, backlight and LCDIF part of the Toradex Capacitive Touch Display 7"
+ * Parallel overlays, connected through the 40-way Unified Interface Display
+ * connector, shared by the Colibri iMX6ULL eMMC and Colibri iMX7 eMMC overlays.
+ *
+ * The Atmel MaxTouch controller wiring is SoC specific and is described by
+ * the overlay including this file.
+ *
+ * https://docs.toradex.com/104497-7-inch-parallel-capacitive-touch-display-800x480-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/capacitive-touch-display-7-inch-parallel
+ */
+
+&backlight {
+	status = "okay";
+};
+
+&lcdif {
+	status = "okay";
+};
+
+&panel_dpi {
+	compatible = "logictechno,lt161010-2nhc";
+
+	status = "okay";
+};
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtso +2 -14
index f336f7b05a2b..340e772f5c6e 100644
@@ -17,6 +17,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 
+#include "imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi"
+
 &atmel_mxt_ts {
 	pinctrl-0 = <&pinctrl_atmel_connector>;
 	/* SODIMM 107 / TOUCH_INT# */
@@ -27,17 +29,3 @@ &atmel_mxt_ts {
 
 	status = "okay";
 };
-
-&backlight {
-	status = "okay";
-};
-
-&lcdif {
-	status = "okay";
-};
-
-&panel_dpi {
-	compatible = "logictechno,lt161010-2nhc";
-
-	status = "okay";
-};
Signature · 1 line
2.47.3
#6 lore raw

PATCH v2 6/8 ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display 7" Parallel with Touch Adapter

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add a device tree overlay for the Capacitive Touch Display 7" Parallel on the Colibri iMX6ULL eMMC parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHC 7" WVGA TFT Transmissive LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

The touch controller is connected to the Toradex Capacitive Touch Adapter, the connection to the various carrier boards is documented in the datasheet [1].

The panel, backlight and LCDIF configuration is identical to the Colibri iMX7 eMMC one, only the Atmel MaxTouch controller wiring and the conflicting PWM channels are SoC specific. To avoid duplicating it, rework the Colibri iMX7 eMMC overlay to include the dtsi shared between the two modules, and use it from the new overlay as well.

The overlay is also combined with the Eval carrier board device tree to provide a ready-to-use DTB.

---
v2: add the tdx vendor prefix to the overlay, shared dtsi and combined DTB names

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...ap-touch-7inch-parallel-touch-adapter.dtso | 46 +++++++++++++++++++
 ...ap-touch-7inch-parallel-touch-adapter.dtso | 16 +------
 3 files changed, 54 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index a0d22028f20d..7332167aee44 100644
@@ -365,6 +365,10 @@ imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel-dtbs := \
 	imx6ull-colibri-emmc-iris-v2.dtb \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo
 
+imx6ull-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter-dtbs := \
+	imx6ull-colibri-emmc-eval-v3.dtb \
+	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo
+
 dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-14x14-evk.dtb \
 	imx6ul-ccimx6ulsbcexpress.dtb \
@@ -395,10 +399,12 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ull-colibri-emmc-aster.dtb \
 	imx6ull-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-eval-v3.dtb \
+	imx6ull-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtb \
 	imx6ull-colibri-emmc-iris.dtb \
 	imx6ull-colibri-emmc-iris-v2.dtb \
 	imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo \
+	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
 	imx6ull-colibri-eval-v3.dtb \
 	imx6ull-colibri-iris.dtb \
 	imx6ull-colibri-iris-v2.dtb \
arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso new file +46 -0

46 lines not on this page · raw message

arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtso +2 -14
index 890461f92442..aa8ae9418b44 100644
@@ -22,6 +22,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 
+#include "imx6ull-imx7-colibri-tdx-panel-cap-touch-7inch-parallel.dtsi"
+
 &atmel_mxt_ts {
 	pinctrl-0 = <&pinctrl_atmel_adapter>;
 	/* SODIMM 28 / TOUCH_INT# */
@@ -33,20 +35,6 @@ &atmel_mxt_ts {
 	status = "okay";
 };
 
-&backlight {
-	status = "okay";
-};
-
-&lcdif {
-	status = "okay";
-};
-
-&panel_dpi {
-	compatible = "logictechno,lt161010-2nhc";
-
-	status = "okay";
-};
-
 /* Conflict with SODIMM 28 / TOUCH_INT# */
 &pwm2 {
 	status = "disabled";
Signature · 1 line
2.47.3
#7 lore raw

PATCH v2 7/8 ARM: dts: imx6ull-colibri-emmc: Add Toradex Resistive Touch Display 7" Parallel

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add a device tree overlay for the Resistive Touch Display 7" Parallel on the Colibri iMX6ULL eMMC parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHR 7" WVGA TFT Transmissive LCD with a resistive touch.

The overlay content is identical to the Colibri iMX7 eMMC one. To avoid duplicating it, rework the Colibri iMX7 eMMC overlay moving its content to a new dtsi shared between the two modules, and include it from both overlays.

The overlay is also combined with the Eval carrier board device tree to provide a ready-to-use DTB.

---
v2: add the tdx vendor prefix to the overlay, shared dtsi and combined DTB names

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 ++++
 ...mc-tdx-panel-res-touch-7inch-parallel.dtso | 16 ++++++++++
 ...ri-tdx-panel-res-touch-7inch-parallel.dtsi | 30 +++++++++++++++++++
 ...mc-tdx-panel-res-touch-7inch-parallel.dtso | 18 +----------
 4 files changed, 53 insertions(+), 17 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 7332167aee44..060bb01f9396 100644
@@ -369,6 +369,10 @@ imx6ull-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter-dt
 	imx6ull-colibri-emmc-eval-v3.dtb \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo
 
+imx6ull-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel-dtbs := \
+	imx6ull-colibri-emmc-eval-v3.dtb \
+	imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo
+
 dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-14x14-evk.dtb \
 	imx6ul-ccimx6ulsbcexpress.dtb \
@@ -400,11 +404,13 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ull-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-eval-v3.dtb \
 	imx6ull-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtb \
+	imx6ull-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-iris.dtb \
 	imx6ull-colibri-emmc-iris-v2.dtb \
 	imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel.dtb \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
+	imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo \
 	imx6ull-colibri-eval-v3.dtb \
 	imx6ull-colibri-iris.dtb \
 	imx6ull-colibri-iris-v2.dtb \
arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso new file +16 -0
new file mode 100644
index 000000000000..89800a64b596
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Resistive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display connector.
+ *
+ * https://docs.toradex.com/104498-7-inch-parallel-resistive-touch-display-800x480.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/resistive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/resistive-touch-display
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi"
arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi new file +30 -0
new file mode 100644
index 000000000000..2159b9788064
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Resistive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display connector, shared by the Colibri iMX6ULL eMMC and
+ * Colibri iMX7 eMMC overlays.
+ *
+ * https://docs.toradex.com/104498-7-inch-parallel-resistive-touch-display-800x480.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/resistive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/resistive-touch-display
+ */
+
+&ad7879_ts {
+	status = "okay";
+};
+
+&backlight {
+	status = "okay";
+};
+
+&lcdif {
+	status = "okay";
+};
+
+&panel_dpi {
+	compatible = "logictechno,lt161010-2nhr";
+
+	status = "okay";
+};
arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso +1 -17
index b926cc020e62..6748ffa2e89a 100644
@@ -13,20 +13,4 @@
 /dts-v1/;
 /plugin/;
 
-&ad7879_ts {
-	status = "okay";
-};
-
-&backlight {
-	status = "okay";
-};
-
-&lcdif {
-	status = "okay";
-};
-
-&panel_dpi {
-	compatible = "logictechno,lt161010-2nhr";
-
-	status = "okay";
-};
+#include "imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi"
Signature · 1 line
2.47.3
#8 lore raw

PATCH v2 8/8 ARM: dts: imx6ull-colibri-emmc: Add VGA overlay

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add a device tree overlay for the VGA output on the Colibri iMX6ULL eMMC parallel RGB LCD interface. The VGA output is driven through a non-programmable video DAC without VESA DDC I2C signals to a DVI connector. The DAC power-save input is driven by the BL_ON signal on SODIMM 71, like on the Colibri iMX7.

The overlay content is identical to the Colibri iMX7 eMMC one, only the GPIO driving the DAC power-save input is SoC specific. To avoid duplicating it, rework the Colibri iMX7 eMMC overlay moving the common part to a new dtsi shared between the two modules, and include it from both overlays.

The overlay is also combined with the Aster, Evaluation Board v3, Iris and Iris v2 carrier board device trees to provide ready-to-use DTBs.

---
v2: no changes

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 21 +++++++
 .../dts/nxp/imx/imx6ull-colibri-emmc-vga.dtso | 24 ++++++++
 .../dts/nxp/imx/imx6ull-imx7-colibri-vga.dtsi | 61 +++++++++++++++++++
 .../dts/nxp/imx/imx7d-colibri-emmc-vga.dtso   | 52 ++--------------
 4 files changed, 112 insertions(+), 46 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-vga.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-vga.dtsi
arch/arm/boot/dts/nxp/imx/Makefile +21 -0
index 060bb01f9396..4fc8fa5e8c79 100644
@@ -373,6 +373,22 @@ imx6ull-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel-dtbs := \
 	imx6ull-colibri-emmc-eval-v3.dtb \
 	imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo
 
+imx6ull-colibri-emmc-aster-vga-dtbs := \
+	imx6ull-colibri-emmc-aster.dtb \
+	imx6ull-colibri-emmc-vga.dtbo
+
+imx6ull-colibri-emmc-eval-v3-vga-dtbs := \
+	imx6ull-colibri-emmc-eval-v3.dtb \
+	imx6ull-colibri-emmc-vga.dtbo
+
+imx6ull-colibri-emmc-iris-vga-dtbs := \
+	imx6ull-colibri-emmc-iris.dtb \
+	imx6ull-colibri-emmc-vga.dtbo
+
+imx6ull-colibri-emmc-iris-v2-vga-dtbs := \
+	imx6ull-colibri-emmc-iris-v2.dtb \
+	imx6ull-colibri-emmc-vga.dtbo
+
 dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-14x14-evk.dtb \
 	imx6ul-ccimx6ulsbcexpress.dtb \
@@ -402,15 +418,20 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ull-colibri-aster.dtb \
 	imx6ull-colibri-emmc-aster.dtb \
 	imx6ull-colibri-emmc-aster-tdx-panel-cap-touch-7inch-parallel.dtb \
+	imx6ull-colibri-emmc-aster-vga.dtb \
 	imx6ull-colibri-emmc-eval-v3.dtb \
 	imx6ull-colibri-emmc-eval-v3-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtb \
 	imx6ull-colibri-emmc-eval-v3-tdx-panel-res-touch-7inch-parallel.dtb \
+	imx6ull-colibri-emmc-eval-v3-vga.dtb \
 	imx6ull-colibri-emmc-iris.dtb \
+	imx6ull-colibri-emmc-iris-vga.dtb \
 	imx6ull-colibri-emmc-iris-v2.dtb \
 	imx6ull-colibri-emmc-iris-v2-tdx-panel-cap-touch-7inch-parallel.dtb \
+	imx6ull-colibri-emmc-iris-v2-vga.dtb \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel.dtbo \
 	imx6ull-colibri-emmc-tdx-panel-cap-touch-7inch-parallel-touch-adapter.dtbo \
 	imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtbo \
+	imx6ull-colibri-emmc-vga.dtbo \
 	imx6ull-colibri-eval-v3.dtb \
 	imx6ull-colibri-iris.dtb \
 	imx6ull-colibri-iris-v2.dtb \
arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-vga.dtso new file +24 -0
new file mode 100644
index 000000000000..4ecf221de27e
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * VGA output connected to the Colibri parallel RGB LCD interface through a
+ * non-programmable video DAC with a DVI connector.
+ *
+ * The VGA output is available on multiple carrier boards (including Iris,
+ * Eval, Aster) without VESA DDC I2C signals.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+#include "imx6ull-imx7-colibri-vga.dtsi"
+
+&vga_encoder {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio_bl_on>;
+	/* SODIMM 71 / BL_ON */
+	enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
+};
arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-vga.dtsi new file +61 -0

61 lines not on this page · raw message

arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-vga.dtso +6 -46

57 lines not on this page · raw message

Signature · 1 line
2.47.3
#9 lore raw
In reply to Francesco Dolcini

From: Frank Li <[email protected]>

Quoted 14 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add device tree overlays for the Toradex display accessories on the Colibri iMX6ULL eMMC parallel RGB LCD interface, mirroring what was recently merged for the Colibri iMX7 eMMC:

- Capacitive Touch Display 7" Parallel, touch on the 10-way Capacitive Touch Interface connector (Iris v2, Aster)
- Capacitive Touch Display 7" Parallel, touch through the Capacitive Touch Adapter (Eval v3)
- Resistive Touch Display 7" Parallel (Eval v3)
- VGA output through a non-programmable video DAC (Aster, Eval v3, Iris, Iris v2)

Quoted 1 line

[...]

Applied, thanks!

[1/8] ARM: dts: imx7d-colibri-emmc: Enable the VGA DAC

      commit: fd7a690d0e1cc9b61189a5b645805985654969c2
[2/8] ARM: dts: imx7d-colibri-emmc: Add missing touch display overlays to dtb-y
      commit: f4f84f5ae28bd5a2d88231d5c7e6d119ff35bb28
[3/8] ARM: dts: imx7d-colibri-emmc: Add tdx vendor prefix to display overlays
      commit: 07015e1df6ac41799553ffd28a544f1bf2e52f17
[4/8] ARM: dts: imx6ull-colibri: Align backlight brightness levels with Colibri iMX7
      commit: 4831643b6dd111b52f4a55217cbba0419cf35dc7
[5/8] ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display 7" Parallel
      commit: 91eb733b4189daa968584eae5c58932cbbca193e
[6/8] ARM: dts: imx6ull-colibri-emmc: Add Toradex Capacitive Touch Display 7" Parallel with Touch Adapter
      commit: 79ee14474d8eb4d937d7c7e778f97407786051ce
[7/8] ARM: dts: imx6ull-colibri-emmc: Add Toradex Resistive Touch Display 7" Parallel
      commit: f6ff4568045a3c14dd3b361134831ae008f2693f
[8/8] ARM: dts: imx6ull-colibri-emmc: Add VGA overlay
      commit: 909b5f1edb7da74ce6283550fa6dfcc2a6b0eeeb

Best regards,

Signature · 1 line
Frank Li <[email protected]>