From 00ebdf902a96082dbc27889185de4dc0fe9642ea Mon Sep 17 00:00:00 2001 From: Alejandro Garcia Date: Sat, 31 Oct 2026 21:27:54 -0700 Subject: [PATCH 1/3] dt-bindings: display: panel: add Samsung S6E3FC3 P10 The S6E3FC3 is a Samsung Mobile Display DDIC; the P10 panel is its 1080x2400 command-mode AMOLED panel in the Google Pixel 7. Its compatible string is the one the Pixel 7's own device tree uses. Assisted-by: Claude Opus 5.5 Signed-off-by: Alejandro Garcia --- .../display/panel/samsung,s6e3fc3-p10.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3fc3-p10.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc3-p10.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc3-p10.yaml new file mode 100644 index 0000000000..085df99a8b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc3-p10.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e3fc3-p10.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6E3FC3 P10 AMOLED DSI panel + +description: + The S6E3FC3 is a display driver IC from Samsung Mobile Display. The P10 + panel is its 1080x2400 command-mode AMOLED panel in the Google Pixel 7. + It takes DSC-compressed pixel data over four MIPI DSI lanes and reports + its refresh timing on a tearing effect (TE) line. + +maintainers: + - Alejandro Garcia + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6e3fc3-p10 + + reg: + maxItems: 1 + + reset-gpios: true + + vddi-supply: + description: I/O supply + + vci-supply: + description: Analog supply + +required: + - compatible + - reg + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e3fc3-p10"; + reg = <0>; + reset-gpios = <&gpa7 1 GPIO_ACTIVE_LOW>; + vddi-supply = <&vddi>; + vci-supply = <&vci>; + width-mm = <66>; + height-mm = <146>; + }; + }; + +... From 5203fd6744d4a4117c67aed60e350f019eaa7848 Mon Sep 17 00:00:00 2001 From: Alejandro Garcia Date: Sat, 31 Oct 2026 21:27:55 -0700 Subject: [PATCH 2/3] drm/panel: add Samsung S6E3FC3 command-mode panel Add a driver for the Samsung S6E3FC3 DDIC and its P10 1080x2400 AMOLED panel, found in the Google Pixel 7 (panther). The command sequences come from Google's GPL panel driver (panel-samsung-s6e3fc3-p10.c), limited to the EVT1 and later panels that ship in phones: the cold init table at 60 Hz, TE2, DSC enable with the vendor PPS sent as is, MIC off, and display on/off. Local HBM, the low-power (AOD) modes and the panel revision reads are left out. The bootloader powers the panel and leaves it scanning out. When the reset line reads released at probe the driver takes the panel over without sending anything, holding the supplies and keeping the reset line where it is; only brightness and power changes reach the panel. Brightness is a backlight device over DCS 0x51 (11 bits, the normal range; HBM is left for later), with levels below the vendor driver's lowest (4) raised to it, and blanking the backlight turns the display off while keeping the panel out of sleep. The driver follows the Pixel 7 Pro's S6E3HC4 driver in this tree. Tested on a Pixel 7 from slot B (7.3.0-rc6), with the next patch: the driver takes the panel over from the bootloader without changing the picture. With the DSIM command path sending, brightness 1023, 400, 2047 and 4 each changed the screen as expected, blanking the backlight turned the display off and unblanking turned it back on with the picture intact, and the desktop's brightness slider drove the panel. No DSIM errors. Assisted-by: Claude Opus 5.5 Signed-off-by: Alejandro Garcia --- drivers/gpu/drm/panel/Kconfig | 15 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3fc3.c | 433 ++++++++++++++++++ 3 files changed, 449 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3fc3.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 5d667d0148..ffefd2d9fa 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -1020,6 +1020,21 @@ config DRM_PANEL_SAMSUNG_S6E3FC2X01 Samsung AMS641RW (found in the OnePlus 6T smartphone) +config DRM_PANEL_SAMSUNG_S6E3FC3 + tristate "Samsung S6E3FC3 DSI command mode panel" + depends on GPIOLIB + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_HELPER + select DRM_DISPLAY_DSC_HELPER + help + Say Y or M here if you want to enable support for the Samsung + S6E3FC3 DDIC and its P10 1080x2400 command-mode AMOLED panel, + found in the Google Pixel 7. The driver can take over a panel the + bootloader left running and exposes its brightness as a backlight + device. + config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index cbf10d7d4d..2149785e7b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D27A1) += panel-samsung-s6d27a1.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0) += panel-samsung-s6d7aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7) += panel-samsung-s6e3fa7.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FC2X01) += panel-samsung-s6e3fc2x01.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FC3) += panel-samsung-s6e3fc3.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA8) += panel-samsung-s6e3ha8.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HC4) += panel-samsung-s6e3hc4.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fc3.c b/drivers/gpu/drm/panel/panel-samsung-s6e3fc3.c new file mode 100644 index 0000000000..56d97ec744 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc3.c @@ -0,0 +1,433 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Samsung S6E3FC3 DSI command-mode AMOLED panel, P10 (Google Pixel 7) + * + * Command sequences from Google's GPL panel driver + * (google-modules/display/samsung/panel/panel-samsung-s6e3fc3-p10.c), + * restricted to the EVT1 and later panels that ship in phones. Local HBM, + * low-power (AOD) modes and the panel revision reads are left out. + * + * The bootloader powers the panel on and leaves it running. When the + * reset line is released at probe, the driver takes the panel over as it + * is: it sends nothing until the brightness or the power state changes. + */ + +#include +#include +#include +#include +#include +#include + +#include