OSDN Git Service

ARM: dts: imx6sx-sabreauto: add egalax touch screen support
authorAnson Huang <Anson.Huang@nxp.com>
Sun, 6 May 2018 06:28:13 +0000 (14:28 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 May 2018 14:07:59 +0000 (22:07 +0800)
Add egalax touch screen support on i2c2 bus.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sx-sabreauto.dts

index 8e6bd9d..bfbcf70 100644 (file)
 };
 
 &iomuxc {
+       pinctrl_egalax_int: egalax-intgrp {
+               fsl,pins = <
+                       MX6SX_PAD_SD4_RESET_B__GPIO6_IO_22      0x10b0
+               >;
+       };
+
        pinctrl_enet1: enet1grp {
                fsl,pins = <
                        MX6SX_PAD_ENET1_MDIO__ENET1_MDIO        0xa0b1
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
+       touchscreen@4 {
+               compatible = "eeti,egalax_ts";
+               reg = <0x04>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_egalax_int>;
+               interrupt-parent = <&gpio6>;
+               interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
+               wakeup-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>;
+       };
+
        pfuze100: pmic@8 {
                compatible = "fsl,pfuze100";
                reg = <0x08>;