1/*
2 * Copyright 2014 Toradex AG
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10#include "vf500.dtsi"
11#include "vf-colibri.dtsi"
12
13/ {
14	model = "Toradex Colibri VF50 COM";
15	compatible = "toradex,vf610-colibri_vf50", "fsl,vf500";
16
17	memory {
18		reg = <0x80000000 0x8000000>;
19	};
20
21	touchscreen: vf50-touchscreen {
22		compatible = "toradex,vf50-touchscreen";
23		io-channels = <&adc1 0>,<&adc0 0>,
24				<&adc0 1>,<&adc1 2>;
25		xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
26		xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
27		yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
28		ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
29		interrupt-parent = <&gpio0>;
30		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
31		pinctrl-names = "idle","default","gpios";
32		pinctrl-0 = <&pinctrl_touchctrl_idle>;
33		pinctrl-1 = <&pinctrl_touchctrl_default>;
34		pinctrl-2 = <&pinctrl_touchctrl_gpios>;
35		vf50-ts-min-pressure = <200>;
36		status = "disabled";
37	};
38};
39
40&iomuxc {
41	vf610-colibri {
42		pinctrl_touchctrl_idle: touchctrl_idle {
43			fsl,pins = <
44				VF610_PAD_PTA18__GPIO_8		0x006d
45				VF610_PAD_PTA19__GPIO_9		0x006c
46				>;
47		};
48
49		pinctrl_touchctrl_default: touchctrl_default {
50			fsl,pins = <
51				VF610_PAD_PTA18__ADC0_SE0	0x0040
52				VF610_PAD_PTA19__ADC0_SE1	0x0040
53				VF610_PAD_PTA16__ADC1_SE0	0x0040
54				VF610_PAD_PTB2__ADC1_SE2	0x0040
55				>;
56		};
57
58		pinctrl_touchctrl_gpios: touchctrl_gpios {
59			fsl,pins = <
60				VF610_PAD_PTA23__GPIO_13	0x22e9
61				VF610_PAD_PTB23__GPIO_93	0x22e9
62				VF610_PAD_PTA22__GPIO_12	0x22e9
63				VF610_PAD_PTA11__GPIO_4		0x22e9
64				>;
65		};
66	};
67};
68