From patchwork Tue Jan 2 09:02:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10140113 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 6E48460362 for ; Tue, 2 Jan 2018 09:08:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 592B828A51 for ; Tue, 2 Jan 2018 09:08:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DD2B28A75; Tue, 2 Jan 2018 09:08:00 +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,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2FE9228A51 for ; Tue, 2 Jan 2018 09:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Yra+VM2xGVF/APl6Z+XPErIWpkO0bZ4eme8/y5WhFwo=; b=ibA 3z78Ve1p7ILsp4AL+34abLZu59WjH4+POmuDViCOyc0Kovcwu7ThUzxB/KM1CIKaWz36Oab6Uk0ZL K0tF3ebwLsoO4tHfrUnj7Tg7a2JVCzNjXvOGL1UkfN534FJbRSLjAfBRkbOryDfjwMCSdRPuwwRjt 2iPTF3TCk9lw/GusTePlcxYmyzs6L5tOGctpI+Egu+IyCRrbqlJsUngvpkeCUyVoaJIFcmeY+yVxB XGI0ihIdu2Fq47LhZMY63t86c7NYrLuGaAdQ6ijuCS7EDm5A1gpA2WH9WWlmKdFoU6xVXeewbxott OYyEWnAYvd7yslvHYbmLv+2Nl5Mc/7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWIY7-0004o6-4P; Tue, 02 Jan 2018 09:07:55 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWIY2-0004n1-G6 for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2018 09:07:52 +0000 Received: by mail-pf0-x242.google.com with SMTP id j28so25444384pfk.8 for ; Tue, 02 Jan 2018 01:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=nX8nErKTRUg/5FaoIP+4ngWO8w0KXoXHitcaPlwiTJg=; b=XFixUsL64klmvJ1ZwoSuh4g9sq+NTeO3nW61vNVSuqdBlfXxDpXcFPk74TApuXUA8z iggriq9EateSbLsmNr7QHhs89bTpoq5K5ByQZiBUsr4xqxMXRacn53rsfK1b5UsF6s7S mxTicQVfqZOgjJrp9dObbrqnzGrv0XGBri3QMED0AhAhqGhoAzLKkpzycXWXp1K6ouhb LzDSPTK+kl5smgr3PeCmZrGGm73FtP1L72FfoR46a9bt0AI3xhZzmtwsnUpX4n7sYyFp KniO3W3I99mjJgGY+BmWaFh9CLhKwvzf+B6twEc+XtPlDr36Rq6Ldy0voNK9IgpG/boK wYrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nX8nErKTRUg/5FaoIP+4ngWO8w0KXoXHitcaPlwiTJg=; b=SdU18ovDb+6WIJQQgbgKkEhB6RcUscQBHVJ/HnK9rpdrqkr2SYWQziV3axzYhPJBl0 /Qr0FX6DgzLTosvSpQyY+D0gsmu6LSWE4CmJhzPfm8PUWpjT0qk4p/drq8T9hNRav94T GyA5GlPlWBXP6+0Bamw7rbpanh/iAls+q1d0WVKkGxAmKdl/v/PvDHgohO0TuG6yIgbG uEN9EYpmxTh+e1xKmoHqeyae7U/9cpdK3nsPcq0q6BZH2OrWl/nANaFXUMpKxdSArXP5 o1E1NhrInrojgruVVMCfLKU5+f1aYHVPbq53i4SrMymfc5laUFuQ6CFgjqJAPzqrqRUz dr4w== X-Gm-Message-State: AKGB3mIWVOF+QLYCv2S0I59hv1crf8hGx6SLdIDvdX8wl72vBO8boxsI 3UYBry0U3towZi9HpPwFM4lKsGwc X-Google-Smtp-Source: ACJfBotABmD7Jp1V79stQRvV75+uZ58aqKaqKnvX+UNcXUSgWUV6erR2YAZuJzeDN/Pb9GAz0EbsXw== X-Received: by 10.99.114.65 with SMTP id c1mr30932202pgn.1.1514884058721; Tue, 02 Jan 2018 01:07:38 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id l80sm91840884pfb.124.2018.01.02.01.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 01:07:38 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH 1/5] drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H Date: Tue, 2 Jan 2018 14:32:14 +0530 Message-Id: <1514883738-16297-1-git-send-email-jagan@amarulasolutions.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-20180102_010750_708499_97AAE4DD X-CRM114-Status: GOOD ( 14.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the Ampire AM-800480AYTZQW-00H 7.0" WGA LCD, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- .../display/panel/ampire,am-800480aytzqw-00h.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ampire,am-800480aytzqw-00h.txt diff --git a/Documentation/devicetree/bindings/display/panel/ampire,am-800480aytzqw-00h.txt b/Documentation/devicetree/bindings/display/panel/ampire,am-800480aytzqw-00h.txt new file mode 100644 index 0000000..bfa7a70 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ampire,am-800480aytzqw-00h.txt @@ -0,0 +1,7 @@ +Ampire AM-800480AYTZQW-00H 7.0" WVGA TFT LCD panel + +Required properties: +- compatible: should be "ampire,am-800480aytzqw-00h" + +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 5591984..2ecc14b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -412,6 +412,30 @@ static const struct panel_desc ampire_am_480272h3tmqw_t01h = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct display_timing ampire_am_800480aytzqw_00h_timing = { + .pixelclock = { 27700000, 29200000, 39600000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 12, 40, 212 }, + .hback_porch = { 88, 88, 88 }, + .hsync_len = { 1, 2, 40 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 1, 13, 88 }, + .vback_porch = { 32, 32, 32 }, + .vsync_len = { 1, 2, 3 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc ampire_am_800480aytzqw_00h = { + .timings = &ire_am_800480aytzqw_00h_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, +}; + static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { .clock = 33333, .hdisplay = 800, @@ -2028,6 +2052,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "ampire,am-480272h3tmqw-t01h", .data = &ire_am_480272h3tmqw_t01h, }, { + .compatible = "ampire,am-800480aytzqw-00h", + .data = &ire_am_800480aytzqw_00h, + }, { .compatible = "ampire,am800480r3tmqwa1h", .data = &ire_am800480r3tmqwa1h, }, {