diff options
| -rw-r--r-- | Documentation/devicetree/bindings/panel/chunghwa,claa101wa01a.txt | 7 | ||||
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 25 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/chunghwa,claa101wa01a.txt b/Documentation/devicetree/bindings/panel/chunghwa,claa101wa01a.txt new file mode 100644 index 000000000000..f24614e4d5ec --- /dev/null +++ b/Documentation/devicetree/bindings/panel/chunghwa,claa101wa01a.txt | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | Chunghwa Picture Tubes Ltd. 10.1" WXGA TFT LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "chunghwa,claa101wa01a" | ||
| 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 a2d5e3f1205e..520b569ae3c8 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
| @@ -316,6 +316,28 @@ static const struct panel_desc auo_b101aw03 = { | |||
| 316 | }, | 316 | }, |
| 317 | }; | 317 | }; |
| 318 | 318 | ||
| 319 | static const struct drm_display_mode chunghwa_claa101wa01a_mode = { | ||
| 320 | .clock = 72070, | ||
| 321 | .hdisplay = 1366, | ||
| 322 | .hsync_start = 1366 + 58, | ||
| 323 | .hsync_end = 1366 + 58 + 58, | ||
| 324 | .htotal = 1366 + 58 + 58 + 58, | ||
| 325 | .vdisplay = 768, | ||
| 326 | .vsync_start = 768 + 4, | ||
| 327 | .vsync_end = 768 + 4 + 4, | ||
| 328 | .vtotal = 768 + 4 + 4 + 4, | ||
| 329 | .vrefresh = 60, | ||
| 330 | }; | ||
| 331 | |||
| 332 | static const struct panel_desc chunghwa_claa101wa01a = { | ||
| 333 | .modes = &chunghwa_claa101wa01a_mode, | ||
| 334 | .num_modes = 1, | ||
| 335 | .size = { | ||
| 336 | .width = 220, | ||
| 337 | .height = 120, | ||
| 338 | }, | ||
| 339 | }; | ||
| 340 | |||
| 319 | static const struct drm_display_mode chunghwa_claa101wb01_mode = { | 341 | static const struct drm_display_mode chunghwa_claa101wb01_mode = { |
| 320 | .clock = 69300, | 342 | .clock = 69300, |
| 321 | .hdisplay = 1366, | 343 | .hdisplay = 1366, |
| @@ -365,6 +387,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 365 | .compatible = "auo,b101aw03", | 387 | .compatible = "auo,b101aw03", |
| 366 | .data = &auo_b101aw03, | 388 | .data = &auo_b101aw03, |
| 367 | }, { | 389 | }, { |
| 390 | .compatible = "chunghwa,claa101wa01a", | ||
| 391 | .data = &chunghwa_claa101wa01a | ||
| 392 | }, { | ||
| 368 | .compatible = "chunghwa,claa101wb01", | 393 | .compatible = "chunghwa,claa101wb01", |
| 369 | .data = &chunghwa_claa101wb01 | 394 | .data = &chunghwa_claa101wb01 |
| 370 | }, { | 395 | }, { |
