arm64: dts: rockchip: enable touchpad button for rk3399-gru-kevin
authorEmil Renner Berthing <kernel@esmil.dk>
Mon, 9 Oct 2017 18:40:28 +0000 (20:40 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 14 Oct 2017 19:13:17 +0000 (21:13 +0200)
Adding the linux,gpio-keymap entry also has
the side-effect of making the driver register
the touchpad as a touchpad rather than another
touchscreen.

The index for BTN_LEFT was found by trial and error.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts

index a3d3cea..0384e31 100644 (file)
@@ -249,6 +249,10 @@ ap_i2c_dig: &i2c2 {
                pinctrl-0 = <&trackpad_int_l>;
                interrupt-parent = <&gpio1>;
                interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
+               linux,gpio-keymap = <KEY_RESERVED
+                                    KEY_RESERVED
+                                    KEY_RESERVED
+                                    BTN_LEFT>;
                wakeup-source;
        };
 };