From patchwork Tue May 7 13:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 353 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D3A673F066 for ; Tue, 7 May 2019 15:07:36 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id d21sf10241009pfr.3 for ; Tue, 07 May 2019 06:07:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557234455; cv=pass; d=google.com; s=arc-20160816; b=PAZ8FfHE0Kvwu5KHdiwkKqAFRwUYgDV6Me3y/mAmJKH0k2f1z45Ow1XICH/cqmtxB6 /ypvBpdw8RTrIMoUqvVjn+wMpMjF+Pup9fh9XC9sn0PgG2DIrmuQXN6vbfnXpNQsYQPK QYjpMycPkUPUSw+LVGQ+X9FYFUSKqXyNXqGjTDs0lTp4v7GXQg4cK5MMSA67snTOwkb0 /vT1Ob2Zx7DJT+b7b3JuLwSDkhcP6Z7FIuLEFC2bCHqBb71aM+AbzeXKBviXNjwovj5K Oy8q1ngVwfXsyrKmr4x/71eB63zcOQcyrdIXYSEqu/kN3j9gfaYPcAEDIN/wKz34Ojzo hEsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=tYEDiY00cDF67LI15BV5+CRD7WxBDlQ8EYdPqJO84UuG4sWmi7Jyyof5t1lTLE2ow4 zbHKQVzwG44BGgw8U6UB0xUwQMgUroVbTK5GADEYc+RvCl9tuzdOL+EuT1YXg5rKQIwd GtibebwICUIUqkZxu8cw4FWWz2nQk50dFitBGbjNfGBPvT7j5rRabA9HAPFKzsajiH4F 9VjUMJQ18SRKRbyYUq834Wk6yppvgjboMT2ATZDeeA/NsseYZs5wpa64IFSpFj4EnCjS DQbnHnEYjH+HOk9OVXhj86ph/LMQrESoYm4E9afJh5qdFym3WYUvYMZIRleAAMI0nX8U 9MxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=edyEPa62; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=djTjE5mWEMqdHox4D2roVUQmJ+VoeCkiw+sW7cJbqbt+CUGzGx1EQ3QmnelSbAQx8C Sm1MJaMczI9LIkNJHJFSZAjXLiTEby9WOzx7vd5fFShlzo9Z3tirdv1DF7o90r18L4aI gzRP94h+vUxVhLlqtQ/QNAuw+0PCIq+w/lLGY= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=EqatA8A04jT9cKWHXWMdj2LGUQx3TxO2A/SwUyN5u9ya3F/CWJaoCHKqWbRKwxNPxz mIniP23FsagSvZetdgayGTLhATJSEz8zOMHiJHHIoi6LqeX0YFzhMRcYoXsDIpILjKnh F1REaEEUNrKqhI0lrbpkoZ2BpK3YgDkP4TSbSLGp/Oix7xqWvohsoYE9w9mJ4+cSk4MA l+d4e/qtmUdW5G+sUSviasuo+ijjd95fSi+TjtN6I1II0fK0AU717yCsi+xLwLfErLeX EW/y5kWt0UNBf0d3CYA5nhyiJIu+ln7B8V3KGa5Hnd5p6wMW8p2Y5t/LsXdmCs2KdxkO I3JA== X-Gm-Message-State: APjAAAXgS1qnYFxaJ8Ex+QG4cnP2Z9A7L7nKE/nIW+2jY6NZ3epA84vZ ZWoCVj20ntlYBbfctL/no53YHRDE X-Google-Smtp-Source: APXvYqynRUUq+WeGuuP6X4Vi6GWfn+OXuFuHF/Wo8UUUnbUYVLHc9RP7vgUlsD8wqGYb/cYXTIL1EQ== X-Received: by 2002:a62:6b44:: with SMTP id g65mr41203548pfc.27.1557234455489; Tue, 07 May 2019 06:07:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:64cd:: with SMTP id t13ls3916727pgv.16.gmail; Tue, 07 May 2019 06:07:35 -0700 (PDT) X-Received: by 2002:a63:ff04:: with SMTP id k4mr39325313pgi.117.1557234455013; Tue, 07 May 2019 06:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557234455; cv=none; d=google.com; s=arc-20160816; b=wDJkiELVC5JZLgnk4Bo8Asj6XRkzGlRL5j6tKDMG5N/CQG0CjWHMZrcj5z+BkJI7N3 RyCeW9nFPSD58FecNftP6hz9miFe3rAJm+wgwfwny0eIteZXne+PnJkWocHfHaz8NpjF QpnQQ4fqKfYGZEyqzvJU/w63+nKzi+4KOmyANf5fVDivKbHrh04SeFyW/Ckb/KPQRSv9 ZJ6hOBg17F44uqSWN2GqhqsM65jtTYJCRSXmo4DozO7Fck1NjDpxWs+W+3lMeGa89IXH mc97U02qEhagXMj3EyV/BKDRK0OT8lZoWZa6F8QHTwI5yNhpLJieZtx7uTtNhPutAbyy CGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=TfYhTs0x3ZXtJudeHodQKwcOmRfWIiY2xFeJx4SyY8cCsTBm9VL1rAWAjSreERNu5v 7b39Ug3qOnCgPJPJ1Ie9WpN9Th15y+kC1GABgBx8hFcjagDdDtO0Yvi9y4WoGrT46IpS y0Q5C7Fs3Ne79JCc29o0U+rKOQjnOp/Ertn3K7TM2ZTdNnNYzn5lDmDrkC78zdQbLib5 YUf0fYkSLCWNIIFxH9LfWZJZbD6aqkiYZhVp6KyKumDqcEJPDGatRK+P6Ch7McvXtveF 52eHuPhs23QKVKiVYXrJT3FfV2luMIyRoZFqhnF7N6I2V5XXSc5lPAePQmHAY7dNzWir NBZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=edyEPa62; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s87sor15397464pfa.62.2019.05.07.06.07.34 for (Google Transport Security); Tue, 07 May 2019 06:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:fb56:: with SMTP id w22mr38503539pgj.354.1557234454717; Tue, 07 May 2019 06:07:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:33 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: [PATCH v2 2/3] drm/panel: simple: Add FriendlyELEC HD702E 800x1280 LCD panel Date: Tue, 7 May 2019 18:37:07 +0530 Message-Id: <20190507130708.11255-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507130708.11255-1-jagan@amarulasolutions.com> References: <20190507130708.11255-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=edyEPa62; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 resolution. It has built in Goodix, GT9271 captive touchscreen with backlight adjustable via PWM. Add support for it. Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v2: - separate it from binding patch - sort the match id and compatible drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9e8218f6a3f2..93274e270663 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1184,6 +1184,29 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode friendlyarm_hd702e_mode = { + .clock = 67185, + .hdisplay = 800, + .hsync_start = 800 + 20, + .hsync_end = 800 + 20 + 24, + .htotal = 800 + 20 + 24 + 20, + .vdisplay = 1280, + .vsync_start = 1280 + 4, + .vsync_end = 1280 + 4 + 8, + .vtotal = 1280 + 4 + 8 + 4, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc friendlyarm_hd702e = { + .modes = &friendlyarm_hd702e_mode, + .num_modes = 1, + .size = { + .width = 94, + .height = 151, + }, +}; + static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .clock = 9000, .hdisplay = 480, @@ -2637,6 +2660,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "foxlink,fl500wvr00-a0t", .data = &foxlink_fl500wvr00_a0t, + }, { + .compatible = "friendlyarm,hd702e", + .data = &friendlyarm_hd702e, }, { .compatible = "giantplus,gpg482739qs5", .data = &giantplus_gpg482739qs5