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