1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2018-2022 Toradex
4 */
5
6/dts-v1/;
7
8#include "imx6ull-colibri-nonwifi.dtsi"
9#include "imx6ull-colibri-iris-v2.dtsi"
10
11/ {
12	model = "Toradex Colibri iMX6ULL 256M/512B on Colibri Iris V2";
13	compatible = "toradex,colibri-imx6ull-iris-v2",
14		     "toradex,colibri-imx6ull",
15		     "fsl,imx6ull";
16};
17
18&ad7879_ts {
19	status = "okay";
20};
21
22&atmel_mxt_ts {
23	status = "okay";
24};
25
26&backlight {
27	status = "okay";
28};
29
30&gpio1 {
31	/* This turns the LVDS transceiver on */
32	lvds-power-on-hog {
33		gpio-hog;
34		gpios = <14 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
35		line-name = "LVDS_POWER_ON";
36		output-high;
37	};
38};
39
40&gpio2 {
41	/*
42	 * This switches the LVDS transceiver to the single-channel
43	 * output mode.
44	 */
45	lvds-ch-mode-hog {
46		gpio-hog;
47		gpios = <0 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */
48		line-name = "LVDS_CH_MODE";
49		output-high;
50	};
51
52	/*
53	 * This switches the LVDS transceiver to the 24-bit RGB mode.
54	 */
55	lvds-rgb-mode-hog {
56		gpio-hog;
57		gpios = <1 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */
58		line-name = "LVDS_RGB_MODE";
59		output-low;
60	};
61};
62
63&gpio5 {
64	/*
65	 * This switches the LVDS transceiver to VESA color mapping mode.
66	 */
67	lvds-color-map-hog {
68		gpio-hog;
69		gpios = <3 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */
70		line-name = "LVDS_COLOR_MAP";
71		output-low;
72	};
73};
74
75&i2c1 {
76	status = "okay";
77};
78
79&i2c2 {
80	status = "okay";
81};
82
83&lcdif {
84	status = "okay";
85};
86
87&panel_dpi {
88	status = "okay";
89};
90
91&pwm4 {
92	status = "okay";
93};
94
95/* PWM <B> */
96&pwm5 {
97	/* Pin already used by atmel_mxt_ts touchscreen */
98	status = "disabled";
99};
100
101/* PWM <C> */
102&pwm6 {
103	/* Pin already used by atmel_mxt_ts touchscreen */
104	status = "disabled";
105};
106