Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1272107ybg; Thu, 11 Jun 2020 05:45:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC1SNDj5N04L4jIS2g+l0ccvCrk9mCYUxEG8udZCaILfJHskoYaUkuk3LxLU0ML9KPZYYK X-Received: by 2002:a17:906:264a:: with SMTP id i10mr8196955ejc.210.1591879507928; Thu, 11 Jun 2020 05:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591879507; cv=none; d=google.com; s=arc-20160816; b=0lGyb/igpQEh0DZzTpjzE5k3PxSAcqrxcUYv0U0zvHW+OWOCbqkkIHSbAMoOKUIru6 HrqVgI4xmZHw7FdouKZnTeeLTHK8zYym687llg4VK7rP5TnvUmala4ra4YMq7cNVrmVS r4JNWkfsZhH3WIcp6vHoO4iK3Gc9Yk9LRNGrTzoxhp2wWwgshf3XskoL188Nbi1Iw6Bx o/5XdRLMLKIoMDIlaHEcxdGlGxWYq5vlxMMjn0BrPLWvdYd4mSMDXGf5VzbkcQf3AtCc Eq6kdd/YfTUkegEMwjZzhwNH6J8mhCVLENg2W1w+F1DBVLE+OmWTpzYz4KWgaumpaWxV Qq8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:ironport-sdr :dkim-signature:ironport-sdr; bh=hhzDZwdbB/oIGhs/5kZWBqtUUsGdFpF49m9t10FYhk0=; b=GCxSYkQf5Z59VHDvRN7qzQL8IgudWTGvTB0EoXxHO4pepG6Pzv3UxuTxqRfRsfzEgx YkZtpeQrn0UqXSfZ14tcsV8PISjnOf6BvpUoeodF8nQO4ecGSa/Hub7YbAEPsRFvls8Z iEZ/s1XJ+kPsBWg5EINOBX1XbpjAM1grtyiaGcYHBI4EVjFahAwOZXrjJ51//HGnv84r J5IMe7CIi5tBdNj3cv9ox45Q+fr6wCFaLuABHxLdXb/cxLhxhrs+sUGOuWjjWEg0oMA+ 2Um+n3QM98/ZRmxjEzOrXj/1ryMeq1S2hJirQaaBQ4ibxW9Cu7opck6C63pAMU82+peL BFvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b=RQQpzgmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp20si1968415ejb.307.2020.06.11.05.44.43; Thu, 11 Jun 2020 05:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b=RQQpzgmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbgFKMmk (ORCPT + 99 others); Thu, 11 Jun 2020 08:42:40 -0400 Received: from mx1.tq-group.com ([62.157.118.193]:31030 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbgFKMmc (ORCPT ); Thu, 11 Jun 2020 08:42:32 -0400 IronPort-SDR: psf8eA06QA73cVgDhKf1qN31JERE9W4cEVl9fRg+WGHuclzohHqlixpO1TAGj6XEmznSWRBm6s xZupZCVqEVb85x9X6UYBSmiGo6G2c2u4qsJTIeWuOc+G/9Yy5o5ICv6q+IwCEAsWNPtiOiPbXM AqGoeibeDCW4oqpAo3fjJmsjhZZzcjFUfoupSPiZaMPW0mm4rSWoRaG3TlT5sFTA/HXyvAnUfA IPfkbSn5q2lyiAMREMx6xWWWtp1d4vReUMc/OOHgC95IbSmyv6RnPlaolI4wkINPJJ/pivGV7G +Mw= X-IronPort-AV: E=Sophos;i="5.73,499,1583190000"; d="scan'208";a="12649667" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 11 Jun 2020 14:42:26 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 11 Jun 2020 14:42:27 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 11 Jun 2020 14:42:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1591879347; x=1623415347; h=from:to:cc:subject:date:message-id; bh=w92AlLWT7nwDfbklnB9I+khUvogaeBHHV8tKD4NSxZk=; b=RQQpzgmDedERRzPKaIo5YlWkWEQCx0G7gMnpGsnGibw83tShXc1k79ad EVbJFgb1OENZrP3CClgbdDQ0MPAuJ8EciXOyZdC6yjSNkMR9sMa2p9bdx NKrU+m2/S3pec2flzJKfLTQUjL5uufcfjUwmcsD+EM4PJz/oOyhq/suzg /MuA+aTg9NB2E0Cv2l7t28jy142IOM69QgTc24GcP+h5INoDFxvVQHzXL iF/ZRk+Qcu584qn32bT0ZyQnExhLqK0OgGcf683B2DpjPxYB6+tdfpvHM /eDgrrb+KW7KUIf1uSiwZ5zs0n6HliVgHDvXl+fpjWSU/seuSeioaT8CL A==; IronPort-SDR: EOnhYcJnjdJM6Gu+to8dm9odHIz97Z0LlsfClzwJV3AgkixJ4698sdcafFpKqcs2a84ffqci8L bpJI60Yeg42B1shkVVhoRac81DT7R1t2ppXYjuubeBs2hRLStqpFJbkW1h+E00xl5NdYLiF+XX aZLdCQzJs3ItforRLgmqa/BYf4wphedC76B+Ly0rV+fGJiku3V/1KQEHvVtsFsURHuMmnpUzE4 1xiSDbfgmSWScCBIYizpZOzH6ISdXRHtQgHmLCIs4MLY030kICzj3FWp1pxMmTdTXovj06C45Z WBw= X-IronPort-AV: E=Sophos;i="5.73,499,1583190000"; d="scan'208";a="12649666" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 11 Jun 2020 14:42:26 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.49.26]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 2CE9F280065; Thu, 11 Jun 2020 14:42:28 +0200 (CEST) From: Matthias Schiffer To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH v2 3/4] drm/panel: simple: add CDTech S070PWS19HP-FC21 and S070SWV29HG-DC44 Date: Thu, 11 Jun 2020 14:42:08 +0200 Message-Id: <20200611124209.25028-3-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200611124209.25028-1-matthias.schiffer@ew.tq-group.com> References: <20200611124209.25028-1-matthias.schiffer@ew.tq-group.com> In-Reply-To: <20200610120131.3069-1-matthias.schiffer@ew.tq-group.com> References: <20200610120131.3069-1-matthias.schiffer@ew.tq-group.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Krummsdorf Add support for the CDTech Electronics displays S070PWS19HP-FC21 (7.0" WSVGA) and S070SWV29HG-DC44 (7.0" WVGA) to panel-simple. Signed-off-by: Michael Krummsdorf Signed-off-by: Matthias Schiffer --- v2: - removed vrefresh - added connector_type drivers/gpu/drm/panel/panel-simple.c | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 6764ac630e22..ee9815e5eee8 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1296,6 +1296,60 @@ static const struct panel_desc cdtech_s043wq26h_ct7 = { .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, }; +/* S070PWS19HP-FC21 2017/04/22 */ +static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = { + .clock = 51200, + .hdisplay = 1024, + .hsync_start = 1024 + 160, + .hsync_end = 1024 + 160 + 20, + .htotal = 1024 + 160 + 20 + 140, + .vdisplay = 600, + .vsync_start = 600 + 12, + .vsync_end = 600 + 12 + 3, + .vtotal = 600 + 12 + 3 + 20, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc cdtech_s070pws19hp_fc21 = { + .modes = &cdtech_s070pws19hp_fc21_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + +/* S070SWV29HG-DC44 2017/09/21 */ +static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = { + .clock = 33300, + .hdisplay = 800, + .hsync_start = 800 + 210, + .hsync_end = 800 + 210 + 2, + .htotal = 800 + 210 + 2 + 44, + .vdisplay = 480, + .vsync_start = 480 + 22, + .vsync_end = 480 + 22 + 2, + .vtotal = 480 + 22 + 2 + 21, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc cdtech_s070swv29hg_dc44 = { + .modes = &cdtech_s070swv29hg_dc44_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { .clock = 35000, .hdisplay = 800, @@ -3674,6 +3728,12 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "cdtech,s043wq26h-ct7", .data = &cdtech_s043wq26h_ct7, + }, { + .compatible = "cdtech,s070pws19hp-fc21", + .data = &cdtech_s070pws19hp_fc21, + }, { + .compatible = "cdtech,s070swv29hg-dc44", + .data = &cdtech_s070swv29hg_dc44, }, { .compatible = "cdtech,s070wv95-ct16", .data = &cdtech_s070wv95_ct16, -- 2.17.1