dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org
Cc: "Douglas Anderson" <dianders@chromium.org>,
	"Bjorn Andersson" <bjorn.andersson@linaro.org>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Søren Andersen" <san@skov.dk>, "Sam Ravnborg" <sam@ravnborg.org>,
	"Sebastian Reichel" <sebastian.reichel@collabora.com>
Subject: [PATCH v1 4/6] drm: panel-simple: add Hitachi 3.5" QVGA panel
Date: Mon,  1 Jun 2020 10:33:07 +0200	[thread overview]
Message-ID: <20200601083309.712606-5-sam@ravnborg.org> (raw)
In-Reply-To: <20200601083309.712606-1-sam@ravnborg.org>

This panel is used on evaluation boards for Atmel at91sam9261 and
at91sam6263.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
---
 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 8624bb80108c..25c96639631f 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1813,6 +1813,32 @@ static const struct panel_desc hannstar_hsd100pxn1 = {
 	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
+static const struct drm_display_mode hitachi_tx09d71vm1cca_mode = {
+	.clock = 4965000,
+	.hdisplay = 240,
+	.hsync_start = 240 + 0,
+	.hsync_end = 240 + 0 + 5,
+	.htotal = 240 + 0 + 5 + 1,
+	.vdisplay = 320,
+	.vsync_start = 320 + 0,
+	.vsync_end = 320 + 0 + 1,
+	.vtotal = 320 + 0 + 1 + 1,
+	.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc hitachi_tx09d71vm1cca = {
+	.modes = &hitachi_tx09d71vm1cca_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 54,
+		.height = 72,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_NEGEDGE,
+	.connector_type = DRM_MODE_CONNECTOR_DPI,
+};
+
 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
 	.clock = 33333,
 	.hdisplay = 800,
@@ -3737,6 +3763,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "hannstar,hsd100pxn1",
 		.data = &hannstar_hsd100pxn1,
+	}, {
+		.compatible = "hit,tx09d71vm1cca",
+		.data = &hitachi_tx09d71vm1cca,
 	}, {
 		.compatible = "hit,tx23d38vm0caa",
 		.data = &hitachi_tx23d38vm0caa
-- 
2.25.1

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

  parent reply	other threads:[~2020-06-01  8:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01  8:33 [PATCH v1 0/6] drm: add a few simple panels Sam Ravnborg
2020-06-01  8:33 ` [PATCH v1 1/6] dt-bindings: panel: add Seiko 70WVW2T 7" panel Sam Ravnborg
2020-06-09 22:31   ` Rob Herring
2020-06-01  8:33 ` [PATCH v1 2/6] drm: panel-simple: add Seiko 70WVW2T 7" simple panel Sam Ravnborg
2020-06-02  0:31   ` Doug Anderson
2020-06-02 14:55     ` Emil Velikov
2020-06-05 17:00     ` Sam Ravnborg
2020-06-01  8:33 ` [PATCH v1 3/6] dt-bindings: panel: add Hitachi 3,5" QVGA panel Sam Ravnborg
2020-06-09 22:31   ` Rob Herring
2020-06-01  8:33 ` Sam Ravnborg [this message]
2020-06-02  0:30   ` [PATCH v1 4/6] drm: panel-simple: add Hitachi 3.5" " Doug Anderson
2020-06-05 17:19     ` Sam Ravnborg
2020-06-01  8:33 ` [PATCH v1 5/6] dt-bindings: panel: add LOGIC Technologies panels Sam Ravnborg
2020-06-09 22:32   ` Rob Herring
2020-06-01  8:33 ` [PATCH v1 6/6] drm: panel-simple: " Sam Ravnborg
2020-06-02  0:30   ` Doug Anderson

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=20200601083309.712606-5-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dianders@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=san@skov.dk \
    --cc=sebastian.reichel@collabora.com \
    --cc=thierry.reding@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox