summaryrefslogtreecommitdiff
path: root/overlays/colibri-imx8x_parallel-rgb-lvds_overlay.dts
blob: 40a20c2db2a5702710898f50638c3481c4d4c71d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
 * Copyright 2021 Toradex
 */

// Enable the parallel RGB interface on Colibri iMX8X and the LVDS tranceiver on Iris v2.0

#include <dt-bindings/gpio/gpio.h>

/dts-v1/;
/plugin/;
/ {
	compatible = "toradex,colibri-imx8x";
};

&adma_pwm {
	status = "okay";
};

&adma_pwm_lpcg {
	status = "okay";
};

&backlight {
	status = "okay";
};

&display_lcdif {
	status = "okay";

	#address-cells = <1>;
	#size-cells = <0>;

	port@1 {
		reg = <1>;

		display_lcdfif_out: endpoint {
			remote-endpoint = <&lcd_panel_in>;
		};
	};
};

/* Need to be disabled due to overlapped pins SODIMM_55, SODIMM_63 */
&flexcan2 {
	status = "disabled";
};

&lsio_gpio1 {
	/*
	 * This switches the LVDS transceiver to the single-channel
	 * output mode.
	 */
	 LVDS_MODE {
		gpio-hog;
		gpios = <18 GPIO_ACTIVE_HIGH>;
		output-high;
		line-name = "LVDS_MODE";
	};
};

&lsio_gpio3 {
	/* This turns the LVDS transceiver on */
	 LVDS_PWRDWN {
		gpio-hog;
		gpios = <18 GPIO_ACTIVE_HIGH>;
		output-high;
		line-name = "LVDS_PWRDWN";
	};
};

&panel_dpi {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_lvds_converter>;
	status = "okay";

	port {
		lcd_panel_in: endpoint {
			remote-endpoint = <&display_lcdfif_out>;
		};
	};
};