aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Marchesin <marcheu@chromium.org>2015-03-18 05:52:18 -0400
committerThierry Reding <treding@nvidia.com>2015-04-02 13:04:08 -0400
commit0c934306ec9a63bd271a4376caa014c21b20072b (patch)
tree696565e38da33c2d3044efb4496668a676cca67e
parent6321fd6b6f0942e986b297e8192febfc860b83b3 (diff)
drm/panel: simple: Add support for Samsung LTN140AT29 panel
This panel is used by the Nyan Blaze board and can be 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> Acked-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt7
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c26
2 files changed, 33 insertions, 0 deletions
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 000000000000..e7f969d891cc
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt
@@ -0,0 +1,7 @@
1Samsung Electronics 14" WXGA (1366x768) TFT LCD panel
2
3Required properties:
4- compatible: should be "samsung,ltn140at29-301"
5
6This binding is compatible with the simple-panel binding, which is specified
7in 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 39806c335339..2da228576d0c 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 = {
779 }, 779 },
780}; 780};
781 781
782static const struct drm_display_mode samsung_ltn140at29_301_mode = {
783 .clock = 76300,
784 .hdisplay = 1366,
785 .hsync_start = 1366 + 64,
786 .hsync_end = 1366 + 64 + 48,
787 .htotal = 1366 + 64 + 48 + 128,
788 .vdisplay = 768,
789 .vsync_start = 768 + 2,
790 .vsync_end = 768 + 2 + 5,
791 .vtotal = 768 + 2 + 5 + 17,
792 .vrefresh = 60,
793};
794
795static const struct panel_desc samsung_ltn140at29_301 = {
796 .modes = &samsung_ltn140at29_301_mode,
797 .num_modes = 1,
798 .bpc = 6,
799 .size = {
800 .width = 320,
801 .height = 187,
802 },
803};
804
782static const struct of_device_id platform_of_match[] = { 805static const struct of_device_id platform_of_match[] = {
783 { 806 {
784 .compatible = "auo,b101aw03", 807 .compatible = "auo,b101aw03",
@@ -841,6 +864,9 @@ static const struct of_device_id platform_of_match[] = {
841 .compatible = "samsung,ltn101nt05", 864 .compatible = "samsung,ltn101nt05",
842 .data = &samsung_ltn101nt05, 865 .data = &samsung_ltn101nt05,
843 }, { 866 }, {
867 .compatible = "samsung,ltn140at29-301",
868 .data = &samsung_ltn140at29_301,
869 }, {
844 /* sentinel */ 870 /* sentinel */
845 } 871 }
846}; 872};