All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for NEC NL10276BC13-01C panel
@ 2020-05-11 20:29 Maksim Melnikov
  2020-05-11 20:29 ` [PATCH 1/2] drm/panel-simple: add " Maksim Melnikov
  2020-05-11 20:29 ` [PATCH 2/2] dt-bindings: display: panel: Add NEC NL10276BC13-01C panel bindings Maksim Melnikov
  0 siblings, 2 replies; 4+ messages in thread
From: Maksim Melnikov @ 2020-05-11 20:29 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, dri-devel; +Cc: Maksim Melnikov

This patchset adds support for NEC NL10276BC13-01C panel.

Maksim Melnikov (2):
  drm/panel-simple: add support for NEC NL10276BC13-01C panel
  dt-bindings: display: panel: Add NEC NL10276BC13-01C panel bindings

 .../bindings/display/panel/panel-simple.yaml  |  2 ++
 drivers/gpu/drm/panel/panel-simple.c          | 28 +++++++++++++++++++
 2 files changed, 30 insertions(+)

-- 
2.25.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] drm/panel-simple: add support for NEC NL10276BC13-01C panel
  2020-05-11 20:29 [PATCH 0/2] Add support for NEC NL10276BC13-01C panel Maksim Melnikov
@ 2020-05-11 20:29 ` Maksim Melnikov
  2020-06-29  8:04   ` Sam Ravnborg
  2020-05-11 20:29 ` [PATCH 2/2] dt-bindings: display: panel: Add NEC NL10276BC13-01C panel bindings Maksim Melnikov
  1 sibling, 1 reply; 4+ messages in thread
From: Maksim Melnikov @ 2020-05-11 20:29 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, dri-devel; +Cc: Maksim Melnikov

The NL10276BC13-01C is a 6.5" 1024x768 XGA TFT LCD panel with LVDS interface. It is used for industrial purposes in devices such as HMI.

Signed-off-by: Maksim Melnikov <approximatenumber@gmail.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 3ad828eae..7ded13157 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2372,6 +2372,31 @@ static const struct panel_desc nec_nl4827hc19_05b = {
 	.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
 };
 
+static const struct display_timing nec_nl10276bc13_01c_timing = {
+	.pixelclock = { 62600000, 68200000, 78100000 },
+	.hactive = { 1024, 1024, 1024 },
+	.hfront_porch = { 15, 64, 159 },
+	.hback_porch = { 5, 5, 5 },
+	.hsync_len = { 1, 1, 256 },
+	.vactive = { 768, 768, 768 },
+	.vfront_porch = { 3, 40, 99 },
+	.vback_porch = { 2, 2, 2 },
+	.vsync_len = { 1, 1, 128 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc nec_nl10276bc13_01c = {
+	.timings = &nec_nl10276bc13_01c_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 132,
+		.height = 99,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct drm_display_mode netron_dy_e231732_mode = {
 	.clock = 66000,
 	.hdisplay = 1024,
@@ -3634,6 +3659,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "nec,nl4827hc19-05b",
 		.data = &nec_nl4827hc19_05b,
+	}, {
+		.compatible = "nec,nl10276bc13_01c",
+		.data = &nec_nl10276bc13_01c,
 	}, {
 		.compatible = "netron-dy,e231732",
 		.data = &netron_dy_e231732,
-- 
2.25.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] dt-bindings: display: panel: Add NEC NL10276BC13-01C panel bindings
  2020-05-11 20:29 [PATCH 0/2] Add support for NEC NL10276BC13-01C panel Maksim Melnikov
  2020-05-11 20:29 ` [PATCH 1/2] drm/panel-simple: add " Maksim Melnikov
