From mboxrd@z Thu Jan 1 00:00:00 1970 From: Priit Laes Subject: [PATCH 3/8] drm/panel: simple: Add support for LG LP097x02-slq2 panel Date: Sat, 11 Feb 2017 19:44:00 +0200 Message-ID: <20170211174405.28395-4-plaes@plaes.org> References: <20170211174405.28395-1-plaes@plaes.org> Reply-To: plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <20170211174405.28395-1-plaes-q/aMd4JkU83YtjvyW6yDsg@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Jonathan Liu , Thierry Reding , Russell King , Chen-Yu Tsai , Mark Rutland , Rob Herring , David Airlie , Maxime Ripard Cc: Quentin Schulz , linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Priit Laes List-Id: devicetree@vger.kernel.org Add simple-panel support for the LG LP097x02-slq2, which is 10" 1024x768 LVDS panel. Signed-off-by: Priit Laes --- 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 06aaf79..2948fed 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1205,6 +1205,28 @@ static const struct panel_desc lg_lp097qx1_spa1 = { }, }; +static const struct drm_display_mode lg_lp097x02_slq2_mode = { + .clock = 100000, + .hdisplay = 1024, + .hsync_start = 1024 + 260, + .hsync_end = 1024 + 260 + 1, + .htotal = 1024 + 260 + 1 + 799, + .vdisplay = 768, + .vsync_start = 768 + 16, + .vsync_end = 768 + 16 + 1, + .vtotal = 768 + 16 + 1 + 15, + .vrefresh = 60, +}; + +static const struct panel_desc lg_lp097x02_slq2 = { + .modes = &lg_lp097x02_slq2_mode, + .num_modes = 1, + .size = { + .width = 197, + .height = 147, + }, +}; + static const struct drm_display_mode lg_lp120up1_mode = { .clock = 162300, .hdisplay = 1920, @@ -1817,6 +1839,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "lg,lp097qx1-spa1", .data = &lg_lp097qx1_spa1, }, { + .compatible = "lg,lp097x02-slq2", + .data = &lg_lp097x02_slq2, + }, { .compatible = "lg,lp120up1", .data = &lg_lp120up1, }, { -- 2.9.3