diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-09-06 10:46:17 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-01-26 04:55:01 -0500 |
commit | e6c2f066d5ed5ba61d48d54b603698bad1c6a270 (patch) | |
tree | b54f2a3b95988bc9fb118aeb1ec921d58635e6d4 | |
parent | 505c9d41057455f1947cadf93a7961f3786b089b (diff) |
drm/panel: simple: Add Netron DY E231732
The E231732 is a 7" panel with a resolution of 1024x600.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
[treding@nvidia.com: add missing device tree binding]
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/display/panel/netron-dy,e231732.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/display/panel/netron-dy,e231732.txt b/Documentation/devicetree/bindings/display/panel/netron-dy,e231732.txt new file mode 100644 index 000000000000..c6d06b5eab51 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/netron-dy,e231732.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | Netron-DY E231732 7.0" WSVGA TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "netron-dy,e231732" | ||
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 c56fb983311c..be35f3fa7e9a 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -1319,6 +1319,29 @@ static const struct panel_desc nec_nl4827hc19_05b = { | |||
1319 | .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, | 1319 | .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, |
1320 | }; | 1320 | }; |
1321 | 1321 | ||
1322 | static const struct drm_display_mode netron_dy_e231732_mode = { | ||
1323 | .clock = 66000, | ||
1324 | .hdisplay = 1024, | ||
1325 | .hsync_start = 1024 + 160, | ||
1326 | .hsync_end = 1024 + 160 + 70, | ||
1327 | .htotal = 1024 + 160 + 70 + 90, | ||
1328 | .vdisplay = 600, | ||
1329 | .vsync_start = 600 + 127, | ||
1330 | .vsync_end = 600 + 127 + 20, | ||
1331 | .vtotal = 600 + 127 + 20 + 3, | ||
1332 | .vrefresh = 60, | ||
1333 | }; | ||
1334 | |||
1335 | static const struct panel_desc netron_dy_e231732 = { | ||
1336 | .modes = &netron_dy_e231732_mode, | ||
1337 | .num_modes = 1, | ||
1338 | .size = { | ||
1339 | .width = 154, | ||
1340 | .height = 87, | ||
1341 | }, | ||
1342 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, | ||
1343 | }; | ||
1344 | |||
1322 | static const struct drm_display_mode nvd_9128_mode = { | 1345 | static const struct drm_display_mode nvd_9128_mode = { |
1323 | .clock = 29500, | 1346 | .clock = 29500, |
1324 | .hdisplay = 800, | 1347 | .hdisplay = 800, |
@@ -1895,6 +1918,9 @@ static const struct of_device_id platform_of_match[] = { | |||
1895 | .compatible = "nec,nl4827hc19-05b", | 1918 | .compatible = "nec,nl4827hc19-05b", |
1896 | .data = &nec_nl4827hc19_05b, | 1919 | .data = &nec_nl4827hc19_05b, |
1897 | }, { | 1920 | }, { |
1921 | .compatible = "netron-dy,e231732", | ||
1922 | .data = &netron_dy_e231732, | ||
1923 | }, { | ||
1898 | .compatible = "nvd,9128", | 1924 | .compatible = "nvd,9128", |
1899 | .data = &nvd_9128, | 1925 | .data = &nvd_9128, |
1900 | }, { | 1926 | }, { |