From patchwork Tue Jul 22 06:38:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alban Bedel X-Patchwork-Id: 4607611 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D789C0516 for ; Wed, 23 Jul 2014 02:01:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C967201B9 for ; Wed, 23 Jul 2014 02:01:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9CD64201B4 for ; Wed, 23 Jul 2014 02:01:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DB03A89F2D; Tue, 22 Jul 2014 19:01:49 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by gabe.freedesktop.org (Postfix) with ESMTP id C5F6D6E497 for ; Mon, 21 Jul 2014 23:39:10 -0700 (PDT) Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0MKaOt-1X86162Zy3-0023db; Tue, 22 Jul 2014 08:39:07 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 24D0B2A28253; Tue, 22 Jul 2014 08:39:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96sBLOXY1jgl; Tue, 22 Jul 2014 08:39:06 +0200 (CEST) Received: from avionic-0020.adnet.avionic-design.de (avionic-0020.adnet.avionic-design.de [172.20.31.243]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 7BE272A28126; Tue, 22 Jul 2014 08:39:06 +0200 (CEST) From: Alban Bedel To: Thierry Reding Subject: [PATCH v2] drm/panel: add support for InnoLux N156BGE-L21 panel Date: Tue, 22 Jul 2014 08:38:55 +0200 Message-Id: <1406011135-25417-1-git-send-email-alban.bedel@avionic-design.de> X-Mailer: git-send-email 2.0.2 In-Reply-To: <20140620201456.GA28814@mithrandir> References: <20140620201456.GA28814@mithrandir> X-Provags-ID: V02:K0:/tayQw1n5+4EnowEc9PDduW+syqt0mpwFrXChJaBo3Y I+ZO0UrxptH0QC6oQJpgj/hMELfy48GE8cUVctRirqoa9dfXvx Al+QEBtwGH3uSZ3Khd6ki3TaE3oGEUIxEs73zru1VvI0KHdLSN rKMSmjZF3iOnHPm41KscGd76ckns9Lfr5VnlQdxFFVdUkiSBDQ 6W73iEEzZMnM3ZBYdv2pvrN1OF9MiHPo06xJ1Z00048HUAkm6k OBHhcx90zySUUTn1YFneZZPB2gJAye1gUImkpJU9dqp99aH+Vh TaeL0+bEY7Muzrj6hF4dOP8OepwtEmO9eDyBiWCALT4smmylBe a6gwQZYxQDMY+5/wj8/fKoWSAbEceMirMZFPxFx0hPnQIqQxH8 yyxXea7Ws4lsN+mR05T/BYIIbz7ADPuuEqM2zDidWfOSzK2wWW uTR7F X-Mailman-Approved-At: Tue, 22 Jul 2014 19:01:49 -0700 Cc: Alban Bedel , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This panel is used by the Medcom Wide and supported by the simple-panel driver. Signed-off-by: Alban Bedel --- v2: * Added the v/hsync pulses for correctness (the panel doesn't really needs them) * Fixed the size to report the physical size in mm --- .../bindings/panel/innolux,n156bge-l21.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 25 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt diff --git a/Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt b/Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt new file mode 100644 index 0000000..7825844 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/innolux,n156bge-l21.txt @@ -0,0 +1,7 @@ +InnoLux 15.6" WXGA TFT LCD panel + +Required properties: +- compatible: should be "innolux,n156bge-l21" + +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 a251361..ce9fffc 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -447,6 +447,28 @@ static const struct panel_desc samsung_ltn101nt05 = { }, }; +static const struct drm_display_mode innolux_n156bge_l21_mode = { + .clock = 69300, + .hdisplay = 1366, + .hsync_start = 1366 + 16, + .hsync_end = 1366 + 16 + 34, + .htotal = 1366 + 16 + 34 + 50, + .vdisplay = 768, + .vsync_start = 768 + 2, + .vsync_end = 768 + 2 + 6, + .vtotal = 768 + 2 + 6 + 12, + .vrefresh = 60, +}; + +static const struct panel_desc innolux_n156bge_l21 = { + .modes = &innolux_n156bge_l21_mode, + .num_modes = 1, + .size = { + .width = 344, + .height = 193, + }, +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "auo,b101aw03", @@ -476,6 +498,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "samsung,ltn101nt05", .data = &samsung_ltn101nt05, }, { + .compatible = "innolux,n156bge-l21", + .data = &innolux_n156bge_l21, + }, { .compatible = "simple-panel", }, { /* sentinel */