Skip to content

Commit

Permalink
drm/panel: simple: Add support for Samsung LTN140AT29 panel
Browse files Browse the repository at this point in the history
This panel is used by the Nyan Blaze board and can be supported by the
simple-panel driver.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
[tomeu.vizoso@collabora.com: add device tree binding document]
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Stéphane Marchesin authored and Thierry Reding committed Apr 2, 2015
1 parent 6321fd6 commit 0c93430
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Samsung Electronics 14" WXGA (1366x768) TFT LCD panel

Required properties:
- compatible: should be "samsung,ltn140at29-301"

This binding is compatible with the simple-panel binding, which is specified
in simple-panel.txt in this directory.
26 changes: 26 additions & 0 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
},
};

static const struct drm_display_mode samsung_ltn140at29_301_mode = {
.clock = 76300,
.hdisplay = 1366,
.hsync_start = 1366 + 64,
.hsync_end = 1366 + 64 + 48,
.htotal = 1366 + 64 + 48 + 128,
.vdisplay = 768,
.vsync_start = 768 + 2,
.vsync_end = 768 + 2 + 5,
.vtotal = 768 + 2 + 5 + 17,
.vrefresh = 60,
};

static const struct panel_desc samsung_ltn140at29_301 = {
.modes = &samsung_ltn140at29_301_mode,
.num_modes = 1,
.bpc = 6,
.size = {
.width = 320,
.height = 187,
},
};

static const struct of_device_id platform_of_match[] = {
{
.compatible = "auo,b101aw03",
Expand Down Expand Up @@ -840,6 +863,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "samsung,ltn101nt05",
.data = &samsung_ltn101nt05,
}, {
.compatible = "samsung,ltn140at29-301",
.data = &samsung_ltn140at29_301,
}, {
/* sentinel */
}
Expand Down

0 comments on commit 0c93430

Please sign in to comment.