dt-binding: input: egalax-ts: fix GPIO and IRQ in example
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Sep 2022 04:26:06 +0000 (21:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Oct 2022 12:02:08 +0000 (05:02 -0700)
The driver is using level triggered interrupt (low) which is backed by
an active low GPIO that can be used to wake the controller by driving it
low. Let's annotate it properly in the example.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220920042608.1865560-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt

index 92fb2620f5e24d13c7b7e44842c80f0eef3e5cff..ebbe9381057451497120605028eb8a7802810f9e 100644 (file)
@@ -13,6 +13,6 @@ Example:
                compatible = "eeti,egalax_ts";
                reg = <0x04>;
                interrupt-parent = <&gpio1>;
-               interrupts = <9 2>;
-               wakeup-gpios = <&gpio1 9 0>;
+               interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
+               wakeup-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
        };