]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx6qdl-sabreauto: add egalax touch screen support
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 5 Sep 2018 08:10:29 +0000 (16:10 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Sep 2018 01:01:31 +0000 (09:01 +0800)
Add egalax touch screen support on i2c2 bus.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi

index 246af86f40c3f0396c635236c4e5d798c421c8c2..a6dc5c42c632ba1d84375c62b077fad4a1b361f2 100644 (file)
                VLC-supply = <&reg_audio>;
        };
 
+       touchscreen@4 {
+               compatible = "eeti,egalax_ts";
+               reg = <0x04>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_egalax_int>;
+               interrupt-parent = <&gpio2>;
+               interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
+               wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 &i2c3 {
                        >;
                };
 
+               pinctrl_egalax_int: egalax-intgrp {
+                       fsl,pins = <
+                               MX6QDL_PAD_EIM_EB0__GPIO2_IO28          0xb0b1
+                       >;
+               };
+
                pinctrl_enet: enetgrp {
                        fsl,pins = <
                                MX6QDL_PAD_KEY_COL1__ENET_MDIO          0x1b0b0