devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92
@ 2018-04-10 21:31 Paul Kocialkowski
       [not found] ` <20180410213129.24049-1-contact-W9ppeneeCTY@public.gmane.org>
  2018-04-11  6:28 ` [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92 Maxime Ripard
  0 siblings, 2 replies; 13+ messages in thread
From: Paul Kocialkowski @ 2018-04-10 21:31 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
  Cc: Rob Herring, Mark Rutland, Russell King, Maxime Ripard,
	Chen-Yu Tsai, Thierry Reding, David Airlie, Paul Kocialkowski

This adds timings for the RGB666 variant of the Innolux AT070TN92 panel,
as found on the Ainol AW1 tablet.

Signed-off-by: Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
---
 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 5591984a392b..efeb2f2162bc 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1063,6 +1063,29 @@ static const struct panel_desc innolux_at070tn92 = {
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 };
 
+static const struct drm_display_mode innolux_at070tn92_rgb666_mode = {
+	.clock = 40000,
+	.hdisplay = 800,
+	.hsync_start = 800 + 112,
+	.hsync_end = 800 + 112 + 1,
+	.htotal = 800 + 112 + 1 + 87,
+	.vdisplay = 480,
+	.vsync_start = 480 + 141,
+	.vsync_end = 480 + 141 + 1,
+	.vtotal = 480 + 141 + 1 + 38,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc innolux_at070tn92_rgb666 = {
+	.modes = &innolux_at070tn92_rgb666_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct display_timing innolux_g101ice_l01_timing = {
 	.pixelclock = { 60400000, 71100000, 74700000 },
 	.hactive = { 1280, 1280, 1280 },
@@ -2105,6 +2128,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "innolux,at070tn92",
 		.data = &innolux_at070tn92,
+	}, {
+		.compatible = "innolux,at070tn92-rgb666",
+		.data = &innolux_at070tn92_rgb666,
 	}, {
 		.compatible ="innolux,g101ice-l01",
 		.data = &innolux_g101ice_l01
-- 
2.16.3

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

end of thread, other threads:[~2018-04-12 14:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-10 21:31 [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92 Paul Kocialkowski
     [not found] ` <20180410213129.24049-1-contact-W9ppeneeCTY@public.gmane.org>
2018-04-10 21:31   ` [PATCH 2/3] ARM: dts: sun7i: Add RGB666 pins definition Paul Kocialkowski
2018-04-11 22:22     ` Giulio Benetti
2018-04-11 23:09       ` [linux-sunxi] " Paul Kocialkowski
     [not found]         ` <588060914d3b6899f6812daa4969f61bf750c91b.camel-W9ppeneeCTY@public.gmane.org>
2018-04-11 23:19           ` Giulio Benetti
2018-04-10 21:31   ` [PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet Paul Kocialkowski
     [not found]     ` <20180410213129.24049-3-contact-W9ppeneeCTY@public.gmane.org>
2018-04-10 21:35       ` Paul Kocialkowski
     [not found]         ` <7e026716a09cc267440cc93d597aefc329486c91.camel-W9ppeneeCTY@public.gmane.org>
2018-04-11  6:09           ` Paul Kocialkowski
2018-04-11  7:06     ` Maxime Ripard
2018-04-11 23:08       ` Paul Kocialkowski
     [not found]         ` <7f6d6a6a5a0cc2d37ebba046509d4f25d3bfa600.camel-W9ppeneeCTY@public.gmane.org>
2018-04-12 14:51           ` Maxime Ripard
2018-04-11  6:28 ` [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92 Maxime Ripard
2018-04-11 23:12   ` Paul Kocialkowski

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).