All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: linux-tegra@vger.kernel.org
Cc: "Stephen Warren" <swarren@wwwdotorg.org>,
	"Javier Martinez Canillas" <javier.martinez@collabora.co.uk>,
	"Simon Glass" <sjg@chromium.org>,
	"Dylan Reid" <dgreid@chromium.org>,
	"Andrew Bresticker" <abrestic@chromium.org>,
	"Stéphane Marchesin" <marcheu@chromium.org>,
	"Tomeu Vizoso" <tomeu.vizoso@collabora.com>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Pawel Moll" <pawel.moll@arm.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
	"Kumar Gala" <galak@codeaurora.org>,
	"David Airlie" <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v4 03/11] drm/panel: add support for Samsung LTN140AT29 panel
Date: Wed, 11 Feb 2015 16:06:35 +0100	[thread overview]
Message-ID: <1423667220-1062-4-git-send-email-tomeu.vizoso@collabora.com> (raw)
In-Reply-To: <1423667220-1062-1-git-send-email-tomeu.vizoso@collabora.com>

From: Stéphane Marchesin <marcheu@chromium.org>

This panel is used by the Nyan Blaze board and supported by the simple-panel
driver.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
[tomeu.vizoso@collabora.com: add device tree binding document]
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
 .../bindings/panel/samsung,ltn140at29-301.txt      |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt

diff --git a/Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt b/Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt
new file mode 100644
index 0000000..e7f969d
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt
@@ -0,0 +1,7 @@
+Samsung Electronics 14" WXGA (1366x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "samsung,ltn140at29-301"
+
+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 39806c3..2da2285 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -779,6 +779,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode samsung_ltn140at29_301_mode = {
+	.clock = 76300,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 64,
+	.hsync_end = 1366 + 64 + 48,
+	.htotal = 1366 + 64 + 48 + 128,
+	.vdisplay = 768,
+	.vsync_start = 768 + 2,
+	.vsync_end = 768 + 2 + 5,
+	.vtotal = 768 + 2 + 5 + 17,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc samsung_ltn140at29_301 = {
+	.modes = &samsung_ltn140at29_301_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 320,
+		.height = 187,
+	},
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -841,6 +864,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "samsung,ltn140at29-301",
+		.data = &samsung_ltn140at29_301,
+	}, {
 		/* sentinel */
 	}
 };
-- 
1.9.3

  parent reply	other threads:[~2015-02-11 15:06 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11 15:06 [PATCH v4 00/11] Improvements to Tegra-based Chromebook support Tomeu Vizoso
2015-02-11 15:06 ` Tomeu Vizoso
2015-02-11 15:06 ` Tomeu Vizoso
     [not found] ` <1423667220-1062-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-02-11 15:06   ` [PATCH v4 01/11] ARM: tegra: Change model of sound card in Nyan Big Tomeu Vizoso
2015-02-11 15:06     ` Tomeu Vizoso
2015-02-11 15:06     ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 02/11] ARM: tegra: Move out nyan-generic parts out from the nyan-big DT Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
     [not found]   ` <1423667220-1062-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-02-11 17:26     ` Andrew Bresticker
2015-02-11 17:26       ` Andrew Bresticker
2015-02-11 17:26       ` Andrew Bresticker
2015-02-12  6:18       ` Tomeu Vizoso
2015-02-12  6:18         ` Tomeu Vizoso
2015-02-12  6:18         ` Tomeu Vizoso
2015-02-12 16:54         ` Andrew Bresticker
2015-02-12 16:54           ` Andrew Bresticker
2015-02-12 16:54           ` Andrew Bresticker
2015-02-11 15:06 ` Tomeu Vizoso [this message]
2015-02-11 15:06 ` [PATCH v4 04/11] ARM: tegra: Add DTS for the nyan-blaze board Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 05/11] ARM: tegra: Add node for trackpad in Nyan boards Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 06/11] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 07/11] ARM: tegra: Use the generated pinmux data Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 08/11] ARM: tegra: Set spi-max-frequency property to flash node Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 09/11] ARM: tegra: add support for warm reset GPIO Tomeu Vizoso
2015-02-11 17:17   ` Andrew Bresticker
2015-02-11 15:06 ` [PATCH v4 10/11] ARM: tegra: Set nvidia,reset-gpio property on the PMC node Tomeu Vizoso
2015-02-11 15:06   ` [PATCH v4 10/11] ARM: tegra: Set nvidia, reset-gpio " Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 11/11] drm/tegra: Reset the SOR on probe Tomeu Vizoso

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=1423667220-1062-4-git-send-email-tomeu.vizoso@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=abrestic@chromium.org \
    --cc=airlied@linux.ie \
    --cc=devicetree@vger.kernel.org \
    --cc=dgreid@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=javier.martinez@collabora.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=marcheu@chromium.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sjg@chromium.org \
    --cc=swarren@wwwdotorg.org \
    --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 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.