From: Francesco Dolcini <[email protected]> Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected through the DPI to LVDS transmitter on the Iris v2 carrier board. The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.
The LVDS transmitter, panel, backlight and LCDIF description is shared with the Colibri iMX7 overlay, only the LVDS transmitter control GPIOs and the Atmel MaxTouch controller wiring are SoC specific. The overlay is also combined with the Iris v2 carrier board device tree to provide a ready-to-use DTB. Link: https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds Signed-off-by: Francesco Dolcini <[email protected]> --- v2: new patch --- arch/arm/boot/dts/nxp/imx/Makefile | 7 +++ ...emmc-iris-panel-cap-touch-10inch-lvds.dtso | 49 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-iris-panel-cap-touch-10inch-lvds.dtso diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index dac2e146ed75..7b838f32c013 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -352,6 +352,11 @@ dtb-$(CONFIG_SOC_IMX6SX) += \ imx6sx-udoo-neo-basic.dtb \ imx6sx-udoo-neo-extended.dtb \ imx6sx-udoo-neo-full.dtb + +imx6ull-colibri-emmc-iris-v2-panel-cap-touch-10inch-lvds-dtbs := \ + imx6ull-colibri-emmc-iris-v2.dtb \ + imx6ull-colibri-emmc-iris-panel-cap-touch-10inch-lvds.dtbo + dtb-$(CONFIG_SOC_IMX6UL) += \ imx6ul-14x14-evk.dtb \ imx6ul-ccimx6ulsbcexpress.dtb \ @@ -382,7 +387,9 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ imx6ull-colibri-emmc-aster.dtb \ imx6ull-colibri-emmc-eval-v3.dtb \ imx6ull-colibri-emmc-iris.dtb \ + imx6ull-colibri-emmc-iris-panel-cap-touch-10inch-lvds.dtbo \ imx6ull-colibri-emmc-iris-v2.dtb \ + imx6ull-colibri-emmc-iris-v2-panel-cap-touch-10inch-lvds.dtb \ 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-iris-panel-cap-touch-10inch-lvds.dtso b/arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-iris-panel-cap-touch-10inch-lvds.dtso new file mode 100644 index 000000000000..f698d6768279 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6ull-colibri-emmc-iris-panel-cap-touch-10inch-lvds.dtso @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (c) Toradex + * + * Toradex Capacitive Touch Display 10.1" LVDS + * + * Toradex Capacitive Touch Display 10.1" on Iris v2 carrier board X7 / X5 + * connectors through on-carrier LVDS transmitter + * + * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds + * https://www.toradex.com/accessories/capacitive-touch-display-10.1-inch-lvds + * https://developer.toradex.com/hardware/colibri-som-family/carrier-boards/iris-carrier-board/ + * https://www.toradex.com/products/carrier-board/iris-carrier-board + * https://docs.toradex.com/108421-colibri_arm_iris_carrier_board_datasheet.pdf + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +#include "imx6ull-imx7-colibri-iris-panel-cap-touch-10inch-lvds.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"; +}; + +/* + * The LVDS transmitter control pins are muxed as GPIO by the pinctrl_gpio1, + * pinctrl_gpio7 and pinctrl_snvs_gpio1 groups of the module device tree. + */ +&lvds_encoder { + /* SODIMM 63 / LVDS_RGB_MODE */ + b6b8-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + /* SODIMM 95 / LVDS_COLOR_MAP */ + map-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>; + /* SODIMM 55 / LVDS_CH_MODE */ + mode-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; + /* SODIMM 99 / LVDS_PWRON */ + powerdown-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; +}; -- 2.47.3
