xref: /linux/arch/arm/boot/dts/nxp/imx/imx6qdl-tx6-lvds.dtsi (revision 245838888dbf3ebaff762e3424a18e35b681afc2)
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				u-boot,panel-name = "hannstar,hsd100pxn1";
132724ba675SRob Herring				clock-frequency = <65000000>;
133724ba675SRob Herring				hactive = <1024>;
134724ba675SRob Herring				vactive = <768>;
135724ba675SRob Herring				hback-porch = <220>;
136724ba675SRob Herring				hfront-porch = <40>;
137724ba675SRob Herring				vback-porch = <21>;
138724ba675SRob Herring				vfront-porch = <7>;
139724ba675SRob Herring				hsync-len = <60>;
140724ba675SRob Herring				vsync-len = <10>;
141724ba675SRob Herring				de-active = <1>;
142724ba675SRob Herring				pixelclk-active = <1>;
143724ba675SRob Herring			};
144724ba675SRob Herring
145*24583888SKrzysztof Kozlowski			timing-vga {
146724ba675SRob Herring				clock-frequency = <25200000>;
147724ba675SRob Herring				hactive = <640>;
148724ba675SRob Herring				vactive = <480>;
149724ba675SRob Herring				hback-porch = <48>;
150724ba675SRob Herring				hfront-porch = <16>;
151724ba675SRob Herring				vback-porch = <31>;
152724ba675SRob Herring				vfront-porch = <12>;
153724ba675SRob Herring				hsync-len = <96>;
154724ba675SRob Herring				vsync-len = <2>;
155724ba675SRob Herring				hsync-active = <0>;
156724ba675SRob Herring				vsync-active = <0>;
157724ba675SRob Herring				de-active = <1>;
158724ba675SRob Herring				pixelclk-active = <0>;
159724ba675SRob Herring			};
160724ba675SRob Herring
161*24583888SKrzysztof Kozlowski			timing-nl12880bc20 {
162724ba675SRob Herring				u-boot,panel-name = "nlt,nl12880bc20-spwg-24";
163724ba675SRob Herring				clock-frequency = <71000000>;
164724ba675SRob Herring				hactive = <1280>;
165724ba675SRob Herring				vactive = <800>;
166724ba675SRob Herring				hback-porch = <50>;
167724ba675SRob Herring				hfront-porch = <50>;
168724ba675SRob Herring				vback-porch = <5>;
169724ba675SRob Herring				vfront-porch = <5>;
170724ba675SRob Herring				hsync-len = <60>;
171724ba675SRob Herring				vsync-len = <13>;
172724ba675SRob Herring				hsync-active = <0>;
173724ba675SRob Herring				vsync-active = <0>;
174724ba675SRob Herring				de-active = <1>;
175724ba675SRob Herring				pixelclk-active = <1>;
176724ba675SRob Herring			};
177724ba675SRob Herring
178*24583888SKrzysztof Kozlowski			timing-et0700 {
179724ba675SRob Herring				u-boot,panel-name = "edt,etm0700g0dh6";
180724ba675SRob Herring				clock-frequency = <33264000>;
181724ba675SRob Herring				hactive = <800>;
182724ba675SRob Herring				vactive = <480>;
183724ba675SRob Herring				hback-porch = <88>;
184724ba675SRob Herring				hsync-len = <128>;
185724ba675SRob Herring				hfront-porch = <40>;
186724ba675SRob Herring				vback-porch = <33>;
187724ba675SRob Herring				vsync-len = <2>;
188724ba675SRob Herring				vfront-porch = <10>;
189724ba675SRob Herring				hsync-active = <0>;
190724ba675SRob Herring				vsync-active = <0>;
191724ba675SRob Herring				de-active = <1>;
192724ba675SRob Herring				pixelclk-active = <0>;
193724ba675SRob Herring			};
194724ba675SRob Herring
195*24583888SKrzysztof Kozlowski			timing-etv570 {
196724ba675SRob Herring				u-boot,panel-name = "edt,et057090dhu";
197724ba675SRob Herring				clock-frequency = <25200000>;
198724ba675SRob Herring				hactive = <640>;
199724ba675SRob Herring				vactive = <480>;
200724ba675SRob Herring				hback-porch = <114>;
201724ba675SRob Herring				hsync-len = <30>;
202724ba675SRob Herring				hfront-porch = <16>;
203724ba675SRob Herring				vback-porch = <32>;
204724ba675SRob Herring				vsync-len = <3>;
205724ba675SRob Herring				vfront-porch = <10>;
206724ba675SRob Herring				hsync-active = <0>;
207724ba675SRob Herring				vsync-active = <0>;
208724ba675SRob Herring				de-active = <1>;
209724ba675SRob Herring				pixelclk-active = <0>;
210724ba675SRob Herring			};
211724ba675SRob Herring		};
212724ba675SRob Herring	};
213724ba675SRob Herring
214724ba675SRob Herring	lvds1: lvds-channel@1 {
215724ba675SRob Herring		fsl,data-width = <18>;
216724ba675SRob Herring		status = "okay";
217724ba675SRob Herring
218724ba675SRob Herring		port@4 {
219724ba675SRob Herring			reg = <4>;
220724ba675SRob Herring
221724ba675SRob Herring			lvds1_out: endpoint {
222724ba675SRob Herring				remote-endpoint = <&panel_in_lvds1>;
223724ba675SRob Herring			};
224724ba675SRob Herring		};
225724ba675SRob Herring
226724ba675SRob Herring		display-timings {
227*24583888SKrzysztof Kozlowski			timing-hsd100pxn1 {
228724ba675SRob Herring				clock-frequency = <65000000>;
229724ba675SRob Herring				hactive = <1024>;
230724ba675SRob Herring				vactive = <768>;
231724ba675SRob Herring				hback-porch = <220>;
232724ba675SRob Herring				hfront-porch = <40>;
233724ba675SRob Herring				vback-porch = <21>;
234724ba675SRob Herring				vfront-porch = <7>;
235724ba675SRob Herring				hsync-len = <60>;
236724ba675SRob Herring				vsync-len = <10>;
237724ba675SRob Herring				de-active = <1>;
238724ba675SRob Herring				pixelclk-active = <1>;
239724ba675SRob Herring			};
240724ba675SRob Herring
241*24583888SKrzysztof Kozlowski			timing-vga {
242724ba675SRob Herring				clock-frequency = <25200000>;
243724ba675SRob Herring				hactive = <640>;
244724ba675SRob Herring				vactive = <480>;
245724ba675SRob Herring				hback-porch = <48>;
246724ba675SRob Herring				hfront-porch = <16>;
247724ba675SRob Herring				vback-porch = <31>;
248724ba675SRob Herring				vfront-porch = <12>;
249724ba675SRob Herring				hsync-len = <96>;
250724ba675SRob Herring				vsync-len = <2>;
251724ba675SRob Herring				hsync-active = <0>;
252724ba675SRob Herring				vsync-active = <0>;
253724ba675SRob Herring				de-active = <1>;
254724ba675SRob Herring				pixelclk-active = <0>;
255724ba675SRob Herring			};
256724ba675SRob Herring
257*24583888SKrzysztof Kozlowski			timing-nl12880bc20 {
258724ba675SRob Herring				clock-frequency = <71000000>;
259724ba675SRob Herring				hactive = <1280>;
260724ba675SRob Herring				vactive = <800>;
261724ba675SRob Herring				hback-porch = <50>;
262724ba675SRob Herring				hfront-porch = <50>;
263724ba675SRob Herring				vback-porch = <5>;
264724ba675SRob Herring				vfront-porch = <5>;
265724ba675SRob Herring				hsync-len = <60>;
266724ba675SRob Herring				vsync-len = <13>;
267724ba675SRob Herring				hsync-active = <0>;
268724ba675SRob Herring				vsync-active = <0>;
269724ba675SRob Herring				de-active = <1>;
270724ba675SRob Herring				pixelclk-active = <1>;
271724ba675SRob Herring			};
272724ba675SRob Herring		};
273724ba675SRob Herring	};
274724ba675SRob Herring};
275724ba675SRob Herring
276724ba675SRob Herring&pwm1 {
277724ba675SRob Herring	status = "okay";
278724ba675SRob Herring};
279724ba675SRob Herring
280724ba675SRob Herring&reg_lcd0_pwr {
281724ba675SRob Herring	status = "okay";
282724ba675SRob Herring};
283724ba675SRob Herring
284724ba675SRob Herring&reg_lcd1_pwr {
285724ba675SRob Herring	status = "okay";
286724ba675SRob Herring};
287