summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2016-04-22 11:32:48 -0700
committerHuang, Tao <huangtao@rock-chips.com>2016-04-26 18:51:57 +0800
commitb67caebc9470b9785a4ec28030fba7df7f85d99a (patch)
tree92d50d49746755496aac9bae9b5d1e3786d41a28 /arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts
parentcdcdef3122b476c2a143e849e59d5d224a53887e (diff)
ARM64: dts: rk3399: add trackpad for gru/kevin boards
The trackpad bits in the DTS needed some love. This adds some basic infrastructure support in the main gru dts file and then adds the specific trackpad used on kevin-r0 and kevin-r1. For now just duplicate between kevin-r0 and kevin-r1 and we'll decide if we want to share later (perhaps we want an "atmel" snippet?). Note that gpio-keymap here makes the driver appear as a trackpad rather than a touchscreen (driver assumes that anything with buttons is a trackpad). Input entry corresponding to the button on the trackpad was found by experimentation as suggested in the device tree bindings. BUG=chrome-os-partner:52637 TEST=With series, trackpad works in browser; button works. Change-Id: Ia62cff90449625778fd99054b914e22a55c13550 Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-on: https://chrome-internal-review.googlesource.com/256510 Commit-Ready: Doug Anderson <dianders@google.com> Tested-by: Doug Anderson <dianders@google.com> Reviewed-by: Brian Norris <briannorris@google.com> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts
index 858e80397841..3ae059f34cb4 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin-r1.dts
@@ -58,6 +58,21 @@
"google,gru", "rockchip,rk3399";
};
+&ap_i2c_tp {
+ trackpad@4a {
+ compatible = "atmel,maxtouch";
+ reg = <0x4a>;
+ pinctrl-names = "default";
+ 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>;
+ };
+};
+
/* PINCTRL: always below everything else */
&pinctrl {