From patchwork Mon Mar 4 16:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsOpbWllIERhdXRoZXJpYmVz?= X-Patchwork-Id: 209636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1534368dyc; Mon, 4 Mar 2024 08:32:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJM5zEEIv2lnEjViBmkVq7KI5HZ4jPaL9LgtxckoPfDRLAhFBJpGiqKZgm9uK5K3C4zur6zues18FsEgf3L54JOFe5dg== X-Google-Smtp-Source: AGHT+IGY+6/GR+wFAd8ltmtJDBrw2lMV6xq1xQi85C94aNFYU3OO0VhY0S+V0NbiynDKll3qUDYO X-Received: by 2002:a05:6a20:a128:b0:1a1:4eac:eca9 with SMTP id q40-20020a056a20a12800b001a14eaceca9mr3193198pzk.51.1709569962844; Mon, 04 Mar 2024 08:32:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709569962; cv=pass; d=google.com; s=arc-20160816; b=LhFZaFmZyVcmfY4fwrsQq6iKzTMxMiIZ/VbUI3DoeCEtpHM1xaext1lbmVEWPeaTag 9GUBtbPTYfnXCUgqv7c18x1BT5Jouo3sYBL245jj6JZHm4MXD2R/ayoQcZsmTVnsqtUL 12J07AE18Sb7Mli95Y7x+r2LbXXN18LOpE79tW2aTJfKguc920K3BWDyONb58/fHpm9w 8yfaCgZJuRWNBQlc/hYgCXfQO/ZNQ7ohsi+eYbe8XLNFgU1KIuhSloDrRQLz1aP6Twgi 6RRrdnXuYZ4ia/y+/rd28FVVHwCX7qx18rlylmVQrIX/3plBkH4hWJttGnfIZJCYsbbY cKxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=02ddm9Xy6N7z/+neL8gzCb13I4/NT+KuYhzJAZBmiP4=; fh=SDGNfAzC7gFujil+Yfsza7hv4lBQLw/oEW2uww0G3a0=; b=fmCdWONVQNOgPQageRohVHBShiCG0jQlMDEsJ8HdJk5RSwaNnl5+b2j19NjV3wtVHS x45F0A4vtl9YQq1k1OPBU7QXZRJgbMyhH97o8qJHIoUU0QyIss7JjYkSe5LFCWryuzeW 5CwHonNixI3AbknofCEJltWiurcTUwTnIkL5r0YYL1PQt28oQORPzAIr2umijgMAni26 nmNGshfja3JlcXfIhahMCVNEVQvsOVy4uW6Q3NHRbT78e7r2CMM5uqNc5aRhy7BZiHYp BpXs9DT5I20oUUwlcN7v2zx+W+qpkxQaVdbUEcw3cArEbqAQuZZM7Pg8eGph1kc2GhOI CKJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hSIUVb6E; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-90896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90896-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y9-20020a631809000000b005dc48449b0bsi8648997pgl.690.2024.03.04.08.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:32:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hSIUVb6E; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-90896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90896-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5B05FB2450C for ; Mon, 4 Mar 2024 16:06:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACC084DA1E; Mon, 4 Mar 2024 16:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hSIUVb6E" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 395C4482DA; Mon, 4 Mar 2024 16:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709568305; cv=none; b=o6JmfqDbaQgSyFaVVveLEC0yaip0GLH7KH2w++BEF9c+rwBA3L3RZngSSui3dotHQ40hDLYsaROYNGhJqPgy4AOPFwCNmr3rg/N03n6HjhAlMEZIzMCY+1chH7DE7pekBXtrTu1k16KXfxJ53oXQM9kN8xY2yST6as08wrukYOE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709568305; c=relaxed/simple; bh=UqrS3L3ZfbwmChhjl8azT4mTToB0ZPmTuVA//e4Tm3c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Ed9qnqvtDOt+Q85DvS0+92hp/BA6lWX6XrET1iRO6+gjbebRRt9wNNzT+0YRNxuomVO17mZB0lwBYXBYHBkqS3DpowHn1T+ZgZU+oazjyuk9C1KzFYLpedbR9mS0bBJFmC2/OMD77JfhL8R0StPHUAw40X/p6EzY5LSKemRFVZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=hSIUVb6E; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 949B920004; Mon, 4 Mar 2024 16:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709568301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=02ddm9Xy6N7z/+neL8gzCb13I4/NT+KuYhzJAZBmiP4=; b=hSIUVb6E9z+JSB3bVvrNY/dPAlfXj7zfaI3INTwE8Z2MqF10k09JJmTREEaB3DRgjsWAQj YwzYwrwJKxnGbuvvtKJw9iaJxJvbXAzkzEXZeTUcF58cWnZDswtLxwJNXEVgAPkiSIgJtc 9lroxmwHSoB34Yz6fFszoK/HGENu8aOAhW+7unBeOQ2lIxYlqzYMgCqQwIYnS3ASG9W+mX tixzkUi6qIOWAa+ekwBb2CBGStwPBvV/uqrjaRzm4I8BjtYxsd/8EjxtKvgcf8zQ1GRw7Y tu1aM+ajydcauOYQjMoKO7iApTuYrnLSblJ2fCiJYBYBBnYiG5xrDw6qRSSo7A== From: =?utf-8?b?SsOpcsOpbWllIERhdXRoZXJpYmVz?= To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Yen-Mei Goh , =?utf-8?b?SsOpcsOpbWllIERhdXRoZXJp?= =?utf-8?b?YmVz?= Subject: [PATCH v2 3/3] drm/panel: simple: add CMT430B19N00 LCD panel support Date: Mon, 4 Mar 2024 17:04:54 +0100 Message-Id: <20240304160454.96977-4-jeremie.dautheribes@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304160454.96977-1-jeremie.dautheribes@bootlin.com> References: <20240304160454.96977-1-jeremie.dautheribes@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: jeremie.dautheribes@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792613620107004215 X-GMAIL-MSGID: 1792614033004243018 Add support for Crystal Clear Technology CMT430B19N00 4.3" 480x272 TFT-LCD panel. Signed-off-by: Jérémie Dautheribes --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 20e3df1c59d4..b940220f56e2 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1457,6 +1457,32 @@ static const struct panel_desc boe_hv070wsa = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct drm_display_mode cct_cmt430b19n00_mode = { + .clock = 9000, + .hdisplay = 480, + .hsync_start = 480 + 43, + .hsync_end = 480 + 43 + 8, + .htotal = 480 + 43 + 8 + 4, + .vdisplay = 272, + .vsync_start = 272 + 12, + .vsync_end = 272 + 12 + 8, + .vtotal = 272 + 12 + 8 + 4, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc cct_cmt430b19n00 = { + .modes = &cct_cmt430b19n00_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 53, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { .clock = 9000, .hdisplay = 480, @@ -4402,6 +4428,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,hv070wsa-100", .data = &boe_hv070wsa + }, { + .compatible = "cct,cmt430b19n00", + .data = &cct_cmt430b19n00, }, { .compatible = "cdtech,s043wq26h-ct7", .data = &cdtech_s043wq26h_ct7,