Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1953350lqg; Mon, 4 Mar 2024 08:31:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWCYpvqkXBBTYoKq/zOxbwgCvQmpED7d6atXqMnMyMPTGWZPLmA9v8b7yXo8m9WRFMSueEnOydanju9yMMsUUwfEAeaP6SpqtW66r/e7Q== X-Google-Smtp-Source: AGHT+IEcRumO+I00gxBOYvtnuqJSzeOfRxXIAOrUeduApJT1fFFgDsVsTIgGsdjrrfY4Oc4vYUsc X-Received: by 2002:a17:902:da85:b0:1dc:e58:8ab4 with SMTP id j5-20020a170902da8500b001dc0e588ab4mr12433802plx.9.1709569888910; Mon, 04 Mar 2024 08:31:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709569888; cv=pass; d=google.com; s=arc-20160816; b=HuuwwURsJk2rRpLtdyw79TWlcfWTNHWcRylviTYsE63dgC6XQquhWc+RRkwmQq4emq phbRWF1exfJRc2psbrU3xu8qzqR/dkS0WD/KG9gESer9BwPNC5+f994TNWKpUXlmYM2a NOr7HutJieqyvHcOr9ARi+uV1yFGBJfQ6YHvuIwx/yepxuHuX5o8iiN80MZucJcNj+28 T8I+EpVKYZpI9Lkh/GpffIfJrUsj5u+Dap0xNMWabEbQsldkZDifz3aWM6arqZ4x0F3D i/7helUbFHMfWI3+XYvdoWF5Ssa+amkKkm7dNc3LQUXfu3wPNkTdZvQmgvYoziQhSXx/ kQdQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ju17-20020a170903429100b001d9004b68f2si8372763plb.239.2024.03.04.08.31.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:31:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90896-linux.lists.archive=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 68181B24950 for ; Mon, 4 Mar 2024 16:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB3A34CE1B; Mon, 4 Mar 2024 16:05:05 +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?q?J=C3=A9r=C3=A9mie=20Dautheribes?= 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?q?J=C3=A9r=C3=A9mie=20Dautheribes?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: jeremie.dautheribes@bootlin.com 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, -- 2.34.1