diff options
| -rw-r--r-- | Documentation/devicetree/bindings/panel/samsung,ltn140at29-301.txt | 7 | ||||
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 26 |
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 @@ | |||
| 1 | Samsung Electronics 14" WXGA (1366x768) TFT LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "samsung,ltn140at29-301" | ||
| 5 | |||
| 6 | This binding is compatible with the simple-panel binding, which is specified | ||
| 7 | 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 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 | ||
| 782 | static 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 | |||
| 795 | static 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 | |||
| 782 | static const struct of_device_id platform_of_match[] = { | 805 | static 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 | }; |
