summaryrefslogtreecommitdiff
path: root/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts
blob: 16a796d551743b78319a66f86431dcc1c1a75449 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
 * Copyright 2023 Toradex
 */

// Verdin AM62 Mezzanine with LG LP156WF1 dual-channel LVDS Panel

/dts-v1/;
/plugin/;

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

#include "verdin-am62_mezzanine_backlight.dtsi"

/ {
	compatible = "toradex,verdin-am62";
};

&{/} {
	panel-lvds-mez {
		compatible = "panel-lvds";
		#address-cells = <1>;
		#size-cells = <0>;
		backlight = <&backlight_mezzanine>;
		data-mapping = "jeida-24";
		height-mm = <194>;
		width-mm = <345>;

		panel-timing {
			clock-frequency = <138500000>;
			hactive = <1920>;
			hback-porch = <40>;
			hfront-porch = <24>;
			hsync-len = <16>;
			pixelclk-active = <0>;
			vactive = <1080>;
			vback-porch = <23>;
			vfront-porch = <3>;
			vsync-len = <5>;
		};

		/*
		* Note that the OLDI TX 0 transmits the odd set of pixels
		* while the OLDI TX 1 transmits the even set. This is a
		* fixed configuration in the IP integration and is not
		* changeable. The properties, "dual-lvds-odd-pixels" and
		* "dual-lvds-even-pixels" have been used to merely
		* identify if a Dual Link configuration is required.
		* Swapping them will not make any difference.
		*/
		port@0 {
			reg = <0>;
			dual-lvds-odd-pixels;

			panel_lvds_in0: endpoint {
				remote-endpoint = <&oldi_out0>;
			};
		};

		port@1 {
			reg = <1>;
			dual-lvds-even-pixels;

			panel_lvds_in1: endpoint {
				remote-endpoint = <&oldi_out1>;
			};
		};
	};
};

&dss {
	status = "okay";
};

/*
 * If the bridge is missing setting up dss will fail. As this bridge
 * isn't available on all SKU disable it here.
 * Thus having an overlay for the DSI output enabled concurrently
 * with this one will not work.
 */
&dsi_bridge {
	status = "disabled";
};

&dss_ports {
	#address-cells = <1>;
	#size-cells = <0>;

	/* VP1: LVDS Output (OLDI TX 0) */
	port@0 {
		reg = <0>;

		oldi_out0: endpoint {
			remote-endpoint = <&panel_lvds_in0>;
		};
	};

	/* VP1: LVDS Output (OLDI TX 1) */
	port@2 {
		reg = <2>;

		oldi_out1: endpoint {
			remote-endpoint = <&panel_lvds_in1>;
		};
	};
};