1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6/dts-v1/;
7#include "imx7d-colibri.dtsi"
8#include "imx7-colibri-iris-v2.dtsi"
9
10/ {
11	model = "Toradex Colibri iMX7D on Iris V2 Carrier Board";
12	compatible = "toradex,colibri-imx7d-iris-v2",
13		     "toradex,colibri-imx7d",
14		     "fsl,imx7d";
15};
16
17&ad7879_ts {
18	status = "okay";
19};
20
21&atmel_mxt_ts {
22	status = "okay";
23};
24
25&backlight {
26	status = "okay";
27};
28
29&gpio2 {
30	/*
31	 * This switches the LVDS transceiver to VESA color mapping mode.
32	 */
33	lvds-color-map-hog {
34		gpio-hog;
35		gpios = <13 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */
36		line-name = "LVDS_COLOR_MAP";
37		output-low;
38	};
39};
40
41&gpio7 {
42	/*
43	 * This switches the LVDS transceiver to the 24-bit RGB mode.
44	 */
45	lvds-rgb-mode-hog {
46		gpio-hog;
47		gpios = <2 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */
48		line-name = "LVDS_RGB_MODE";
49		output-low;
50	};
51
52	/*
53	 * This switches the LVDS transceiver to the single-channel
54	 * output mode.
55	 */
56	lvds-ch-mode-hog {
57		gpio-hog;
58		gpios = <3 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */
59		line-name = "LVDS_CH_MODE";
60		output-high;
61	};
62
63	/* This turns the LVDS transceiver on */
64	lvds-power-on-hog {
65		gpio-hog;
66		gpios = <11 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
67		line-name = "LVDS_POWER_ON";
68		output-high;
69	};
70};
71
72&lcdif {
73	status = "okay";
74};
75
76&panel_dpi {
77	status = "okay";
78};
79
80/* Colibri USBH */
81&usbotg2 {
82	disable-over-current;
83	status = "okay";
84};
85