]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: tegra: add touchpad to Venice2 DT
authorStephen Warren <swarren@nvidia.com>
Tue, 2 Sep 2014 15:57:09 +0000 (09:57 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 3 Sep 2014 15:10:58 +0000 (09:10 -0600)
Venice2 contains an Atmel MXT touchpad. Add an I2C node for it to DT.
The Linux driver doesn't quite work on this platform yet, but adding
the DT node causes no issues, and will allow the device to work once
the driver is fixed.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/boot/dts/tegra124-venice2.dts

index 70ad91d1a20be3760bd33c4a864ae835e87b644f..dcbe5858faf14e0c53e90d7424e4307dc9d4b727 100644 (file)
        i2c@0,7000c400 {
                status = "okay";
                clock-frequency = <100000>;
+
+               trackpad@4b {
+                       compatible = "atmel,maxtouch";
+                       reg = <0x4b>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
+                       linux,gpio-keymap = <0 0 0 BTN_LEFT>;
+               };
        };
 
        i2c@0,7000c500 {