All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: Thierry Reding <thierry.reding@gmail.com>,
	David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	tomi.valkeinen@ti.com, imirkin@alum.mit.edu,
	marek.belisko@gmail.com, Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org, letux-kernel@openphoenux.org,
	devicetree@vger.kernel.org,
	"H. Nikolaus Schaller" <hns@goldelico.com>
Subject: [PATCH v3 2/5] drm/panel: simple: Add Ortustech COM37H3M panel support
Date: Fri,  7 Jun 2019 13:11:08 +0200	[thread overview]
Message-ID: <43b47034b618cff26cea0484591c6deafb7f0685.1559905870.git.hns@goldelico.com> (raw)
In-Reply-To: <cover.1559905870.git.hns@goldelico.com>

The change adds support for the Ortustech COM37H3M05DTC/99DTC 3.7" TFT LCD panel.

Tested on Letux3704.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 5b27829c5a78..1fb74908a269 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2007,6 +2007,33 @@ static const struct panel_desc ontat_yx700wv03 = {
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
 };
 
+static const struct drm_display_mode ortustech_com37h3m_mode  = {
+	.clock = 22153,
+	.hdisplay = 480,
+	.hsync_start = 480 + 8,
+	.hsync_end = 480 + 8 + 10,
+	.htotal = 480 + 8 + 10 + 10,
+	.vdisplay = 640,
+	.vsync_start = 640 + 4,
+	.vsync_end = 640 + 4 + 3,
+	.vtotal = 640 + 4 + 3 + 4,
+	.vrefresh = 60,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc ortustech_com37h3m = {
+	.modes = &ortustech_com37h3m_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 56,	/* 56.16mm */
+		.height = 75,	/* 74.88mm */
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE |
+		     DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
+};
+
 static const struct drm_display_mode ortustech_com43h4m85ulc_mode  = {
 	.clock = 25000,
 	.hdisplay = 480,
@@ -2786,6 +2813,12 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "ontat,yx700wv03",
 		.data = &ontat_yx700wv03,
+	}, {
+		.compatible = "ortustech,com37h3m05dtc",
+		.data = &ortustech_com37h3m,
+	}, {
+		.compatible = "ortustech,com37h3m99dtc",
+		.data = &ortustech_com37h3m,
 	}, {
 		.compatible = "ortustech,com43h4m85ulc",
 		.data = &ortustech_com43h4m85ulc,
-- 
2.19.1


  parent reply	other threads:[~2019-06-07 11:11 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-07 11:11 [PATCH v3 0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b H. Nikolaus Schaller
2019-06-07 11:11 ` [PATCH v3 1/5] drm/panel: simple: Add Sharp LQ070Y3DG3B panel support H. Nikolaus Schaller
2019-06-25 20:39   ` Sam Ravnborg
2019-06-25 20:39     ` Sam Ravnborg
2019-06-07 11:11 ` H. Nikolaus Schaller [this message]
2019-06-25 20:40   ` [PATCH v3 2/5] drm/panel: simple: Add Ortustech COM37H3M " Sam Ravnborg
2019-06-07 11:11 ` [PATCH v3 3/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel H. Nikolaus Schaller
2019-06-25 20:26   ` [PATCH v3 3/5] dt-bindings: drm/panel: simple: add ortustech, com37h3m05dtc panel Sam Ravnborg
2019-07-09  1:57   ` [PATCH v3 3/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel Rob Herring
2019-07-09  1:57     ` Rob Herring
2019-06-07 11:11 ` [PATCH v3 4/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel H. Nikolaus Schaller
2019-06-25 20:40   ` [PATCH v3 4/5] dt-bindings: drm/panel: simple: add ortustech, com37h3m99dtc panel Sam Ravnborg
2019-06-25 20:40     ` Sam Ravnborg
2019-07-09  1:58   ` [PATCH v3 4/5] dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel Rob Herring
2019-07-09  1:58     ` Rob Herring
2019-06-07 11:11 ` [PATCH v3 5/5] dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel H. Nikolaus Schaller
2019-06-25 20:41   ` [PATCH v3 5/5] dt-bindings: drm/panel: simple: add sharp, lq070y3dg3b panel Sam Ravnborg
2019-06-25 20:41     ` Sam Ravnborg
2019-07-09  1:58   ` [PATCH v3 5/5] dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel Rob Herring
2019-07-09  1:58     ` Rob Herring
2019-06-24 18:44 ` [PATCH v3 0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b H. Nikolaus Schaller
2019-06-25 20:43   ` Sam Ravnborg
2019-06-26  7:33     ` Sam Ravnborg
2019-06-26  7:33       ` Sam Ravnborg
2019-06-26 12:40       ` H. Nikolaus Schaller
2019-07-17 17:33         ` [Letux-kernel] " H. Nikolaus Schaller
2019-07-17 17:33           ` H. Nikolaus Schaller
2019-07-17 18:14           ` Sam Ravnborg
2019-07-17 18:14             ` Sam Ravnborg
2019-07-23  6:59             ` H. Nikolaus Schaller
2019-07-23  6:59               ` H. Nikolaus Schaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43b47034b618cff26cea0484591c6deafb7f0685.1559905870.git.hns@goldelico.com \
    --to=hns@goldelico.com \
    --cc=airlied@linux.ie \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=imirkin@alum.mit.edu \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=marek.belisko@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.