dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description
@ 2019-04-16 10:16 Marco Felsch
  2019-04-16 10:16 ` [PATCH 2/2] drm/panel: simple: Add support for EDT ET035012DM6 Marco Felsch
  2019-04-23 12:23 ` [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description Thierry Reding
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Felsch @ 2019-04-16 10:16 UTC (permalink / raw)
  To: thierry.reding, robh+dt, mark.rutland, sam; +Cc: devicetree, dri-devel, kernel

Add support for the ET035012DM6 3.5" QVGA TFT LCD panel. The datasheet
can be retrieved online:

https://www.glynshop.com/erp/owweb/Daten/DSS/EDT/Products/ \
Specifications/Active%20Displays/ET035012DM6.pdf

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 .../devicetree/bindings/display/panel/edt,et-series.txt    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/edt,et-series.txt b/Documentation/devicetree/bindings/display/panel/edt,et-series.txt
index f56b99ebd9be..eb3da7313bb3 100644
--- a/Documentation/devicetree/bindings/display/panel/edt,et-series.txt
+++ b/Documentation/devicetree/bindings/display/panel/edt,et-series.txt
@@ -6,6 +6,13 @@ Display bindings for EDT Display Technology Corp. Displays which are
 compatible with the simple-panel binding, which is specified in
 simple-panel.txt
 
+3,5" QVGA TFT Panels
+--------------------
++-----------------+---------------------+-------------------------------------+
+| Identifier      | compatbile          | description                         |
++=================+=====================+=====================================+
+| ET035012DM6     | edt,et035012dm6     | 3.5" QVGA TFT LCD panel             |
++-----------------+---------------------+-------------------------------------+
 
 5,7" WVGA TFT Panels
 --------------------
-- 
2.20.1

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

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

* [PATCH 2/2] drm/panel: simple: Add support for EDT ET035012DM6
  2019-04-16 10:16 [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description Marco Felsch
@ 2019-04-16 10:16 ` Marco Felsch
  2019-04-23 12:23 ` [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Felsch @ 2019-04-16 10:16 UTC (permalink / raw)
  To: thierry.reding, robh+dt, mark.rutland, sam
  Cc: devicetree, dri-devel, kernel, Andreas Pretzsch

From: Andreas Pretzsch <apr@cn-eng.de>

Add support for the EDT ET035012DM6 3.5" 320x240 QVGA 24-bit RGB TFT.

The datasheet with all specs can be retrieved online:
https://www.glynshop.com/erp/owweb/Daten/DSS/EDT/Products/ \
Specifications/Active%20Displays/ET035012DM6.pdf

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
[m.felsch@pengutronix.de: adapt commit message]
[m.felsch@pengutronix.de: rm unecessary comments]
[m.felsch@pengutronix.de: correct data_enable polarity]
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 8fee7a8b29d9..b4ead9cf3d14 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1096,6 +1096,32 @@ static const struct panel_desc dlc_dlc1010gig = {
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
 };
 
+static const struct drm_display_mode edt_et035012dm6_mode = {
+	.clock = 6500,
+	.hdisplay = 320,
+	.hsync_start = 320 + 20,
+	.hsync_end = 320 + 20 + 30,
+	.htotal = 320 + 20 + 68,
+	.vdisplay = 240,
+	.vsync_start = 240 + 4,
+	.vsync_end = 240 + 4 + 4,
+	.vtotal = 240 + 4 + 4 + 14,
+	.vrefresh = 60,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc edt_et035012dm6 = {
+	.modes = &edt_et035012dm6_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 70,
+		.height = 52,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_NEGEDGE,
+};
+
 static const struct drm_display_mode edt_et057090dhu_mode = {
 	.clock = 25175,
 	.hdisplay = 640,
@@ -2645,6 +2671,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "dlc,dlc1010gig",
 		.data = &dlc_dlc1010gig,
+	}, {
+		.compatible = "edt,et035012dm6",
+		.data = &edt_et035012dm6,
 	}, {
 		.compatible = "edt,et057090dhu",
 		.data = &edt_et057090dhu,
-- 
2.20.1

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

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

* Re: [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description
  2019-04-16 10:16 [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description Marco Felsch
  2019-04-16 10:16 ` [PATCH 2/2] drm/panel: simple: Add support for EDT ET035012DM6 Marco Felsch
@ 2019-04-23 12:23 ` Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2019-04-23 12:23 UTC (permalink / raw)
  To: Marco Felsch; +Cc: mark.rutland, devicetree, dri-devel, robh+dt, kernel, sam


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

On Tue, Apr 16, 2019 at 12:16:29PM +0200, Marco Felsch wrote:
> Add support for the ET035012DM6 3.5" QVGA TFT LCD panel. The datasheet
> can be retrieved online:
> 
> https://www.glynshop.com/erp/owweb/Daten/DSS/EDT/Products/ \
> Specifications/Active%20Displays/ET035012DM6.pdf
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  .../devicetree/bindings/display/panel/edt,et-series.txt    | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied both patches, thanks.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

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

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

end of thread, other threads:[~2019-04-23 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 10:16 [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description Marco Felsch
2019-04-16 10:16 ` [PATCH 2/2] drm/panel: simple: Add support for EDT ET035012DM6 Marco Felsch
2019-04-23 12:23 ` [PATCH 1/2] dt-bindings: display: add EDT ET035012DM6 display description 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).