1e98910beSHeiko Stuebner // SPDX-License-Identifier: GPL-2.0+
2e98910beSHeiko Stuebner /*
3e98910beSHeiko Stuebner * Copyright (c) 2019 Theobroma Systems Design und Consulting GmbH
4e98910beSHeiko Stuebner *
5e98910beSHeiko Stuebner * base on panel-kingdisplay-kd097d04.c
6e98910beSHeiko Stuebner * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
7e98910beSHeiko Stuebner */
8e98910beSHeiko Stuebner
9e98910beSHeiko Stuebner #include <linux/backlight.h>
10e98910beSHeiko Stuebner #include <linux/delay.h>
11e98910beSHeiko Stuebner #include <linux/gpio/consumer.h>
12e98910beSHeiko Stuebner #include <linux/module.h>
13e98910beSHeiko Stuebner #include <linux/of.h>
14f9488c16SHeiko Stuebner #include <linux/of_device.h>
15e98910beSHeiko Stuebner #include <linux/regulator/consumer.h>
16e98910beSHeiko Stuebner
17e98910beSHeiko Stuebner #include <video/mipi_display.h>
18e98910beSHeiko Stuebner
19e98910beSHeiko Stuebner #include <drm/drm_crtc.h>
20e98910beSHeiko Stuebner #include <drm/drm_device.h>
21e98910beSHeiko Stuebner #include <drm/drm_mipi_dsi.h>
22e98910beSHeiko Stuebner #include <drm/drm_modes.h>
23e98910beSHeiko Stuebner #include <drm/drm_panel.h>
24e98910beSHeiko Stuebner
25f9488c16SHeiko Stuebner struct ltk500hd1829_cmd {
26f9488c16SHeiko Stuebner char cmd;
27f9488c16SHeiko Stuebner char data;
28f9488c16SHeiko Stuebner };
29f9488c16SHeiko Stuebner
30f9488c16SHeiko Stuebner struct ltk500hd1829_desc {
31f9488c16SHeiko Stuebner const struct drm_display_mode *mode;
32f9488c16SHeiko Stuebner const struct ltk500hd1829_cmd *init;
33f9488c16SHeiko Stuebner unsigned int num_init;
34f9488c16SHeiko Stuebner };
35f9488c16SHeiko Stuebner
36e98910beSHeiko Stuebner struct ltk500hd1829 {
37e98910beSHeiko Stuebner struct device *dev;
38e98910beSHeiko Stuebner struct drm_panel panel;
39e98910beSHeiko Stuebner struct gpio_desc *reset_gpio;
40e98910beSHeiko Stuebner struct regulator *vcc;
41e98910beSHeiko Stuebner struct regulator *iovcc;
42f9488c16SHeiko Stuebner const struct ltk500hd1829_desc *panel_desc;
43e98910beSHeiko Stuebner };
44e98910beSHeiko Stuebner
45*239cce65SHeiko Stuebner static const struct ltk500hd1829_cmd ltk101b4029w_init[] = {
46*239cce65SHeiko Stuebner /* Page0 */
47*239cce65SHeiko Stuebner { 0xE0, 0x00 },
48*239cce65SHeiko Stuebner /* PASSWORD */
49*239cce65SHeiko Stuebner { 0xE1, 0x93 },
50*239cce65SHeiko Stuebner { 0xE2, 0x65 },
51*239cce65SHeiko Stuebner { 0xE3, 0xF8 },
52*239cce65SHeiko Stuebner { 0x80, 0x03 }, /* 0X03:4-LANE; 0X02:3-LANE; 0X01:2-LANE */
53*239cce65SHeiko Stuebner /* Page1 */
54*239cce65SHeiko Stuebner { 0xE0, 0x01 },
55*239cce65SHeiko Stuebner /* Set VCOM */
56*239cce65SHeiko Stuebner { 0x00, 0x00 },
57*239cce65SHeiko Stuebner { 0x01, 0x6F },
58*239cce65SHeiko Stuebner /* Set Gamma Power, VGMP,VGMN,VGSP,VGSN */
59*239cce65SHeiko Stuebner { 0x17, 0x00 },
60*239cce65SHeiko Stuebner { 0x18, 0xAF }, /* 4.3V */
61*239cce65SHeiko Stuebner { 0x19, 0x01 }, /* 0.3V */
62*239cce65SHeiko Stuebner { 0x1A, 0x00 },
63*239cce65SHeiko Stuebner { 0x1B, 0xAF }, /* 4.3V */
64*239cce65SHeiko Stuebner { 0x1C, 0x01 }, /* 0.3V */
65*239cce65SHeiko Stuebner /* Set Gate Power */
66*239cce65SHeiko Stuebner { 0x1F, 0x3E }, /* VGH_R = 15V */
67*239cce65SHeiko Stuebner { 0x20, 0x28 }, /* VGL_R = -12V */
68*239cce65SHeiko Stuebner { 0x21, 0x28 }, /* VGL_R2 = -12V */
69*239cce65SHeiko Stuebner { 0x22, 0x7E },
70*239cce65SHeiko Stuebner /* SETPANEL */
71*239cce65SHeiko Stuebner { 0x35, 0x26 },
72*239cce65SHeiko Stuebner { 0x37, 0x09 },
73*239cce65SHeiko Stuebner /* SET RGBCYC */
74*239cce65SHeiko Stuebner { 0x38, 0x04 },
75*239cce65SHeiko Stuebner { 0x39, 0x00 },
76*239cce65SHeiko Stuebner { 0x3A, 0x01 },
77*239cce65SHeiko Stuebner { 0x3C, 0x7C },
78*239cce65SHeiko Stuebner { 0x3D, 0xFF },
79*239cce65SHeiko Stuebner { 0x3E, 0xFF },
80*239cce65SHeiko Stuebner { 0x3F, 0x7F },
81*239cce65SHeiko Stuebner /* Set TCON */
82*239cce65SHeiko Stuebner { 0x40, 0x06 }, /* RSO = 800 RGB */
83*239cce65SHeiko Stuebner { 0x41, 0xA0 }, /* LN = 640->1280 line */
84*239cce65SHeiko Stuebner { 0x42, 0x81 },
85*239cce65SHeiko Stuebner { 0x43, 0x08 }, /* VFP = 8 */
86*239cce65SHeiko Stuebner { 0x44, 0x0B }, /* VBP = 12 */
87*239cce65SHeiko Stuebner { 0x45, 0x28 }, /* HBP = 40 */
88*239cce65SHeiko Stuebner /* power voltage */
89*239cce65SHeiko Stuebner { 0x55, 0x0F }, /* DCDCM = 0001, JD PWR_IC */
90*239cce65SHeiko Stuebner { 0x57, 0x69 },
91*239cce65SHeiko Stuebner { 0x59, 0x0A }, /* VCL = -2.9V */
92*239cce65SHeiko Stuebner { 0x5A, 0x28 }, /* VGH = 15V */
93*239cce65SHeiko Stuebner { 0x5B, 0x14 }, /* VGL = -11V */
94*239cce65SHeiko Stuebner /* Gamma */
95*239cce65SHeiko Stuebner { 0x5D, 0x7C },
96*239cce65SHeiko Stuebner { 0x5E, 0x65 },
97*239cce65SHeiko Stuebner { 0x5F, 0x55 },
98*239cce65SHeiko Stuebner { 0x60, 0x47 },
99*239cce65SHeiko Stuebner { 0x61, 0x43 },
100*239cce65SHeiko Stuebner { 0x62, 0x32 },
101*239cce65SHeiko Stuebner { 0x63, 0x34 },
102*239cce65SHeiko Stuebner { 0x64, 0x1C },
103*239cce65SHeiko Stuebner { 0x65, 0x33 },
104*239cce65SHeiko Stuebner { 0x66, 0x31 },
105*239cce65SHeiko Stuebner { 0x67, 0x30 },
106*239cce65SHeiko Stuebner { 0x68, 0x4E },
107*239cce65SHeiko Stuebner { 0x69, 0x3C },
108*239cce65SHeiko Stuebner { 0x6A, 0x44 },
109*239cce65SHeiko Stuebner { 0x6B, 0x35 },
110*239cce65SHeiko Stuebner { 0x6C, 0x31 },
111*239cce65SHeiko Stuebner { 0x6D, 0x23 },
112*239cce65SHeiko Stuebner { 0x6E, 0x11 },
113*239cce65SHeiko Stuebner { 0x6F, 0x00 },
114*239cce65SHeiko Stuebner { 0x70, 0x7C },
115*239cce65SHeiko Stuebner { 0x71, 0x65 },
116*239cce65SHeiko Stuebner { 0x72, 0x55 },
117*239cce65SHeiko Stuebner { 0x73, 0x47 },
118*239cce65SHeiko Stuebner { 0x74, 0x43 },
119*239cce65SHeiko Stuebner { 0x75, 0x32 },
120*239cce65SHeiko Stuebner { 0x76, 0x34 },
121*239cce65SHeiko Stuebner { 0x77, 0x1C },
122*239cce65SHeiko Stuebner { 0x78, 0x33 },
123*239cce65SHeiko Stuebner { 0x79, 0x31 },
124*239cce65SHeiko Stuebner { 0x7A, 0x30 },
125*239cce65SHeiko Stuebner { 0x7B, 0x4E },
126*239cce65SHeiko Stuebner { 0x7C, 0x3C },
127*239cce65SHeiko Stuebner { 0x7D, 0x44 },
128*239cce65SHeiko Stuebner { 0x7E, 0x35 },
129*239cce65SHeiko Stuebner { 0x7F, 0x31 },
130*239cce65SHeiko Stuebner { 0x80, 0x23 },
131*239cce65SHeiko Stuebner { 0x81, 0x11 },
132*239cce65SHeiko Stuebner { 0x82, 0x00 },
133*239cce65SHeiko Stuebner /* Page2, for GIP */
134*239cce65SHeiko Stuebner { 0xE0, 0x02 },
135*239cce65SHeiko Stuebner /* GIP_L Pin mapping */
136*239cce65SHeiko Stuebner { 0x00, 0x1E },
137*239cce65SHeiko Stuebner { 0x01, 0x1E },
138*239cce65SHeiko Stuebner { 0x02, 0x41 },
139*239cce65SHeiko Stuebner { 0x03, 0x41 },
140*239cce65SHeiko Stuebner { 0x04, 0x43 },
141*239cce65SHeiko Stuebner { 0x05, 0x43 },
142*239cce65SHeiko Stuebner { 0x06, 0x1F },
143*239cce65SHeiko Stuebner { 0x07, 0x1F },
144*239cce65SHeiko Stuebner { 0x08, 0x35 },
145*239cce65SHeiko Stuebner { 0x09, 0x1F },
146*239cce65SHeiko Stuebner { 0x0A, 0x15 },
147*239cce65SHeiko Stuebner { 0x0B, 0x15 },
148*239cce65SHeiko Stuebner { 0x0C, 0x1F },
149*239cce65SHeiko Stuebner { 0x0D, 0x47 },
150*239cce65SHeiko Stuebner { 0x0E, 0x47 },
151*239cce65SHeiko Stuebner { 0x0F, 0x45 },
152*239cce65SHeiko Stuebner { 0x10, 0x45 },
153*239cce65SHeiko Stuebner { 0x11, 0x4B },
154*239cce65SHeiko Stuebner { 0x12, 0x4B },
155*239cce65SHeiko Stuebner { 0x13, 0x49 },
156*239cce65SHeiko Stuebner { 0x14, 0x49 },
157*239cce65SHeiko Stuebner { 0x15, 0x1F },
158*239cce65SHeiko Stuebner /* GIP_R Pin mapping */
159*239cce65SHeiko Stuebner { 0x16, 0x1E },
160*239cce65SHeiko Stuebner { 0x17, 0x1E },
161*239cce65SHeiko Stuebner { 0x18, 0x40 },
162*239cce65SHeiko Stuebner { 0x19, 0x40 },
163*239cce65SHeiko Stuebner { 0x1A, 0x42 },
164*239cce65SHeiko Stuebner { 0x1B, 0x42 },
165*239cce65SHeiko Stuebner { 0x1C, 0x1F },
166*239cce65SHeiko Stuebner { 0x1D, 0x1F },
167*239cce65SHeiko Stuebner { 0x1E, 0x35 },
168*239cce65SHeiko Stuebner { 0x1F, 0x1F },
169*239cce65SHeiko Stuebner { 0x20, 0x15 },
170*239cce65SHeiko Stuebner { 0x21, 0x15 },
171*239cce65SHeiko Stuebner { 0x22, 0x1f },
172*239cce65SHeiko Stuebner { 0x23, 0x46 },
173*239cce65SHeiko Stuebner { 0x24, 0x46 },
174*239cce65SHeiko Stuebner { 0x25, 0x44 },
175*239cce65SHeiko Stuebner { 0x26, 0x44 },
176*239cce65SHeiko Stuebner { 0x27, 0x4A },
177*239cce65SHeiko Stuebner { 0x28, 0x4A },
178*239cce65SHeiko Stuebner { 0x29, 0x48 },
179*239cce65SHeiko Stuebner { 0x2A, 0x48 },
180*239cce65SHeiko Stuebner { 0x2B, 0x1F },
181*239cce65SHeiko Stuebner /* GIP Timing */
182*239cce65SHeiko Stuebner { 0x58, 0x40 },
183*239cce65SHeiko Stuebner { 0x5B, 0x30 },
184*239cce65SHeiko Stuebner { 0x5C, 0x03 },
185*239cce65SHeiko Stuebner { 0x5D, 0x30 },
186*239cce65SHeiko Stuebner { 0x5E, 0x01 },
187*239cce65SHeiko Stuebner { 0x5F, 0x02 },
188*239cce65SHeiko Stuebner { 0x63, 0x14 },
189*239cce65SHeiko Stuebner { 0x64, 0x6A },
190*239cce65SHeiko Stuebner { 0x67, 0x73 },
191*239cce65SHeiko Stuebner { 0x68, 0x05 },
192*239cce65SHeiko Stuebner { 0x69, 0x14 },
193*239cce65SHeiko Stuebner { 0x6A, 0x6A },
194*239cce65SHeiko Stuebner { 0x6B, 0x08 },
195*239cce65SHeiko Stuebner { 0x6C, 0x00 },
196*239cce65SHeiko Stuebner { 0x6D, 0x00 },
197*239cce65SHeiko Stuebner { 0x6E, 0x00 },
198*239cce65SHeiko Stuebner { 0x6F, 0x88 },
199*239cce65SHeiko Stuebner { 0x77, 0xDD },
200*239cce65SHeiko Stuebner { 0x79, 0x0E },
201*239cce65SHeiko Stuebner { 0x7A, 0x03 },
202*239cce65SHeiko Stuebner { 0x7D, 0x14 },
203*239cce65SHeiko Stuebner { 0x7E, 0x6A },
204*239cce65SHeiko Stuebner /* Page4 */
205*239cce65SHeiko Stuebner { 0xE0, 0x04 },
206*239cce65SHeiko Stuebner { 0x09, 0x11 },
207*239cce65SHeiko Stuebner { 0x0E, 0x48 },
208*239cce65SHeiko Stuebner { 0x2B, 0x2B },
209*239cce65SHeiko Stuebner { 0x2D, 0x03 },
210*239cce65SHeiko Stuebner { 0x2E, 0x44 },
211*239cce65SHeiko Stuebner /* Page0 */
212*239cce65SHeiko Stuebner { 0xE0, 0x00 },
213*239cce65SHeiko Stuebner { 0xE6, 0x02 },
214*239cce65SHeiko Stuebner { 0xE7, 0x0C },
215*239cce65SHeiko Stuebner };
216*239cce65SHeiko Stuebner
217*239cce65SHeiko Stuebner static const struct drm_display_mode ltk101b4029w_mode = {
218*239cce65SHeiko Stuebner .hdisplay = 800,
219*239cce65SHeiko Stuebner .hsync_start = 800 + 18,
220*239cce65SHeiko Stuebner .hsync_end = 800 + 18 + 18,
221*239cce65SHeiko Stuebner .htotal = 800 + 18 + 18 + 18,
222*239cce65SHeiko Stuebner .vdisplay = 1280,
223*239cce65SHeiko Stuebner .vsync_start = 1280 + 24,
224*239cce65SHeiko Stuebner .vsync_end = 1280 + 24 + 4,
225*239cce65SHeiko Stuebner .vtotal = 1280 + 24 + 4 + 8,
226*239cce65SHeiko Stuebner .clock = 67330,
227*239cce65SHeiko Stuebner .width_mm = 136,
228*239cce65SHeiko Stuebner .height_mm = 218,
229*239cce65SHeiko Stuebner };
230*239cce65SHeiko Stuebner
231*239cce65SHeiko Stuebner static const struct ltk500hd1829_desc ltk101b4029w_data = {
232*239cce65SHeiko Stuebner .mode = <k101b4029w_mode,
233*239cce65SHeiko Stuebner .init = ltk101b4029w_init,
234*239cce65SHeiko Stuebner .num_init = ARRAY_SIZE(ltk101b4029w_init),
235*239cce65SHeiko Stuebner };
236*239cce65SHeiko Stuebner
237e98910beSHeiko Stuebner /*
238e98910beSHeiko Stuebner * There is no description in the Reference Manual about these commands.
239e98910beSHeiko Stuebner * We received them from the vendor, so just use them as is.
240e98910beSHeiko Stuebner */
241f9488c16SHeiko Stuebner static const struct ltk500hd1829_cmd ltk500hd1829_init[] = {
242e98910beSHeiko Stuebner { 0xE0, 0x00 },
243e98910beSHeiko Stuebner { 0xE1, 0x93 },
244e98910beSHeiko Stuebner { 0xE2, 0x65 },
245e98910beSHeiko Stuebner { 0xE3, 0xF8 },
246e98910beSHeiko Stuebner { 0x80, 0x03 },
247e98910beSHeiko Stuebner { 0xE0, 0x04 },
248e98910beSHeiko Stuebner { 0x2D, 0x03 },
249e98910beSHeiko Stuebner { 0xE0, 0x01 },
250e98910beSHeiko Stuebner { 0x00, 0x00 },
251e98910beSHeiko Stuebner { 0x01, 0xB6 },
252e98910beSHeiko Stuebner { 0x03, 0x00 },
253e98910beSHeiko Stuebner { 0x04, 0xC5 },
254e98910beSHeiko Stuebner { 0x17, 0x00 },
255e98910beSHeiko Stuebner { 0x18, 0xBF },
256e98910beSHeiko Stuebner { 0x19, 0x01 },
257e98910beSHeiko Stuebner { 0x1A, 0x00 },
258e98910beSHeiko Stuebner { 0x1B, 0xBF },
259e98910beSHeiko Stuebner { 0x1C, 0x01 },
260e98910beSHeiko Stuebner { 0x1F, 0x7C },
261e98910beSHeiko Stuebner { 0x20, 0x26 },
262e98910beSHeiko Stuebner { 0x21, 0x26 },
263e98910beSHeiko Stuebner { 0x22, 0x4E },
264e98910beSHeiko Stuebner { 0x37, 0x09 },
265e98910beSHeiko Stuebner { 0x38, 0x04 },
266e98910beSHeiko Stuebner { 0x39, 0x08 },
267e98910beSHeiko Stuebner { 0x3A, 0x1F },
268e98910beSHeiko Stuebner { 0x3B, 0x1F },
269e98910beSHeiko Stuebner { 0x3C, 0x78 },
270e98910beSHeiko Stuebner { 0x3D, 0xFF },
271e98910beSHeiko Stuebner { 0x3E, 0xFF },
272e98910beSHeiko Stuebner { 0x3F, 0x00 },
273e98910beSHeiko Stuebner { 0x40, 0x04 },
274e98910beSHeiko Stuebner { 0x41, 0xA0 },
275e98910beSHeiko Stuebner { 0x43, 0x0F },
276e98910beSHeiko Stuebner { 0x44, 0x0A },
277e98910beSHeiko Stuebner { 0x45, 0x24 },
278e98910beSHeiko Stuebner { 0x55, 0x01 },
279e98910beSHeiko Stuebner { 0x56, 0x01 },
280e98910beSHeiko Stuebner { 0x57, 0xA5 },
281e98910beSHeiko Stuebner { 0x58, 0x0A },
282e98910beSHeiko Stuebner { 0x59, 0x4A },
283e98910beSHeiko Stuebner { 0x5A, 0x38 },
284e98910beSHeiko Stuebner { 0x5B, 0x10 },
285e98910beSHeiko Stuebner { 0x5C, 0x19 },
286e98910beSHeiko Stuebner { 0x5D, 0x7C },
287e98910beSHeiko Stuebner { 0x5E, 0x64 },
288e98910beSHeiko Stuebner { 0x5F, 0x54 },
289e98910beSHeiko Stuebner { 0x60, 0x48 },
290e98910beSHeiko Stuebner { 0x61, 0x44 },
291e98910beSHeiko Stuebner { 0x62, 0x35 },
292e98910beSHeiko Stuebner { 0x63, 0x3A },
293e98910beSHeiko Stuebner { 0x64, 0x24 },
294e98910beSHeiko Stuebner { 0x65, 0x3B },
295e98910beSHeiko Stuebner { 0x66, 0x39 },
296e98910beSHeiko Stuebner { 0x67, 0x37 },
297e98910beSHeiko Stuebner { 0x68, 0x56 },
298e98910beSHeiko Stuebner { 0x69, 0x41 },
299e98910beSHeiko Stuebner { 0x6A, 0x47 },
300e98910beSHeiko Stuebner { 0x6B, 0x2F },
301e98910beSHeiko Stuebner { 0x6C, 0x23 },
302e98910beSHeiko Stuebner { 0x6D, 0x13 },
303e98910beSHeiko Stuebner { 0x6E, 0x02 },
304e98910beSHeiko Stuebner { 0x6F, 0x08 },
305e98910beSHeiko Stuebner { 0x70, 0x7C },
306e98910beSHeiko Stuebner { 0x71, 0x64 },
307e98910beSHeiko Stuebner { 0x72, 0x54 },
308e98910beSHeiko Stuebner { 0x73, 0x48 },
309e98910beSHeiko Stuebner { 0x74, 0x44 },
310e98910beSHeiko Stuebner { 0x75, 0x35 },
311e98910beSHeiko Stuebner { 0x76, 0x3A },
312e98910beSHeiko Stuebner { 0x77, 0x22 },
313e98910beSHeiko Stuebner { 0x78, 0x3B },
314e98910beSHeiko Stuebner { 0x79, 0x39 },
315e98910beSHeiko Stuebner { 0x7A, 0x38 },
316e98910beSHeiko Stuebner { 0x7B, 0x52 },
317e98910beSHeiko Stuebner { 0x7C, 0x41 },
318e98910beSHeiko Stuebner { 0x7D, 0x47 },
319e98910beSHeiko Stuebner { 0x7E, 0x2F },
320e98910beSHeiko Stuebner { 0x7F, 0x23 },
321e98910beSHeiko Stuebner { 0x80, 0x13 },
322e98910beSHeiko Stuebner { 0x81, 0x02 },
323e98910beSHeiko Stuebner { 0x82, 0x08 },
324e98910beSHeiko Stuebner { 0xE0, 0x02 },
325e98910beSHeiko Stuebner { 0x00, 0x57 },
326e98910beSHeiko Stuebner { 0x01, 0x77 },
327e98910beSHeiko Stuebner { 0x02, 0x44 },
328e98910beSHeiko Stuebner { 0x03, 0x46 },
329e98910beSHeiko Stuebner { 0x04, 0x48 },
330e98910beSHeiko Stuebner { 0x05, 0x4A },
331e98910beSHeiko Stuebner { 0x06, 0x4C },
332e98910beSHeiko Stuebner { 0x07, 0x4E },
333e98910beSHeiko Stuebner { 0x08, 0x50 },
334e98910beSHeiko Stuebner { 0x09, 0x55 },
335e98910beSHeiko Stuebner { 0x0A, 0x52 },
336e98910beSHeiko Stuebner { 0x0B, 0x55 },
337e98910beSHeiko Stuebner { 0x0C, 0x55 },
338e98910beSHeiko Stuebner { 0x0D, 0x55 },
339e98910beSHeiko Stuebner { 0x0E, 0x55 },
340e98910beSHeiko Stuebner { 0x0F, 0x55 },
341e98910beSHeiko Stuebner { 0x10, 0x55 },
342e98910beSHeiko Stuebner { 0x11, 0x55 },
343e98910beSHeiko Stuebner { 0x12, 0x55 },
344e98910beSHeiko Stuebner { 0x13, 0x40 },
345e98910beSHeiko Stuebner { 0x14, 0x55 },
346e98910beSHeiko Stuebner { 0x15, 0x55 },
347e98910beSHeiko Stuebner { 0x16, 0x57 },
348e98910beSHeiko Stuebner { 0x17, 0x77 },
349e98910beSHeiko Stuebner { 0x18, 0x45 },
350e98910beSHeiko Stuebner { 0x19, 0x47 },
351e98910beSHeiko Stuebner { 0x1A, 0x49 },
352e98910beSHeiko Stuebner { 0x1B, 0x4B },
353e98910beSHeiko Stuebner { 0x1C, 0x4D },
354e98910beSHeiko Stuebner { 0x1D, 0x4F },
355e98910beSHeiko Stuebner { 0x1E, 0x51 },
356e98910beSHeiko Stuebner { 0x1F, 0x55 },
357e98910beSHeiko Stuebner { 0x20, 0x53 },
358e98910beSHeiko Stuebner { 0x21, 0x55 },
359e98910beSHeiko Stuebner { 0x22, 0x55 },
360e98910beSHeiko Stuebner { 0x23, 0x55 },
361e98910beSHeiko Stuebner { 0x24, 0x55 },
362e98910beSHeiko Stuebner { 0x25, 0x55 },
363e98910beSHeiko Stuebner { 0x26, 0x55 },
364e98910beSHeiko Stuebner { 0x27, 0x55 },
365e98910beSHeiko Stuebner { 0x28, 0x55 },
366e98910beSHeiko Stuebner { 0x29, 0x41 },
367e98910beSHeiko Stuebner { 0x2A, 0x55 },
368e98910beSHeiko Stuebner { 0x2B, 0x55 },
369e98910beSHeiko Stuebner { 0x2C, 0x57 },
370e98910beSHeiko Stuebner { 0x2D, 0x77 },
371e98910beSHeiko Stuebner { 0x2E, 0x4F },
372e98910beSHeiko Stuebner { 0x2F, 0x4D },
373e98910beSHeiko Stuebner { 0x30, 0x4B },
374e98910beSHeiko Stuebner { 0x31, 0x49 },
375e98910beSHeiko Stuebner { 0x32, 0x47 },
376e98910beSHeiko Stuebner { 0x33, 0x45 },
377e98910beSHeiko Stuebner { 0x34, 0x41 },
378e98910beSHeiko Stuebner { 0x35, 0x55 },
379e98910beSHeiko Stuebner { 0x36, 0x53 },
380e98910beSHeiko Stuebner { 0x37, 0x55 },
381e98910beSHeiko Stuebner { 0x38, 0x55 },
382e98910beSHeiko Stuebner { 0x39, 0x55 },
383e98910beSHeiko Stuebner { 0x3A, 0x55 },
384e98910beSHeiko Stuebner { 0x3B, 0x55 },
385e98910beSHeiko Stuebner { 0x3C, 0x55 },
386e98910beSHeiko Stuebner { 0x3D, 0x55 },
387e98910beSHeiko Stuebner { 0x3E, 0x55 },
388e98910beSHeiko Stuebner { 0x3F, 0x51 },
389e98910beSHeiko Stuebner { 0x40, 0x55 },
390e98910beSHeiko Stuebner { 0x41, 0x55 },
391e98910beSHeiko Stuebner { 0x42, 0x57 },
392e98910beSHeiko Stuebner { 0x43, 0x77 },
393e98910beSHeiko Stuebner { 0x44, 0x4E },
394e98910beSHeiko Stuebner { 0x45, 0x4C },
395e98910beSHeiko Stuebner { 0x46, 0x4A },
396e98910beSHeiko Stuebner { 0x47, 0x48 },
397e98910beSHeiko Stuebner { 0x48, 0x46 },
398e98910beSHeiko Stuebner { 0x49, 0x44 },
399e98910beSHeiko Stuebner { 0x4A, 0x40 },
400e98910beSHeiko Stuebner { 0x4B, 0x55 },
401e98910beSHeiko Stuebner { 0x4C, 0x52 },
402e98910beSHeiko Stuebner { 0x4D, 0x55 },
403e98910beSHeiko Stuebner { 0x4E, 0x55 },
404e98910beSHeiko Stuebner { 0x4F, 0x55 },
405e98910beSHeiko Stuebner { 0x50, 0x55 },
406e98910beSHeiko Stuebner { 0x51, 0x55 },
407e98910beSHeiko Stuebner { 0x52, 0x55 },
408e98910beSHeiko Stuebner { 0x53, 0x55 },
409e98910beSHeiko Stuebner { 0x54, 0x55 },
410e98910beSHeiko Stuebner { 0x55, 0x50 },
411e98910beSHeiko Stuebner { 0x56, 0x55 },
412e98910beSHeiko Stuebner { 0x57, 0x55 },
413e98910beSHeiko Stuebner { 0x58, 0x40 },
414e98910beSHeiko Stuebner { 0x59, 0x00 },
415e98910beSHeiko Stuebner { 0x5A, 0x00 },
416e98910beSHeiko Stuebner { 0x5B, 0x10 },
417e98910beSHeiko Stuebner { 0x5C, 0x09 },
418e98910beSHeiko Stuebner { 0x5D, 0x30 },
419e98910beSHeiko Stuebner { 0x5E, 0x01 },
420e98910beSHeiko Stuebner { 0x5F, 0x02 },
421e98910beSHeiko Stuebner { 0x60, 0x30 },
422e98910beSHeiko Stuebner { 0x61, 0x03 },
423e98910beSHeiko Stuebner { 0x62, 0x04 },
424e98910beSHeiko Stuebner { 0x63, 0x06 },
425e98910beSHeiko Stuebner { 0x64, 0x6A },
426e98910beSHeiko Stuebner { 0x65, 0x75 },
427e98910beSHeiko Stuebner { 0x66, 0x0F },
428e98910beSHeiko Stuebner { 0x67, 0xB3 },
429e98910beSHeiko Stuebner { 0x68, 0x0B },
430e98910beSHeiko Stuebner { 0x69, 0x06 },
431e98910beSHeiko Stuebner { 0x6A, 0x6A },
432e98910beSHeiko Stuebner { 0x6B, 0x10 },
433e98910beSHeiko Stuebner { 0x6C, 0x00 },
434e98910beSHeiko Stuebner { 0x6D, 0x04 },
435e98910beSHeiko Stuebner { 0x6E, 0x04 },
436e98910beSHeiko Stuebner { 0x6F, 0x88 },
437e98910beSHeiko Stuebner { 0x70, 0x00 },
438e98910beSHeiko Stuebner { 0x71, 0x00 },
439e98910beSHeiko Stuebner { 0x72, 0x06 },
440e98910beSHeiko Stuebner { 0x73, 0x7B },
441e98910beSHeiko Stuebner { 0x74, 0x00 },
442e98910beSHeiko Stuebner { 0x75, 0xBC },
443e98910beSHeiko Stuebner { 0x76, 0x00 },
444e98910beSHeiko Stuebner { 0x77, 0x05 },
445e98910beSHeiko Stuebner { 0x78, 0x2E },
446e98910beSHeiko Stuebner { 0x79, 0x00 },
447e98910beSHeiko Stuebner { 0x7A, 0x00 },
448e98910beSHeiko Stuebner { 0x7B, 0x00 },
449e98910beSHeiko Stuebner { 0x7C, 0x00 },
450e98910beSHeiko Stuebner { 0x7D, 0x03 },
451e98910beSHeiko Stuebner { 0x7E, 0x7B },
452e98910beSHeiko Stuebner { 0xE0, 0x04 },
453e98910beSHeiko Stuebner { 0x09, 0x10 },
454e98910beSHeiko Stuebner { 0x2B, 0x2B },
455e98910beSHeiko Stuebner { 0x2E, 0x44 },
456e98910beSHeiko Stuebner { 0xE0, 0x00 },
457e98910beSHeiko Stuebner { 0xE6, 0x02 },
458e98910beSHeiko Stuebner { 0xE7, 0x02 },
459e98910beSHeiko Stuebner { 0x35, 0x00 },
460e98910beSHeiko Stuebner };
461e98910beSHeiko Stuebner
462f9488c16SHeiko Stuebner static const struct drm_display_mode ltk500hd1829_mode = {
463f9488c16SHeiko Stuebner .hdisplay = 720,
464f9488c16SHeiko Stuebner .hsync_start = 720 + 50,
465f9488c16SHeiko Stuebner .hsync_end = 720 + 50 + 50,
466f9488c16SHeiko Stuebner .htotal = 720 + 50 + 50 + 50,
467f9488c16SHeiko Stuebner .vdisplay = 1280,
468f9488c16SHeiko Stuebner .vsync_start = 1280 + 30,
469f9488c16SHeiko Stuebner .vsync_end = 1280 + 30 + 4,
470f9488c16SHeiko Stuebner .vtotal = 1280 + 30 + 4 + 12,
471f9488c16SHeiko Stuebner .clock = 69217,
472f9488c16SHeiko Stuebner .width_mm = 62,
473f9488c16SHeiko Stuebner .height_mm = 110,
474f9488c16SHeiko Stuebner };
475f9488c16SHeiko Stuebner
476f9488c16SHeiko Stuebner static const struct ltk500hd1829_desc ltk500hd1829_data = {
477f9488c16SHeiko Stuebner .mode = <k500hd1829_mode,
478f9488c16SHeiko Stuebner .init = ltk500hd1829_init,
479f9488c16SHeiko Stuebner .num_init = ARRAY_SIZE(ltk500hd1829_init),
480f9488c16SHeiko Stuebner };
481f9488c16SHeiko Stuebner
482e98910beSHeiko Stuebner static inline
panel_to_ltk500hd1829(struct drm_panel * panel)483e98910beSHeiko Stuebner struct ltk500hd1829 *panel_to_ltk500hd1829(struct drm_panel *panel)
484e98910beSHeiko Stuebner {
485e98910beSHeiko Stuebner return container_of(panel, struct ltk500hd1829, panel);
486e98910beSHeiko Stuebner }
487e98910beSHeiko Stuebner
ltk500hd1829_unprepare(struct drm_panel * panel)488e98910beSHeiko Stuebner static int ltk500hd1829_unprepare(struct drm_panel *panel)
489e98910beSHeiko Stuebner {
490e98910beSHeiko Stuebner struct ltk500hd1829 *ctx = panel_to_ltk500hd1829(panel);
491e98910beSHeiko Stuebner struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
492e98910beSHeiko Stuebner int ret;
493e98910beSHeiko Stuebner
494e98910beSHeiko Stuebner ret = mipi_dsi_dcs_set_display_off(dsi);
495e98910beSHeiko Stuebner if (ret < 0)
496b75efff5SSam Ravnborg dev_err(panel->dev, "failed to set display off: %d\n", ret);
497e98910beSHeiko Stuebner
498e98910beSHeiko Stuebner ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
499e98910beSHeiko Stuebner if (ret < 0) {
500b75efff5SSam Ravnborg dev_err(panel->dev, "failed to enter sleep mode: %d\n", ret);
501e98910beSHeiko Stuebner }
502e98910beSHeiko Stuebner
503e98910beSHeiko Stuebner /* 120ms to enter sleep mode */
504e98910beSHeiko Stuebner msleep(120);
505e98910beSHeiko Stuebner
506e98910beSHeiko Stuebner regulator_disable(ctx->iovcc);
507e98910beSHeiko Stuebner regulator_disable(ctx->vcc);
508e98910beSHeiko Stuebner
509e98910beSHeiko Stuebner return 0;
510e98910beSHeiko Stuebner }
511e98910beSHeiko Stuebner
ltk500hd1829_prepare(struct drm_panel * panel)512e98910beSHeiko Stuebner static int ltk500hd1829_prepare(struct drm_panel *panel)
513e98910beSHeiko Stuebner {
514e98910beSHeiko Stuebner struct ltk500hd1829 *ctx = panel_to_ltk500hd1829(panel);
515e98910beSHeiko Stuebner struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
516e98910beSHeiko Stuebner unsigned int i;
517e98910beSHeiko Stuebner int ret;
518e98910beSHeiko Stuebner
519e98910beSHeiko Stuebner ret = regulator_enable(ctx->vcc);
520e98910beSHeiko Stuebner if (ret < 0) {
521b75efff5SSam Ravnborg dev_err(ctx->dev, "Failed to enable vci supply: %d\n", ret);
522e98910beSHeiko Stuebner return ret;
523e98910beSHeiko Stuebner }
524e98910beSHeiko Stuebner ret = regulator_enable(ctx->iovcc);
525e98910beSHeiko Stuebner if (ret < 0) {
526b75efff5SSam Ravnborg dev_err(ctx->dev, "Failed to enable iovcc supply: %d\n", ret);
527e98910beSHeiko Stuebner goto disable_vcc;
528e98910beSHeiko Stuebner }
529e98910beSHeiko Stuebner
530e98910beSHeiko Stuebner gpiod_set_value_cansleep(ctx->reset_gpio, 1);
531e98910beSHeiko Stuebner /* tRW: 10us */
532e98910beSHeiko Stuebner usleep_range(10, 20);
533e98910beSHeiko Stuebner gpiod_set_value_cansleep(ctx->reset_gpio, 0);
534e98910beSHeiko Stuebner
535e98910beSHeiko Stuebner /* tRT: >= 5ms */
536e98910beSHeiko Stuebner usleep_range(5000, 6000);
537e98910beSHeiko Stuebner
538f9488c16SHeiko Stuebner for (i = 0; i < ctx->panel_desc->num_init; i++) {
539f9488c16SHeiko Stuebner ret = mipi_dsi_generic_write(dsi, &ctx->panel_desc->init[i],
540e98910beSHeiko Stuebner sizeof(struct ltk500hd1829_cmd));
541e98910beSHeiko Stuebner if (ret < 0) {
542b75efff5SSam Ravnborg dev_err(panel->dev, "failed to write init cmds: %d\n", ret);
543e98910beSHeiko Stuebner goto disable_iovcc;
544e98910beSHeiko Stuebner }
545e98910beSHeiko Stuebner }
546e98910beSHeiko Stuebner
547e98910beSHeiko Stuebner ret = mipi_dsi_dcs_exit_sleep_mode(dsi);
548e98910beSHeiko Stuebner if (ret < 0) {
549b75efff5SSam Ravnborg dev_err(panel->dev, "failed to exit sleep mode: %d\n", ret);
550e98910beSHeiko Stuebner goto disable_iovcc;
551e98910beSHeiko Stuebner }
552e98910beSHeiko Stuebner
553e98910beSHeiko Stuebner /* 120ms to exit sleep mode */
554e98910beSHeiko Stuebner msleep(120);
555e98910beSHeiko Stuebner
556e98910beSHeiko Stuebner ret = mipi_dsi_dcs_set_display_on(dsi);
557e98910beSHeiko Stuebner if (ret < 0) {
558b75efff5SSam Ravnborg dev_err(panel->dev, "failed to set display on: %d\n", ret);
559e98910beSHeiko Stuebner goto disable_iovcc;
560e98910beSHeiko Stuebner }
561e98910beSHeiko Stuebner
562e98910beSHeiko Stuebner return 0;
563e98910beSHeiko Stuebner
564e98910beSHeiko Stuebner disable_iovcc:
565e98910beSHeiko Stuebner regulator_disable(ctx->iovcc);
566e98910beSHeiko Stuebner disable_vcc:
567e98910beSHeiko Stuebner regulator_disable(ctx->vcc);
568e98910beSHeiko Stuebner return ret;
569e98910beSHeiko Stuebner }
570e98910beSHeiko Stuebner
ltk500hd1829_get_modes(struct drm_panel * panel,struct drm_connector * connector)571e98910beSHeiko Stuebner static int ltk500hd1829_get_modes(struct drm_panel *panel,
572e98910beSHeiko Stuebner struct drm_connector *connector)
573e98910beSHeiko Stuebner {
574e98910beSHeiko Stuebner struct ltk500hd1829 *ctx = panel_to_ltk500hd1829(panel);
575e98910beSHeiko Stuebner struct drm_display_mode *mode;
576e98910beSHeiko Stuebner
577f9488c16SHeiko Stuebner mode = drm_mode_duplicate(connector->dev, ctx->panel_desc->mode);
578e98910beSHeiko Stuebner if (!mode) {
579b75efff5SSam Ravnborg dev_err(ctx->dev, "failed to add mode %ux%u@%u\n",
580f9488c16SHeiko Stuebner ctx->panel_desc->mode->hdisplay, ctx->panel_desc->mode->vdisplay,
581f9488c16SHeiko Stuebner drm_mode_vrefresh(ctx->panel_desc->mode));
582e98910beSHeiko Stuebner return -ENOMEM;
583e98910beSHeiko Stuebner }
584e98910beSHeiko Stuebner
585e98910beSHeiko Stuebner drm_mode_set_name(mode);
586e98910beSHeiko Stuebner
587e98910beSHeiko Stuebner mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
588e98910beSHeiko Stuebner connector->display_info.width_mm = mode->width_mm;
589e98910beSHeiko Stuebner connector->display_info.height_mm = mode->height_mm;
590e98910beSHeiko Stuebner drm_mode_probed_add(connector, mode);
591e98910beSHeiko Stuebner
592e98910beSHeiko Stuebner return 1;
593e98910beSHeiko Stuebner }
594e98910beSHeiko Stuebner
595e98910beSHeiko Stuebner static const struct drm_panel_funcs ltk500hd1829_funcs = {
596e98910beSHeiko Stuebner .unprepare = ltk500hd1829_unprepare,
597e98910beSHeiko Stuebner .prepare = ltk500hd1829_prepare,
598e98910beSHeiko Stuebner .get_modes = ltk500hd1829_get_modes,
599e98910beSHeiko Stuebner };
600e98910beSHeiko Stuebner
ltk500hd1829_probe(struct mipi_dsi_device * dsi)601e98910beSHeiko Stuebner static int ltk500hd1829_probe(struct mipi_dsi_device *dsi)
602e98910beSHeiko Stuebner {
603e98910beSHeiko Stuebner struct ltk500hd1829 *ctx;
604e98910beSHeiko Stuebner struct device *dev = &dsi->dev;
605e98910beSHeiko Stuebner int ret;
606e98910beSHeiko Stuebner
607e98910beSHeiko Stuebner ctx = devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL);
608e98910beSHeiko Stuebner if (!ctx)
609e98910beSHeiko Stuebner return -ENOMEM;
610e98910beSHeiko Stuebner
611f9488c16SHeiko Stuebner ctx->panel_desc = of_device_get_match_data(dev);
612f9488c16SHeiko Stuebner if (!ctx->panel_desc)
613f9488c16SHeiko Stuebner return -EINVAL;
614f9488c16SHeiko Stuebner
615e98910beSHeiko Stuebner ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
616e98910beSHeiko Stuebner if (IS_ERR(ctx->reset_gpio)) {
617b75efff5SSam Ravnborg dev_err(dev, "cannot get reset gpio\n");
618e98910beSHeiko Stuebner return PTR_ERR(ctx->reset_gpio);
619e98910beSHeiko Stuebner }
620e98910beSHeiko Stuebner
621e98910beSHeiko Stuebner ctx->vcc = devm_regulator_get(dev, "vcc");
622e98910beSHeiko Stuebner if (IS_ERR(ctx->vcc)) {
623e98910beSHeiko Stuebner ret = PTR_ERR(ctx->vcc);
624e98910beSHeiko Stuebner if (ret != -EPROBE_DEFER)
625b75efff5SSam Ravnborg dev_err(dev, "Failed to request vcc regulator: %d\n", ret);
626e98910beSHeiko Stuebner return ret;
627e98910beSHeiko Stuebner }
628e98910beSHeiko Stuebner
629e98910beSHeiko Stuebner ctx->iovcc = devm_regulator_get(dev, "iovcc");
630e98910beSHeiko Stuebner if (IS_ERR(ctx->iovcc)) {
631e98910beSHeiko Stuebner ret = PTR_ERR(ctx->iovcc);
632e98910beSHeiko Stuebner if (ret != -EPROBE_DEFER)
633b75efff5SSam Ravnborg dev_err(dev, "Failed to request iovcc regulator: %d\n", ret);
634e98910beSHeiko Stuebner return ret;
635e98910beSHeiko Stuebner }
636e98910beSHeiko Stuebner
637e98910beSHeiko Stuebner mipi_dsi_set_drvdata(dsi, ctx);
638e98910beSHeiko Stuebner
639e98910beSHeiko Stuebner ctx->dev = dev;
640e98910beSHeiko Stuebner
641e98910beSHeiko Stuebner dsi->lanes = 4;
642e98910beSHeiko Stuebner dsi->format = MIPI_DSI_FMT_RGB888;
643e98910beSHeiko Stuebner dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
6440f3b68b6SNicolas Boichat MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET;
645e98910beSHeiko Stuebner
646e98910beSHeiko Stuebner drm_panel_init(&ctx->panel, &dsi->dev, <k500hd1829_funcs,
647e98910beSHeiko Stuebner DRM_MODE_CONNECTOR_DSI);
648e98910beSHeiko Stuebner
649e98910beSHeiko Stuebner ret = drm_panel_of_backlight(&ctx->panel);
650e98910beSHeiko Stuebner if (ret)
651e98910beSHeiko Stuebner return ret;
652e98910beSHeiko Stuebner
653e98910beSHeiko Stuebner drm_panel_add(&ctx->panel);
654e98910beSHeiko Stuebner
655e98910beSHeiko Stuebner ret = mipi_dsi_attach(dsi);
656e98910beSHeiko Stuebner if (ret < 0) {
657b75efff5SSam Ravnborg dev_err(dev, "mipi_dsi_attach failed: %d\n", ret);
658e98910beSHeiko Stuebner drm_panel_remove(&ctx->panel);
659e98910beSHeiko Stuebner return ret;
660e98910beSHeiko Stuebner }
661e98910beSHeiko Stuebner
662e98910beSHeiko Stuebner return 0;
663e98910beSHeiko Stuebner }
664e98910beSHeiko Stuebner
ltk500hd1829_remove(struct mipi_dsi_device * dsi)66579abca2bSUwe Kleine-König static void ltk500hd1829_remove(struct mipi_dsi_device *dsi)
666e98910beSHeiko Stuebner {
667e98910beSHeiko Stuebner struct ltk500hd1829 *ctx = mipi_dsi_get_drvdata(dsi);
668e98910beSHeiko Stuebner int ret;
669e98910beSHeiko Stuebner
670e98910beSHeiko Stuebner ret = mipi_dsi_detach(dsi);
671e98910beSHeiko Stuebner if (ret < 0)
672b75efff5SSam Ravnborg dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret);
673e98910beSHeiko Stuebner
674e98910beSHeiko Stuebner drm_panel_remove(&ctx->panel);
675e98910beSHeiko Stuebner }
676e98910beSHeiko Stuebner
677e98910beSHeiko Stuebner static const struct of_device_id ltk500hd1829_of_match[] = {
678f9488c16SHeiko Stuebner {
679*239cce65SHeiko Stuebner .compatible = "leadtek,ltk101b4029w",
680*239cce65SHeiko Stuebner .data = <k101b4029w_data,
681*239cce65SHeiko Stuebner },
682*239cce65SHeiko Stuebner {
683f9488c16SHeiko Stuebner .compatible = "leadtek,ltk500hd1829",
684f9488c16SHeiko Stuebner .data = <k500hd1829_data,
685f9488c16SHeiko Stuebner },
686e98910beSHeiko Stuebner { /* sentinel */ }
687e98910beSHeiko Stuebner };
688e98910beSHeiko Stuebner MODULE_DEVICE_TABLE(of, ltk500hd1829_of_match);
689e98910beSHeiko Stuebner
690e98910beSHeiko Stuebner static struct mipi_dsi_driver ltk500hd1829_driver = {
691e98910beSHeiko Stuebner .driver = {
692e98910beSHeiko Stuebner .name = "panel-leadtek-ltk500hd1829",
693e98910beSHeiko Stuebner .of_match_table = ltk500hd1829_of_match,
694e98910beSHeiko Stuebner },
695e98910beSHeiko Stuebner .probe = ltk500hd1829_probe,
696e98910beSHeiko Stuebner .remove = ltk500hd1829_remove,
697e98910beSHeiko Stuebner };
698e98910beSHeiko Stuebner module_mipi_dsi_driver(ltk500hd1829_driver);
699e98910beSHeiko Stuebner
700e98910beSHeiko Stuebner MODULE_AUTHOR("Heiko Stuebner <heiko.stuebner@theobroma-systems.com>");
701e98910beSHeiko Stuebner MODULE_DESCRIPTION("Leadtek LTK500HD1829 panel driver");
702e98910beSHeiko Stuebner MODULE_LICENSE("GPL v2");
703