From patchwork Wed Nov 18 20:57:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshay Bhat X-Patchwork-Id: 7652621 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18A73BF90C for ; Wed, 18 Nov 2015 20:58:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D60B20452 for ; Wed, 18 Nov 2015 20:58:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5696720435 for ; Wed, 18 Nov 2015 20:58:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 86A866E028; Wed, 18 Nov 2015 12:58:21 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id B64BB6E028 for ; Wed, 18 Nov 2015 12:58:20 -0800 (PST) Received: by qgea14 with SMTP id a14so37791757qge.0 for ; Wed, 18 Nov 2015 12:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Arz2mYrVyeoJV2S/OYRbQ3pGJ7WN1ODMgrvzBBM90FM=; b=lAFqyg6a9js3vuwCSc6NavknW5aF0gvYTpNuWINdhnanhnREQlcNNFKFQsHEJUx2df 4zitkYlcIKdHtf5OW9f7DQ4R9h+JODgJ7TOsYQo2fNtlJC+cnTnd0dlEgrKsHvmie7Gu KhYGorwCO38JfqKsdkDwbQuQku6TPkMdHdB2eLIG3uQadYPSdB+2XaQgILI8PJf5aWFQ kKO/W34jSlJe0UHBrqS7nxuP7pDcfRp1r5DMW6Zj8rFL1m2wmlmjKGoEzXBdZJIVBBt/ gb1gFWRN+3iyWRyiHiboCLZHNoJ6zzvMLHjmd6sjCbVB7xqqJciW+5olsLazI5gO+RQt fHPA== 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=Arz2mYrVyeoJV2S/OYRbQ3pGJ7WN1ODMgrvzBBM90FM=; b=UYnQmNj24il+nPwWezV1/Z7I/xgYFvYmjvi+j2QNxxuAuzV7aXDFQBiHfQs6yUc4Rd GXVkprhbW4qCOFp7Z6I4iaBIOTTYR0RzPH4P3Em2otqrbgtbIpc+lZPQ3MkdddXfbu9v x1LDkEIqFNVuqXdnXk4n9hNbw43+qpO4bVbEIeWijOB1sccGIqJsiXaCM63ZysE/+P8p XVnp2w/n4jeO9QY+ZViGHdq+MG9AfmTCuXgwmr9dXBzf9CRII3fWhL56SemquDfjCrTJ HyNXMA7dJuROvJ/2qkqTqlA7sNOQmrtoW5DO5arZPHP04Re13da19uPjItOY84+gjRGb C1qA== X-Gm-Message-State: ALoCoQk2DibtZjh1r6w3k5sc6bG2mz4s7pJzWAhspC4nV09obCbWdt8RaWsD0erT5dCi34X83vDz X-Received: by 10.140.85.147 with SMTP id n19mr3823139qgd.39.1447880299549; Wed, 18 Nov 2015 12:58:19 -0800 (PST) Received: from localhost.localdomain ([96.94.100.129]) by smtp.gmail.com with ESMTPSA id f68sm1431538qhe.42.2015.11.18.12.58.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Nov 2015 12:58:18 -0800 (PST) From: Akshay Bhat To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: simple: Add support for G121X1-L03 Date: Wed, 18 Nov 2015 15:57:47 -0500 Message-Id: <1447880267-13422-1-git-send-email-akshay.bhat@timesys.com> X-Mailer: git-send-email 2.6.3 Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, justin.waters@timesys.com, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, Akshay Bhat 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-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Add support for Innolux CheMei 12" G121X1-L03 XGA LVDS display. Datasheet: http://www.azdisplays.com/PDF/G121X1-L03.pdf Signed-off-by: Akshay Bhat Acked-by: Rob Herring --- .../bindings/display/panel/innolux,g121x1-l03.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt diff --git a/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt new file mode 100644 index 0000000..6497446 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/innolux,g121x1-l03.txt @@ -0,0 +1,7 @@ +Innolux Corporation 12.1" G121X1-L03 XGA (1024x768) TFT LCD panel + +Required properties: +- compatible: should be "innolux,g121x1-l03" + +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 f97b73e..d1821f7 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -832,6 +832,34 @@ static const struct panel_desc innolux_g121i1_l01 = { }, }; +static const struct drm_display_mode innolux_g121x1_l03_mode = { + .clock = 65000, + .hdisplay = 1024, + .hsync_start = 1024 + 0, + .hsync_end = 1024 + 1, + .htotal = 1024 + 0 + 1 + 320, + .vdisplay = 768, + .vsync_start = 768 + 38, + .vsync_end = 768 + 38 + 1, + .vtotal = 768 + 38 + 1 + 0, + .vrefresh = 60, +}; + +static const struct panel_desc innolux_g121x1_l03 = { + .modes = &innolux_g121x1_l03_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 246, + .height = 185, + }, + .delay = { + .enable = 200, + .unprepare = 200, + .disable = 400, + }, +}; + static const struct drm_display_mode innolux_n116bge_mode = { .clock = 76420, .hdisplay = 1366, @@ -1158,6 +1186,9 @@ static const struct of_device_id platform_of_match[] = { .compatible ="innolux,g121i1-l01", .data = &innolux_g121i1_l01 }, { + .compatible = "innolux,g121x1-l03", + .data = &innolux_g121x1_l03, + }, { .compatible = "innolux,n116bge", .data = &innolux_n116bge, }, {