diff mbox

[1/4] drm/panel: simple: Add support for LG LP097QX1-SPA1 2048x1536 panel

Message ID 1464008058-29243-1-git-send-email-ykk@rock-chips.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yakir Yang May 23, 2016, 12:54 p.m. UTC
The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel
connected using eDP interfaces.

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Comments

Yakir Yang June 3, 2016, 8:24 a.m. UTC | #1
Hi Thierry,

Ping... Could you help to review/ack the panel changes :)

BR,
- Yakir

On 05/23/2016 08:54 PM, Yakir Yang wrote:
> The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel
> connected using eDP interfaces.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
> ---
>   drivers/gpu/drm/panel/panel-simple.c | 25 +++++++++++++++++++++++++
>   1 file changed, 25 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 3a7bdf1..41020e1 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -1040,6 +1040,28 @@ static const struct panel_desc lg_lp120up1 = {
>   	},
>   };
>   
> +static const struct drm_display_mode lg_lp097qx1_spa1_mode = {
> +	.clock = 205210,
> +	.hdisplay = 2048,
> +	.hsync_start = 2048 + 150,
> +	.hsync_end = 2048 + 150 + 5,
> +	.htotal = 2048 + 150 + 5 + 5,
> +	.vdisplay = 1536,
> +	.vsync_start = 1536 + 3,
> +	.vsync_end = 1536 + 3 + 1,
> +	.vtotal = 1536 + 3 + 1 + 9,
> +	.vrefresh = 60,
> +};
> +
> +static const struct panel_desc lg_lp097qx1_spa1 = {
> +	.modes = &lg_lp097qx1_spa1_mode,
> +	.num_modes = 1,
> +	.size = {
> +		.width = 2048,
> +		.height = 1536,
> +	},
> +};
> +
>   static const struct drm_display_mode lg_lp129qe_mode = {
>   	.clock = 285250,
>   	.hdisplay = 2560,
> @@ -1460,6 +1482,9 @@ static const struct of_device_id platform_of_match[] = {
>   		.compatible = "lg,lp120up1",
>   		.data = &lg_lp120up1,
>   	}, {
> +		.compatible = "lg,lp097qx1-spa1",
> +		.data = &lg_lp097qx1_spa1,
> +	}, {
>   		.compatible = "lg,lp129qe",
>   		.data = &lg_lp129qe,
>   	}, {
diff mbox

Patch

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 3a7bdf1..41020e1 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1040,6 +1040,28 @@  static const struct panel_desc lg_lp120up1 = {
 	},
 };
 
+static const struct drm_display_mode lg_lp097qx1_spa1_mode = {
+	.clock = 205210,
+	.hdisplay = 2048,
+	.hsync_start = 2048 + 150,
+	.hsync_end = 2048 + 150 + 5,
+	.htotal = 2048 + 150 + 5 + 5,
+	.vdisplay = 1536,
+	.vsync_start = 1536 + 3,
+	.vsync_end = 1536 + 3 + 1,
+	.vtotal = 1536 + 3 + 1 + 9,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc lg_lp097qx1_spa1 = {
+	.modes = &lg_lp097qx1_spa1_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 2048,
+		.height = 1536,
+	},
+};
+
 static const struct drm_display_mode lg_lp129qe_mode = {
 	.clock = 285250,
 	.hdisplay = 2560,
@@ -1460,6 +1482,9 @@  static const struct of_device_id platform_of_match[] = {
 		.compatible = "lg,lp120up1",
 		.data = &lg_lp120up1,
 	}, {
+		.compatible = "lg,lp097qx1-spa1",
+		.data = &lg_lp097qx1_spa1,
+	}, {
 		.compatible = "lg,lp129qe",
 		.data = &lg_lp129qe,
 	}, {