xref: /linux/arch/arm/boot/dts/nxp/imx/imx6qdl-tx6-lvds.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright 2017 Lothar Waßmann <LW@KARO-electronics.de>
3724ba675SRob Herring *
4724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
5724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
6724ba675SRob Herring * licensing only applies to this file, and not this project as a
7724ba675SRob Herring * whole.
8724ba675SRob Herring *
9724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
10724ba675SRob Herring *     modify it under the terms of the GNU General Public License
11724ba675SRob Herring *     version 2 as published by the Free Software Foundation.
12724ba675SRob Herring *
13724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
14724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16724ba675SRob Herring *     GNU General Public License for more details.
17724ba675SRob Herring *
18724ba675SRob Herring * Or, alternatively,
19724ba675SRob Herring *
20724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
21724ba675SRob Herring *     obtaining a copy of this software and associated documentation
22724ba675SRob Herring *     files (the "Software"), to deal in the Software without
23724ba675SRob Herring *     restriction, including without limitation the rights to use,
24724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
25724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
26724ba675SRob Herring *     Software is furnished to do so, subject to the following
27724ba675SRob Herring *     conditions:
28724ba675SRob Herring *
29724ba675SRob Herring *     The above copyright notice and this permission notice shall be
30724ba675SRob Herring *     included in all copies or substantial portions of the Software.
31724ba675SRob Herring *
32724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
40724ba675SRob Herring */
41724ba675SRob Herring
42724ba675SRob Herring/ {
43724ba675SRob Herring	aliases {
44724ba675SRob Herring		display = &lvds0;
45724ba675SRob Herring		lvds0 = &lvds0;
46724ba675SRob Herring		lvds1 = &lvds1;
47724ba675SRob Herring	};
48724ba675SRob Herring
49724ba675SRob Herring	backlight0: backlight0 {
50724ba675SRob Herring		compatible = "pwm-backlight";
51724ba675SRob Herring		pwms = <&pwm2 0 500000 0>;
52724ba675SRob Herring		power-supply = <&reg_lcd0_pwr>;
53724ba675SRob Herring		brightness-levels = < 0  1  2  3  4  5  6  7  8  9
54724ba675SRob Herring				     10 11 12 13 14 15 16 17 18 19
55724ba675SRob Herring				     20 21 22 23 24 25 26 27 28 29
56724ba675SRob Herring				     30 31 32 33 34 35 36 37 38 39
57724ba675SRob Herring				     40 41 42 43 44 45 46 47 48 49
58724ba675SRob Herring				     50 51 52 53 54 55 56 57 58 59
59724ba675SRob Herring				     60 61 62 63 64 65 66 67 68 69
60724ba675SRob Herring				     70 71 72 73 74 75 76 77 78 79
61724ba675SRob Herring				     80 81 82 83 84 85 86 87 88 89
62724ba675SRob Herring				     90 91 92 93 94 95 96 97 98 99
63724ba675SRob Herring				    100>;
64724ba675SRob Herring		default-brightness-level = <50>;
65724ba675SRob Herring	};
66724ba675SRob Herring
67724ba675SRob Herring	backlight1: backlight1 {
68724ba675SRob Herring		compatible = "pwm-backlight";
69724ba675SRob Herring		pwms = <&pwm1 0 500000 0>;
70724ba675SRob Herring		power-supply = <&reg_lcd1_pwr>;
71724ba675SRob Herring		brightness-levels = < 0  1  2  3  4  5  6  7  8  9
72724ba675SRob Herring				     10 11 12 13 14 15 16 17 18 19
73724ba675SRob Herring				     20 21 22 23 24 25 26 27 28 29
74724ba675SRob Herring				     30 31 32 33 34 35 36 37 38 39
75724ba675SRob Herring				     40 41 42 43 44 45 46 47 48 49
76724ba675SRob Herring				     50 51 52 53 54 55 56 57 58 59
77724ba675SRob Herring				     60 61 62 63 64 65 66 67 68 69
78724ba675SRob Herring				     70 71 72 73 74 75 76 77 78 79
79724ba675SRob Herring				     80 81 82 83 84 85 86 87 88 89
80724ba675SRob Herring				     90 91 92 93 94 95 96 97 98 99
81724ba675SRob Herring				    100>;
82724ba675SRob Herring		default-brightness-level = <50>;
83724ba675SRob Herring	};
84724ba675SRob Herring
85724ba675SRob Herring	lvds0_panel: lvds0-panel {
86724ba675SRob Herring		compatible = "nlt,nl12880bc20-spwg-24";
87724ba675SRob Herring		backlight = <&backlight0>;
88724ba675SRob Herring		power-supply = <&reg_3v3>;
89724ba675SRob Herring
90724ba675SRob Herring		port {
91724ba675SRob Herring			panel_in_lvds0: endpoint {
92724ba675SRob Herring				remote-endpoint = <&lvds0_out>;
93724ba675SRob Herring			};
94724ba675SRob Herring		};
95724ba675SRob Herring	};
96724ba675SRob Herring
97724ba675SRob Herring	lvds1_panel: lvds1-panel {
98724ba675SRob Herring		compatible = "nlt,nl12880bc20-spwg-24";
99724ba675SRob Herring		backlight = <&backlight1>;
100724ba675SRob Herring		power-supply = <&reg_3v3>;
101724ba675SRob Herring
102724ba675SRob Herring		port {
103724ba675SRob Herring			panel_in_lvds1: endpoint {
104724ba675SRob Herring				remote-endpoint = <&lvds1_out>;
105724ba675SRob Herring			};
106724ba675SRob Herring		};
107724ba675SRob Herring	};
108724ba675SRob Herring};
109724ba675SRob Herring
110724ba675SRob Herring&kpp {
111724ba675SRob Herring	status = "disabled"; /* pad conflict with backlight1 PWM */
112724ba675SRob Herring};
113724ba675SRob Herring
114724ba675SRob Herring&ldb {
115724ba675SRob Herring	status = "okay";
116724ba675SRob Herring
117724ba675SRob Herring	lvds0: lvds-channel@0 {
118724ba675SRob Herring		fsl,data-width = <18>;
119724ba675SRob Herring		status = "okay";
120724ba675SRob Herring
121724ba675SRob Herring		port@4 {
122724ba675SRob Herring			reg = <4>;
123724ba675SRob Herring
124724ba675SRob Herring			lvds0_out: endpoint {
125724ba675SRob Herring				remote-endpoint = <&panel_in_lvds0>;
126724ba675SRob Herring			};
127724ba675SRob Herring		};
128724ba675SRob Herring
129724ba675SRob Herring		display-timings {
130*24583888SKrzysztof Kozlowski			timing-hsd100pxn1 {
131724ba675SRob Herring				clock-frequency = <65000000>;
132724ba675SRob Herring				hactive = <1024>;
133724ba675SRob Herring				vactive = <768>;
134724ba675SRob Herring				hback-porch = <220>;
135724ba675SRob Herring				hfront-porch = <40>;
136724ba675SRob Herring				vback-porch = <21>;
137724ba675SRob Herring				vfront-porch = <7>;
138724ba675SRob Herring				hsync-len = <60>;
139724ba675SRob Herring				vsync-len = <10>;
140724ba675SRob Herring				de-active = <1>;
141724ba675SRob Herring				pixelclk-active = <1>;
142724ba675SRob Herring			};
143724ba675SRob Herring
144*24583888SKrzysztof Kozlowski			timing-vga {
145724ba675SRob Herring				clock-frequency = <25200000>;
146724ba675SRob Herring				hactive = <640>;
147724ba675SRob Herring				vactive = <480>;
148724ba675SRob Herring				hback-porch = <48>;
149724ba675SRob Herring				hfront-porch = <16>;
150724ba675SRob Herring				vback-porch = <31>;
151724ba675SRob Herring				vfront-porch = <12>;
152724ba675SRob Herring				hsync-len = <96>;
153724ba675SRob Herring				vsync-len = <2>;
154724ba675SRob Herring				hsync-active = <0>;
155724ba675SRob Herring				vsync-active = <0>;
156724ba675SRob Herring				de-active = <1>;
157724ba675SRob Herring				pixelclk-active = <0>;
158724ba675SRob Herring			};
159724ba675SRob Herring
160*24583888SKrzysztof Kozlowski			timing-nl12880bc20 {
161724ba675SRob Herring				clock-frequency = <71000000>;
162724ba675SRob Herring				hactive = <1280>;
163724ba675SRob Herring				vactive = <800>;
164724ba675SRob Herring				hback-porch = <50>;
165724ba675SRob Herring				hfront-porch = <50>;
166724ba675SRob Herring				vback-porch = <5>;
167724ba675SRob Herring				vfront-porch = <5>;
168724ba675SRob Herring				hsync-len = <60>;
169724ba675SRob Herring				vsync-len = <13>;
170724ba675SRob Herring				hsync-active = <0>;
171724ba675SRob Herring				vsync-active = <0>;
172724ba675SRob Herring				de-active = <1>;
173724ba675SRob Herring				pixelclk-active = <1>;
174724ba675SRob Herring			};
175724ba675SRob Herring
176*24583888SKrzysztof Kozlowski			timing-et0700 {
177724ba675SRob Herring				clock-frequency = <33264000>;
178724ba675SRob Herring				hactive = <800>;
179724ba675SRob Herring				vactive = <480>;
180724ba675SRob Herring				hback-porch = <88>;
181724ba675SRob Herring				hsync-len = <128>;
182724ba675SRob Herring				hfront-porch = <40>;
183724ba675SRob Herring				vback-porch = <33>;
184724ba675SRob Herring				vsync-len = <2>;
185724ba675SRob Herring				vfront-porch = <10>;
186724ba675SRob Herring				hsync-active = <0>;
187724ba675SRob Herring				vsync-active = <0>;
188724ba675SRob Herring				de-active = <1>;
189724ba675SRob Herring				pixelclk-active = <0>;
190724ba675SRob Herring			};
191724ba675SRob Herring
192*24583888SKrzysztof Kozlowski			timing-etv570 {
193724ba675SRob Herring				clock-frequency = <25200000>;
194724ba675SRob Herring				hactive = <640>;
195724ba675SRob Herring				vactive = <480>;
196724ba675SRob Herring				hback-porch = <114>;
197724ba675SRob Herring				hsync-len = <30>;
198724ba675SRob Herring				hfront-porch = <16>;
199724ba675SRob Herring				vback-porch = <32>;
200724ba675SRob Herring				vsync-len = <3>;
201724ba675SRob Herring				vfront-porch = <10>;
202724ba675SRob Herring				hsync-active = <0>;
203724ba675SRob Herring				vsync-active = <0>;
204724ba675SRob Herring				de-active = <1>;
205724ba675SRob Herring				pixelclk-active = <0>;
206724ba675SRob Herring			};
207724ba675SRob Herring		};
208724ba675SRob Herring	};
209724ba675SRob Herring
210724ba675SRob Herring	lvds1: lvds-channel@1 {
211724ba675SRob Herring		fsl,data-width = <18>;
212724ba675SRob Herring		status = "okay";
213724ba675SRob Herring
214724ba675SRob Herring		port@4 {
215724ba675SRob Herring			reg = <4>;
216724ba675SRob Herring
217724ba675SRob Herring			lvds1_out: endpoint {
218724ba675SRob Herring				remote-endpoint = <&panel_in_lvds1>;
219724ba675SRob Herring			};
220724ba675SRob Herring		};
221724ba675SRob Herring
222724ba675SRob Herring		display-timings {
223*24583888SKrzysztof Kozlowski			timing-hsd100pxn1 {
224724ba675SRob Herring				clock-frequency = <65000000>;
225724ba675SRob Herring				hactive = <1024>;
226724ba675SRob Herring				vactive = <768>;
227724ba675SRob Herring				hback-porch = <220>;
228724ba675SRob Herring				hfront-porch = <40>;
229724ba675SRob Herring				vback-porch = <21>;
230724ba675SRob Herring				vfront-porch = <7>;
231724ba675SRob Herring				hsync-len = <60>;
232724ba675SRob Herring				vsync-len = <10>;
233724ba675SRob Herring				de-active = <1>;
234724ba675SRob Herring				pixelclk-active = <1>;
235724ba675SRob Herring			};
236724ba675SRob Herring
237*24583888SKrzysztof Kozlowski			timing-vga {
238724ba675SRob Herring				clock-frequency = <25200000>;
239724ba675SRob Herring				hactive = <640>;
240724ba675SRob Herring				vactive = <480>;
241724ba675SRob Herring				hback-porch = <48>;
242724ba675SRob Herring				hfront-porch = <16>;
243724ba675SRob Herring				vback-porch = <31>;
244724ba675SRob Herring				vfront-porch = <12>;
245724ba675SRob Herring				hsync-len = <96>;
246724ba675SRob Herring				vsync-len = <2>;
247724ba675SRob Herring				hsync-active = <0>;
248724ba675SRob Herring				vsync-active = <0>;
249724ba675SRob Herring				de-active = <1>;
250724ba675SRob Herring				pixelclk-active = <0>;
251724ba675SRob Herring			};
252724ba675SRob Herring
253*24583888SKrzysztof Kozlowski			timing-nl12880bc20 {
254724ba675SRob Herring				clock-frequency = <71000000>;
255724ba675SRob Herring				hactive = <1280>;
256724ba675SRob Herring				vactive = <800>;
257724ba675SRob Herring				hback-porch = <50>;
258724ba675SRob Herring				hfront-porch = <50>;
259724ba675SRob Herring				vback-porch = <5>;
260724ba675SRob Herring				vfront-porch = <5>;
261724ba675SRob Herring				hsync-len = <60>;
262724ba675SRob Herring				vsync-len = <13>;
263724ba675SRob Herring				hsync-active = <0>;
264724ba675SRob Herring				vsync-active = <0>;
265724ba675SRob Herring				de-active = <1>;
266724ba675SRob Herring				pixelclk-active = <1>;
267724ba675SRob Herring			};
268724ba675SRob Herring		};
269724ba675SRob Herring	};
270724ba675SRob Herring};
271724ba675SRob Herring
272724ba675SRob Herring&pwm1 {
273724ba675SRob Herring	status = "okay";
274724ba675SRob Herring};
275724ba675SRob Herring
276724ba675SRob Herring&reg_lcd0_pwr {
277724ba675SRob Herring	status = "okay";
278724ba675SRob Herring};
279724ba675SRob Herring
280724ba675SRob Herring&reg_lcd1_pwr {
281724ba675SRob Herring	status = "okay";
282724ba675SRob Herring};
283