Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6qdl-sabre*: fix Egalax touchscreen properties

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>

+6 -6
+2 -2
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
··· 452 452 pinctrl-names = "default"; 453 453 pinctrl-0 = <&pinctrl_egalax_int>; 454 454 interrupt-parent = <&gpio2>; 455 - interrupts = <28 IRQ_TYPE_EDGE_FALLING>; 456 - wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>; 455 + interrupts = <28 IRQ_TYPE_LEVEL_LOW>; 456 + wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; 457 457 }; 458 458 }; 459 459
+4 -4
arch/arm/boot/dts/imx6qdl-sabresd.dtsi
··· 311 311 pinctrl-names = "default"; 312 312 pinctrl-0 = <&pinctrl_i2c2_egalax_int>; 313 313 interrupt-parent = <&gpio6>; 314 - interrupts = <8 IRQ_TYPE_EDGE_FALLING>; 315 - wakeup-gpios = <&gpio6 8 GPIO_ACTIVE_HIGH>; 314 + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; 315 + wakeup-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>; 316 316 }; 317 317 318 318 ov5640: camera@3c { ··· 450 450 compatible = "eeti,egalax_ts"; 451 451 reg = <0x04>; 452 452 interrupt-parent = <&gpio6>; 453 - interrupts = <7 2>; 454 - wakeup-gpios = <&gpio6 7 0>; 453 + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 454 + wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>; 455 455 }; 456 456 457 457 magnetometer@e {