2 * Copyright 2017 Lothar Waßmann <LW@KARO-electronics.de>
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
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.
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.
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
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
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.
49 backlight0: backlight0 {
50 compatible = "pwm-backlight";
51 pwms = <&pwm2 0 500000 0>;
52 power-supply = <®_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
64 default-brightness-level = <50>;
67 backlight1: backlight1 {
68 compatible = "pwm-backlight";
69 pwms = <&pwm1 0 500000 0>;
70 power-supply = <®_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
82 default-brightness-level = <50>;
85 lvds0_panel: lvds0-panel {
86 compatible = "nlt,nl12880bc20-spwg-24";
87 backlight = <&backlight0>;
88 power-supply = <®_3v3>;
91 panel_in_lvds0: endpoint {
92 remote-endpoint = <&lvds0_out>;
97 lvds1_panel: lvds1-panel {
98 compatible = "nlt,nl12880bc20-spwg-24";
99 backlight = <&backlight1>;
100 power-supply = <®_3v3>;
103 panel_in_lvds1: endpoint {
104 remote-endpoint = <&lvds1_out>;
111 status = "disabled"; /* pad conflict with backlight1 PWM */
117 lvds0: lvds-channel@0 {
118 fsl,data-width = <18>;
124 lvds0_out: endpoint {
125 remote-endpoint = <&panel_in_lvds0>;
131 u-boot,panel-name = "hannstar,hsd100pxn1";
132 clock-frequency = <65000000>;
142 pixelclk-active = <1>;
146 clock-frequency = <25200000>;
158 pixelclk-active = <0>;
162 u-boot,panel-name = "nlt,nl12880bc20-spwg-24";
163 clock-frequency = <71000000>;
175 pixelclk-active = <1>;
179 u-boot,panel-name = "edt,etm0700g0dh6";
180 clock-frequency = <33264000>;
192 pixelclk-active = <0>;
196 u-boot,panel-name = "edt,et057090dhu";
197 clock-frequency = <25200000>;
209 pixelclk-active = <0>;
214 lvds1: lvds-channel@1 {
215 fsl,data-width = <18>;
221 lvds1_out: endpoint {
222 remote-endpoint = <&panel_in_lvds1>;
228 clock-frequency = <65000000>;
238 pixelclk-active = <1>;
242 clock-frequency = <25200000>;
254 pixelclk-active = <0>;
258 clock-frequency = <71000000>;
270 pixelclk-active = <1>;