From nobody Tue Feb 10 11:32:57 2026 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) (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 92A1C2848AF for ; Sun, 21 Dec 2025 23:32:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.163 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359950; cv=none; b=KdGyMHerbggEZrcHpovhGcIPsRPFI/K5dnKTTDbGcj8NpFdm792PSlIvnPJAKNgBRyl7kwiUaRduj3vAX9eXCOxbxWHCnqW1hBlzZKslYGidSQ7q65v2RdqbzCeDIKKumvwDNORRFjh8ek9+yy89ZcdKeeKC9i8jHSxaltk9tGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359950; c=relaxed/simple; bh=SqAQa8KLi+YoeXgCOe1GnJk4krnk1eHznUp0azeo1zM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nvVR5B1Sw7QQ9eb+TZNkXYhGGME4gSLEQLO5M5hyaSy8+c2SlGClA1+SweyV4daXYEk1VY6T0xTuWspoXbfZM6hi9a9jfvQUds0a8HXwhDm65eBfvH3G+uHFUpzgNub2twwJL/4PQ68QtrJsla0vMU4HqseBm21K0/K2nWTiHbg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 754051F8F7; Mon, 22 Dec 2025 00:32:23 +0100 (CET) From: Marijn Suijten Date: Mon, 22 Dec 2025 00:32:15 +0100 Subject: [PATCH v2 09/11] drm/panel: Add panel driver for Samsung SOUXP00-A DDIC 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: <20251222-drm-panels-sony-v2-9-82a87465d163@somainline.org> References: <20251222-drm-panels-sony-v2-0-82a87465d163@somainline.org> In-Reply-To: <20251222-drm-panels-sony-v2-0-82a87465d163@somainline.org> To: Neil Armstrong , Sam Ravnborg , David Airlie , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simona Vetter , Casey Connolly , Rob Herring , Krzysztof Kozlowski , Simona Vetter Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar , Kuogee Hsieh , Jessica Zhang , AngeloGioacchino Del Regno , Konrad Dybcio , Marijn Suijten , Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=15683; i=marijn.suijten@somainline.org; h=from:subject:message-id; bh=SqAQa8KLi+YoeXgCOe1GnJk4krnk1eHznUp0azeo1zM=; b=owEBbQKS/ZANAwAKAfFi0jHH5IZ2AcsmYgBpSIN7iVsGmt6/wPKHJtUSqvqTKjZ8b2AN/ylMx WedLsv5V6yJAjMEAAEKAB0WIQROiwG5pb6la1/WZxbxYtIxx+SGdgUCaUiDewAKCRDxYtIxx+SG djwtD/9metcd8sIz6GE59n0wva6WOJ8FCMwq8kAEEfLYRvf03rpxlO+3cjpmwu7WQw33tvKhgMB MJi+hv8tnCqgUdh/CcFQs58Z3UdOn7DsUIZng3HXqo1i6swbUyl5z80w6QCmYGPmpDEuAqlZ+je HSI5bqMBohmBgeZtCpmgBJLhWnpnGQqAfjlS9NrmA8gnsGJqRbTERg1QBLWyoKJEUfp1Qa1bwjK rZgeVLxwDGktTblqw0ghZFFxS7oxw7iiEq4e4YoJTnDLYlT8RKgY3w0ryJzrDdu9Keibyw0AHPD jv6QufbCbn70NPmJJEtBMdQLIRx3A/StP7gSJcF+35WADpIuzlwCNod/vwP4fuu/JEMOT85PFFo nRoPuuXlyOf3o+ZvtP/9k/Zifpw4J1qY6qQ/roKKUadxQXEtCtS2+cLnMVh7PvQkquvSAfEaO0N uKD4UKEyOgMmsDg/BbWHVWOec3fhUiBTkkGif+21QEpXJfLZIkGZagG8jseS+WJ3CQm+4xtznjf Lu0JdG9YlDZkV0q8kJnLI6GSBQMGoDAJCUmI+Y0fdlA+DMlIzaQRXh8YiNzHzXpHSOkH2gOm6ls nGIyoSbma2aZcnBtsy7VDa7UfzbzOip6sHLe3VvSvyNWBgOhzu3QigUlCzn4qvciIy7CvBMcymQ Am54zmCX8fmSxEg== X-Developer-Key: i=marijn.suijten@somainline.org; a=openpgp; fpr=4E8B01B9A5BEA56B5FD66716F162D231C7E48676 The Samsung SOUXP00-A Display-Driver-IC is used to drive 11644x3840@60Hz 6.5" DSI command-mode panels found in the Sony Xperia 1 with amb650wh01 panel and Sony Xperia 1 II with amb650wh07 panel. It requires Display Stream Compression 1.1. The panels can also be driven at a 1096x2560@60 mode. Signed-off-by: Marijn Suijten --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 16 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-souxp00.c | 399 ++++++++++++++++++++++= ++++ 4 files changed, 417 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f32ff371799..37c5ce4b3ba5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8210,6 +8210,7 @@ DRM DRIVER FOR SAMSUNG SOUXP00 DDIC M: Marijn Suijten S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,souxp00-a.yaml +F: drivers/gpu/drm/panel/panel-samsung-souxp00.c =20 DRM DRIVER FOR SHARP MEMORY LCD M: Alex Lanzano diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 1f148bc5b068..3cca1c580d50 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -969,6 +969,22 @@ config DRM_PANEL_SAMSUNG_SOFEF03 This Display-IC uses Display Stream Compression 1.1 and features a 1080x2520@60 and 1080x2520@120 mode. =20 +config DRM_PANEL_SAMSUNG_SOUXP00 + tristate "Samsung SOUXP00-A DSI cmd mode panels" + depends on GPIOLIB + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DSC_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for the Samsung 4k 6.5" OLED D= SI + command mode panel found in the Sony Xperia 1 (amb650wh01 panel) and So= ny + Xperia 1 II (amb650wh07 panel). + + This Display-IC uses Display Stream Compression 1.1 and features a + 1644x3840@60 and 1096x2560@60 mode. + config DRM_PANEL_SEIKO_43WVF1G tristate "Seiko 43WVF1G panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a9636f5f433a..c19429b9e48d 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -96,6 +96,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) += =3D panel-samsung-s6e8aa5x0 obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) +=3D panel-samsung-sofef00.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF01) +=3D panel-samsung-sofef01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF03) +=3D panel-samsung-sofef03.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOUXP00) +=3D panel-samsung-souxp00.o obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) +=3D panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) +=3D panel-sharp-lq079l1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) +=3D panel-sharp-lq101r1sx01.o diff --git a/drivers/gpu/drm/panel/panel-samsung-souxp00.c b/drivers/gpu/dr= m/panel/panel-samsung-souxp00.c new file mode 100644 index 000000000000..4d86fe40d963 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-souxp00.c @@ -0,0 +1,399 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2023 Marijn Suijten + * + * Based on the following Sony downstream DTS command sequences: + * - Xperia 1 (kumano griffin): https://github.com/sonyxperiadev/kernel-co= pyleft/blob/55.2.A.4.xxx/arch/arm64/boot/dts/somc/dsi-panel-4koled.dtsi + * - Xperia 1 II (edo pdx203): https://github.com/sonyxperiadev/kernel-cop= yleft-dts/blob/58.2.A.10.xxx/somc/dsi-panel-souxp00_a-amb650wh07-uhd.dtsi + */ + +#include +#include +#include +#include +#include +#include + +#include