From patchwork Thu Jan 4 06:12:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10143921 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 BE1016034B for ; Thu, 4 Jan 2018 06:15:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10E128417 for ; Thu, 4 Jan 2018 06:15:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5C892841D; Thu, 4 Jan 2018 06:15:25 +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 3F8FD28417 for ; Thu, 4 Jan 2018 06:15:25 +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:References: In-Reply-To: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:List-Owner; bh=wWOky3/8cWuXTWkCJ3dnE2alhPKPzqsGWKaT2UmnWkk=; b=JXc/XfdGlPzJSZ/+J6H/M3f31u JumUamshVOLqRUooAGK5TAAwF8WfAhxtL07LQ/jEUxOlk359J7mCtNkslzQMwKyItysMChRER+LqF mBHjqmGOsbcnKNLrRN49le0dbsvbe+Cl/SdOx30HdKsuevXPY4WQe399VPxYahaeCNXJiu5H+1Hp7 cDLhEqUA+UyZv/sd9dE66z3Uk4pJwY7TxRLT6w4Ul/R0C4/a0aVOBCTyho9tFOit+9OCs8Jv5/aZU Nl2fzEN2zGJOwnKPqe/5W5+A/7h/iKH7jLoEdILix6FmM8EbvoAsZXzFMPlnZ3pGnGW4uJck9iPa5 2pWotnUA==; 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 1eWyoC-0002QH-Ft; Thu, 04 Jan 2018 06:15:20 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWynm-000233-Nk for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 06:15:00 +0000 Received: by mail-pl0-x242.google.com with SMTP id bi12so524828plb.6 for ; Wed, 03 Jan 2018 22:14:40 -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:in-reply-to:references; bh=7AclcUAwsYc/fG4uFiMZKl43oZI5EC/XnX5vh/qOEbs=; b=Jxwp2jBocfP1CUyIuVd6+5D+0DL25zJU7UkhzcDc6hm57Yp7KvG7RyVSgElEDAoXa7 hk+2R8CpF0tbkPwJ7GTNDRUQW3ouiWobeIv3Wu584GmtFnXoFga5fmXgC+wUZFhM4Edz HLyyQyQtCkxyaI2ZYDyP6/+vPbZCK4lYTCJqMD0fJR7bZ9A9GKYHFRQEFyd8Qund3ciP MBjvaj2iN8nwE1c3Y+IKb9ZUeP1IV4kt2NENMBJnlhiVcMR8gCWl4MDRiGNtHz0TI2xK Y3opFzYJ4VAPG03u6ltHte+W+pglGfjLX59i6VKwgsPSwm3PpaX0Y+lFKmrOT6c7DAj7 TELA== 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:in-reply-to :references; bh=7AclcUAwsYc/fG4uFiMZKl43oZI5EC/XnX5vh/qOEbs=; b=cijUmhrSL0uH/bGR2VjH4r+2fTvAhaG40p+VaAbOpKm0V4Mge4m+8HUCBY87b9crKo ABb7/fDKxKvROI5bMeHLvwePt+WCPPQEOlOwM2UhkI55CPdK4+TvtncR1MhGztFeNPW2 NW4Wrgw7precnuRsVK/u+uuPpCixfMX7GdfPA4ydOMRngavYI0/BxF2Al6ozNnRNex0G NMDp4fbf8xRkexG0oERfMNs7T99N9xcX9U7LJfbxTKjchvS+8BxC5RaXxtoCrodKwz35 Qp7iJ6ex3no9TIooeoSbJnqoGqTo/UOdMOESzTjzSCdknUGh6L9HG2vV1fcOsS7kH84X 82ng== X-Gm-Message-State: AKGB3mJSIKsahxGt7vzTcW55ozvKOMu8nNCYYunxYDq95FQKG/S2ysWe Q8zxJAWgA9Rf9tMvwzfP0h5ba7CO X-Google-Smtp-Source: ACJfBos7sm0Xztp/2P+Gq1hpByNgH1KmEQ6Jci1zdXVImtdaSRRtfpStxdt+epuNO8y6RNirbfpDlQ== X-Received: by 10.159.218.12 with SMTP id v12mr3714602plp.224.1515046479522; Wed, 03 Jan 2018 22:14:39 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id y5sm5921514pfa.128.2018.01.03.22.14.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 22:14:38 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 1/7] drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H Date: Thu, 4 Jan 2018 11:42:19 +0530 Message-Id: <1515046345-15881-2-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> References: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_221455_060350_744A4982 X-CRM114-Status: GOOD ( 14.70 ) 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 Reviewed-by: Rob Herring --- Changes for v2: - Updated binding info about optional properties, node and example .../display/panel/ampire,am-800480aytzqw-00h.txt | 25 ++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 52 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..abb5eee --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ampire,am-800480aytzqw-00h.txt @@ -0,0 +1,25 @@ +Ampire AM-800480AYTZQW-00H 7.0" WVGA TFT LCD panel + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Required properties: +- compatible: should be "ampire,am-800480aytzqw-00h" + +Optional properties: +- backlight: phandle of the backlight device attached to the panel + +Optional nodes: +- Video port for LVDS panel input. + +Example: + panel { + compatible = "ampire,am-800480aytzqw-00h"; + backlight = <&backlight_lvds>; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8fd0b01..e262462 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, @@ -2054,6 +2078,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, }, {