From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 CE5BD3A1A2B; Mon, 20 Apr 2026 13:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776690838; cv=none; b=OgS5PMj90X2SMAlUo+PAO/lzDHT/Mhm+XVOwhSXCDiMwUd8MHgAU4p4UZ7jI359pLWCFpqMaxLltmnXbwaoxfHceIx7gSZnoK1TJrJP3PPZXFMg5GjUx4xWDVBarfTuvBmFN4c/EF1IRrBCdh3cZuijTBNMTjUNm8v+648DK28Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776690838; c=relaxed/simple; bh=OTOH3ZeYgVnJs6tLI3x0KEqkmqaY31h1b+sNXzjNFkw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AHbnrB7B1NduNwTNXuXj/D59FE/0sZ+P27H9C1YRioK0b8gSIr8pjkdGAIgRHaSvZVpy2vWp9ogmSWVsQyszpO66wOyhSN7vYvviHo+/XvQ1fe/bx2DWUEiG5TmZZ7K2VWxG8nKqf5XBW5iVVAnM5Meu/vNhhvNALze41pVhe+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=IwAdTYXJ; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="IwAdTYXJ" Received: from [127.0.1.1] (91-158-153-178.elisa-laajakaista.fi [91.158.153.178]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 50D232769; Mon, 20 Apr 2026 15:12:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1776690737; bh=OTOH3ZeYgVnJs6tLI3x0KEqkmqaY31h1b+sNXzjNFkw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IwAdTYXJYgS9VgKEB9/qQOityYtSAJBHz+PB8BqctLnSVCHve8GZ6z/9SuIL+r8Oz siDC4k4KxeRjC/duM000T2Z0bi8QFyTneE8fc7sha80ZrZB+i5rmO034c0IxFoFOfZ zG/hQfjra/7sYMpm0NF4umC0Ce2LO058IzjMaSl0= From: Tomi Valkeinen Date: Mon, 20 Apr 2026 16:13:36 +0300 Subject: [PATCH 2/2] drm/panel: simple: Add timings for Raspberry Pi 7" panel Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260420-rpi-7inch-v1-2-e68d5c9c44bc@ideasonboard.com> References: <20260420-rpi-7inch-v1-0-e68d5c9c44bc@ideasonboard.com> In-Reply-To: <20260420-rpi-7inch-v1-0-e68d5c9c44bc@ideasonboard.com> To: Dave Stevenson , 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: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tomi Valkeinen X-Mailer: b4 0.15-dev-c25d1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3166; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=OTOH3ZeYgVnJs6tLI3x0KEqkmqaY31h1b+sNXzjNFkw=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBp5iaOmWf+RtmzIrZdcehacyVvlq8B78OVw8Kwd /vh+tW8g+iJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCaeYmjgAKCRD6PaqMvJYe 9ZlPD/sG4leh9VTCLgKyRnJb3Dr+6Xbd8kUOqNk/EqAGepcuCEN/aNl9QtYYn4o7qqKnyPwfSzX K05EZO9ZgMriVVKzx2xGbd6H8I9jsrXCf6IQV/ZC2TY7DixPUyPAx5N/Xvid0qGpCttCjFs41jd 9bYiOMQyrUIoPLY/vueOIM3mR+eAjiweaqZF2p3ws4QRCc3NJpguTP6y02G4AgmrBvc1dgiaIYu zuhPG2JkY2w9tiy7ACr4iPoPw465UBhm623VDRaeLehpgA83JRkypOVYMkTHHuZSMzy8AP2OR9m 1iNa/Ao5pu0Bb8x8hsa/KH6A6OIBBytr6fPQ4u14DU3JyKpcs5G3Ahfm35nWsD83cGm6Ibpw+93 B5eoVp8io6gQNyvRSmUb8DfxlgRrE1aCkE254C1O6pVgilidoDGsqrfetVVjRziTEU9xLC1Qzcb 3qGP5TyWa1xiSd0J7W0/Gihr21cegLdw+OYNdU/EhMi+j6RdVOHqlxUfFsXvGqqG+V23GGERfQ2 hW5CqHvkjLmQY/Zt6hKuqvIIOFcmaS/FKZl3XjoNEfNTRl3ve/PhSjD3Ij6wAmpuBp4ggAngKcF z34/ze9GFAYPC0PD85Vtz9A2V0wwylVMbpz7w0q47c7TODjZpgDhzYDPtR+EVOVcPUTS/KEmAEJ dJMFNwVUXC5BzZw== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 Add timings for the panel used in Raspberry Pi 7" DSI Display module: https://www.raspberrypi.com/products/raspberry-pi-touch-display/ This has been tested with version v1.1 of the display module. The panel is very strict about the back-porch values, they must be exactly 46 for hbp and 23 for vbp. Other timings can be defined quite freely. The panel is exclusive to Raspberry Pi, and different versions of the display module can have panels from different vendors which are fully compatible. Also, as the panel vendors are not public, the compatible string used is "raspberrypi,7inch-dsi". Note that while the display module has a DSI connector, and the compatible has "dsi" in it, we use DRM_MODE_CONNECTOR_DPI as the panel itself is a parallel video panel. The display module (as of v1.1) uses TC358762 DSI-to-DPI bridge to do the conversion. We could use DRM_MODE_CONNECTOR_DSI here, which would have the benefit of showing a "DSI-1" connector to the userspace. However, the panel IS a DPI panel, and gets its input from a DSI-to-DPI bridge, and the panel-simple.c behaves differently depending on the connector type used, so, DRM_MODE_CONNECTOR_DPI it is. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 91ab280869ba..e75eb20301f2 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4208,6 +4208,35 @@ static const struct panel_desc rocktech_rk043fn48h = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing raspberrypi_7inch_timing = { + .pixelclock = { 10000000, 30000000, 50000000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 16, 72, 354 }, + .hsync_len = { 1, 32, 40 }, + .hback_porch = { 46, 46, 46 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 7, 21, 147 }, + .vsync_len = { 1, 2, 20 }, + .vback_porch = { 23, 23, 23 }, + .flags = DISPLAY_FLAGS_VSYNC_HIGH | DISPLAY_FLAGS_HSYNC_HIGH, + /* Note: the rest of the flags are defined below in bus_flags */ +}; + +static const struct panel_desc raspberrypi_7inch = { + .timings = &raspberrypi_7inch_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DPI, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | + DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE | + DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, +}; + static const struct display_timing rocktech_rk070er9427_timing = { .pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 }, @@ -5490,6 +5519,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qishenglong,gopher2b-lcd", .data = &qishenglong_gopher2b_lcd, + }, { + .compatible = "raspberrypi,7inch-dsi", + .data = &raspberrypi_7inch, }, { .compatible = "raystar,rff500f-awh-dnn", .data = &raystar_rff500f_awh_dnn, -- 2.43.0