From nobody Tue Feb 10 14:32:46 2026 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 7DC6427CB27; Fri, 11 Apr 2025 19:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744399206; cv=none; b=q3a35NfD6fMii83nE1kKJbW54xvtTRR1Q0Z8PtjwVv4TMaF3pcCQRs9LjytxwD1SKNmx99j2TJuw8cQpa1Wm05hzjub2DO9579EyFhQEQ+ifvcdtLCfO5d4q+JmYarwDfzQfiK0smmGgDQAkLcfVzbPfiU/8xRwgQ9lxVrlKx9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744399206; c=relaxed/simple; bh=qqyun22ecjOWhAteJJEr18DaxWMK2xKPOhZOob0eha8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VWp9VlQrw4YiJxNe0wB48GhUKTlNI//vMQExK7T3PtaFey0Nv84Q8BzOrNHXIJ5BAG665yoLthAPl77QP5r9hs8ay99voFI9xHl3Si52BcN1krO8h77SFsQGK4IBO2v1nLv6/i7vDRkMdKg1GIV0IBxVHVENlHzoL0EQqnZCtLg= 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=U505Lvld; arc=none smtp.client-ip=217.70.183.196 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="U505Lvld" Received: by mail.gandi.net (Postfix) with ESMTPSA id DD38E43B1C; Fri, 11 Apr 2025 19:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1744399197; 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=vwh9Z9PqVJw95T9oNt3w9lPaV0QTmn4DIWmTAQ2NH4I=; b=U505Lvld9Wka4ieXa4UPCsbTblYuRjzN9B1iywMWDRy03EXj/eOdyuGXnqGLWnLFKnGA4r lPfIsUQuPntpea/jVG6ijCsKtHbULHXyKh3WfvntZvg/JJHsTjDnZAaDAyOla71YyWwUJL eNhsemmvvacdP0kfdAFwYzmNUYWq8obl8EcrLym8J7Xi8wCmLfWCs0smWIXlsbTrCSQJ5e x8GDmaVRkVvuoP+X/7GdYyyvfl91N6B+8I4VPkVPZRIobfUuLAWCqIUaUR2uQ5cfjfvXhY Ggo+l/ekTKiQ4IEPyp6ad/F0oYv/nNXUitNOwuGVQYYWkmZSI9NmLtQG/6T1gA== From: Luca Ceresoli Date: Fri, 11 Apr 2025 21:19:46 +0200 Subject: [PATCH v3 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: <20250411-tianma-p0700wxf1mbaa-v3-3-acbefe9ea669@bootlin.com> References: <20250411-tianma-p0700wxf1mbaa-v3-0-acbefe9ea669@bootlin.com> In-Reply-To: <20250411-tianma-p0700wxf1mbaa-v3-0-acbefe9ea669@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: Dmitry Baryshkov , 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: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvuddvieefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomhepnfhutggrucevvghrvghsohhlihcuoehluhgtrgdrtggvrhgvshholhhisegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeeiieeuvdfftefgueduleehueetgffgjeeitedtteetkeeuueeuueekveevvdeuveenucfkphepvdgrtddvmeeijedtmedvtddvtdemvggrtddumegsvgegudemleehvgejmeefgeefmeeludefvgenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepihhnvghtpedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvpdhhvghloheplgduledvrdduieekrddujeekrdejhegnpdhmrghilhhfrhhomheplhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepudelpdhrtghpthhtoheprhhosghhsehkvghrnhgvlhdrohhrghdprhgtphhtthhopefjuhhirdfruhesghgvhhgvrghlthhhtggrrhgvrdgtohhmpdhrtghpthhtoheprghirhhlihgvugesghhmrghilhdrtghomhdprhgtphhtthhopehtiihimhhmvghrm hgrnhhnsehsuhhsvgdruggvpdhrtghpthhtohepnhgvihhlrdgrrhhmshhtrhhonhhgsehlihhnrghrohdrohhrghdprhgtphhtthhopehsrghmsehrrghvnhgsohhrghdrohhrghdprhgtphhtthhopehthhhomhgrshdrphgvthgriiiiohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopegtohhnohhrodgutheskhgvrhhnvghlrdhorhhg 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. Reviewed-by: Dmitry Baryshkov 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 fd7ee5d1ca280be306620def30d3b423106b4304..a17866b7f61c0192ee0467ae930= 953cf76eb3424 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4418,10 +4418,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 @@ -4430,6 +4430,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 }, @@ -4462,6 +4466,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 }, @@ -5247,6 +5269,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.49.0