From patchwork Fri Apr 27 09:39:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Panda X-Patchwork-Id: 10370551 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 C515F602DC for ; Sun, 29 Apr 2018 13:54:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5BCC28B49 for ; Sun, 29 Apr 2018 13:54:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA69428B4F; Sun, 29 Apr 2018 13:54:28 +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 5952C28B49 for ; Sun, 29 Apr 2018 13:54:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 90ACF6E183; Sun, 29 Apr 2018 13:54:24 +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 1186D6E8A5; Fri, 27 Apr 2018 09:40:19 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E690460F8F; Fri, 27 Apr 2018 09:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524822018; bh=wrXXZseRAo8rwqFR8Avrt38H8oCJRihdBxOi9RkftcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WpZFoHVFYOPBpKBCjSbFKW17Pa8U604IQsLTsaBeJPuYSD2TxlSWgI3KlnBiAH92u jDerlTbNTPrixs9n0B5JhfksLGBQp325xZPo0oFMdeo+IFPn8Zwm00wOfmRe+psD4O 2SB9m2LbS1Vt3/kdYLNciiIGwMVSQNdIvSnbIvLI= 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 0EAEA607DD; Fri, 27 Apr 2018 09:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524822018; bh=wrXXZseRAo8rwqFR8Avrt38H8oCJRihdBxOi9RkftcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WpZFoHVFYOPBpKBCjSbFKW17Pa8U604IQsLTsaBeJPuYSD2TxlSWgI3KlnBiAH92u jDerlTbNTPrixs9n0B5JhfksLGBQp325xZPo0oFMdeo+IFPn8Zwm00wOfmRe+psD4O 2SB9m2LbS1Vt3/kdYLNciiIGwMVSQNdIvSnbIvLI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0EAEA607DD 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 v4 3/3] drm/panel: add support for Innolux TV123WAM panel Date: Fri, 27 Apr 2018 15:09:42 +0530 Message-Id: <1524821982-2778-4-git-send-email-spanda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524821982-2778-1-git-send-email-spanda@codeaurora.org> References: <1524821982-2778-1-git-send-email-spanda@codeaurora.org> X-Mailman-Approved-At: Sun, 29 Apr 2018 13:54:17 +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 Innolux TV123WAM is a 12.3" eDP display panel with 2160x1440 resolution, which can be supported by simple panel driver. Changes in v1: - Make use of simple panel driver instead of creating a new driver for this panel (Sean Paul). - Combine dt-binding and driver changes into one patch as done by other existing panel support changes. Signed-off-by: Sandeep Panda --- .../bindings/display/panel/innolux,tv123wam.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,tv123wam.txt diff --git a/Documentation/devicetree/bindings/display/panel/innolux,tv123wam.txt b/Documentation/devicetree/bindings/display/panel/innolux,tv123wam.txt new file mode 100644 index 0000000..c12e714 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/innolux,tv123wam.txt @@ -0,0 +1,7 @@ +Innolux TV123WAM 12.3 inch eDP 2K display panel + +Required properties: +- compatible: should be "innolux,tv123wam" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. 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 */ } };