From e5a79284bd84a19270b0c4f68495b64203755d78 Mon Sep 17 00:00:00 2001 From: cx3301J Date: Wed, 18 Nov 2026 08:04:12 -0500 Subject: [PATCH 1/5] dt-bindings: display: panel: samsung-s6e3fc5: add the panel Document the S6E3FC5 with its vci/vddi rails, reset line and 64x141 mm size, and add it to MAINTAINERS. Tested-on: 7.3.0-rc6-omamobile-push1-g61e15599a196 (Pixel 7a, cold boot). Assisted-by: DeepSeek Signed-off-by: cx3301J --- .../display/panel/samsung,s6e3fc5.yaml | 63 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3fc5.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc5.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc5.yaml new file mode 100644 index 0000000000..5d13b1885e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc5.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e3fc5.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6E3FC5 AMOLED DSI panel + +description: + The S6E3FC5 is a display driver IC from Samsung Mobile Display, driving + the 1080x2400 command-mode AMOLED panel of the Google Pixel 7a. The panel + takes DSC-compressed pixel data over four MIPI DSI lanes and reports its + refresh timing on a tearing effect (TE) line. + +maintainers: + - Derek Ross + - cx3301J + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6e3fc5 + + reg: + maxItems: 1 + + reset-gpios: true + + vci-supply: + description: Analog supply + + vddi-supply: + description: I/O supply + +required: + - compatible + - reg + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e3fc5"; + reg = <0>; + reset-gpios = <&gpa7 1 GPIO_ACTIVE_LOW>; + vci-supply = <&panel_vci>; + vddi-supply = <&panel_vddi>; + width-mm = <64>; + height-mm = <141>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index a44d4a1fbe..1444c986bd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8498,6 +8498,12 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml F: drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c +DRM DRIVER FOR SAMSUNG S6E3FC5 PANELS +M: cx3301J +S: Maintained +F: Documentation/devicetree/bindings/display/panel/samsung,s6e3fc5.yaml +F: drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c + DRM DRIVER FOR SAMSUNG S6E3HC3 PANELS M: saiththerobo S: Maintained From 76199420253f3571ebc637e73d76b24d126f32ea Mon Sep 17 00:00:00 2001 From: cx3301J Date: Wed, 18 Nov 2026 08:04:12 -0500 Subject: [PATCH 2/5] drm/panel: samsung-s6e3fc5: add the panel driver The S6E3FC5 is the Pixel 7a's 1080x2400 command-mode panel. Take the running panel over from the bootloader, send Google's init/refresh/on/off sequences, and expose brightness, local HBM and the 60/90 Hz setting. Sources: Google's display/panel-samsung-s6e3fc5.c in kernel/devices/google/lynx, branch android-gs-lynx-6.1-android16. Tested-on: 7.3.0-rc6-omamobile-push1-g61e15599a196 (Pixel 7a, cold boot). LHBM with both test keys has not run on hardware yet; it is off by default. Assisted-by: DeepSeek Signed-off-by: cx3301J --- drivers/gpu/drm/panel/Kconfig | 14 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c | 730 ++++++++++++++++++ 3 files changed, 745 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d82882275e..a1738e4f47 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -1097,6 +1097,20 @@ config DRM_PANEL_SAMSUNG_S6E3HC3 left it running: the driver sends no initialisation sequence, and the display modes come from the display controller's driver. +config DRM_PANEL_SAMSUNG_S6E3FC5 + tristate "Samsung S6E3FC5 DSI 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 here to enable support for the Samsung S6E3FC5 panel used + on the Pixel 7a (lynx). It is a command-mode AMOLED panel with + runtime DSC configuration and two refresh rates. To compile this + driver as a module, choose M here. + config DRM_PANEL_SAMSUNG_S6E3HC4 tristate "Samsung S6E3HC4 DSI command mode panel" depends on GPIOLIB diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index e9506c1721..69bb6ac982 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -105,6 +105,7 @@ 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_S6E3HC3) += panel-samsung-s6e3hc3.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HC4) += panel-samsung-s6e3hc4.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FC5) += panel-samsung-s6e3fc5.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_SPI) += panel-samsung-s6e63m0-spi.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c b/drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c new file mode 100644 index 0000000000..86b60e834a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc5.c @@ -0,0 +1,730 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Samsung S6E3FC5 DSI command-mode AMOLED panel (Google Pixel 7a) + * + * Copyright (c) 2022 Google LLC + * + * Command sequences from Google's GPL panel driver + * (google-modules/display/samsung/panel/panel-samsung-s6e3fc5.c), + * restricted to the PVT and later panels that ship in phones. + * + * 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. + * + * Local high brightness mode (LHBM) lights a bright circle over the + * under-display fingerprint sensor. It is controlled through the backlight + * device's local_hbm_mode attribute, named as in Google's driver, and + * switches itself off after local_hbm_max_timeout milliseconds. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include