All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: simple: Add AUO B116XW03 panel support
@ 2014-09-01 10:10 Ajay Kumar
  2014-11-06  9:10 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Ajay Kumar @ 2014-09-01 10:10 UTC (permalink / raw)
  To: dri-devel, linux-samsung-soc, devicetree
  Cc: thierry.reding, seanpaul, ajaynumb, joshi, prashanth.g, Ajay Kumar

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>
---
 .../devicetree/bindings/panel/auo,b116xw03.txt     |    7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               |   25 ++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/auo,b116xw03.txt

diff --git a/Documentation/devicetree/bindings/panel/auo,b116xw03.txt b/Documentation/devicetree/bindings/panel/auo,b116xw03.txt
new file mode 100644
index 0000000..690d0a5
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/auo,b116xw03.txt
@@ -0,0 +1,7 @@
+AU Optronics Corporation 11.6" HD (1366x768) color TFT-LCD panel
+
+Required properties:
+- compatible: should be "auo,b116xw03"
+
+This binding is compatible with the simple-panel binding, which is specified
+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 4ce1db0..51566e0 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -352,6 +352,28 @@ static const struct panel_desc auo_b101aw03 = {
 	},
 };
 
+static const struct drm_display_mode auo_b116xw03_mode = {
+	.clock = 70589,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 40,
+	.hsync_end = 1366 + 40 + 40,
+	.htotal = 1366 + 40 + 40 + 32,
+	.vdisplay = 768,
+	.vsync_start = 768 + 10,
+	.vsync_end = 768 + 10 + 12,
+	.vtotal = 768 + 10 + 12 + 6,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc auo_b116xw03 = {
+	.modes = &auo_b116xw03_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 256,
+		.height = 144,
+	},
+};
+
 static const struct drm_display_mode auo_b133xtn01_mode = {
 	.clock = 69500,
 	.hdisplay = 1366,
@@ -616,6 +638,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "auo,b101aw03",
 		.data = &auo_b101aw03,
 	}, {
+		.compatible = "auo,b116xw03",
+		.data = &auo_b116xw03,
+	}, {
 		.compatible = "auo,b133htn01",
 		.data = &auo_b133htn01,
 	}, {
-- 
1.7.9.5

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

* Re: [PATCH] drm/panel: simple: Add AUO B116XW03 panel support
  2014-09-01 10:10 [PATCH] drm/panel: simple: Add AUO B116XW03 panel support Ajay Kumar
@ 2014-11-06  9:10 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2014-11-06  9:10 UTC (permalink / raw)
  To: Ajay Kumar
  Cc: devicetree, linux-samsung-soc, seanpaul, joshi, dri-devel,
	ajaynumb, prashanth.g


[-- Attachment #1.1: Type: text/plain, Size: 712 bytes --]

On Mon, Sep 01, 2014 at 03:40:02PM +0530, Ajay Kumar wrote:
> 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>
> ---
>  .../devicetree/bindings/panel/auo,b116xw03.txt     |    7 ++++++
>  drivers/gpu/drm/panel/panel-simple.c               |   25 ++++++++++++++++++++
>  2 files changed, 32 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/panel/auo,b116xw03.txt

Applied after adding the missing .bpc field in the panel descriptor. I
set it to 6 according to the datasheet.

Thierry

[-- Attachment #1.2: Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2014-11-06  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 10:10 [PATCH] drm/panel: simple: Add AUO B116XW03 panel support Ajay Kumar
2014-11-06  9:10 ` 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.