From: Francesco Dolcini 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. Link: https://developer.toradex.com/hardware/accessories/displays/resistive-touch-display-7inch-parallel/ Signed-off-by: Francesco Dolcini --- 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 diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 7332167aee44..060bb01f9396 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -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 \ diff --git a/arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso b/arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso new file mode 100644 index 000000000000..89800a64b596 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso @@ -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" diff --git a/arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi b/arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi new file mode 100644 index 000000000000..2159b9788064 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6ull-imx7-colibri-tdx-panel-res-touch-7inch-parallel.dtsi @@ -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"; +}; diff --git a/arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso b/arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso index b926cc020e62..6748ffa2e89a 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso +++ b/arch/arm/boot/dts/nxp/imx/imx7d-colibri-emmc-tdx-panel-res-touch-7inch-parallel.dtso @@ -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" -- 2.47.3