ARM: dts: ccimx6ulsbcpro: Add support for Goodix touch controller
authorAlex Gonzalez <alex.gonzalez@digi.com>
Thu, 25 Oct 2018 15:09:33 +0000 (17:09 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:03:03 +0000 (10:03 +0800)
The ConnectCore 6UL SBC Pro has an AUO/Goodix LCD accessory kit that is
connected on the LVDS interface through an on-board LVDS transceiver.

This change adds support for the touch interface.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-ccimx6ulsbcpro.dts

index f6e6b2cf780bf7378f7c5d90f774b961c6a697e9..3749fdda3611812e90a5dd6b55ca77be7d20b479 100644 (file)
        };
 };
 
+&i2c1 {
+       touchscreen@14 {
+               compatible = "goodix,gt911";
+               reg = <0x14>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_goodix_touch>;
+               interrupt-parent = <&gpio5>;
+               interrupts = <2 IRQ_TYPE_EDGE_RISING>;
+               irq-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
+};
+
 &lcdif {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lcdif_dat0_17
                >;
        };
 
+       pinctrl_goodix_touch: goodixgrp{
+               fsl,pins = <
+                       MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02      0x1020
+               >;
+       };
+
        pinctrl_lcdif_dat0_17: lcdifdatgrp0-17 {
                fsl,pins = <
                        MX6UL_PAD_LCD_DATA00__LCDIF_DATA00      0x79