diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2015-12-02 13:41:11 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-12-16 10:13:47 -0500 |
commit | 8def22e50f32c00f876a71dc551024fc61f647e1 (patch) | |
tree | 4ee4ce53f3f339b0a74aa66182f7449fb94ad82e | |
parent | f42fb5539ab51cd50edbc3639a3e9476c4ac884f (diff) |
drm/panel: simple: Add support for Kyocera TCG121XGLP panel
The Kyocera TCG121XGLP panel is an XGA LCD TFT panel connected through
LVDS, which can be supported by the simple panel driver.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 27 |
2 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt b/Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt new file mode 100644 index 000000000000..a8e940fe731e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/kyo,tcg121xglp.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | Kyocera Corporation 12.1" XGA (1024x768) TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "kyo,tcg121xglp" | ||
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 ada97a01a651..faa1c168a6e7 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -930,6 +930,30 @@ static const struct panel_desc innolux_zj070na_01p = { | |||
930 | }, | 930 | }, |
931 | }; | 931 | }; |
932 | 932 | ||
933 | static const struct display_timing kyo_tcg121xglp_timing = { | ||
934 | .pixelclock = { 52000000, 65000000, 71000000 }, | ||
935 | .hactive = { 1024, 1024, 1024 }, | ||
936 | .hfront_porch = { 2, 2, 2 }, | ||
937 | .hback_porch = { 2, 2, 2 }, | ||
938 | .hsync_len = { 86, 124, 244 }, | ||
939 | .vactive = { 768, 768, 768 }, | ||
940 | .vfront_porch = { 2, 2, 2 }, | ||
941 | .vback_porch = { 2, 2, 2 }, | ||
942 | .vsync_len = { 6, 34, 73 }, | ||
943 | .flags = DISPLAY_FLAGS_DE_HIGH, | ||
944 | }; | ||
945 | |||
946 | static const struct panel_desc kyo_tcg121xglp = { | ||
947 | .timings = &kyo_tcg121xglp_timing, | ||
948 | .num_timings = 1, | ||
949 | .bpc = 8, | ||
950 | .size = { | ||
951 | .width = 246, | ||
952 | .height = 184, | ||
953 | }, | ||
954 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, | ||
955 | }; | ||
956 | |||
933 | static const struct drm_display_mode lg_lb070wv8_mode = { | 957 | static const struct drm_display_mode lg_lb070wv8_mode = { |
934 | .clock = 33246, | 958 | .clock = 33246, |
935 | .hdisplay = 800, | 959 | .hdisplay = 800, |
@@ -1198,6 +1222,9 @@ static const struct of_device_id platform_of_match[] = { | |||
1198 | .compatible = "innolux,zj070na-01p", | 1222 | .compatible = "innolux,zj070na-01p", |
1199 | .data = &innolux_zj070na_01p, | 1223 | .data = &innolux_zj070na_01p, |
1200 | }, { | 1224 | }, { |
1225 | .compatible = "kyo,tcg121xglp", | ||
1226 | .data = &kyo_tcg121xglp, | ||
1227 | }, { | ||
1201 | .compatible = "lg,lb070wv8", | 1228 | .compatible = "lg,lb070wv8", |
1202 | .data = &lg_lb070wv8, | 1229 | .data = &lg_lb070wv8, |
1203 | }, { | 1230 | }, { |