From patchwork Thu Dec 8 05:26:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9465855 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 4D5C360231 for ; Thu, 8 Dec 2016 05:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46A8B28538 for ; Thu, 8 Dec 2016 05:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AE8628555; Thu, 8 Dec 2016 05:26:50 +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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3802328538 for ; Thu, 8 Dec 2016 05:26:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cErED-0003Ja-IQ; Thu, 08 Dec 2016 05:26:45 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cErEA-0003BB-V9 for linux-rockchip@lists.infradead.org; Thu, 08 Dec 2016 05:26:43 +0000 Received: by mail-pg0-f66.google.com with SMTP id e9so25660186pgc.1 for ; Wed, 07 Dec 2016 21:26:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jUDIwkV1CbPNn8pl3gBbzwLeooddotXaOhal6sH0/cI=; b=ir2cZhGzY44A8rufezRdVV5bMCX3ZzpS9IF6KAK5LdVsDjRJAYyFE85WpKfolJDGEb LScEOF+h4sBZH0bueQqj2FqbTwK7NiBbO8ozdeOSzAcgXRg69Fytrlo0Pb762i+Wfbgm 2vA4jMH5kJ4IIjO02E+1xUf5lVz5G5OiZsNa37cV8imgP8NPtbUFy/icS+mvL2ClrKhD i+EYFzoD1AI5U8ClUMnSGAYs1ZbG6ZFfdJaMTcWwtqWg4zWAO7iCEueM48+KIHiF50Sg 1gN0vx/40YhGqdqsOvoS9CIIxGp+3Duee8G1g8BbqtnHdzwabacFWPLlhmgj3GVBOUxn BXQw== X-Gm-Message-State: AKaTC0085oCv/WXZpSm/NWLE3RndRSJf+lAavbRKR1X+8xvK0/UhQHDvG7h371R+1Df6dg== X-Received: by 10.99.185.84 with SMTP id v20mr30195056pgo.98.1481174781230; Wed, 07 Dec 2016 21:26:21 -0800 (PST) Received: from nb.DHCP ([221.224.159.162]) by smtp.gmail.com with ESMTPSA id g27sm46338435pfk.58.2016.12.07.21.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 21:26:19 -0800 (PST) From: Caesar Wang To: thierry.reding@gmail.com Subject: [PATCH] drm/panel: simple: Add support BOE nv101wxmn51 Date: Thu, 8 Dec 2016 13:26:05 +0800 Message-Id: <1481174765-28286-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161207_212643_097948_38ECF4F1 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Signed-off-by: Caesar Wang --- drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 06aaf79..c9135dc 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -668,6 +668,34 @@ static const struct panel_desc avic_tm070ddh03 = { }, }; +static const struct drm_display_mode boe_nv101wxmn51_mode = { + .clock = 71900, + .hdisplay = 1280, + .hsync_start = 1280 + 48, + .hsync_end = 1280 + 48 + 32, + .htotal = 1280 + 48 + 32 + 80, + .vdisplay = 800, + .vsync_start = 800 + 3, + .vsync_end = 800 + 3 + 20, + .vtotal = 800 + 3 + 20 + 9, + .vrefresh = 60, +}; + +static const struct panel_desc boe_nv101wxmn51 = { + .modes = &boe_nv101wxmn51_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 217, + .height = 136, + }, + .delay = { + .prepare = 210, + .enable = 50, + .unprepare = 160, + }, +}; + static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { .clock = 66770, .hdisplay = 800, @@ -1748,6 +1776,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, }, { + .compatible = "boe,nv101wxmn51", + .data = &boe_nv101wxmn51, + }, { .compatible = "chunghwa,claa070wp03xg", .data = &chunghwa_claa070wp03xg, }, {