Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1914880lql; Wed, 13 Mar 2024 11:41:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXR2rXlabZTSarw/YkCMrGkHjJlrtKTMsMrJjgJ8zLbLkSPhqlt+z6PNsn5xN/zRwp13qpplYjviu0ePVbHyrTIcFSmalaZdNuZjow78g== X-Google-Smtp-Source: AGHT+IHvmopaMpXGhJ61BabACrnw+uLWmaIPZUhAPt2EHgG4GCjBVRa06pYn+etL1F6+B7Lq4ip5 X-Received: by 2002:ac2:5217:0:b0:513:2a84:c45c with SMTP id a23-20020ac25217000000b005132a84c45cmr4972638lfl.28.1710355274747; Wed, 13 Mar 2024 11:41:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710355274; cv=pass; d=google.com; s=arc-20160816; b=NJQSVEd2OLAyg6/j2423XejdH4p5wYtPWlojwZ0Uqr4ydfu9Q6kyjfTeXeLrRqO4Ps R3LeYN6ZYZvBqwzke/inBhYQUsREf8Qx3yBeYvQJTcWxdETzIYJW5A9VPJFxVhVG44GW ltsCwikk3JYw4HXB42KgvyCJ+8R8faisQ754M7fg63MhMcWTv0TqJmG9u7BOGnFye/hD jpFUGo7ReWcRK8/xfqkyDq17cbtubdhXLsyUMBDBYYs2CvWhL7+mdgXhpZDOhEBKYShK DAKJC2zWjrgiN19nZsIkQqIzN1A4T3O8ExKNg4WuA3/HqCMssl7/qGwOw9sLOFQWtuZA ooEw== 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=Cxt4rRwQDdEywKuxvwOOReRQvAjrL6urT5nnO/pBm6M=; fh=B3t9mS6sVG/z/DGzKISHn8jSoBlj2kQUTH3dMGCZ9pY=; b=D1fHvxaIUx6cGvftwdLkAagc0zl6Ug+2D9ROU0WgVOFrCrP7l/oXnbRcAZjjDkaVlX hN6yz2rtzofgox8RKW7kNKGAyGlfOlaQlTFPGZObDm8+ZNF1qCClQ7TpYLIFLkZZ1Uq4 e647YXtJcPsSXUNK0OzzdqQ3QXvuBmxLjL1rhSK/6W3o5oIiRtWpWV/E39qu+pXw+mQN rFxhLrEOSvLP2GMStLiYGmyDXbHvGoCuaMjLOGm6wyOGHV7AZAnWQGIDk6y2QaEf/hcO fGmo+vI0q+KyWf+gsvGZn6dNVrqhlwI/XBNb8Ec8SwKbKNRVVd7wlMg42LX0/vygw8Vz fIgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=J3Jw97vT; 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-102256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b5-20020a1709062b4500b00a4655959150si921548ejg.71.2024.03.13.11.41.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=J3Jw97vT; 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-102256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102256-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9F79C1F28860 for ; Wed, 13 Mar 2024 18:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71C6381AA1; Wed, 13 Mar 2024 17:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="J3Jw97vT" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 52F5480C14; Wed, 13 Mar 2024 17:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710350437; cv=none; b=jZxSMVo0KFkvikH+Dg6sGY5jgbIgV8dzCQhdk02cA1RGDhqZxFvOuDwc6OZep/ARsaF7vd56uFwZHpqc+6IKcxRykfoFvI0X8JOH83r+0lcY0iSzDAIWWzuLKXM8jiJDYkNTJMruHi1A0/VI/OxbuBSJCEwMGcByOocH3G7h0kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710350437; c=relaxed/simple; bh=NxjvQGRkUbfO3iz0bYj5pREEVHoSAk8BUB+aqZUAEs8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=e6EvJbuJgRro+L6/38VDJtU9ku5AZv6iDnxI2QQA0xCHIIEGTuB8Ou5OE9Egso4QMGcbmNCAGE4UpOQDaQqmeVMCBFjuD8V/02+sC9/CA3JgVn6WvGKUZumVOtOP83dVKt4f4un5RfxzTnuyuaFZ/jtX2RDnN9++6c6xmFo6Ivs= 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=J3Jw97vT; arc=none smtp.client-ip=217.70.183.195 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 0BF236000D; Wed, 13 Mar 2024 17:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710350426; 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=Cxt4rRwQDdEywKuxvwOOReRQvAjrL6urT5nnO/pBm6M=; b=J3Jw97vT+ILqpl1j49Q8O86WY7SE33uGUsifwrp8kTNxnRxv/oO/lK84KBukynQbTcNgHN b/cJxZq+GEPr0r5Ey3M8ABgJ4yoMmZ8bFz4ZrYwqBmCkpaaDnayofBF5GhRpKB6MEEpXa+ MFaVLLIh6t68ZK78OeOku7yJw5n+MpMDOtefahec6cnPtJec3OJWrDXT38jkEKfjZ4tLnV SdcDMeSniUGFZACgQ6CP5nBvi2IX14pAmZCh2gIA4dk4S7zbwCqLlC6pA6yWrQWUXbmH5P /G2Hy0akFD38PNLrAoevu7LulneLA/Oux1dLkr9zPRlXCDzO+icACHI0wzINUA== From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dautheribes?= To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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 v3 3/3] drm/panel: simple: add CMT430B19N00 LCD panel support Date: Wed, 13 Mar 2024 18:20:16 +0100 Message-Id: <20240313172016.387277-4-jeremie.dautheribes@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240313172016.387277-1-jeremie.dautheribes@bootlin.com> References: <20240313172016.387277-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. Suggested-by: Maxime Ripard 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..d13c42d0f57b 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 display_timing cct_cmt430b19n00_timing = { + .pixelclock = { 8000000, 9000000, 12000000 }, + .hactive = { 480, 480, 480 }, + .hfront_porch = { 2, 8, 75 }, + .hback_porch = { 3, 43, 43 }, + .hsync_len = { 2, 4, 75 }, + .vactive = { 272, 272, 272 }, + .vfront_porch = { 2, 8, 37 }, + .vback_porch = { 2, 12, 12 }, + .vsync_len = { 2, 4, 37 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW +}; + +static const struct panel_desc cct_cmt430b19n00 = { + .timings = &cct_cmt430b19n00_timing, + .num_timings = 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