Skip to content

Commit 2fec573

Browse files
committed
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 <akkiesoft@marokun.net>
1 parent 3b2b426 commit 2fec573

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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 */
@@ -706,6 +707,7 @@ static int st7701_get_modes(struct drm_panel *panel,
706707

707708
connector->display_info.width_mm = desc_mode->width_mm;
708709
connector->display_info.height_mm = desc_mode->height_mm;
710+
connector->display_info.bus_flags = st7701->desc->bus_flags;
709711

710712
/*
711713
* TODO: Remove once all drm drivers call
@@ -1312,6 +1314,7 @@ static const struct st7701_panel_desc txw210001b0_desc = {
13121314
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
13131315
},
13141316
.gip_sequence = txw210001b0_gip_sequence,
1317+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
13151318
};
13161319

13171320
static const struct st7701_panel_desc hyperpixel2r_desc = {
@@ -1376,6 +1379,7 @@ static const struct st7701_panel_desc hyperpixel2r_desc = {
13761379
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
13771380
},
13781381
.gip_sequence = txw210001b0_gip_sequence,
1382+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
13791383
};
13801384

13811385
static void st7701_cleanup(void *data)

0 commit comments

Comments
 (0)