All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel
@ 2014-11-06 16:44 Lucas Stach
  2014-11-06 16:44 ` [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lucas Stach @ 2014-11-06 16:44 UTC (permalink / raw)
  To: Thierry Reding; +Cc: devicetree, Rob Herring, kernel, dri-devel

This patch adds support for the Innolux G121I1-L01 12.1" TFT LCD panel
to the simple-panel driver.

This panel is connected via LVDS and uses the data enable signal for
timing. Since HSYNC/VSYNC are ignored, the split between sync length and
porches is arbitrary, as long as the complete horizontal blanking interval
is 160 clocks, and the vertical blanking interval is 24 lines.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 .../bindings/panel/innolux,g121i1-l01.txt          |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/innolux,g121i1-l01.txt

diff --git a/Documentation/devicetree/bindings/panel/innolux,g121i1-l01.txt b/Documentation/devicetree/bindings/panel/innolux,g121i1-l01.txt
new file mode 100644
index 000000000000..2743b07cd2f2
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/innolux,g121i1-l01.txt
@@ -0,0 +1,7 @@
+Innolux Corporation 12.1" WXGA (1280x800) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,g121i1-l01"
+
+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 23de22f8c820..159fd8781f99 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -542,6 +542,29 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = {
 	},
 };
 
+static const struct drm_display_mode innolux_g121i1_l01_mode = {
+	.clock = 71000,
+	.hdisplay = 1280,
+	.hsync_start = 1280 + 64,
+	.hsync_end = 1280 + 64 + 32,
+	.htotal = 1280 + 64 + 32 + 64,
+	.vdisplay = 800,
+	.vsync_start = 800 + 9,
+	.vsync_end = 800 + 9 + 6,
+	.vtotal = 800 + 9 + 6 + 9,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc innolux_g121i1_l01 = {
+	.modes = &innolux_g121i1_l01_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 261,
+		.height = 163,
+	},
+};
+
 static const struct drm_display_mode innolux_n116bge_mode = {
 	.clock = 71000,
 	.hdisplay = 1366,
@@ -667,6 +690,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "foxlink,fl500wvr00-a0t",
 		.data = &foxlink_fl500wvr00_a0t,
 	}, {
+		.compatible ="innolux,g121i1-l01",
+		.data = &innolux_g121i1_l01
+	}, {
 		.compatible = "innolux,n116bge",
 		.data = &innolux_n116bge,
 	}, {
-- 
2.1.1

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

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

* [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation
  2014-11-06 16:44 [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel Lucas Stach
@ 2014-11-06 16:44 ` Lucas Stach
       [not found]   ` <1415292275-29726-2-git-send-email-l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2014-11-06 16:44 ` [PATCH 3/3] drm/panel: add Hitachi TX23D38VM0CAA 9" WVGA TFT LCD panel Lucas Stach
  2014-11-07  9:06 ` [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" " Thierry Reding
  2 siblings, 1 reply; 5+ messages in thread
From: Lucas Stach @ 2014-11-06 16:44 UTC (permalink / raw)
  To: Thierry Reding; +Cc: devicetree, Rob Herring, kernel, dri-devel

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 723999d73744..fed0c8d60748 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -66,6 +66,7 @@ gumstix	Gumstix, Inc.
 gw	Gateworks Corporation
 haoyu	Haoyu Microelectronic Co. Ltd.
 hisilicon	Hisilicon Limited.
+hit	Hitachi Ltd.
 honeywell	Honeywell
 hp	Hewlett Packard
 i2se	I2SE GmbH
-- 
2.1.1

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

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

* [PATCH 3/3] drm/panel: add Hitachi TX23D38VM0CAA 9" WVGA TFT LCD panel
  2014-11-06 16:44 [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel Lucas Stach
  2014-11-06 16:44 ` [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation Lucas Stach
@ 2014-11-06 16:44 ` Lucas Stach
  2014-11-07  9:06 ` [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" " Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Lucas Stach @ 2014-11-06 16:44 UTC (permalink / raw)
  To: Thierry Reding; +Cc: devicetree, Rob Herring, kernel, dri-devel

This patch adds support for the Hitachi TX23D38VM0CAA 9" WVGA TFT LCD panel
to the simple-panel driver.

This panel is connected via LVDS and uses the data enable signal for
timing. Since HSYNC/VSYNC are ignored, the split between sync length and
porches is arbitrary, as long as the complete horizontal blanking interval
is 256 clocks, and the vertical blanking interval is 45 lines.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 .../bindings/panel/hit,tx23d38vm0caa.txt           |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/hit,tx23d38vm0caa.txt

diff --git a/Documentation/devicetree/bindings/panel/hit,tx23d38vm0caa.txt b/Documentation/devicetree/bindings/panel/hit,tx23d38vm0caa.txt
new file mode 100644
index 000000000000..04caaae19af6
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/hit,tx23d38vm0caa.txt
@@ -0,0 +1,7 @@
+Hitachi Ltd. Corporation 9" WVGA (800x480) TFT LCD panel
+
+Required properties:
+- compatible: should be "hit,tx23d38vm0caa"
+
+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 159fd8781f99..7d0f5390bb23 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -542,6 +542,29 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = {
 	},
 };
 
+static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
+	.clock = 33333,
+	.hdisplay = 800,
+	.hsync_start = 800 + 85,
+	.hsync_end = 800 + 85 + 86,
+	.htotal = 800 + 85 + 86 + 85,
+	.vdisplay = 480,
+	.vsync_start = 480 + 16,
+	.vsync_end = 480 + 16 + 13,
+	.vtotal = 480 + 16 + 13 + 16,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc hitachi_tx23d38vm0caa = {
+	.modes = &hitachi_tx23d38vm0caa_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 195,
+		.height = 117,
+	},
+};
+
 static const struct drm_display_mode innolux_g121i1_l01_mode = {
 	.clock = 71000,
 	.hdisplay = 1280,
@@ -690,6 +713,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "foxlink,fl500wvr00-a0t",
 		.data = &foxlink_fl500wvr00_a0t,
 	}, {
+		.compatible = "hit,tx23d38vm0caa",
+		.data = &hitachi_tx23d38vm0caa
+	}, {
 		.compatible ="innolux,g121i1-l01",
 		.data = &innolux_g121i1_l01
 	}, {
-- 
2.1.1

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

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

* Re: [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation
       [not found]   ` <1415292275-29726-2-git-send-email-l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2014-11-06 17:18     ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2014-11-06 17:18 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Thierry Reding, Rob Herring,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	devicetree-u79uwXL29TY76Z2rM5mHXA, kernel-bIcnvbaLZ9MEGnE8C9+IrQ

On Thu, Nov 6, 2014 at 10:44 AM, Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote:
> Signed-off-by: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>

Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

> ---
>  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index 723999d73744..fed0c8d60748 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -66,6 +66,7 @@ gumstix       Gumstix, Inc.
>  gw     Gateworks Corporation
>  haoyu  Haoyu Microelectronic Co. Ltd.
>  hisilicon      Hisilicon Limited.
> +hit    Hitachi Ltd.
>  honeywell      Honeywell
>  hp     Hewlett Packard
>  i2se   I2SE GmbH
> --
> 2.1.1
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel
  2014-11-06 16:44 [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel Lucas Stach
  2014-11-06 16:44 ` [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation Lucas Stach
  2014-11-06 16:44 ` [PATCH 3/3] drm/panel: add Hitachi TX23D38VM0CAA 9" WVGA TFT LCD panel Lucas Stach
@ 2014-11-07  9:06 ` Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2014-11-07  9:06 UTC (permalink / raw)
  To: Lucas Stach; +Cc: devicetree, Rob Herring, kernel, dri-devel


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

On Thu, Nov 06, 2014 at 05:44:33PM +0100, Lucas Stach wrote:
> This patch adds support for the Innolux G121I1-L01 12.1" TFT LCD panel
> to the simple-panel driver.
> 
> This panel is connected via LVDS and uses the data enable signal for
> timing. Since HSYNC/VSYNC are ignored, the split between sync length and
> porches is arbitrary, as long as the complete horizontal blanking interval
> is 160 clocks, and the vertical blanking interval is 24 lines.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  .../bindings/panel/innolux,g121i1-l01.txt          |  7 ++++++
>  drivers/gpu/drm/panel/panel-simple.c               | 26 ++++++++++++++++++++++
>  2 files changed, 33 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/panel/innolux,g121i1-l01.txt

Applied all three patches to the drm/panel/for-next branch.

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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06 16:44 [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" TFT LCD panel Lucas Stach
2014-11-06 16:44 ` [PATCH 2/3] of: Add vendor prefix for Hitachi Ltd. Corporation Lucas Stach
     [not found]   ` <1415292275-29726-2-git-send-email-l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2014-11-06 17:18     ` Rob Herring
2014-11-06 16:44 ` [PATCH 3/3] drm/panel: add Hitachi TX23D38VM0CAA 9" WVGA TFT LCD panel Lucas Stach
2014-11-07  9:06 ` [PATCH 1/3] drm/panel: add support for Innolux G121I1-L01 12.1" " 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.