From nobody Tue Feb 10 14:32:10 2026 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) (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 35CA0450F2 for ; Sun, 21 Dec 2025 23:32:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359953; cv=none; b=jZeAMwo2nZfdrL4xqbBhB3WjYXxcme3upB+VLG6spyvXSCfOki88jRCV+FacgsheLt96mHb+8S8JW9nhnMlMZYySAYG2KQzxef2zgzPGGStYSZ60/fowhEpk6XMK3tUarru2Gi/W+VW/mJeuAdX0qxJv4TsWxjkPk1ai/wgT7sw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359953; c=relaxed/simple; bh=ZwAlx21oQfm+SIs6bP1zmqrCoZSpLJr7y9lu5q+M5/E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GTDvg8fRY6+1lwNbiiaxaTQSFYbY8vLpvykQyO6Apt46Wu+oBw/tcSqjoAFYNMhJQ6drjMlISvNC2LkeMoQzCDVYHL3bAyW6f4bhvt+KwpKcT2WJW7OL/jSSEEosH1bH/h5FZ1/rbmpEedy+Nfa0vUekvnUuO32PudTSUKpEHjc= 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.170 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 2EB221F8F9; Mon, 22 Dec 2025 00:32:26 +0100 (CET) From: Marijn Suijten Date: Mon, 22 Dec 2025 00:32:17 +0100 Subject: [PATCH v2 11/11] drm/panel: Add panel driver for Samsung ANA6707 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-11-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=17963; i=marijn.suijten@somainline.org; h=from:subject:message-id; bh=ZwAlx21oQfm+SIs6bP1zmqrCoZSpLJr7y9lu5q+M5/E=; b=owEBbQKS/ZANAwAKAfFi0jHH5IZ2AcsmYgBpSIN8zwY4fgnDif6LDQ5tiPfdKhUxGZYidcxUl lpdL1dLnQ6JAjMEAAEKAB0WIQROiwG5pb6la1/WZxbxYtIxx+SGdgUCaUiDfAAKCRDxYtIxx+SG ds+DD/9Ty0bj2LsnMHBOsp2IwrVatrVerRU5vg+G2QAiIFSNpRCdIwcvwgvgCj06S588WcjpzTN jTM0+3wVEq42ms0ap5wqJTyHHKVw/iM2UMqIWdrqqhxx+2fOsZzlaBU7Yo+5Bs5nArzQaxpindx E31r4OeDJ7SVX73S55z0SwOdGEZstRWJQlJ3t6HCkNW3UgbQ3frjqk5Ji0sNK94h0p6pFmY3Cwt pW6Tc/G6kh58iejy8qiblrbEScwt/9o9NFOJOuojij06TE9kV/V7DcKgSL3fdPlbx5XMJ3M4VqE bwBs3mGUMoKvLDgCtGDikZ6oRDn8cnK5312VidVo0qNVPpl+w8ESr9BFt8jXMcn6ds39QEEtSsh axeq2dR6LIAxv53cGzCBc/thNVGoM8XwuCWVHBA3McF+7BEnf/2wZ5mXFR/IQF5vcBu+Ehk+r4J yN2ZQUDyge2b9eLZ8Heglq+ht5JGiAzfEmTCpgSniv7QL31p3GoPJW7jaJWj/4QFxkmYYZHpW6N YyxM8BY/qmjzIxhVGGqsylImLdobe/sAQdNvE4CCLOQs7bBuJUpxhUSFAUB/I8ZZyP80aUMcFsn RwvhLzZJv+Ve2USbQcS+xuexaBmhL/SQ++c7QZz1cWheDvmmjUEGpAhp7auZ4RN30V6EmXgaQDH G0kIOiErPeuWWiQ== X-Developer-Key: i=marijn.suijten@somainline.org; a=openpgp; fpr=4E8B01B9A5BEA56B5FD66716F162D231C7E48676 The ANA6707 Display-Driver-IC is paired with the amb650yl01 panel in the Sony Xperia 1 III, Sony Xperia 1 IV and Sony Xperia V smartphones. It uses Display Stream Compression 1.1 and requires dual DSI interfaces to satisfy the bandwidth requirements to run at 1644x3840 at 120Hz. 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-ana6707.c | 461 ++++++++++++++++++++++= ++++ 4 files changed, 479 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 148b1f66c98b..b29adf972dfc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8150,6 +8150,7 @@ DRM DRIVER FOR SAMSUNG ANA6707 DDIC M: Marijn Suijten S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,ana6707.yaml +F: drivers/gpu/drm/panel/panel-samsung-ana6707.c =20 DRM DRIVER FOR SAMSUNG DB7430 PANELS M: Linus Walleij diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 3cca1c580d50..eda808b9d466 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -752,6 +752,22 @@ config DRM_PANEL_SAMSUNG_AMS639RQ08 Say Y or M here if you want to enable support for the Samsung AMS639RQ08 FHD Plus (2340x1080@60Hz) CMD mode panel. =20 +config DRM_PANEL_SAMSUNG_ANA6707 + tristate "Samsung ANA6707 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= ual-DSI + command mode amb650yl01 panel found in the Sony Xperia 1 III, Sony Xper= ia 1 IV + and Sony Xperia V smartphones. + + This Display-IC uses Display Stream Compression 1.1 and features a 1644= x3840 + and 1096x2560 resolution which can both be driven at 60Hz and 120Hz. + config DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24 tristate "Samsung AMS427AP24 panel with S6E88A0 controller" depends on GPIOLIB && OF && REGULATOR diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c19429b9e48d..146750b93455 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -74,6 +74,7 @@ obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) +=3D panel-renesas= -r69328.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) +=3D panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) +=3D panel-samsung-ams581vf01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) +=3D panel-samsung-ams639rq08.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_ANA6707) +=3D panel-samsung-ana6707.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20) +=3D panel-samsung-atna33xc20.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) +=3D panel-samsung-db7430.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) +=3D panel-samsung-ld9040.o diff --git a/drivers/gpu/drm/panel/panel-samsung-ana6707.c b/drivers/gpu/dr= m/panel/panel-samsung-ana6707.c new file mode 100644 index 000000000000..83bf954e89d3 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-ana6707.c @@ -0,0 +1,461 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2023 Marijn Suijten + * + * Based on the following Sony downstream DTS command sequences: + * - Xperia 1 III (sagami pdx215): https://github.com/sonyxperiadev/kernel= -copyleft-dts/blob/61.2.A.0.xxx/somc/dsi-panel-ana6707_amb650yl01-uhd-pvt.d= tsi + * - Xperia 1 IV (nagara pdx223): https://github.com/sonyxperiadev/kernel-= copyleft-dts/blob/64.1.A.0.xxx/display-devicetree/display/dsi-panel-ana6707= _amb650yl01-uhd-pdx223.dtsi + * - Xperia 1 V (yodo pdx234): https://github.com/sonyxperiadev/kernel-cop= yleft-dts/blob/67.0.A.1.xxx/display-devicetree/display/dsi-panel-ana6707_am= b650yl01-uhd.dtsi + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include