Skip to content

Commit b2a6e86

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 b2a6e86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 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 */
@@ -703,6 +704,7 @@ static int st7701_get_modes(struct drm_panel *panel,
703704
drm_display_info_set_bus_formats(&connector->display_info,
704705
&st7701->desc->mediabus_format,
705706
1);
707+
connector->display_info.bus_flags = 0;
706708

707709
connector->display_info.width_mm = desc_mode->width_mm;
708710
connector->display_info.height_mm = desc_mode->height_mm;
@@ -713,6 +715,9 @@ static int st7701_get_modes(struct drm_panel *panel,
713715
*/
714716
drm_connector_set_panel_orientation(connector, st7701->orientation);
715717

718+
if (st7701->desc->bus_flags)
719+
connector->display_info.bus_flags = st7701->desc->bus_flags;
720+
716721
return 1;
717722
}
718723

@@ -1312,6 +1317,7 @@ static const struct st7701_panel_desc txw210001b0_desc = {
13121317
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
13131318
},
13141319
.gip_sequence = txw210001b0_gip_sequence,
1320+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
13151321
};
13161322

13171323
static const struct st7701_panel_desc hyperpixel2r_desc = {
@@ -1376,6 +1382,7 @@ static const struct st7701_panel_desc hyperpixel2r_desc = {
13761382
CFIELD_PREP(ST7701_CMD2_BK0_GAMCTRL_VC255_MASK, 0x1d)
13771383
},
13781384
.gip_sequence = txw210001b0_gip_sequence,
1385+
.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
13791386
};
13801387

13811388
static void st7701_cleanup(void *data)

0 commit comments

Comments
 (0)