diff mbox

[1/2] ARM: tegra: add touchpad to Venice2 DT

Message ID 1409673430-7039-1-git-send-email-swarren@wwwdotorg.org
State Accepted, archived
Headers show

Commit Message

Stephen Warren Sept. 2, 2014, 3:57 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

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 | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Stephen Warren Sept. 3, 2014, 3:13 p.m. UTC | #1
On 09/02/2014 09:57 AM, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> 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.

I've applied patch 1 to Tegra's for-3.18/dt and patch to to Tegra's 
for-3.18/defconfig branch.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts
index 70ad91d1a20b..dcbe5858faf1 100644
--- a/arch/arm/boot/dts/tegra124-venice2.dts
+++ b/arch/arm/boot/dts/tegra124-venice2.dts
@@ -606,6 +606,14 @@ 
 	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 {