diff options
author | Huang Lin <hl@rock-chips.com> | 2015-02-27 21:18:58 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-04-02 13:04:10 -0400 |
commit | a531bc3d952ffd6ebe6452bd39cb3c64cfa5ceb3 (patch) | |
tree | 7d7b445aa3af640f723bec5aaa94beca72e3ac0e | |
parent | bccac3f121d53b645c882cae7948facb50940043 (diff) |
drm/panel: simple: Add support for AUO b101ean01 panel
The AUO b101ean01 panel is a 10.1" 1280x800 panel which can be supported
by the simple panel driver.
Signed-off-by: Huang Lin <hl@rock-chips.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/panel/auo,b101ean01.txt | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/auo,b101ean01.txt b/Documentation/devicetree/bindings/panel/auo,b101ean01.txt new file mode 100644 index 000000000000..3590b0741619 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/auo,b101ean01.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | AU Optronics Corporation 10.1" WSVGA TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "auo,b101ean01" | ||
5 | |||
6 | This binding is compatible with the simple-panel binding, which is specified | ||
7 | in simple-panel.txt in this directory. | ||
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index d241c10de1dd..bcb276cb7406 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -350,6 +350,29 @@ static const struct panel_desc auo_b101aw03 = { | |||
350 | }, | 350 | }, |
351 | }; | 351 | }; |
352 | 352 | ||
353 | static const struct drm_display_mode auo_b101ean01_mode = { | ||
354 | .clock = 72500, | ||
355 | .hdisplay = 1280, | ||
356 | .hsync_start = 1280 + 119, | ||
357 | .hsync_end = 1280 + 119 + 32, | ||
358 | .htotal = 1280 + 119 + 32 + 21, | ||
359 | .vdisplay = 800, | ||
360 | .vsync_start = 800 + 4, | ||
361 | .vsync_end = 800 + 4 + 20, | ||
362 | .vtotal = 800 + 4 + 20 + 8, | ||
363 | .vrefresh = 60, | ||
364 | }; | ||
365 | |||
366 | static const struct panel_desc auo_b101ean01 = { | ||
367 | .modes = &auo_b101ean01_mode, | ||
368 | .num_modes = 1, | ||
369 | .bpc = 6, | ||
370 | .size = { | ||
371 | .width = 217, | ||
372 | .height = 136, | ||
373 | }, | ||
374 | }; | ||
375 | |||
353 | static const struct drm_display_mode auo_b101xtn01_mode = { | 376 | static const struct drm_display_mode auo_b101xtn01_mode = { |
354 | .clock = 72000, | 377 | .clock = 72000, |
355 | .hdisplay = 1366, | 378 | .hdisplay = 1366, |
@@ -878,6 +901,9 @@ static const struct of_device_id platform_of_match[] = { | |||
878 | .compatible = "auo,b101aw03", | 901 | .compatible = "auo,b101aw03", |
879 | .data = &auo_b101aw03, | 902 | .data = &auo_b101aw03, |
880 | }, { | 903 | }, { |
904 | .compatible = "auo,b101ean01", | ||
905 | .data = &auo_b101ean01, | ||
906 | }, { | ||
881 | .compatible = "auo,b101xtn01", | 907 | .compatible = "auo,b101xtn01", |
882 | .data = &auo_b101xtn01, | 908 | .data = &auo_b101xtn01, |
883 | }, { | 909 | }, { |