devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/panel: simple: Add support for Shelly SCA07010-BFN-LNN
@ 2015-03-19 13:43 Nicolas Ferre
  2015-03-19 13:43 ` [PATCH 2/2] drm/panel: simple: Add support for Innolux AT043TN24 Nicolas Ferre
  2015-03-24 10:57 ` [PATCH 1/2] drm/panel: simple: Add support for Shelly SCA07010-BFN-LNN Thierry Reding
  0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Ferre @ 2015-03-19 13:43 UTC (permalink / raw)
  To: dri-devel, linux-arm-kernel, thierry.reding
  Cc: linux-kernel, devicetree, Boris BREZILLON, Nicolas Ferre

From: Boris BREZILLON <boris.brezillon@free-electrons.com>

The Shelly SCA07010-BFN-LNN is a 7.0" WVGA TFT LCD panel.
This panel with backlight is found in PDA 7" LCD screen (TM70xx series for
instance).

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
 .../bindings/panel/shelly,sca07010-bfn-lnn.txt     |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt

diff --git a/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt b/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt
new file mode 100644
index 000000000000..fc1ea9e26c94
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt
@@ -0,0 +1,7 @@
+Shelly SCA07010-BFN-LNN 7.0" WVGA TFT LCD panel
+
+Required properties:
+- compatible: should be "shelly,sca07010-bfn-lnn"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 3e9aa628169c..6e4a85f50d71 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -802,6 +802,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
+	.clock = 33300,
+	.hdisplay = 800,
+	.hsync_start = 800 + 1,
+	.hsync_end = 800 + 1 + 64,
+	.htotal = 800 + 1 + 64 + 64,
+	.vdisplay = 480,
+	.vsync_start = 480 + 1,
+	.vsync_end = 480 + 1 + 23,
+	.vtotal = 480 + 1 + 23 + 22,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc shelly_sca07010_bfn_lnn = {
+	.modes = &shelly_sca07010_bfn_lnn_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 152,
+		.height = 91,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -867,6 +890,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "shelly,sca07010-bfn-lnn",
+		.data = &shelly_sca07010_bfn_lnn,
+	}, {
 		/* sentinel */
 	}
 };
-- 
2.1.3

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

end of thread, other threads:[~2015-04-29 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 13:43 [PATCH 1/2] drm/panel: simple: Add support for Shelly SCA07010-BFN-LNN Nicolas Ferre
2015-03-19 13:43 ` [PATCH 2/2] drm/panel: simple: Add support for Innolux AT043TN24 Nicolas Ferre
2015-03-24 10:58   ` Thierry Reding
2015-03-24 10:57 ` [PATCH 1/2] drm/panel: simple: Add support for Shelly SCA07010-BFN-LNN Thierry Reding
2015-03-24 16:12   ` [PATCH] devicetree: Add vendor prefix for Shelly, Inc Nicolas Ferre
2015-04-29 15:17     ` Nicolas Ferre
2015-04-29 15:30       ` Rob Herring

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