Message ID | 20250224-initial_display-v1-7-5ccbbf613543@gocontroll.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | arm64: dts: freescale: Add support for the GOcontroll Moduline Display | expand |
On 24/02/2025 14:50, Maud Spierings via B4 Relay wrote: > From: Maud Spierings <maudspierings@gocontroll.com> > > add support for the BOE AV101HDT-A10 10.1" LVDS panel > > Signed-off-by: Maud Spierings <maudspierings@gocontroll.com> > --- > drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index 9b2f128fd3094bfb6731fc348b91cc101f495a86..a52977ab73dc2edab0d1954c702fd797d6a5b969 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -1374,6 +1374,35 @@ static const struct panel_desc bananapi_s070wv20_ct16 = { > }, > }; > > +static const struct display_timing boe_av101hdt_a10_timing = { > + .pixelclock = { 74210000, 75330000, 76780000, }, > + .hactive = { 1280, 1280, 1280, }, > + .hfront_porch = { 10, 42, 33, }, > + .hback_porch = { 10, 18, 33, }, > + .hsync_len = { 30, 10, 30, }, > + .vactive = { 720, 720, 720, }, > + .vfront_porch = { 200, 183, 200, }, > + .vback_porch = { 8, 8, 8, }, > + .vsync_len = { 2, 19, 2, }, > + .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, > +}; > + > +static const struct panel_desc boe_av101hdt_a10 = { > + .timings = &boe_av101hdt_a10_timing, > + .num_timings = 1, > + .bpc = 8, > + .size = { > + .width = 224, > + .height = 126, > + }, > + .delay = { > + .enable = 50, > + .disable = 50, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > + .connector_type = DRM_MODE_CONNECTOR_LVDS, > +}; > + > static const struct drm_display_mode boe_bp101wx1_100_mode = { > .clock = 78945, > .hdisplay = 1280, > @@ -4813,6 +4842,9 @@ static const struct of_device_id platform_of_match[] = { > }, { > .compatible = "bananapi,s070wv20-ct16", > .data = &bananapi_s070wv20_ct16, > + }, { > + .compatible = "boe,av101hdt-a10", > + .data = &boe_av101hdt_a10, > }, { > .compatible = "boe,bp082wx1-100", > .data = &boe_bp082wx1_100, > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9b2f128fd3094bfb6731fc348b91cc101f495a86..a52977ab73dc2edab0d1954c702fd797d6a5b969 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1374,6 +1374,35 @@ static const struct panel_desc bananapi_s070wv20_ct16 = { }, }; +static const struct display_timing boe_av101hdt_a10_timing = { + .pixelclock = { 74210000, 75330000, 76780000, }, + .hactive = { 1280, 1280, 1280, }, + .hfront_porch = { 10, 42, 33, }, + .hback_porch = { 10, 18, 33, }, + .hsync_len = { 30, 10, 30, }, + .vactive = { 720, 720, 720, }, + .vfront_porch = { 200, 183, 200, }, + .vback_porch = { 8, 8, 8, }, + .vsync_len = { 2, 19, 2, }, + .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, +}; + +static const struct panel_desc boe_av101hdt_a10 = { + .timings = &boe_av101hdt_a10_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 224, + .height = 126, + }, + .delay = { + .enable = 50, + .disable = 50, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct drm_display_mode boe_bp101wx1_100_mode = { .clock = 78945, .hdisplay = 1280, @@ -4813,6 +4842,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "bananapi,s070wv20-ct16", .data = &bananapi_s070wv20_ct16, + }, { + .compatible = "boe,av101hdt-a10", + .data = &boe_av101hdt_a10, }, { .compatible = "boe,bp082wx1-100", .data = &boe_bp082wx1_100,