Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] drm/panel: simple: missing DRM_BUS_FLAG_DE_HIGH in techshine_ts_p0700031a - [Medium] drm/panel: simple: outline dimensions used for techshine_ts_p0700031a.size --
commit 09cc823426aa17952fdeb447b0b574537835dc2b Author: Andrej Valek <[email protected]> drm/panel: simple: Add support for Techshine TS-P0700031A panel This commit adds a display timing descriptor, a panel descriptor, and an OF match table entry for the Techshine TS-P0700031A LVDS panel. > diff --git a/drivers/gpu/drm/panel/panel-simple.c > b/drivers/gpu/drm/panel/panel-simple.c > index 33d954f3ee289..8eda4f74bc44f 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -4827,6 +4827,35 @@ static const struct panel_desc tsd_tst043015cmhx = { > .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, > }; > > +static const struct display_timing techshine_ts_p0700031a_timing = { > + .pixelclock = { 44900000, 51200000, 63000000 }, > + .hactive = { 1024, 1024, 1024 }, > + .hfront_porch = { 16, 160, 216 }, > + .hback_porch = { 160, 160, 160 }, > + .hsync_len = { 1, 1, 256 }, > + .vactive = { 600, 600, 600 }, > + .vfront_porch = { 1, 12, 127 }, > + .vback_porch = { 23, 23, 23 }, > + .vsync_len = { 1, 1, 128 }, > + .flags = DISPLAY_FLAGS_DE_HIGH, > +}; > + > +static const struct panel_desc techshine_ts_p0700031a = { > + .timings = &techshine_ts_p0700031a_timing, > + .num_timings = 1, > + .bpc = 8, > + .size = { > + .width = 165, > + .height = 105, > + }, [Severity: Medium] Are 165 mm and 105 mm in techshine_ts_p0700031a.size the mechanical module outline dimensions rather than the active display area? struct panel_desc.size specifies the active display area in millimeters and populates connector->display_info.width_mm and height_mm. For a 7.0-inch 1024x600 panel, 165x105 mm yields a 7.7-inch diagonal and non-square pixel aspect ratio instead of the ~154x86 mm active area. > + .delay = { > + .enable = 25, > + .disable = 25, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > + .connector_type = DRM_MODE_CONNECTOR_LVDS, > +}; [Severity: Medium] Should techshine_ts_p0700031a also set .bus_flags = DRM_BUS_FLAG_DE_HIGH to match DISPLAY_FLAGS_DE_HIGH in techshine_ts_p0700031a_timing? panel_simple_get_timings_modes() does not translate DISPLAY_FLAGS_DE_HIGH into connector->display_info.bus_flags, which panel_simple_get_non_edid_modes() copies directly from panel->desc->bus_flags. Leaving .bus_flags unset leaves display_info.bus_flags as 0 for display controllers and LVDS bridges that configure Data Enable polarity from it. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
