* [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC
@ 2026-11-19 19:01 Nizat Mikayilli via B4 Relay
2026-11-19 19:01 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Anapass Nizat Mikayilli via B4 Relay
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann
Cc: devicetree, linux-kernel, dri-devel, Nizat Mikayilli,
Krzysztof Kozlowski
This series adds a driver for the Samsung AMSA10FA01, the 2560x1600
AMOLED panel of the Samsung Galaxy Tab S9 Wi-Fi (SM8550). It is a
command mode DSI panel with DSC, driven by an Anapass ANA38407 DDIC.
The binding and driver are named after the DDIC.
Only the 120 Hz mode of panel revision D is supported. The init
sequence comes from the vendor panel data, without the
brightness-dependent gamma, HBM and ELVSS writes. A fixed delay
replaces the vendor's wait on the TCON_RDY pin.
Tested on the tablet: cold and warm boot, hand-off from the bootloader
splash, brightness and blank/unblank. The board DT follows separately.
Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc>
---
Changes in v2:
- Dropped port from the required properties (Krzysztof)
- Added Krzysztof's Acked-by to the vendor prefix patch
- Link to v1: https://lore.kernel.org/r/20261107-b4-ana38407-v1-0-c8b33147110a@dxdmail.cc
---
Nizat Mikayilli (3):
dt-bindings: vendor-prefixes: Add Anapass
dt-bindings: display: panel: Document Anapass ANA38407 DDIC
drm/panel: Add driver for Anapass ANA38407 DDIC
.../bindings/display/panel/anapass,ana38407.yaml | 68 +++++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
MAINTAINERS | 6 +
drivers/gpu/drm/panel/Kconfig | 15 +
drivers/gpu/drm/panel/Makefile | 1 +
drivers/gpu/drm/panel/panel-anapass-ana38407.c | 320 +++++++++++++++++++++
6 files changed, 412 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261107-b4-ana38407-31955acb84a7
Best regards,
--
Nizat Mikayilli <nacht@dxdmail.cc>
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Anapass 2026-11-19 19:01 [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 ` Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong, Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann Cc: devicetree, linux-kernel, dri-devel, Nizat Mikayilli, Krzysztof Kozlowski From: Nizat Mikayilli <nacht@dxdmail.cc> Add a vendor prefix for Anapass, Inc., a display driver IC vendor. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc> --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 5471a06f93f1..b117fce91102 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -136,6 +136,8 @@ patternProperties: description: AMS-Taos Inc. "^analogix,.*": description: Analogix Semiconductor, Inc. + "^anapass,.*": + description: Anapass, Inc. "^anbernic,.*": description: Anbernic "^andestech,.*": -- 2.56.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC 2026-11-19 19:01 [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Anapass Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 ` Nizat Mikayilli via B4 Relay 2026-12-01 20:14 ` Rob Herring (Arm) 2026-11-19 19:01 ` [PATCH v2 3/3] drm/panel: Add driver for " Nizat Mikayilli via B4 Relay 2026-12-03 19:36 ` [PATCH v2 0/3] drm/panel: Add " Neil Armstrong 3 siblings, 1 reply; 7+ messages in thread From: Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong, Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann Cc: devicetree, linux-kernel, dri-devel, Nizat Mikayilli From: Nizat Mikayilli <nacht@dxdmail.cc> Document the Anapass ANA38407 DDIC and the Samsung AMSA10FA01 panel found in the Samsung Galaxy Tab S9 Wi-Fi. Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc> --- .../bindings/display/panel/anapass,ana38407.yaml | 68 ++++++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml b/Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml new file mode 100644 index 000000000000..7811ea355026 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/anapass,ana38407.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Anapass ANA38407 based MIPI-DSI panels + +maintainers: + - Nizat Mikayilli <nacht@dxdmail.cc> + +description: + The Anapass ANA38407 is a DSI panel controller used to drive AMOLED + panels. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - samsung,amsa10fa01 + - const: anapass,ana38407 + + reg: + maxItems: 1 + + vci-supply: + description: Analog voltage rail + + vddio-supply: + description: I/O voltage rail + +required: + - compatible + - reg + - vci-supply + - vddio-supply + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,amsa10fa01", "anapass,ana38407"; + reg = <0>; + + reset-gpios = <&tlmm 125 GPIO_ACTIVE_LOW>; + vci-supply = <&panel_vci>; + vddio-supply = <&vreg_l12b_1p8>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315065..e282fbb04e6e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8228,6 +8228,11 @@ S: Supported T: git https://gitlab.freedesktop.org/drm/misc/kernel.git F: drivers/gpu/drm/sun4i/sun8i* +DRM DRIVER FOR ANAPASS ANA38407 PANELS +M: Nizat Mikayilli <nacht@dxdmail.cc> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml + DRM DRIVER FOR APPLE TOUCH BARS M: Aun-Ali Zaidi <admin@kodeit.net> M: Aditya Garg <aditya.garg@linux.dev> -- 2.56.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC 2026-11-19 19:01 ` [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay @ 2026-12-01 20:14 ` Rob Herring (Arm) 0 siblings, 0 replies; 7+ messages in thread From: Rob Herring (Arm) @ 2026-12-01 20:14 UTC (permalink / raw) To: Nizat Mikayilli Cc: Maarten Lankhorst, Maxime Ripard, David Airlie, Krzysztof Kozlowski, Conor Dooley, Jessica Zhang, Thomas Zimmermann, devicetree, linux-kernel, Simona Vetter, dri-devel, Neil Armstrong On Thu, 19 Nov 2026 20:01:13 +0100, Nizat Mikayilli wrote: > Document the Anapass ANA38407 DDIC and the Samsung AMSA10FA01 panel > found in the Samsung Galaxy Tab S9 Wi-Fi. > > Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc> > --- > .../bindings/display/panel/anapass,ana38407.yaml | 68 ++++++++++++++++++++++ > MAINTAINERS | 5 ++ > 2 files changed, 73 insertions(+) > Reviewed-by: Rob Herring (Arm) <robh@kernel.org> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 3/3] drm/panel: Add driver for Anapass ANA38407 DDIC 2026-11-19 19:01 [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Anapass Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 ` Nizat Mikayilli via B4 Relay 2026-12-03 10:23 ` Neil Armstrong 2026-12-03 19:36 ` [PATCH v2 0/3] drm/panel: Add " Neil Armstrong 3 siblings, 1 reply; 7+ messages in thread From: Nizat Mikayilli via B4 Relay @ 2026-11-19 19:01 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong, Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann Cc: devicetree, linux-kernel, dri-devel, Nizat Mikayilli From: Nizat Mikayilli <nacht@dxdmail.cc> Add a driver for the Samsung AMSA10FA01 2560x1600 AMOLED panel of the Samsung Galaxy Tab S9 Wi-Fi, which uses an Anapass ANA38407 DDIC in command mode with DSC. The init sequence is taken from the vendor panel data for revision D of the panel. Only the 120 Hz mode is supported. Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc> --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 15 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-anapass-ana38407.c | 320 +++++++++++++++++++++++++ 4 files changed, 337 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e282fbb04e6e..5229bc5f0b94 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8232,6 +8232,7 @@ DRM DRIVER FOR ANAPASS ANA38407 PANELS M: Nizat Mikayilli <nacht@dxdmail.cc> S: Maintained F: Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml +F: drivers/gpu/drm/panel/panel-anapass-ana38407.c DRM DRIVER FOR APPLE TOUCH BARS M: Aun-Ali Zaidi <admin@kodeit.net> diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7a520b4d60fe..9585c50ee315 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -18,6 +18,21 @@ config DRM_PANEL_ABT_Y030XX067A Y030XX067A 320x480 3.0" panel as found in the YLM RG-280M, RG-300 and RG-99 handheld gaming consoles. +config DRM_PANEL_ANAPASS_ANA38407 + tristate "Anapass ANA38407-based DSI panel" + 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 Anapass ANA38407-based + display panels, such as the Samsung AMSA10FA01 which can be found in + the Samsung Galaxy Tab S9 Wi-Fi. + + To compile this driver as a module, choose M here: the module + will be called panel-anapass-ana38407. + config DRM_PANEL_ANBERNIC_TD4310 tristate "Anbernic TD4310 LCD panel" depends on GPIOLIB && OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index da5175909d54..d931461dfaa4 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_DRM_PANEL_ABT_Y030XX067A) += panel-abt-y030xx067a.o +obj-$(CONFIG_DRM_PANEL_ANAPASS_ANA38407) += panel-anapass-ana38407.o obj-$(CONFIG_DRM_PANEL_ANBERNIC_TD4310) += panel-anbernic-td4310.o obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) += panel-asus-z00t-tm5p5-n35596.o diff --git a/drivers/gpu/drm/panel/panel-anapass-ana38407.c b/drivers/gpu/drm/panel/panel-anapass-ana38407.c new file mode 100644 index 000000000000..dbacdc658495 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-anapass-ana38407.c @@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2026, Nizat Mikayilli <nacht@dxdmail.cc> + */ + +#include <linux/backlight.h> +#include <linux/delay.h> +#include <linux/device-id/of.h> +#include <linux/gpio/consumer.h> +#include <linux/module.h> +#include <linux/regulator/consumer.h> + +#include <video/mipi_display.h> + +#include <drm/display/drm_dsc.h> +#include <drm/display/drm_dsc_helper.h> +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_modes.h> +#include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> + +struct ana38407 { + struct drm_panel panel; + struct mipi_dsi_device *dsi; + struct drm_dsc_config dsc; + struct regulator_bulk_data *supplies; + struct gpio_desc *reset_gpio; +}; + +static const struct regulator_bulk_data ana38407_supplies[] = { + { .supply = "vddio" }, + { .supply = "vci" }, +}; + +static inline struct ana38407 *to_ana38407(struct drm_panel *panel) +{ + return container_of(panel, struct ana38407, panel); +} + +static void ana38407_unlock(struct mipi_dsi_multi_context *dsi_ctx) +{ + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf0, 0x5a, 0x5a); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf1, 0x5a, 0x5a); +} + +static void ana38407_lock(struct mipi_dsi_multi_context *dsi_ctx) +{ + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf0, 0xa5, 0xa5); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf1, 0xa5, 0xa5); +} + +/* C1 carries the value, C0 (after B0 03) the 16-bit register address */ +static void ana38407_write_indirect(struct mipi_dsi_multi_context *dsi_ctx, + u16 addr, u8 val) +{ + mipi_dsi_dcs_write_var_seq_multi(dsi_ctx, 0xc1, val); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xb0, 0x03); + mipi_dsi_dcs_write_var_seq_multi(dsi_ctx, 0xc0, 0x0f, 0x00, 0x00, 0x00, + addr >> 8, addr & 0xff, 0x81); +} + +static void ana38407_slew_boost(struct mipi_dsi_multi_context *dsi_ctx, u8 val) +{ + ana38407_write_indirect(dsi_ctx, 0x134f, val); + ana38407_write_indirect(dsi_ctx, 0x1362, val); + ana38407_write_indirect(dsi_ctx, 0x1375, val); + ana38407_write_indirect(dsi_ctx, 0x1388, val); +} + +static int ana38407_on(struct ana38407 *ctx) +{ + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; + struct drm_dsc_picture_parameter_set pps; + + ana38407_unlock(&dsi_ctx); + /* SLEW_BOOSTING_OFF */ + ana38407_slew_boost(&dsi_ctx, 0x2a); + /* PM_EN_DISP_ON_DELAY */ + ana38407_write_indirect(&dsi_ctx, 0x1435, 0x00); + ana38407_write_indirect(&dsi_ctx, 0x0104, 0x23); + ana38407_lock(&dsi_ctx); + + mipi_dsi_dcs_exit_sleep_mode_multi(&dsi_ctx); + mipi_dsi_msleep(&dsi_ctx, 50); + + ana38407_unlock(&dsi_ctx); + /* MX_IP_ENABLE */ + ana38407_write_indirect(&dsi_ctx, 0x09b2, 0x23); + /* TCON_INTR_SETTING */ + ana38407_write_indirect(&dsi_ctx, 0x1446, 0x02); + ana38407_write_indirect(&dsi_ctx, 0x08cf, 0x13); + ana38407_write_indirect(&dsi_ctx, 0x09cd, 0x05); + ana38407_lock(&dsi_ctx); + + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); + /* TE_ON */ + mipi_dsi_dcs_set_tear_on_multi(&dsi_ctx, MIPI_DSI_DCS_TEAR_MODE_VBLANK); + /* TSP_SYNC_SETTING */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x0b, 0xb9); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb9, 0xcc); + /* DSC_SETTING */ + mipi_dsi_compression_mode_multi(&dsi_ctx, true); + drm_dsc_pps_payload_pack(&pps, &ctx->dsc); + mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); + + /* DIA_SETTING */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x91, 0x02); + + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); + /* ACL */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, MIPI_DCS_WRITE_POWER_SAVE, 0x01); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x5f, 0xc9); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x00, 0x05); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x51, 0xc9); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x40, 0xff, 0x26); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x62, 0xc9); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x3e, 0x42); + /* BRIGHTNESS_DIMMING_SETTING */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x28); + /* SP_SETTING */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc3, 0x02); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); + mipi_dsi_msleep(&dsi_ctx, 20); + + ana38407_unlock(&dsi_ctx); + /* SLEW_BOOSTING_ON */ + ana38407_slew_boost(&dsi_ctx, 0x2e); + /* VRR_SETTING */ + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x60, 0x00); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x13, 0xdd); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xdd, 0x00); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x10, 0xb9); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb9, 0x80, 0x00, 0x00, 0x00); + ana38407_lock(&dsi_ctx); + + return dsi_ctx.accum_err; +} + +static int ana38407_prepare(struct drm_panel *panel) +{ + struct ana38407 *ctx = to_ana38407(panel); + int ret; + + ret = regulator_bulk_enable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); + if (ret < 0) + return ret; + + usleep_range(11000, 12000); + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + usleep_range(10000, 11000); + gpiod_set_value_cansleep(ctx->reset_gpio, 0); + /* The vendor kernel waits for TCON_RDY here, measured at 125 ms */ + msleep(200); + + ret = ana38407_on(ctx); + if (ret < 0) { + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + usleep_range(15000, 16000); + regulator_bulk_disable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); + } + + return ret; +} + +static int ana38407_enable(struct drm_panel *panel) +{ + struct ana38407 *ctx = to_ana38407(panel); + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; + + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); + mipi_dsi_dcs_set_display_on_multi(&dsi_ctx); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); + + return dsi_ctx.accum_err; +} + +static int ana38407_unprepare(struct drm_panel *panel) +{ + struct ana38407 *ctx = to_ana38407(panel); + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; + + mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); + mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); + mipi_dsi_msleep(&dsi_ctx, 100); + + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + usleep_range(15000, 16000); + regulator_bulk_disable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); + + return 0; +} + +static const struct drm_display_mode ana38407_mode = { + .clock = (2560 + 34 + 64 + 34) * (1600 + 42 + 64 + 32) * 120 / 1000, + .hdisplay = 2560, + .hsync_start = 2560 + 34, + .hsync_end = 2560 + 34 + 64, + .htotal = 2560 + 34 + 64 + 34, + .vdisplay = 1600, + .vsync_start = 1600 + 42, + .vsync_end = 1600 + 42 + 64, + .vtotal = 1600 + 42 + 64 + 32, + .width_mm = 236, + .height_mm = 148, + .type = DRM_MODE_TYPE_DRIVER, +}; + +static int ana38407_get_modes(struct drm_panel *panel, + struct drm_connector *connector) +{ + return drm_connector_helper_get_modes_fixed(connector, &ana38407_mode); +} + +static const struct drm_panel_funcs ana38407_panel_funcs = { + .prepare = ana38407_prepare, + .enable = ana38407_enable, + .unprepare = ana38407_unprepare, + .get_modes = ana38407_get_modes, +}; + +static int ana38407_bl_update_status(struct backlight_device *bl) +{ + struct ana38407 *ctx = bl_get_data(bl); + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; + u16 brightness = backlight_get_brightness(bl); + + if (!ctx->panel.enabled) + return 0; + + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); + mipi_dsi_dcs_write_var_seq_multi(&dsi_ctx, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, + brightness >> 8, brightness & 0xff); + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); + + return dsi_ctx.accum_err; +} + +static const struct backlight_ops ana38407_bl_ops = { + .update_status = ana38407_bl_update_status, +}; + +static int ana38407_probe(struct mipi_dsi_device *dsi) +{ + const struct backlight_properties props = { + .type = BACKLIGHT_RAW, + .brightness = 2047, + .max_brightness = 2047, + }; + struct device *dev = &dsi->dev; + struct ana38407 *ctx; + int ret; + + ctx = devm_drm_panel_alloc(dev, struct ana38407, panel, + &ana38407_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); + + ret = devm_regulator_bulk_get_const(dev, ARRAY_SIZE(ana38407_supplies), + ana38407_supplies, &ctx->supplies); + if (ret < 0) + return ret; + + ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); + if (IS_ERR(ctx->reset_gpio)) + return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), + "Failed to get reset-gpios\n"); + + ctx->dsi = dsi; + + ctx->dsc.dsc_version_major = 1; + ctx->dsc.dsc_version_minor = 1; + ctx->dsc.slice_height = 100; + ctx->dsc.slice_width = 1280; + ctx->dsc.slice_count = 2; + ctx->dsc.bits_per_component = 8; + ctx->dsc.bits_per_pixel = 8 << 4; + ctx->dsc.block_pred_enable = true; + + dsi->dsc = &ctx->dsc; + dsi->lanes = 4; + dsi->format = MIPI_DSI_FMT_RGB888; + dsi->mode_flags = MIPI_DSI_CLOCK_NON_CONTINUOUS | MIPI_DSI_MODE_LPM; + + ctx->panel.prepare_prev_first = true; + + ctx->panel.backlight = devm_backlight_device_register(dev, dev_name(dev), + dev, ctx, + &ana38407_bl_ops, + &props); + if (IS_ERR(ctx->panel.backlight)) + return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), + "Failed to register backlight\n"); + + ret = devm_drm_panel_add(dev, &ctx->panel); + if (ret) + return ret; + + return devm_mipi_dsi_attach(dev, dsi); +} + +static const struct of_device_id ana38407_of_match[] = { + { .compatible = "samsung,amsa10fa01" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ana38407_of_match); + +static struct mipi_dsi_driver ana38407_driver = { + .probe = ana38407_probe, + .driver = { + .name = "panel-anapass-ana38407", + .of_match_table = ana38407_of_match, + }, +}; +module_mipi_dsi_driver(ana38407_driver); + +MODULE_AUTHOR("Nizat Mikayilli <nacht@dxdmail.cc>"); +MODULE_DESCRIPTION("DRM driver for ANA38407-equipped DSI panels"); +MODULE_LICENSE("GPL"); -- 2.56.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 3/3] drm/panel: Add driver for Anapass ANA38407 DDIC 2026-11-19 19:01 ` [PATCH v2 3/3] drm/panel: Add driver for " Nizat Mikayilli via B4 Relay @ 2026-12-03 10:23 ` Neil Armstrong 0 siblings, 0 replies; 7+ messages in thread From: Neil Armstrong @ 2026-12-03 10:23 UTC (permalink / raw) To: nacht, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann Cc: devicetree, linux-kernel, dri-devel On 11/19/26 20:01, Nizat Mikayilli via B4 Relay wrote: > From: Nizat Mikayilli <nacht@dxdmail.cc> > > Add a driver for the Samsung AMSA10FA01 2560x1600 AMOLED panel of the > Samsung Galaxy Tab S9 Wi-Fi, which uses an Anapass ANA38407 DDIC in > command mode with DSC. > > The init sequence is taken from the vendor panel data for revision D > of the panel. Only the 120 Hz mode is supported. > > Signed-off-by: Nizat Mikayilli <nacht@dxdmail.cc> > --- > MAINTAINERS | 1 + > drivers/gpu/drm/panel/Kconfig | 15 ++ > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-anapass-ana38407.c | 320 +++++++++++++++++++++++++ > 4 files changed, 337 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index e282fbb04e6e..5229bc5f0b94 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -8232,6 +8232,7 @@ DRM DRIVER FOR ANAPASS ANA38407 PANELS > M: Nizat Mikayilli <nacht@dxdmail.cc> > S: Maintained > F: Documentation/devicetree/bindings/display/panel/anapass,ana38407.yaml > +F: drivers/gpu/drm/panel/panel-anapass-ana38407.c > > DRM DRIVER FOR APPLE TOUCH BARS > M: Aun-Ali Zaidi <admin@kodeit.net> > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 7a520b4d60fe..9585c50ee315 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -18,6 +18,21 @@ config DRM_PANEL_ABT_Y030XX067A > Y030XX067A 320x480 3.0" panel as found in the YLM RG-280M, RG-300 > and RG-99 handheld gaming consoles. > > +config DRM_PANEL_ANAPASS_ANA38407 > + tristate "Anapass ANA38407-based DSI panel" > + 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 Anapass ANA38407-based > + display panels, such as the Samsung AMSA10FA01 which can be found in > + the Samsung Galaxy Tab S9 Wi-Fi. > + > + To compile this driver as a module, choose M here: the module > + will be called panel-anapass-ana38407. > + > config DRM_PANEL_ANBERNIC_TD4310 > tristate "Anbernic TD4310 LCD panel" > depends on GPIOLIB && OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index da5175909d54..d931461dfaa4 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > obj-$(CONFIG_DRM_PANEL_ABT_Y030XX067A) += panel-abt-y030xx067a.o > +obj-$(CONFIG_DRM_PANEL_ANAPASS_ANA38407) += panel-anapass-ana38407.o > obj-$(CONFIG_DRM_PANEL_ANBERNIC_TD4310) += panel-anbernic-td4310.o > obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o > obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) += panel-asus-z00t-tm5p5-n35596.o > diff --git a/drivers/gpu/drm/panel/panel-anapass-ana38407.c b/drivers/gpu/drm/panel/panel-anapass-ana38407.c > new file mode 100644 > index 000000000000..dbacdc658495 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-anapass-ana38407.c > @@ -0,0 +1,320 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2026, Nizat Mikayilli <nacht@dxdmail.cc> > + */ > + > +#include <linux/backlight.h> > +#include <linux/delay.h> > +#include <linux/device-id/of.h> > +#include <linux/gpio/consumer.h> > +#include <linux/module.h> > +#include <linux/regulator/consumer.h> > + > +#include <video/mipi_display.h> > + > +#include <drm/display/drm_dsc.h> > +#include <drm/display/drm_dsc_helper.h> > +#include <drm/drm_mipi_dsi.h> > +#include <drm/drm_modes.h> > +#include <drm/drm_panel.h> > +#include <drm/drm_probe_helper.h> > + > +struct ana38407 { > + struct drm_panel panel; > + struct mipi_dsi_device *dsi; > + struct drm_dsc_config dsc; > + struct regulator_bulk_data *supplies; > + struct gpio_desc *reset_gpio; > +}; > + > +static const struct regulator_bulk_data ana38407_supplies[] = { > + { .supply = "vddio" }, > + { .supply = "vci" }, > +}; > + > +static inline struct ana38407 *to_ana38407(struct drm_panel *panel) > +{ > + return container_of(panel, struct ana38407, panel); > +} > + > +static void ana38407_unlock(struct mipi_dsi_multi_context *dsi_ctx) > +{ > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf0, 0x5a, 0x5a); > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf1, 0x5a, 0x5a); > +} > + > +static void ana38407_lock(struct mipi_dsi_multi_context *dsi_ctx) > +{ > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf0, 0xa5, 0xa5); > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xf1, 0xa5, 0xa5); > +} > + > +/* C1 carries the value, C0 (after B0 03) the 16-bit register address */ > +static void ana38407_write_indirect(struct mipi_dsi_multi_context *dsi_ctx, > + u16 addr, u8 val) > +{ > + mipi_dsi_dcs_write_var_seq_multi(dsi_ctx, 0xc1, val); > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xb0, 0x03); > + mipi_dsi_dcs_write_var_seq_multi(dsi_ctx, 0xc0, 0x0f, 0x00, 0x00, 0x00, > + addr >> 8, addr & 0xff, 0x81); > +} > + > +static void ana38407_slew_boost(struct mipi_dsi_multi_context *dsi_ctx, u8 val) > +{ > + ana38407_write_indirect(dsi_ctx, 0x134f, val); > + ana38407_write_indirect(dsi_ctx, 0x1362, val); > + ana38407_write_indirect(dsi_ctx, 0x1375, val); > + ana38407_write_indirect(dsi_ctx, 0x1388, val); > +} > + > +static int ana38407_on(struct ana38407 *ctx) > +{ > + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; > + struct drm_dsc_picture_parameter_set pps; > + > + ana38407_unlock(&dsi_ctx); > + /* SLEW_BOOSTING_OFF */ > + ana38407_slew_boost(&dsi_ctx, 0x2a); > + /* PM_EN_DISP_ON_DELAY */ > + ana38407_write_indirect(&dsi_ctx, 0x1435, 0x00); > + ana38407_write_indirect(&dsi_ctx, 0x0104, 0x23); > + ana38407_lock(&dsi_ctx); > + > + mipi_dsi_dcs_exit_sleep_mode_multi(&dsi_ctx); > + mipi_dsi_msleep(&dsi_ctx, 50); > + > + ana38407_unlock(&dsi_ctx); > + /* MX_IP_ENABLE */ > + ana38407_write_indirect(&dsi_ctx, 0x09b2, 0x23); > + /* TCON_INTR_SETTING */ > + ana38407_write_indirect(&dsi_ctx, 0x1446, 0x02); > + ana38407_write_indirect(&dsi_ctx, 0x08cf, 0x13); > + ana38407_write_indirect(&dsi_ctx, 0x09cd, 0x05); > + ana38407_lock(&dsi_ctx); > + > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); > + /* TE_ON */ > + mipi_dsi_dcs_set_tear_on_multi(&dsi_ctx, MIPI_DSI_DCS_TEAR_MODE_VBLANK); > + /* TSP_SYNC_SETTING */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x0b, 0xb9); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb9, 0xcc); > + /* DSC_SETTING */ > + mipi_dsi_compression_mode_multi(&dsi_ctx, true); > + drm_dsc_pps_payload_pack(&pps, &ctx->dsc); > + mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); > + > + /* DIA_SETTING */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x91, 0x02); > + > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); > + /* ACL */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, MIPI_DCS_WRITE_POWER_SAVE, 0x01); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x5f, 0xc9); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x00, 0x05); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x51, 0xc9); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x40, 0xff, 0x26); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x62, 0xc9); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc9, 0x3e, 0x42); > + /* BRIGHTNESS_DIMMING_SETTING */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x28); > + /* SP_SETTING */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xc3, 0x02); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); > + mipi_dsi_msleep(&dsi_ctx, 20); > + > + ana38407_unlock(&dsi_ctx); > + /* SLEW_BOOSTING_ON */ > + ana38407_slew_boost(&dsi_ctx, 0x2e); > + /* VRR_SETTING */ > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x60, 0x00); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x13, 0xdd); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xdd, 0x00); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb0, 0x10, 0xb9); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb9, 0x80, 0x00, 0x00, 0x00); > + ana38407_lock(&dsi_ctx); > + > + return dsi_ctx.accum_err; > +} > + > +static int ana38407_prepare(struct drm_panel *panel) > +{ > + struct ana38407 *ctx = to_ana38407(panel); > + int ret; > + > + ret = regulator_bulk_enable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); > + if (ret < 0) > + return ret; > + > + usleep_range(11000, 12000); > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + usleep_range(10000, 11000); > + gpiod_set_value_cansleep(ctx->reset_gpio, 0); > + /* The vendor kernel waits for TCON_RDY here, measured at 125 ms */ > + msleep(200); > + > + ret = ana38407_on(ctx); > + if (ret < 0) { > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + usleep_range(15000, 16000); > + regulator_bulk_disable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); > + } > + > + return ret; > +} > + > +static int ana38407_enable(struct drm_panel *panel) > +{ > + struct ana38407 *ctx = to_ana38407(panel); > + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; > + > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); > + mipi_dsi_dcs_set_display_on_multi(&dsi_ctx); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); > + > + return dsi_ctx.accum_err; > +} > + > +static int ana38407_unprepare(struct drm_panel *panel) > +{ > + struct ana38407 *ctx = to_ana38407(panel); > + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; > + > + mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); > + mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); > + mipi_dsi_msleep(&dsi_ctx, 100); > + > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + usleep_range(15000, 16000); > + regulator_bulk_disable(ARRAY_SIZE(ana38407_supplies), ctx->supplies); > + > + return 0; > +} > + > +static const struct drm_display_mode ana38407_mode = { > + .clock = (2560 + 34 + 64 + 34) * (1600 + 42 + 64 + 32) * 120 / 1000, > + .hdisplay = 2560, > + .hsync_start = 2560 + 34, > + .hsync_end = 2560 + 34 + 64, > + .htotal = 2560 + 34 + 64 + 34, > + .vdisplay = 1600, > + .vsync_start = 1600 + 42, > + .vsync_end = 1600 + 42 + 64, > + .vtotal = 1600 + 42 + 64 + 32, > + .width_mm = 236, > + .height_mm = 148, > + .type = DRM_MODE_TYPE_DRIVER, > +}; > + > +static int ana38407_get_modes(struct drm_panel *panel, > + struct drm_connector *connector) > +{ > + return drm_connector_helper_get_modes_fixed(connector, &ana38407_mode); > +} > + > +static const struct drm_panel_funcs ana38407_panel_funcs = { > + .prepare = ana38407_prepare, > + .enable = ana38407_enable, > + .unprepare = ana38407_unprepare, > + .get_modes = ana38407_get_modes, > +}; > + > +static int ana38407_bl_update_status(struct backlight_device *bl) > +{ > + struct ana38407 *ctx = bl_get_data(bl); > + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; > + u16 brightness = backlight_get_brightness(bl); > + > + if (!ctx->panel.enabled) > + return 0; > + > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); > + mipi_dsi_dcs_write_var_seq_multi(&dsi_ctx, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, > + brightness >> 8, brightness & 0xff); > + mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); > + > + return dsi_ctx.accum_err; > +} > + > +static const struct backlight_ops ana38407_bl_ops = { > + .update_status = ana38407_bl_update_status, > +}; > + > +static int ana38407_probe(struct mipi_dsi_device *dsi) > +{ > + const struct backlight_properties props = { > + .type = BACKLIGHT_RAW, > + .brightness = 2047, > + .max_brightness = 2047, > + }; > + struct device *dev = &dsi->dev; > + struct ana38407 *ctx; > + int ret; > + > + ctx = devm_drm_panel_alloc(dev, struct ana38407, panel, > + &ana38407_panel_funcs, > + DRM_MODE_CONNECTOR_DSI); > + if (IS_ERR(ctx)) > + return PTR_ERR(ctx); > + > + ret = devm_regulator_bulk_get_const(dev, ARRAY_SIZE(ana38407_supplies), > + ana38407_supplies, &ctx->supplies); > + if (ret < 0) > + return ret; > + > + ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); > + if (IS_ERR(ctx->reset_gpio)) > + return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), > + "Failed to get reset-gpios\n"); > + > + ctx->dsi = dsi; > + > + ctx->dsc.dsc_version_major = 1; > + ctx->dsc.dsc_version_minor = 1; > + ctx->dsc.slice_height = 100; > + ctx->dsc.slice_width = 1280; > + ctx->dsc.slice_count = 2; > + ctx->dsc.bits_per_component = 8; > + ctx->dsc.bits_per_pixel = 8 << 4; > + ctx->dsc.block_pred_enable = true; > + > + dsi->dsc = &ctx->dsc; > + dsi->lanes = 4; > + dsi->format = MIPI_DSI_FMT_RGB888; > + dsi->mode_flags = MIPI_DSI_CLOCK_NON_CONTINUOUS | MIPI_DSI_MODE_LPM; > + > + ctx->panel.prepare_prev_first = true; > + > + ctx->panel.backlight = devm_backlight_device_register(dev, dev_name(dev), > + dev, ctx, > + &ana38407_bl_ops, > + &props); > + if (IS_ERR(ctx->panel.backlight)) > + return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), > + "Failed to register backlight\n"); > + > + ret = devm_drm_panel_add(dev, &ctx->panel); > + if (ret) > + return ret; > + > + return devm_mipi_dsi_attach(dev, dsi); > +} > + > +static const struct of_device_id ana38407_of_match[] = { > + { .compatible = "samsung,amsa10fa01" }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, ana38407_of_match); > + > +static struct mipi_dsi_driver ana38407_driver = { > + .probe = ana38407_probe, > + .driver = { > + .name = "panel-anapass-ana38407", > + .of_match_table = ana38407_of_match, > + }, > +}; > +module_mipi_dsi_driver(ana38407_driver); > + > +MODULE_AUTHOR("Nizat Mikayilli <nacht@dxdmail.cc>"); > +MODULE_DESCRIPTION("DRM driver for ANA38407-equipped DSI panels"); > +MODULE_LICENSE("GPL"); > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Thanks, Neil ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC 2026-11-19 19:01 [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay ` (2 preceding siblings ...) 2026-11-19 19:01 ` [PATCH v2 3/3] drm/panel: Add driver for " Nizat Mikayilli via B4 Relay @ 2026-12-03 19:36 ` Neil Armstrong 3 siblings, 0 replies; 7+ messages in thread From: Neil Armstrong @ 2026-12-03 19:36 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Nizat Mikayilli Cc: devicetree, linux-kernel, dri-devel, Krzysztof Kozlowski Hi, On Thu, 19 Nov 2026 20:01:11 +0100, Nizat Mikayilli wrote: > This series adds a driver for the Samsung AMSA10FA01, the 2560x1600 > AMOLED panel of the Samsung Galaxy Tab S9 Wi-Fi (SM8550). It is a > command mode DSI panel with DSC, driven by an Anapass ANA38407 DDIC. > The binding and driver are named after the DDIC. > > Only the 120 Hz mode of panel revision D is supported. The init > sequence comes from the vendor panel data, without the > brightness-dependent gamma, HBM and ELVSS writes. A fixed delay > replaces the vendor's wait on the TCON_RDY pin. > > [...] Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next) [1/3] dt-bindings: vendor-prefixes: Add Anapass https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/e958fa197d5a5c60ace67aa0aa5cd5cae8d709b1 [2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/175aac4cfd7755679732b78975e196ba1ed1b63a [3/3] drm/panel: Add driver for Anapass ANA38407 DDIC https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/ca92eaa7e716b907be6d989a8c4d4e67db04b1f3 -- Neil ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-03 19:36 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-11-19 19:01 [PATCH v2 0/3] drm/panel: Add Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Anapass Nizat Mikayilli via B4 Relay 2026-11-19 19:01 ` [PATCH v2 2/3] dt-bindings: display: panel: Document Anapass ANA38407 DDIC Nizat Mikayilli via B4 Relay 2026-12-01 20:14 ` Rob Herring (Arm) 2026-11-19 19:01 ` [PATCH v2 3/3] drm/panel: Add driver for " Nizat Mikayilli via B4 Relay 2026-12-03 10:23 ` Neil Armstrong 2026-12-03 19:36 ` [PATCH v2 0/3] drm/panel: Add " Neil Armstrong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®