All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel/simple: add optronics B101XTN01.0
@ 2014-08-06 20:31 Rob Clark
  2014-08-06 20:40 ` Rob Clark
  2014-08-07  7:33 ` Thierry Reding
  0 siblings, 2 replies; 5+ messages in thread
From: Rob Clark @ 2014-08-06 20:31 UTC (permalink / raw)
  To: dri-devel

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index a251361..16119ba 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode optronics_lvds_mode = {
+	.clock = 72000,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 20,
+	.hsync_end = 1366 + 20 + 70,
+	.htotal = 1366 + 20 + 70,
+	.vdisplay = 768,
+	.vsync_start = 768 + 14,
+	.vsync_end = 768 + 14 + 42,
+	.vtotal = 768 + 14 + 42,
+	.vrefresh = 60,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc optronics_lvds = {
+	.modes = &optronics_lvds_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 1366,
+		.height = 768,
+	},
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "optronics,b101xtn01",
+		.data = &optronics_lvds,
+	}, {
+	}, {
 		.compatible = "simple-panel",
 	}, {
 		/* sentinel */
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-07 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 20:31 [PATCH] drm/panel/simple: add optronics B101XTN01.0 Rob Clark
2014-08-06 20:40 ` Rob Clark
2014-08-07  7:33 ` Thierry Reding
2014-08-07 12:50   ` Rob Clark
2014-08-07 15:08     ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.