Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.2.
  1/*
  2 * Copyright 2017 Lothar Waßmann <LW@KARO-electronics.de>
  3 *
  4 * This file is dual-licensed: you can use it either under the terms
  5 * of the GPL or the X11 license, at your option. Note that this dual
  6 * licensing only applies to this file, and not this project as a
  7 * whole.
  8 *
  9 *  a) This file is free software; you can redistribute it and/or
 10 *     modify it under the terms of the GNU General Public License
 11 *     version 2 as published by the Free Software Foundation.
 12 *
 13 *     This file is distributed in the hope that it will be useful,
 14 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 15 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 16 *     GNU General Public License for more details.
 17 *
 18 * Or, alternatively,
 19 *
 20 *  b) Permission is hereby granted, free of charge, to any person
 21 *     obtaining a copy of this software and associated documentation
 22 *     files (the "Software"), to deal in the Software without
 23 *     restriction, including without limitation the rights to use,
 24 *     copy, modify, merge, publish, distribute, sublicense, and/or
 25 *     sell copies of the Software, and to permit persons to whom the
 26 *     Software is furnished to do so, subject to the following
 27 *     conditions:
 28 *
 29 *     The above copyright notice and this permission notice shall be
 30 *     included in all copies or substantial portions of the Software.
 31 *
 32 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 33 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 34 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 35 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 36 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 37 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 38 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 39 *     OTHER DEALINGS IN THE SOFTWARE.
 40 */
 41
 42/ {
 43	aliases {
 44		display = &lvds0;
 45		lvds0 = &lvds0;
 46		lvds1 = &lvds1;
 47	};
 48
 49	backlight0: backlight0 {
 50		compatible = "pwm-backlight";
 51		pwms = <&pwm2 0 500000 0>;
 52		power-supply = <&reg_lcd0_pwr>;
 53		brightness-levels = < 0  1  2  3  4  5  6  7  8  9
 54				     10 11 12 13 14 15 16 17 18 19
 55				     20 21 22 23 24 25 26 27 28 29
 56				     30 31 32 33 34 35 36 37 38 39
 57				     40 41 42 43 44 45 46 47 48 49
 58				     50 51 52 53 54 55 56 57 58 59
 59				     60 61 62 63 64 65 66 67 68 69
 60				     70 71 72 73 74 75 76 77 78 79
 61				     80 81 82 83 84 85 86 87 88 89
 62				     90 91 92 93 94 95 96 97 98 99
 63				    100>;
 64		default-brightness-level = <50>;
 65	};
 66
 67	backlight1: backlight1 {
 68		compatible = "pwm-backlight";
 69		pwms = <&pwm1 0 500000 0>;
 70		power-supply = <&reg_lcd1_pwr>;
 71		brightness-levels = < 0  1  2  3  4  5  6  7  8  9
 72				     10 11 12 13 14 15 16 17 18 19
 73				     20 21 22 23 24 25 26 27 28 29
 74				     30 31 32 33 34 35 36 37 38 39
 75				     40 41 42 43 44 45 46 47 48 49
 76				     50 51 52 53 54 55 56 57 58 59
 77				     60 61 62 63 64 65 66 67 68 69
 78				     70 71 72 73 74 75 76 77 78 79
 79				     80 81 82 83 84 85 86 87 88 89
 80				     90 91 92 93 94 95 96 97 98 99
 81				    100>;
 82		default-brightness-level = <50>;
 83	};
 84
 85	lvds0_panel: lvds0-panel {
 86		compatible = "nlt,nl12880bc20-spwg-24";
 87		backlight = <&backlight0>;
 88		power-supply = <&reg_3v3>;
 89
 90		port {
 91			panel_in_lvds0: endpoint {
 92				remote-endpoint = <&lvds0_out>;
 93			};
 94		};
 95	};
 96
 97	lvds1_panel: lvds1-panel {
 98		compatible = "nlt,nl12880bc20-spwg-24";
 99		backlight = <&backlight1>;
100		power-supply = <&reg_3v3>;
101
102		port {
103			panel_in_lvds1: endpoint {
104				remote-endpoint = <&lvds1_out>;
105			};
106		};
107	};
108};
109
110&kpp {
111	status = "disabled"; /* pad conflict with backlight1 PWM */
112};
113
114&ldb {
115	status = "okay";
116
117	lvds0: lvds-channel@0 {
118		fsl,data-width = <18>;
119		status = "okay";
120
121		port@4 {
122			reg = <4>;
123
124			lvds0_out: endpoint {
125				remote-endpoint = <&panel_in_lvds0>;
126			};
127		};
128
129		display-timings {
130			timing-hsd100pxn1 {
131				clock-frequency = <65000000>;
132				hactive = <1024>;
133				vactive = <768>;
134				hback-porch = <220>;
135				hfront-porch = <40>;
136				vback-porch = <21>;
137				vfront-porch = <7>;
138				hsync-len = <60>;
139				vsync-len = <10>;
140				de-active = <1>;
141				pixelclk-active = <1>;
142			};
143
144			timing-vga {
145				clock-frequency = <25200000>;
146				hactive = <640>;
147				vactive = <480>;
148				hback-porch = <48>;
149				hfront-porch = <16>;
150				vback-porch = <31>;
151				vfront-porch = <12>;
152				hsync-len = <96>;
153				vsync-len = <2>;
154				hsync-active = <0>;
155				vsync-active = <0>;
156				de-active = <1>;
157				pixelclk-active = <0>;
158			};
159
160			timing-nl12880bc20 {
161				clock-frequency = <71000000>;
162				hactive = <1280>;
163				vactive = <800>;
164				hback-porch = <50>;
165				hfront-porch = <50>;
166				vback-porch = <5>;
167				vfront-porch = <5>;
168				hsync-len = <60>;
169				vsync-len = <13>;
170				hsync-active = <0>;
171				vsync-active = <0>;
172				de-active = <1>;
173				pixelclk-active = <1>;
174			};
175
176			timing-et0700 {
177				clock-frequency = <33264000>;
178				hactive = <800>;
179				vactive = <480>;
180				hback-porch = <88>;
181				hsync-len = <128>;
182				hfront-porch = <40>;
183				vback-porch = <33>;
184				vsync-len = <2>;
185				vfront-porch = <10>;
186				hsync-active = <0>;
187				vsync-active = <0>;
188				de-active = <1>;
189				pixelclk-active = <0>;
190			};
191
192			timing-etv570 {
193				clock-frequency = <25200000>;
194				hactive = <640>;
195				vactive = <480>;
196				hback-porch = <114>;
197				hsync-len = <30>;
198				hfront-porch = <16>;
199				vback-porch = <32>;
200				vsync-len = <3>;
201				vfront-porch = <10>;
202				hsync-active = <0>;
203				vsync-active = <0>;
204				de-active = <1>;
205				pixelclk-active = <0>;
206			};
207		};
208	};
209
210	lvds1: lvds-channel@1 {
211		fsl,data-width = <18>;
212		status = "okay";
213
214		port@4 {
215			reg = <4>;
216
217			lvds1_out: endpoint {
218				remote-endpoint = <&panel_in_lvds1>;
219			};
220		};
221
222		display-timings {
223			timing-hsd100pxn1 {
224				clock-frequency = <65000000>;
225				hactive = <1024>;
226				vactive = <768>;
227				hback-porch = <220>;
228				hfront-porch = <40>;
229				vback-porch = <21>;
230				vfront-porch = <7>;
231				hsync-len = <60>;
232				vsync-len = <10>;
233				de-active = <1>;
234				pixelclk-active = <1>;
235			};
236
237			timing-vga {
238				clock-frequency = <25200000>;
239				hactive = <640>;
240				vactive = <480>;
241				hback-porch = <48>;
242				hfront-porch = <16>;
243				vback-porch = <31>;
244				vfront-porch = <12>;
245				hsync-len = <96>;
246				vsync-len = <2>;
247				hsync-active = <0>;
248				vsync-active = <0>;
249				de-active = <1>;
250				pixelclk-active = <0>;
251			};
252
253			timing-nl12880bc20 {
254				clock-frequency = <71000000>;
255				hactive = <1280>;
256				vactive = <800>;
257				hback-porch = <50>;
258				hfront-porch = <50>;
259				vback-porch = <5>;
260				vfront-porch = <5>;
261				hsync-len = <60>;
262				vsync-len = <13>;
263				hsync-active = <0>;
264				vsync-active = <0>;
265				de-active = <1>;
266				pixelclk-active = <1>;
267			};
268		};
269	};
270};
271
272&pwm1 {
273	status = "okay";
274};
275
276&reg_lcd0_pwr {
277	status = "okay";
278};
279
280&reg_lcd1_pwr {
281	status = "okay";
282};