@ 2020-05-11 20:29 ` Maksim Melnikov
  1 sibling, 0 replies; 4+ messages in thread
From: Maksim Melnikov @ 2020-05-11 20:29 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, dri-devel; +Cc: Maksim Melnikov

Add panel binding for NEC NL10276BC13-01C.

Signed-off-by: Maksim Melnikov <approximatenumber@gmail.com>
---
 .../devicetree/bindings/display/panel/panel-simple.yaml         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 393ffc6ac..11bbf69f4 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -171,6 +171,8 @@ properties:
       - logictechno,lt170410-2whc
         # Mitsubishi "AA070MC01 7.0" WVGA TFT LCD panel
       - mitsubishi,aa070mc01-ca1
+        # NEC LCD Technologies, Ltd. 6.5" XGA (1024x768) LVDS TFT LCD panel
+      - nec,nl10276bc13-01c
         # NEC LCD Technologies, Ltd. 12.1" WXGA (1280x800) LVDS TFT LCD panel
       - nec,nl12880bc20-05
         # NEC LCD Technologies,Ltd. WQVGA TFT LCD panel
-- 
2.25.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] drm/panel-simple: add support for NEC NL10276BC13-01C panel
  2020-05-11 20:29 ` [PATCH 1/2] drm/panel-simple: add " Maksim Melnikov
@ 2020-06-29  8:04   ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2020-06-29  8:04 UTC (permalink / raw)
  To: Maksim Melnikov; +Cc: Thierry Reding, dri-devel

On Mon, May 11, 2020 at 11:29:24PM +0300, Maksim Melnikov wrote:
> The NL10276BC13-01C is a 6.5" 1024x768 XGA TFT LCD panel with LVDS interface. It is used for industrial purposes in devices such as HMI.
> 
> Signed-off-by: Maksim Melnikov <approximatenumber@gmail.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 3ad828eae..7ded13157 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2372,6 +2372,31 @@ static const struct panel_desc nec_nl4827hc19_05b = {
>  	.bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
>  };
>  
> +static const struct display_timing nec_nl10276bc13_01c_timing = {
> +	.pixelclock = { 62600000, 68200000, 78100000 },
> +	.hactive = { 1024, 1024, 1024 },
> +	.hfront_porch = { 15, 64, 159 },
> +	.hback_porch = { 5, 5, 5 },
> +	.hsync_len = { 1, 1, 256 },
> +	.vactive = { 768, 768, 768 },
> +	.vfront_porch = { 3, 40, 99 },
> +	.vback_porch = { 2, 2, 2 },
> +	.vsync_len = { 1, 1, 128 },
> +	.flags = DISPLAY_FLAGS_DE_HIGH,
> +};
> +
> +static const struct panel_desc nec_nl10276bc13_01c = {
> +	.timings = &nec_nl10276bc13_01c_timing,
> +	.num_timings = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 132,
> +		.height = 99,
> +	},
> +	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
> +	.connector_type = DRM_MODE_CONNECTOR_LVDS,
Sorry for getting back so late.

Please include .bus_flags too.
We want the description to be complete.

	Sam
> +};
> +
>  static const struct drm_display_mode netron_dy_e231732_mode = {
>  	.clock = 66000,
>  	.hdisplay = 1024,
> @@ -3634,6 +3659,9 @@ static const struct of_device_id platform_of_match[] = {
>  	}, {
>  		.compatible = "nec,nl4827hc19-05b",
>  		.data = &nec_nl4827hc19_05b,
> +	}, {
> +		.compatible = "nec,nl10276bc13_01c",
> +		.data = &nec_nl10276bc13_01c,
>  	}, {
>  		.compatible = "netron-dy,e231732",
>  		.data = &netron_dy_e231732,
> -- 
> 2.25.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-29  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 20:29 [PATCH 0/2] Add support for NEC NL10276BC13-01C panel Maksim Melnikov
2020-05-11 20:29 ` [PATCH 1/2] drm/panel-simple: add " Maksim Melnikov
2020-06-29  8:04   ` Sam Ravnborg
2020-05-11 20:29 ` [PATCH 2/2] dt-bindings: display: panel: Add NEC NL10276BC13-01C panel bindings Maksim Melnikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.