From nobody Fri Dec 19 05:05:49 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 9CF3E1FD796 for ; Wed, 18 Dec 2024 19:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734551126; cv=none; b=S5eNQTI7Tu39WqSYuRmpuNC97N6kI01/4pI+tzG4/f4UWZEhaPqOFAtvvQ4og0vYNVBtrcfGP3MvJIcMCIFkapo4k9iXEU/cWMyPrxJlMxeLuFcSaBkE3Pv7nvaIhb8991IfOUT5NYb6OQmntBFbhaCpvAbqIyirLm/DOAhpd6M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734551126; c=relaxed/simple; bh=Xbety9S9KaNMvHEFY/Kx0YlZpF3GlbDYCukY6c3gakg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p11sB9g9GDWGsBHabdFsPlgFCs6v4OLS0aSYNL1iZVb9XNbZwsW4jctdNlyeiLRynuJ3lolWVgU2FZ+32NNreo4CPCdlnAfLS0kFmm//cdobGFyc7gATqUrt3MeOj0fSJUM/WHb1cBXkJkJokoCLsX5volX21zCQjrssZRjctwc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tNzyo-0006vF-KF; Wed, 18 Dec 2024 20:45:10 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tNzym-0045Eb-0o; Wed, 18 Dec 2024 20:45:09 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tNzym-00DT63-31; Wed, 18 Dec 2024 20:45:08 +0100 From: Ahmad Fatoum Date: Wed, 18 Dec 2024 20:45:00 +0100 Subject: [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD 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: <20241218-topland-tian-g07017-v1-3-d5e411c199e3@pengutronix.de> References: <20241218-topland-tian-g07017-v1-0-d5e411c199e3@pengutronix.de> In-Reply-To: <20241218-topland-tian-g07017-v1-0-d5e411c199e3@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thierry Reding , Sam Ravnborg Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K). The panel features 1024x600 24-bit RGB pixels driven over LVDS as well as a PWM backlight and I2C-connected ft5506-compatible capacitive touch. The panel description is taken from the Datasheet V0 (2024.5.23), but it lists no timings and these were provided by the vendor separately. Signed-off-by: Ahmad Fatoum Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++++++= ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/p= anel-simple.c index 222c170dde8be261e98ff41168ef8a3a42c167c8..626cbc6858215f6fdc72063e385= 64e2dc1deb52c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4361,6 +4361,37 @@ static const struct panel_desc ti_nspire_classic_lcd= _panel =3D { .bus_flags =3D DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, }; =20 +static const struct display_timing topland_tian_g07017_01_timing =3D { + .pixelclock =3D { 44900000, 51200000, 63000000 }, + .hactive =3D { 1024, 1024, 1024 }, + .hfront_porch =3D { 16, 160, 216 }, + .hback_porch =3D { 160, 160, 160 }, + .hsync_len =3D { 1, 1, 140 }, + .vactive =3D { 600, 600, 600 }, + .vfront_porch =3D { 1, 12, 127 }, + .vback_porch =3D { 23, 23, 23 }, + .vsync_len =3D { 1, 1, 20 }, +}; + +static const struct panel_desc topland_tian_g07017_01 =3D { + .timings =3D &topland_tian_g07017_01_timing, + .num_timings =3D 1, + .bpc =3D 8, + .size =3D { + .width =3D 154, + .height =3D 86, + }, + .delay =3D { + .prepare =3D 1, /* 6.5 - 150=C2=B5s PLL wake-up time */ + .enable =3D 100, /* 6.4 - Power on: 6 VSyncs */ + .disable =3D 84, /* 6.4 - Power off: 5 Vsyncs */ + .unprepare =3D 50, /* 6.4 - Power off: 3 Vsyncs */ + }, + .bus_format =3D MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type =3D DRM_MODE_CONNECTOR_LVDS, + .bus_flags =3D DRM_BUS_FLAG_DE_HIGH, +}; + static const struct drm_display_mode toshiba_lt089ac29000_mode =3D { .clock =3D 79500, .hdisplay =3D 1280, @@ -5037,6 +5068,9 @@ static const struct of_device_id platform_of_match[] = =3D { }, { .compatible =3D "toshiba,lt089ac29000", .data =3D &toshiba_lt089ac29000, + }, { + .compatible =3D "topland,tian-g07017-01", + .data =3D &topland_tian_g07017_01, }, { .compatible =3D "tpk,f07a-0102", .data =3D &tpk_f07a_0102, --=20 2.39.5