xref: /linux/arch/arm/boot/dts/nxp/vf/vf500-colibri.dtsi (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Copyright 2014-2020 Toradex
4 */
5
6#include "vf500.dtsi"
7#include "vf-colibri.dtsi"
8
9/ {
10	model = "Toradex Colibri VF50 COM";
11	compatible = "toradex,vf500-colibri_vf50", "fsl,vf500";
12
13	memory@80000000 {
14		device_type = "memory";
15		reg = <0x80000000 0x8000000>;
16	};
17
18	touchscreen: vf50-touchscreen {
19		compatible = "toradex,vf50-touchscreen";
20		io-channels = <&adc1 0>,<&adc0 0>,
21				<&adc0 1>,<&adc1 2>;
22		xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23		xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
24		yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
25		ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
26		interrupt-parent = <&gpio0>;
27		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
28		pinctrl-names = "idle","default","gpios";
29		pinctrl-0 = <&pinctrl_touchctrl_idle>;
30		pinctrl-1 = <&pinctrl_touchctrl_default>;
31		pinctrl-2 = <&pinctrl_touchctrl_gpios>;
32		vf50-ts-min-pressure = <200>;
33		status = "disabled";
34	};
35};
36
37&nfc {
38	assigned-clocks = <&clks VF610_CLK_NFC>;
39	assigned-clock-rates = <33000000>;
40};
41
42&iomuxc {
43	vf610-colibri {
44		pinctrl_touchctrl_idle: touchctrl_idle {
45			fsl,pins = <
46				VF610_PAD_PTA18__GPIO_8		0x006d
47				VF610_PAD_PTA19__GPIO_9		0x006c
48				>;
49		};
50
51		pinctrl_touchctrl_default: touchctrl_default {
52			fsl,pins = <
53				VF610_PAD_PTA18__ADC0_SE0	0x0040
54				VF610_PAD_PTA19__ADC0_SE1	0x0040
55				VF610_PAD_PTA16__ADC1_SE0	0x0040
56				VF610_PAD_PTB2__ADC1_SE2	0x0040
57				>;
58		};
59
60		pinctrl_touchctrl_gpios: touchctrl_gpios {
61			fsl,pins = <
62				VF610_PAD_PTA23__GPIO_13	0x22e9
63				VF610_PAD_PTB23__GPIO_93	0x22e9
64				VF610_PAD_PTA22__GPIO_12	0x22e9
65				VF610_PAD_PTA11__GPIO_4		0x22e9
66				>;
67		};
68	};
69};
70