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