xref: /linux/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts (revision 30bbcb44707a97fcb62246bebc8b413b5ab293f8)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include "tegra20-asus-transformer-common.dtsi"
5
6/ {
7	model = "ASUS Eee Pad Transformer TF101";
8	compatible = "asus,tf101", "nvidia,tegra20";
9
10	i2c@7000c000 {
11		magnetometer@e {
12			mount-matrix = "-1",  "0",  "0",
13					"0",  "1",  "0",
14					"0",  "0", "-1";
15		};
16
17		/* Atmel MXT1386 Touchscreen */
18		touchscreen@5b {
19			compatible = "atmel,maxtouch";
20			reg = <0x5b>;
21
22			interrupt-parent = <&gpio>;
23			interrupts = <TEGRA_GPIO(V, 6) IRQ_TYPE_LEVEL_LOW>;
24
25			reset-gpios = <&gpio TEGRA_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
26
27			vdda-supply = <&vdd_3v3_sys>;
28			vdd-supply  = <&vdd_3v3_sys>;
29
30			atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;
31		};
32
33		gyroscope@68 {
34			mount-matrix =	 "0",  "1",  "0",
35					"-1",  "0",  "0",
36					 "0",  "0",  "1";
37
38			i2c-gate {
39				accelerometer@f {
40					mount-matrix =	"-1",  "0",  "0",
41							 "0", "-1",  "0",
42							 "0",  "0", "-1";
43				};
44			};
45		};
46	};
47
48	extcon-keys {
49		compatible = "gpio-keys";
50
51		switch-dock-hall-sensor {
52			label = "Lid";
53			gpios = <&gpio TEGRA_GPIO(S, 4) GPIO_ACTIVE_LOW>;
54			linux,input-type = <EV_SW>;
55			linux,code = <SW_LID>;
56			debounce-interval = <500>;
57			wakeup-event-action = <EV_ACT_ASSERTED>;
58			wakeup-source;
59		};
60	};
61};
62