ARM: dts: imx6qdl-sabre*: fix Egalax touchscreen properties
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Sep 2022 04:26:05 +0000 (21:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Oct 2022 12:00:27 +0000 (05:00 -0700)
This patch fixes interrupt trigger (should be level low as that is what the
driver is always using), the GPIO that is the interrupt source that is also
used to wake up chip by driving the line low.

The proper polarity is be needed for converting the driver to gpiod API.

Acked-by: Shawn Guo <shawnguo@kernel.org>
Link: https://lore.kernel.org/r/20220920042608.1865560-1-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
arch/arm/boot/dts/imx6qdl-sabresd.dtsi

index 3dbb460ef102e175fdd78e3ead4658b07bdf7716..eebcfe12142e2c7566c9f0eff58e9096bc5205aa 100644 (file)
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_egalax_int>;
                interrupt-parent = <&gpio2>;
-               interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
-               wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
+               interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+               wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
        };
 };
 
index 37482a9023fcec8418363576263d892adcba6229..09f4c2fa3ad6c61456e26c22103c5308c30b3e4f 100644 (file)
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_i2c2_egalax_int>;
                interrupt-parent = <&gpio6>;
-               interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
-               wakeup-gpios = <&gpio6 8 GPIO_ACTIVE_HIGH>;
+               interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
+               wakeup-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>;
        };
 
        ov5640: camera@3c {
                compatible = "eeti,egalax_ts";
                reg = <0x04>;
                interrupt-parent = <&gpio6>;
-               interrupts = <7 2>;
-               wakeup-gpios = <&gpio6 7 0>;
+               interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
+               wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
        };
 
        magnetometer@e {