From 2fec5739a4e942df6e9f2e518228d806e85f9b7d Mon Sep 17 00:00:00 2001 From: Akira Ouchi Date: Sun, 29 Mar 2026 23:26:50 +0900 Subject: [PATCH] drm/panel: st7701: Add missing bus_flags configuration for HyperPixel 2.1 Round When porting the code for the Pimoroni HyperPixel 2.1 Round from Linux 6.6 to Linux 6.12, the bus_flags configuration was overlooked. Porting bus_flags resolves the noise issues that were occurring. Signed-off-by: Akira Ouchi --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index b8daf67e773dfc..5ecfe83eb442ea 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -109,6 +109,7 @@ struct st7701_panel_desc { enum mipi_dsi_pixel_format format; u32 mediabus_format; unsigned int panel_sleep_delay; + u32 bus_flags; /* TFT matrix driver configuration, panel specific. */ const u8 pv_gamma[16]; /* Positive voltage gamma control */ @@ -706,6 +707,7 @@ static int st7701_get_modes(struct drm_panel *panel, connector->display_info.width_mm = desc_mode->width_mm; connector->display_info.height_mm = desc_mode->height_mm; + connector->display_info.bus_flags = st7701->desc->bus_flags; /* * TODO: Remove once all drm drivers call @@ -1312,6 +1314,7 @@ static const struct st7701_panel_desc txw210001b0_desc = { CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d) }, .gip_sequence = txw210001b0_gip_sequence, + .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, }; static const struct st7701_panel_desc hyperpixel2r_desc = { @@ -1376,6 +1379,7 @@ static const struct st7701_panel_desc hyperpixel2r_desc = { CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d) }, .gip_sequence = txw210001b0_gip_sequence, + .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, }; static void st7701_cleanup(void *data)