From patchwork Sat Feb 11 17:44:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 9568675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69DF760578 for ; Mon, 13 Feb 2017 00:40:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BBCA2808F for ; Mon, 13 Feb 2017 00:40:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5097228113; Mon, 13 Feb 2017 00:40:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA1142808F for ; Mon, 13 Feb 2017 00:39:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E26306E0A5; Mon, 13 Feb 2017 00:39:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from plaes.org (plaes.org [188.166.43.21]) by gabe.freedesktop.org (Postfix) with ESMTP id D262C6E2DC for ; Sat, 11 Feb 2017 17:55:01 +0000 (UTC) Received: from localhost (71-43-196-88.dyn.estpak.ee [88.196.43.71]) by plaes.org (Postfix) with ESMTPSA id D652640A72; Sat, 11 Feb 2017 17:44:21 +0000 (UTC) From: Priit Laes To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Jonathan Liu , Thierry Reding , Russell King , Chen-Yu Tsai , Mark Rutland , Rob Herring , David Airlie , Maxime Ripard 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> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170211174405.28395-1-plaes@plaes.org> References: <20170211174405.28395-1-plaes@plaes.org> X-Mailman-Approved-At: Mon, 13 Feb 2017 00:39:43 +0000 Cc: Quentin Schulz , linux-sunxi@googlegroups.com, Priit Laes X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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, }, {