devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90
@ 2018-05-07 22:04 Paul Kocialkowski
       [not found] ` <20180507220413.21990-1-contact-W9ppeneeCTY@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Kocialkowski @ 2018-05-07 22:04 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel, dri-devel,
	linux-sunxi
  Cc: Mark Rutland, Maxime Ripard, Paul Kocialkowski, David Airlie,
	Chen-Yu Tsai, Rob Herring, Thierry Reding

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

The panel also supports RGB888 output. When RGB666 mode is used instead,
the two extra lanes per component are grounded.

In the future, it might become necessary to introduce a dedicated
device-tree property to specify the bus format to use instead of the
default one for the panel. This will allow supporting different bus
formats for the same panel modes.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 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 cbf1ab404ee7..32e30d5a8f08 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_at043tn24 = {
 	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
 };
 
+static const struct drm_display_mode innolux_at070tn90_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_at070tn90 = {
+	.modes = &innolux_at070tn90_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct drm_display_mode innolux_at070tn92_mode = {
 	.clock = 33333,
 	.hdisplay = 800,
@@ -2151,6 +2174,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "innolux,at043tn24",
 		.data = &innolux_at043tn24,
+	}, {
+		.compatible = "innolux,at070tn90",
+		.data = &innolux_at070tn90,
 	}, {
 		.compatible = "innolux,at070tn92",
 		.data = &innolux_at070tn92,
-- 
2.17.0

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

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

end of thread, other threads:[~2018-05-19  0:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-07 22:04 [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90 Paul Kocialkowski
     [not found] ` <20180507220413.21990-1-contact-W9ppeneeCTY@public.gmane.org>
2018-05-07 22:04   ` [PATCH v4 2/3] ARM: dts: sun7i: Add RGB666 pins definition Paul Kocialkowski
2018-05-07 22:04   ` [PATCH v4 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet Paul Kocialkowski
     [not found]     ` <20180507220413.21990-3-contact-W9ppeneeCTY@public.gmane.org>
2018-05-11 14:36       ` Maxime Ripard
2018-05-14 20:36         ` Paul Kocialkowski
     [not found]           ` <0da5787f0ce2309a74db88820bc58b3b3501c451.camel-W9ppeneeCTY@public.gmane.org>
2018-05-18  7:14             ` Maxime Ripard
2018-05-19  0:26               ` Brüns, Stefan
2018-05-09  7:12   ` [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90 Maxime Ripard
2018-05-09 11:31     ` Paul Kocialkowski
     [not found]       ` <c8ab5f472881063b90abe9461933baf6ee325dcd.camel-W9ppeneeCTY@public.gmane.org>
2018-05-11  8:59         ` Maxime Ripard
2018-05-14 20:40           ` Paul Kocialkowski
     [not found]             ` <abeac1ee792b8f063001c4c280ca7f0167ac59be.camel-W9ppeneeCTY@public.gmane.org>
2018-05-15 13:35               ` Maxime Ripard

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