From nobody Tue Feb 10 19:50:09 2026 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 5E2C421CA07; Fri, 7 Mar 2025 14:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741359300; cv=none; b=HTonoD0PMFWf4d7Ur4gZJ3rd3oAb78te6zHD++L/ajEk3yrqHz1JoDC8SzN2FtiHT4FOHykO3Pe0IbSjxQOdTcRnXUKMfLWFW9kOV4cgcRhgv8TWSn6wdjEM2iroQnAPwuJVb6ocSOeOV5UBckuaRXa78w7pxhaT0c9+bWFS78M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741359300; c=relaxed/simple; bh=emI6dUJHMJ0LxiJUFZ7W0ZLAipq+MHer73PkUg6sWQg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sevQ8ZKLmYNuD9wSlOPgtPuMDFBZxU0xd966mwG2eXRgOZZDd68hfiIWVS9EUT+wDAJXlsC3F+ELHY1BTMQi/7g/YbO/OBmlpkr96QF6svr6eb4RX4i1uqeixlBEl8xM9LyxNoL6H5e/X6S9YjyWXlO8QRUxQPJ5xBcbQp5D4ac= 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=PCLTywck; arc=none smtp.client-ip=217.70.183.197 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="PCLTywck" Received: by mail.gandi.net (Postfix) with ESMTPSA id 79FB044302; Fri, 7 Mar 2025 14:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1741359296; 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=qlcuG6fkQ3ZcASdAzmH1VfD3piEH+PQQoeDSUro/5UA=; b=PCLTywckrPS0OT6tatuRLWqNXfierryuyBVfYUiyO6zX6nO8LzcBnFF2kCDkB6JAJdobsb riqgDOUp5qDwX8jh6M2BkReFlEGHLUT5BHzdlOdAAmNtS16Y7QDWGxDq4BId2bRjAMRUkQ uCQbcQiUWonS05FNK6n/+rWZisJaOJ3AnB6UdZGcYs6e6xkL/4VA5UtRceO/sGqmW9Ur9A VxYOFIeF8sSImTzbOA1C0IrHcDPAZxTnVvrfBVb6ctd848hWPKTG/sUJO78WeLfCUx7wXA ntTORNPukCgpSAQsz+imgo98lKUxaAzsKdqHesT0aEKIj+Yg+i3VXnzkL4wuLQ== From: Luca Ceresoli Date: Fri, 07 Mar 2025 15:54:49 +0100 Subject: [PATCH 3/3] drm/panel: simple: add Tianma P0700WXF1MBAA panel 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: quoted-printable Message-Id: <20250307-tianma-p0700wxf1mbaa-v1-3-1c31039a3790@bootlin.com> References: <20250307-tianma-p0700wxf1mbaa-v1-0-1c31039a3790@bootlin.com> In-Reply-To: <20250307-tianma-p0700wxf1mbaa-v1-0-1c31039a3790@bootlin.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Sam Ravnborg Cc: Thomas Petazzoni , "Pu, Hui" , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.14.2 X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddtleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomhepnfhutggrucevvghrvghsohhlihcuoehluhgtrgdrtggvrhgvshholhhisegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeeiieeuvdfftefgueduleehueetgffgjeeitedtteetkeeuueeuueekveevvdeuveenucfkphepvdgrtddvmeeijedtmedvtddvtdemvggrtddumegsvgegudemleehvgejmeefgeefmeeludefvgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvpdhhvghloheplgduledvrdduieekrddujeekrdejhegnpdhmrghilhhfrhhomheplhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepudekpdhrtghpthhtohepjfhuihdrrfhusehgvghhvggrlhhthhgtrghrvgdrtghomhdprhgtphhtthhopehkrhiikhdoughtsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehthhhivghrrhihrdhrvgguihhnghesghhmrghilhdrtghomhdprhgtphhtt hhopegrihhrlhhivggusehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhimhhonhgrsehffhiflhhlrdgthhdprhgtphhtthhopehmrhhiphgrrhgusehkvghrnhgvlhdrohhrghdprhgtphhtthhopehthhhomhgrshdrphgvthgriiiiohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopehluhgtrgdrtggvrhgvshholhhisegsohhothhlihhnrdgtohhm X-GND-Sasl: luca.ceresoli@bootlin.com Add the Tianma P0700WXF1MBAA 7" 1280x800 LVDS RGB TFT LCD panel. Reuse the timings of the TM070JDHG34-00 as they are identical, even though they are described differently by the datasheet as noted in the comment. Power up/down timing are slightly different, so add a new struct panel_desc for that. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/panel/panel-simple.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/p= anel-simple.c index 9ca88ae83224e306734386dc4ce2d7ef5f6c84f2..4c260abea55200ba8d5dcd8b848= e2848d3faeccb 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4335,10 +4335,10 @@ static const struct panel_desc tianma_tm070jvhg33 = =3D { }; =20 /* - * The datasheet computes total blanking as back porch + front porch, not - * including sync pulse width. This is for both H and V. To make the total - * blanking and period correct, subtract the pulse width from the front - * porch. + * The TM070JDHG34-00 datasheet computes total blanking as back porch + + * front porch, not including sync pulse width. This is for both H and + * V. To make the total blanking and period correct, subtract the pulse + * width from the front porch. * * This works well for the Min and Typ values, but for Max values the sync * pulse width is higher than back porch + front porch, so work around that @@ -4347,6 +4347,10 @@ static const struct panel_desc tianma_tm070jvhg33 = =3D { * * Exact datasheet values are added as a comment where they differ from the * ones implemented for the above reason. + * + * The P0700WXF1MBAA datasheet is even less detailed, only listing period + * and total blanking time, however the resulting values are the same as + * the TM070JDHG34-00. */ static const struct display_timing tianma_tm070jdhg34_00_timing =3D { .pixelclock =3D { 68400000, 71900000, 78100000 }, @@ -4379,6 +4383,24 @@ static const struct panel_desc tianma_tm070jdhg34_00= =3D { .connector_type =3D DRM_MODE_CONNECTOR_LVDS, }; =20 +static const struct panel_desc tianma_p0700wxf1mbaa =3D { + .timings =3D &tianma_tm070jdhg34_00_timing, + .num_timings =3D 1, + .bpc =3D 8, + .size =3D { + .width =3D 150, /* 149.76 */ + .height =3D 94, /* 93.60 */ + }, + .delay =3D { + .prepare =3D 18, /* Tr + Tp1 */ + .enable =3D 152, /* Tp2 + Tp5 */ + .disable =3D 152, /* Tp6 + Tp4 */ + .unprepare =3D 120, /* Tp3 */ + }, + .bus_format =3D MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type =3D DRM_MODE_CONNECTOR_LVDS, +}; + static const struct display_timing tianma_tm070rvhg71_timing =3D { .pixelclock =3D { 27700000, 29200000, 39600000 }, .hactive =3D { 800, 800, 800 }, @@ -5155,6 +5177,9 @@ static const struct of_device_id platform_of_match[] = =3D { }, { .compatible =3D "tfc,s9700rtwv43tr-01b", .data =3D &tfc_s9700rtwv43tr_01b, + }, { + .compatible =3D "tianma,p0700wxf1mbaa", + .data =3D &tianma_p0700wxf1mbaa, }, { .compatible =3D "tianma,tm070jdhg30", .data =3D &tianma_tm070jdhg30, --=20 2.48.1