diff options
| author | Ajay Kumar <ajaykumar.rs@samsung.com> | 2014-09-01 06:10:02 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-11-07 03:58:55 -0500 |
| commit | e35e305eff0fda4ddd5cfbd8eea06948faa503af (patch) | |
| tree | 6aa1e6f8b4b8e804b79e514218b4f8dc56db5234 | |
| parent | a853205efb741951382edfdb1efa36886eeb90c3 (diff) | |
drm/panel: simple: Add AUO B116XW03 panel support
The AUO B116XW03 is a 11.6" HD TFT LCD panel connecting to a LVDS
interface and with an integrated LED backlight unit.
This panel is used on the Samsung Chromebook(XE303C12).
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
[treding@nvidia.com: add missing .bpc field]
Signed-off-by: Thierry Reding <treding@nvidia.com>
| -rw-r--r-- | Documentation/devicetree/bindings/panel/auo,b116xw03.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,b116xw03.txt b/Documentation/devicetree/bindings/panel/auo,b116xw03.txt new file mode 100644 index 000000000000..690d0a568ef3 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/auo,b116xw03.txt | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | AU Optronics Corporation 11.6" HD (1366x768) color TFT-LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "auo,b116xw03" | ||
| 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 de78d3e0f226..f6d6ebc33e78 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
| @@ -369,6 +369,29 @@ static const struct panel_desc auo_b101xtn01 = { | |||
| 369 | }, | 369 | }, |
| 370 | }; | 370 | }; |
| 371 | 371 | ||
| 372 | static const struct drm_display_mode auo_b116xw03_mode = { | ||
| 373 | .clock = 70589, | ||
| 374 | .hdisplay = 1366, | ||
| 375 | .hsync_start = 1366 + 40, | ||
| 376 | .hsync_end = 1366 + 40 + 40, | ||
| 377 | .htotal = 1366 + 40 + 40 + 32, | ||
| 378 | .vdisplay = 768, | ||
| 379 | .vsync_start = 768 + 10, | ||
| 380 | .vsync_end = 768 + 10 + 12, | ||
| 381 | .vtotal = 768 + 10 + 12 + 6, | ||
| 382 | .vrefresh = 60, | ||
| 383 | }; | ||
| 384 | |||
| 385 | static const struct panel_desc auo_b116xw03 = { | ||
| 386 | .modes = &auo_b116xw03_mode, | ||
| 387 | .num_modes = 1, | ||
| 388 | .bpc = 6, | ||
| 389 | .size = { | ||
| 390 | .width = 256, | ||
| 391 | .height = 144, | ||
| 392 | }, | ||
| 393 | }; | ||
| 394 | |||
| 372 | static const struct drm_display_mode auo_b133xtn01_mode = { | 395 | static const struct drm_display_mode auo_b133xtn01_mode = { |
| 373 | .clock = 69500, | 396 | .clock = 69500, |
| 374 | .hdisplay = 1366, | 397 | .hdisplay = 1366, |
| @@ -659,6 +682,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 659 | .compatible = "auo,b101xtn01", | 682 | .compatible = "auo,b101xtn01", |
| 660 | .data = &auo_b101xtn01, | 683 | .data = &auo_b101xtn01, |
| 661 | }, { | 684 | }, { |
| 685 | .compatible = "auo,b116xw03", | ||
| 686 | .data = &auo_b116xw03, | ||
| 687 | }, { | ||
| 662 | .compatible = "auo,b133htn01", | 688 | .compatible = "auo,b133htn01", |
| 663 | .data = &auo_b133htn01, | 689 | .data = &auo_b133htn01, |
| 664 | }, { | 690 | }, { |
