devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/panel: simple: Add support for G121X1-L03
@ 2015-11-18 20:57 Akshay Bhat
  2015-11-19 14:56 ` Rob Herring
  2015-11-23 11:20 ` Thierry Reding
  0 siblings, 2 replies; 3+ messages in thread
From: Akshay Bhat @ 2015-11-18 20:57 UTC (permalink / raw)
  To: dri-devel
  Cc: mark.rutland, devicetree, justin.waters, pawel.moll,
	ijc+devicetree, linux-kernel, robh+dt, galak, Akshay Bhat

Add support for Innolux CheMei 12" G121X1-L03 XGA LVDS display.

Datasheet: http://www.azdisplays.com/PDF/G121X1-L03.pdf
Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com>
---
 .../bindings/display/panel/innolux,g121x1-l03.txt  |  7 +++++
 drivers/gpu/drm/panel/panel-simple.c               | 31 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt

diff --git a/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
new file mode 100644
index 0000000..6497446
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
@@ -0,0 +1,7 @@
+Innolux Corporation 12.1" G121X1-L03 XGA (1024x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,g121x1-l03"
+
+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 f97b73e..d1821f7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -832,6 +832,34 @@ static const struct panel_desc innolux_g121i1_l01 = {
 	},
 };
 
+static const struct drm_display_mode innolux_g121x1_l03_mode = {
+	.clock = 65000,
+	.hdisplay = 1024,
+	.hsync_start = 1024 + 0,
+	.hsync_end = 1024 + 1,
+	.htotal = 1024 + 0 + 1 + 320,
+	.vdisplay = 768,
+	.vsync_start = 768 + 38,
+	.vsync_end = 768 + 38 + 1,
+	.vtotal = 768 + 38 + 1 + 0,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc innolux_g121x1_l03 = {
+	.modes = &innolux_g121x1_l03_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 246,
+		.height = 185,
+	},
+	.delay = {
+		.enable = 200,
+		.unprepare = 200,
+		.disable = 400,
+	},
+};
+
 static const struct drm_display_mode innolux_n116bge_mode = {
 	.clock = 76420,
 	.hdisplay = 1366,
@@ -1158,6 +1186,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible ="innolux,g121i1-l01",
 		.data = &innolux_g121i1_l01
 	}, {
+		.compatible = "innolux,g121x1-l03",
+		.data = &innolux_g121x1_l03,
+	}, {
 		.compatible = "innolux,n116bge",
 		.data = &innolux_n116bge,
 	}, {
-- 
2.6.3

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

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

* Re: [PATCH] drm/panel: simple: Add support for G121X1-L03
  2015-11-18 20:57 [PATCH] drm/panel: simple: Add support for G121X1-L03 Akshay Bhat
@ 2015-11-19 14:56 ` Rob Herring
  2015-11-23 11:20 ` Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2015-11-19 14:56 UTC (permalink / raw)
  To: Akshay Bhat
  Cc: mark.rutland, devicetree, justin.waters, pawel.moll,
	ijc+devicetree, linux-kernel, dri-devel, galak

On Wed, Nov 18, 2015 at 03:57:47PM -0500, Akshay Bhat wrote:
> Add support for Innolux CheMei 12" G121X1-L03 XGA LVDS display.
> 
> Datasheet: http://www.azdisplays.com/PDF/G121X1-L03.pdf
> Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com>

Acked-by: Rob Herring <robh@kernel.org>

> ---
>  .../bindings/display/panel/innolux,g121x1-l03.txt  |  7 +++++
>  drivers/gpu/drm/panel/panel-simple.c               | 31 ++++++++++++++++++++++
>  2 files changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
> 
> diff --git a/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
> new file mode 100644
> index 0000000..6497446
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt
> @@ -0,0 +1,7 @@
> +Innolux Corporation 12.1" G121X1-L03 XGA (1024x768) TFT LCD panel
> +
> +Required properties:
> +- compatible: should be "innolux,g121x1-l03"
> +
> +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 f97b73e..d1821f7 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -832,6 +832,34 @@ static const struct panel_desc innolux_g121i1_l01 = {
>  	},
>  };
>  
> +static const struct drm_display_mode innolux_g121x1_l03_mode = {
> +	.clock = 65000,
> +	.hdisplay = 1024,
> +	.hsync_start = 1024 + 0,
> +	.hsync_end = 1024 + 1,
> +	.htotal = 1024 + 0 + 1 + 320,
> +	.vdisplay = 768,
> +	.vsync_start = 768 + 38,
> +	.vsync_end = 768 + 38 + 1,
> +	.vtotal = 768 + 38 + 1 + 0,
> +	.vrefresh = 60,
> +};
> +
> +static const struct panel_desc innolux_g121x1_l03 = {
> +	.modes = &innolux_g121x1_l03_mode,
> +	.num_modes = 1,
> +	.bpc = 6,
> +	.size = {
> +		.width = 246,
> +		.height = 185,
> +	},
> +	.delay = {
> +		.enable = 200,
> +		.unprepare = 200,
> +		.disable = 400,
> +	},
> +};
> +
>  static const struct drm_display_mode innolux_n116bge_mode = {
>  	.clock = 76420,
>  	.hdisplay = 1366,
> @@ -1158,6 +1186,9 @@ static const struct of_device_id platform_of_match[] = {
>  		.compatible ="innolux,g121i1-l01",
>  		.data = &innolux_g121i1_l01
>  	}, {
> +		.compatible = "innolux,g121x1-l03",
> +		.data = &innolux_g121x1_l03,
> +	}, {
>  		.compatible = "innolux,n116bge",
>  		.data = &innolux_n116bge,
>  	}, {
> -- 
> 2.6.3
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/panel: simple: Add support for G121X1-L03
  2015-11-18 20:57 [PATCH] drm/panel: simple: Add support for G121X1-L03 Akshay Bhat
  2015-11-19 14:56 ` Rob Herring
@ 2015-11-23 11:20 ` Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2015-11-23 11:20 UTC (permalink / raw)
  To: Akshay Bhat
  Cc: mark.rutland, devicetree, justin.waters, pawel.moll,
	ijc+devicetree, linux-kernel, dri-devel, robh+dt, galak


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

On Wed, Nov 18, 2015 at 03:57:47PM -0500, Akshay Bhat wrote:
> Add support for Innolux CheMei 12" G121X1-L03 XGA LVDS display.
> 
> Datasheet: http://www.azdisplays.com/PDF/G121X1-L03.pdf
> Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com>
> ---
>  .../bindings/display/panel/innolux,g121x1-l03.txt  |  7 +++++
>  drivers/gpu/drm/panel/panel-simple.c               | 31 ++++++++++++++++++++++
>  2 files changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt

Applied, thanks.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- 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] 3+ messages in thread

end of thread, other threads:[~2015-11-23 11:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 20:57 [PATCH] drm/panel: simple: Add support for G121X1-L03 Akshay Bhat
2015-11-19 14:56 ` Rob Herring
2015-11-23 11:20 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).