Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp214505lqt; Thu, 6 Jun 2024 01:02:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgk78DmFJ+pPS98oKQ/oRKdJ/GGtDhZzgLrV5LqnMa5cSv1gfOZHdvANWkulPLt9REuGduzgQFlf9o1ntCt/h2va/RFf3QHKfCmvOsaA== X-Google-Smtp-Source: AGHT+IHlFjEzdY1ZZK0vyn05nuXfyEvpbDJZbE1vXLlneq+4FPE2rCkVFrfcs3lDkeMdN3bKJe8J X-Received: by 2002:a05:6358:9213:b0:199:42c8:389b with SMTP id e5c5f4694b2df-19c6c69a62amr557176855d.11.1717660968842; Thu, 06 Jun 2024 01:02:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717660968; cv=pass; d=google.com; s=arc-20160816; b=zh5W87xE7IlUF+sz4mgfwtyyYEhSs7ZZUlfwFjznHmxMIguwWeQ0gYBSSTX/DhCRop pxymne4D6sgtfRjiSwlXyVpZ2QA7FTWQ28fTVShYKLZALFCzAyUPMsJjjaVgnqssQ0FL M0r8Gt42jbqDQnF/zkeiLxXAIFicVdSHymXvlx3kaAYHl5bjgLxp9sv71+xR6ORHsjJN z4wtFUZtidgiaMbrtFz/yDuAYLtJH7oLxjlIsxaw2gVWcyV319dqkr4GMgqyA0rNs3Bf 3S2paU0IuDK1oZnBBzmuCXb6Z6bNK4EudX319wL9Rekw/aJPPKnoxZUFeU+de0RYjQIO o4UQ== 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=WWms8HVZIOvAc05XHHH+pWslve4mOHOukt9ISJZLU5w=; fh=/RBdHmphlWsaukDPH0dOSHd/qEqD1zJwlpRSMkTcN5I=; b=iEUh+K4IW5Nfbu/QJyzSVTAu6sL5+A8nGgEKLDHCw+R8U49lYUqy1pL+qYmNx4sZ8P /p7LYxm0U8mA8as19dxstxAWEMwC0YA/uhEaZRllJMzCvzTFOmrrRI5wgAR9TDwQ/zBj 4eDNunu4tqI6t2k3OIe3SdPVCgrOn6IVFRjw7YWMT3KxiIiDQR9C6BBeEdSegK6m/BDd xoPQF84auIoa7HdEtwqBIYWiodUBZlvJENGU4EvwA3yK2Qv6PB5wpHERbEHmYjg0wVIa g13LhqJ+/KyNKoVXtJp67fDXfawhXwHV6GaVRJobKAaid2pWDFzp+wEk6waN2RuGnv/T oFmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=SXN9Ece0; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203782-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de208320besi764736a12.177.2024.06.06.01.02.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 01:02:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=SXN9Ece0; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203782-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 21FFB287CF0 for ; Thu, 6 Jun 2024 08:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AFD213D2B2; Thu, 6 Jun 2024 08:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=norik.com header.i=@norik.com header.b="SXN9Ece0" Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 2016813CF82; Thu, 6 Jun 2024 08:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717660874; cv=none; b=Rfb9xDE+9s7mAsx9QoIi72BmsTWOVwBoE3TOpEey+uUpf1gF4KqDVogbwhjnS6ujw9PuzFvj7NZWu6x3Um3eb/EswVUoMCrnQzKAJAI+LerhaULTXCQLrN7EmL7gB26jePaka6DRnmaurQyAOeLBPvviMQno0HpyZQlrBl0aVio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717660874; c=relaxed/simple; bh=UBkmGFtCTxUF1BotRo1j71xajS9LSy/3e74VtwfFhYI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=arRh6ileZZQvz4skQHF6VyGvrydsNRZ1ImQHAjpdzLZDYqxDCxcaAvvc2Y0JA3vox3JSFM0FjcZyZ702pshBzZohO7qtUW9IbFwmjOLlA54rUkRAHJgcAjDSqEZLxEV34VYv3N+K+jtob/KKmY2Ov+pw8bHMKIh+Q6EU/oBWJfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=SXN9Ece0; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WWms8HVZIOvAc05XHHH+pWslve4mOHOukt9ISJZLU5w=; b=SXN9Ece0ZBT0vNsILoNPj6JQHO Y5yWIwU3/j32mSRdN3IxiFvFhphFWyfyUYx4uvAsu26Xnfs5eezFvuPHUVDPKPSyBUKSdQ540GCcT 4UQBF3ht2HlRALgHG6Z3AnDTX+J0VmrjyKjHEEnBYbq6GMqZgTzLZAhSBBfdIcxiy1VHh8ZYQ75iL wNqbeZw2S0vLc+VtngOuFnkq1xP/e4alDIH+kl0z/Yv/OWjCf1fflnqiBo6uWQe3LYlTbBcWfpTlP 9JINjK7wHWdd7JHdMsl3NyCFEDV8c95v3ladhVphWsk8ZSMga0R3hLGfAH5QwQ+/+VDu/QOtZdQQ7 Eqc8XHVQ==; Received: from [89.212.21.243] (port=51044 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1sF83c-00BWkF-0M; Thu, 06 Jun 2024 10:01:11 +0200 From: Primoz Fiser To: Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Neil Armstrong , Chris Morgan , Sebastian Reichel , Linus Walleij , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: upstream@lists.phytec.de Subject: [PATCH v2 3/3] drm/panel: simple: Add PrimeView PM070WL4 support Date: Thu, 6 Jun 2024 10:01:04 +0200 Message-Id: <20240606080104.3663355-3-primoz.fiser@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240606080104.3663355-1-primoz.fiser@norik.com> References: <20240606080104.3663355-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Add support for PrimeView PM070WL4 7.0" (800x480) TFT-LCD panel. Datasheet can be found at [1]. [1] https://www.beyondinfinite.com/lcd/Library/Pvi/PM070WL4-V1.0.pdf Signed-off-by: Primoz Fiser --- Changes in v2: - sort alphabetically 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 dcb6d0b6ced0..80cca841db15 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3567,6 +3567,32 @@ static const struct panel_desc powertip_ph800480t013_idf02 = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct drm_display_mode primeview_pm070wl4_mode = { + .clock = 32000, + .hdisplay = 800, + .hsync_start = 800 + 42, + .hsync_end = 800 + 42 + 128, + .htotal = 800 + 42 + 128 + 86, + .vdisplay = 480, + .vsync_start = 480 + 10, + .vsync_end = 480 + 10 + 2, + .vtotal = 480 + 10 + 2 + 33, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc primeview_pm070wl4 = { + .modes = &primeview_pm070wl4_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 152, + .height = 91, + }, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode qd43003c0_40_mode = { .clock = 9000, .hdisplay = 480, @@ -4725,6 +4751,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "powertip,ph800480t013-idf02", .data = &powertip_ph800480t013_idf02, + }, { + .compatible = "primeview,pm070wl4", + .data = &primeview_pm070wl4, }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, -- 2.25.1