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: 9568045 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 D72BB60231 for ; Sat, 11 Feb 2017 17:45:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C725B28494 for ; Sat, 11 Feb 2017 17:45:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B965A284E9; Sat, 11 Feb 2017 17:45:06 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CC0128494 for ; Sat, 11 Feb 2017 17:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=CeuRQoBXIv9yIEQo7+g2vGj6hrDmCc5GyUJ8+Spo5HE=; b=aJhh4KxkCXLNjteMP2EQS9cvBB 5ChM0AVglhLH2T38o5jJqKjWIE6iySnYnBIIGaECEfIvm7IBES2by1gtw6hElRMjf48jCJHeHFOEq 2knFlyTZKcbtYyxBM4dvtQ7PDYvohsmQxx3yWllyJ7hvCLLfR3W6KQf4XNXiv3dgreWELaSNNnLaW uVGdduFDDYyNTodtJKsY8pCNpsH+2JFuIHCej2G1m0FwH7E07go/oF1gHi2KQZgPtFLNYtf+sQUFR Gia9f3o/uykBAlCwdGIFYfHQaG1FnuOr+wTysZpGRrdZ8R5EgzRMDr7Ip/vqb6I4Oijk2yvQWR1n2 9b7SRKKQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ccbjN-00082K-I2; Sat, 11 Feb 2017 17:45:05 +0000 Received: from plaes.org ([188.166.43.21]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ccbj4-00074M-OL for linux-arm-kernel@lists.infradead.org; Sat, 11 Feb 2017 17:44:50 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170211_094447_168903_E457D0FA X-CRM114-Status: UNSURE ( 8.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Quentin Schulz , linux-sunxi@googlegroups.com, Priit Laes MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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, }, {