summaryrefslogtreecommitdiff
path: root/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts
blob: cead19e414d401a0be68887c2bdd79edfc443451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Atmel touchscreen for the 7inch capacitive display orderable at Toradex. Use this devicetree on the Aster board.

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <imx6dl-pinfunc.h>

/ {
	compatible = "toradex,colibri_imx6dl";
};

&i2c3 {
	#address-cells = <1>;
	#size-cells = <0>;

	atmel_mxt_ts: atmel_mxt_ts@4a {
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_atmel_mxt_ts>;
		compatible = "atmel,maxtouch";
		reg = <0x4a>;
		interrupt-parent = <&gpio2>;
		interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
		reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
		status = "okay";
	};
};

&iomuxc {
	pinctrl_atmel_mxt_ts: atmelmxttsgrp {
		fsl,pins = <
			MX6QDL_PAD_SD2_DAT1__GPIO1_IO14	0x1b0b1
			MX6QDL_PAD_EIM_CS1__GPIO2_IO24	0x1b0b1
		>;
	};
};

&weim {
	status = "disabled";
};