Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2230890yba; Mon, 22 Apr 2019 02:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoKLqPkYUY6Ifj0tm7wiVSrDL2wln22fSA9xSNFKXmHjbZFlxao/U7qmelUTAOw6JP1Bpp X-Received: by 2002:a05:6a00:11:: with SMTP id h17mr19480649pfk.232.1555927179050; Mon, 22 Apr 2019 02:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555927179; cv=none; d=google.com; s=arc-20160816; b=azSSxf3WY73iS94ZbV9Mp6E5c5htbfz84V0ORqpWn++I5zgbYt898nvwFHps0trLel jFuShLYwpbJYfGDdUG1LlC12ehMB7Y9di5O08jdRrqslep/rA3g9D9RvTvqUUw1MvAt3 C/JufMBJXu06q/qYkiZzd7AeSN2E04klE2//ETsp8THhkC+kCU0PLSMW+3I1Y0LAGXOS xf+2BN54RTk5DJLEiTsFDnU19EFOS/+RyIVVSXtwvJZw6Na++PtvveyULEP2pf9+9mhB 9jde9ZIZP2qAFu32MZVeHXjJcbB6XmdzqxgV1FJC9T5oLQmPtadvw/zv/3P9iE0gtDwZ Aodg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SSHuRpEPChVNkw5VL/LwuRqDA8mgCfxQAZUZ16LP9Fk=; b=jHdWcnekMJkoVHp0bmgaFlT1wJOC0AECQEhqRn5JMsvf7+XbHk0XDXCU0T8qt6NDoB 0ZDns/K/iO74isc49hOw2xlRTW1LvycAtp0ZUULvp9Hxe4jbbMAc1pNkl9RnVu6ZA3VR K7gWkp282BeOnxPUGrQZsQrYSo2syYejZ/0MuJfncc1BtTYCwqD8XIYwCAIX8CNgD8sm vLFZ7AFN8EtjOtvWBfAR5XHBudef1xu26Oh29C01Ic4oznTpSV92bzCWA2Nszwfi0/9e OcraaxS1dMAeCBC4zmOZBfCH0P+OMFNmURlhqtDwzUHrMsZONzsm1OPIV5RgQuZx8Vmq F/4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=k0h0G2Te; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si12572053plp.361.2019.04.22.02.59.24; Mon, 22 Apr 2019 02:59:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=k0h0G2Te; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727275AbfDVJiD (ORCPT + 99 others); Mon, 22 Apr 2019 05:38:03 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:36190 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbfDVJiC (ORCPT ); Mon, 22 Apr 2019 05:38:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1555925880; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SSHuRpEPChVNkw5VL/LwuRqDA8mgCfxQAZUZ16LP9Fk=; b=k0h0G2TeRjCZW8ZxVh6aj3SICLlCrw6SpW4qpjOUp5FVzfdwfOXKT4gurngTRtzOCgXeYw lEmaw/lJ2D54DiBhvTydQ2Xp0Q1gXRfCW/6PgpqANPqSx4ZduHGHYi8+t0FpWU3MivZuz2 u2mjzWl4c/5zI/M2w0R/YbJqvlCAx40= From: Paul Cercueil To: Rob Herring , Mark Rutland , Mauro Carvalho Chehab , Hans Verkuil Cc: od@zcrc.me, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Paul Cercueil , Artur Rojek Subject: [PATCH v3 3/3] drm/panel: simple: Add GiantPlus GPM940B0 panel support Date: Mon, 22 Apr 2019 11:37:22 +0200 Message-Id: <20190422093722.4344-3-paul@crapouillou.net> In-Reply-To: <20190422093722.4344-1-paul@crapouillou.net> References: <20190422093722.4344-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE v3: No change drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 569be4efd8d1..a81b35269a78 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1208,6 +1208,31 @@ static const struct panel_desc giantplus_gpg482739qs5 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct display_timing giantplus_gpm940b0_timing = { + .pixelclock = { 13500000, 27000000, 27500000 }, + .hactive = { 320, 320, 320 }, + .hfront_porch = { 14, 686, 718 }, + .hback_porch = { 50, 70, 255 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 240, 240, 240 }, + .vfront_porch = { 1, 1, 179 }, + .vback_porch = { 1, 21, 31 }, + .vsync_len = { 1, 1, 6 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, +}; + +static const struct panel_desc giantplus_gpm940b0 = { + .timings = &giantplus_gpm940b0_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 60, + .height = 45, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_3X8_BE, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_NEGEDGE, +}; + static const struct display_timing hannstar_hsd070pww1_timing = { .pixelclock = { 64300000, 71100000, 82000000 }, .hactive = { 1280, 1280, 1280 }, @@ -2666,6 +2691,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "giantplus,gpg482739qs5", .data = &giantplus_gpg482739qs5 + }, { + .compatible = "giantplus,gpm940b0", + .data = &giantplus_gpm940b0, }, { .compatible = "hannstar,hsd070pww1", .data = &hannstar_hsd070pww1, -- 2.21.0.593.g511ec345e18