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: 9465853 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 082E860231 for ; Thu, 8 Dec 2016 05:26:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E285128538 for ; Thu, 8 Dec 2016 05:26:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C485C28555; Thu, 8 Dec 2016 05:26:33 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 4910A28538 for ; Thu, 8 Dec 2016 05:26:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B7356E1A0; Thu, 8 Dec 2016 05:26:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id CBB6B6E1A0 for ; Thu, 8 Dec 2016 05:26:21 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id 3so25728300pgd.0 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=Q5D6pLciNFPh22fmxQ3ACyrkrdQByBdxBnypkuDk+KWq+A8irT6DA5rWav3snnRHZ5 mj7aUgYYsvcOx8lKazXksjWf7UlfuAogAf3AJ71L/0TZT3V9xrV7ar6Odan70b9fjT11 JhvzmKCAJE75Jh0RuxWgIa2y33tx784S9idqTUXFFBvfBWvFS0i71XnW/dKN3ZA3VNUd NAldaKcRF6cBX28oscM/hSuANJDFCzFl5ZMqLmC+tqVvXNTHzNLExkMux6pP5IIuObSY jHrNCQCg+zCPWgXLXsCluuAjESXvlFBWkSxaRgPfKqz/ucnyo0dOiWGBn9y7QV9ASRgI qtRw== X-Gm-Message-State: AKaTC00qdqP+zjUg4VbibaNxAma1RuDv3layJwgBSLqOHwBXjmdCmTsa8DVSiD2CyAkVyQ== 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 Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Caesar Wang 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 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, }, {