From patchwork Wed May 2 04:32:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Panda X-Patchwork-Id: 10375101 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 AE33A603B4 for ; Wed, 2 May 2018 07:29:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88FCC288EA for ; Wed, 2 May 2018 07:29:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BF52289B9; Wed, 2 May 2018 07:29:31 +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=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 2DA04288EA for ; Wed, 2 May 2018 07:29:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 792538989E; Wed, 2 May 2018 07:29:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id 303796E4B3; Wed, 2 May 2018 04:32:38 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1852B60807; Wed, 2 May 2018 04:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525235558; bh=c6JrePvWKnTWDUunZbwo3/cD/hocbXy0w4+3HlWUqRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RiktasMQLTniKIyStN0Jr4ewMt8NWuytiyY55hPNfJLFKJB2plaV0JHrAWvRsOM7Q gN6d/iwXioV+aWc5hhkUJfIC/N/9jANTo0fJrbTJIi3E022Wo1ZrYnSHF6Zbx4etJj X/3d37MRG2kUbUAeoC59RGcvKLKTubNu620eHNhc= Received: from spanda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: spanda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8CFD060588; Wed, 2 May 2018 04:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525235557; bh=c6JrePvWKnTWDUunZbwo3/cD/hocbXy0w4+3HlWUqRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nt4ONWh3ZiEyQonxuOchgvS0FtJ7dWveHYrx6VIQ6f+qB9WcbrcHw9N85oEpSuOCj +39FDU6MeBamFL61N3kN71loHVGpqOXIYR6abFibOxtX4Zx6LLC5zmIGgd43bc/Lt/ 96GPNLt6e8lmAcSSHb7KQy4YVxTRAtCpGAJbozok= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8CFD060588 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=spanda@codeaurora.org From: Sandeep Panda To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v5 3/4] drm/panel: add Innolux TV123WAM panel driver support Date: Wed, 2 May 2018 10:02:01 +0530 Message-Id: <1525235522-8954-4-git-send-email-spanda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525235522-8954-1-git-send-email-spanda@codeaurora.org> References: <1525235522-8954-1-git-send-email-spanda@codeaurora.org> X-Mailman-Approved-At: Wed, 02 May 2018 07:29:26 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ryadav@codeaurora.org, Sandeep Panda , abhinavk@codeaurora.org, hoegsberg@chromium.org, chandanu@codeaurora.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add support for Innolux TV123WAM, which is a 12.3" eDP display panel with 2160x1440 resolution. Signed-off-by: Sandeep Panda --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 234af81..52bbcfb 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1939,6 +1939,30 @@ static void panel_simple_shutdown(struct device *dev) .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode innolux_tv123wam_mode = { + .clock = 206016, + .hdisplay = 2160, + .hsync_start = 2160 + 48, + .hsync_end = 2160 + 48 + 32, + .htotal = 2160 + 48 + 32 + 80, + .vdisplay = 1440, + .vsync_start = 1440 + 3, + .vsync_end = 1440 + 3 + 10, + .vtotal = 1440 + 3 + 10 + 27, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, +}; + +static const struct panel_desc innolux_tv123wam = { + .modes = &innolux_tv123wam_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 259, + .height = 173, + }, +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "ampire,am-480272h3tmqw-t01h", @@ -2142,6 +2166,9 @@ static void panel_simple_shutdown(struct device *dev) .compatible = "winstar,wf35ltiacd", .data = &winstar_wf35ltiacd, }, { + .compatible = "innolux,tv123wam", + .data = &innolux_tv123wam, + }, { /* sentinel */ } };