[PATCH v4 2/2] drm/panel: Add support for LG LB070WV8 800x480 7" panel

2015-05-22 Thread Thierry Reding
On Fri, May 22, 2015 at 10:25:57AM +0200, Heiko Schocher wrote:
> This adds support for the LG LB070WV8 7" 800x480 panel to the
> DRM simple panel driver.
> 
> Signed-off-by: Heiko Schocher 
> ---
> 
> Changes in v4:
> - new in version 4, as Philipp Zabel suggested to use
>   simple panel driver
> 
> Changes in v3: None
> Changes in v2: None
> 
>  .../devicetree/bindings/panel/lg,lb070wv8.txt  |  7 ++
>  drivers/gpu/drm/panel/panel-simple.c   | 27 
> ++
>  2 files changed, 34 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/panel/lg,lb070wv8.txt

Applied, thanks. For future patches, please make sure to send them to my
GMail account (as listed in MAINTAINERS). Corporate email is known to
corrupt patches occasionally, though it seems to have worked fine this
time.

Thierry
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: 



[PATCH v4 2/2] drm/panel: Add support for LG LB070WV8 800x480 7" panel

2015-05-22 Thread Heiko Schocher
This adds support for the LG LB070WV8 7" 800x480 panel to the
DRM simple panel driver.

Signed-off-by: Heiko Schocher 
---

Changes in v4:
- new in version 4, as Philipp Zabel suggested to use
  simple panel driver

Changes in v3: None
Changes in v2: None

 .../devicetree/bindings/panel/lg,lb070wv8.txt  |  7 ++
 drivers/gpu/drm/panel/panel-simple.c   | 27 ++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/lg,lb070wv8.txt

diff --git a/Documentation/devicetree/bindings/panel/lg,lb070wv8.txt 
b/Documentation/devicetree/bindings/panel/lg,lb070wv8.txt
new file mode 100644
index 000..a7588e5
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/lg,lb070wv8.txt
@@ -0,0 +1,7 @@
+LG 7" (800x480 pixels) TFT LCD panel
+
+Required properties:
+- compatible: should be "lg,lb070wv8"
+
+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 30904a9..a06d9d3 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -872,6 +872,30 @@ static const struct panel_desc innolux_zj070na_01p = {
},
 };

+static const struct drm_display_mode lg_lb070wv8_mode = {
+   .clock = 33246,
+   .hdisplay = 800,
+   .hsync_start = 800 + 88,
+   .hsync_end = 800 + 88 + 80,
+   .htotal = 800 + 88 + 80 + 88,
+   .vdisplay = 480,
+   .vsync_start = 480 + 10,
+   .vsync_end = 480 + 10 + 25,
+   .vtotal = 480 + 10 + 25 + 10,
+   .vrefresh = 60,
+};
+
+static const struct panel_desc lg_lb070wv8 = {
+   .modes = _lb070wv8_mode,
+   .num_modes = 1,
+   .bpc = 16,
+   .size = {
+   .width = 151,
+   .height = 91,
+   },
+   .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode lg_lp129qe_mode = {
.clock = 285250,
.hdisplay = 2560,
@@ -1056,6 +1080,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "innolux,zj070na-01p",
.data = _zj070na_01p,
}, {
+   .compatible = "lg,lb070wv8",
+   .data = _lb070wv8,
+   }, {
.compatible = "lg,lp129qe",
.data = _lp129qe,
}, {
-- 
2.1.0