Skip to content

Commit 48abadb

Browse files
Akkiesoftpelwell
authored andcommitted
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. See: #7194 Signed-off-by: Akira Ouchi <akkiesoft@marokun.net>
1 parent 7797665 commit 48abadb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/panel/panel-sitronix-st7701.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ struct st7701_panel_desc {
109109
enum mipi_dsi_pixel_format format;
110110
u32 mediabus_format;
111111
unsigned int panel_sleep_delay;
112+
u32 bus_flags;
112113

113114
/* TFT matrix driver configuration, panel specific. */
114115
const u8 pv_gamma[16]; /* Positive voltage gamma control */
@@ -728,6 +729,7 @@ static int st7701_get_modes(struct drm_panel *panel,
728729

729730
connector->display_info.width_mm = desc_mode->width_mm;
730731
connector->display_info.height_mm = desc_mode->height_mm;
732+
connector->display_info.bus_flags = st7701->desc->bus_flags;
731733

732734
/*
733735
* TODO: Remove once all drm drivers call
@@ -1435,6 +1437,7 @@ static const struct st7701_panel_desc txw210001b0_desc = {
14351437
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
14361438
},
14371439
.gip_sequence = txw210001b0_gip_sequence,
1440+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
14381441
};
14391442

14401443
static const struct st7701_panel_desc hyperpixel2r_desc = {
@@ -1499,6 +1502,7 @@ static const struct st7701_panel_desc hyperpixel2r_desc = {
14991502
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
15001503
},
15011504
.gip_sequence = txw210001b0_gip_sequence,
1505+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
15021506
};
15031507

15041508
static void st7701_cleanup(void *data)

0 commit comments

Comments
 (0)