diff mbox series

[2/2] drm/panel: simple: Add BOE BP082WX1-100 8.2" panel

Message ID 20231202081157.47222-2-tony@atomide.com (mailing list archive)
State New, archived
Headers show
Series [1/2] dt-bindings: display: simple: Add boe, bp082wx1-100 8.2" panel | expand

Commit Message

Tony Lindgren Dec. 2, 2023, 8:11 a.m. UTC
The BOE BP082WX1-100 is a 8.2" panel similar to the 10.1" panel
BP101WX1-100. Both panels use the same timings.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Dmitry Baryshkov Dec. 3, 2023, 11:30 p.m. UTC | #1
On Sat, 2 Dec 2023 at 10:13, Tony Lindgren <tony@atomide.com> wrote:
>
> The BOE BP082WX1-100 is a 8.2" panel similar to the 10.1" panel
> BP101WX1-100. Both panels use the same timings.
>
> Signed-off-by: Tony Lindgren <tony@atomide.com>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

> ---
>  drivers/gpu/drm/panel/panel-simple.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -1336,6 +1336,23 @@ static const struct drm_display_mode boe_bp101wx1_100_mode = {
>         .vtotal = 800 + 6 + 8 + 2,
>  };
>
> +static const struct panel_desc boe_bp082wx1_100 = {
> +       .modes = &boe_bp101wx1_100_mode,
> +       .num_modes = 1,
> +       .bpc = 8,
> +       .size = {
> +               .width = 180,
> +               .height = 114,

Nit: Panelook gives following dimensions: 176.64(W)×110.4(H) mm

> +       },
> +       .delay = {
> +               .enable = 50,
> +               .disable = 50,
> +       },
> +       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
> +       .bus_flags = DRM_BUS_FLAG_DE_HIGH,
> +       .connector_type = DRM_MODE_CONNECTOR_LVDS,
> +};
> +
>  static const struct panel_desc boe_bp101wx1_100 = {
>         .modes = &boe_bp101wx1_100_mode,
>         .num_modes = 1,
> @@ -4281,6 +4298,9 @@ static const struct of_device_id platform_of_match[] = {
>         }, {
>                 .compatible = "bananapi,s070wv20-ct16",
>                 .data = &bananapi_s070wv20_ct16,
> +       }, {
> +               .compatible = "boe,bp082wx1-100",
> +               .data = &boe_bp082wx1_100,
>         }, {
>                 .compatible = "boe,bp101wx1-100",
>                 .data = &boe_bp101wx1_100,
> --
> 2.43.0
diff mbox series

Patch

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1336,6 +1336,23 @@  static const struct drm_display_mode boe_bp101wx1_100_mode = {
 	.vtotal = 800 + 6 + 8 + 2,
 };
 
+static const struct panel_desc boe_bp082wx1_100 = {
+	.modes = &boe_bp101wx1_100_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 180,
+		.height = 114,
+	},
+	.delay = {
+		.enable = 50,
+		.disable = 50,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct panel_desc boe_bp101wx1_100 = {
 	.modes = &boe_bp101wx1_100_mode,
 	.num_modes = 1,
@@ -4281,6 +4298,9 @@  static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "bananapi,s070wv20-ct16",
 		.data = &bananapi_s070wv20_ct16,
+	}, {
+		.compatible = "boe,bp082wx1-100",
+		.data = &boe_bp082wx1_100,
 	}, {
 		.compatible = "boe,bp101wx1-100",
 		.data = &boe_bp101wx1_100,