devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1
@ 2020-11-24 17:26 Lukas F. Hartmann
  2020-11-24 17:26 ` [PATCH 2/2] dt-bindings: display/panel: " Lukas F. Hartmann
  2020-11-24 17:46 ` [PATCH 1/2] panel-simple: " Sam Ravnborg
  0 siblings, 2 replies; 4+ messages in thread
From: Lukas F. Hartmann @ 2020-11-24 17:26 UTC (permalink / raw)
  To: lukas
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, dri-devel, devicetree, linux-kernel

The Innolux N125HCE-GN1 display is used in the MNT Reform 2.0 laptop,
attached via eDP to a SN65DSI86 MIPI-DSI to eDP bridge.

Signed-off-by: Lukas F. Hartmann <lukas@mntre.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 2be358fb4..774acab52 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2263,6 +2263,31 @@ static const struct panel_desc innolux_n116bge = {
 	},
 };
 
+static const struct drm_display_mode innolux_n125hce_gn1_mode = {
+	.clock = 162000,
+	.hdisplay = 1920,
+	.hsync_start = 1920 + 40,
+	.hsync_end = 1920 + 40 + 40,
+	.htotal = 1920 + 40 + 40 + 80,
+	.vdisplay = 1080,
+	.vsync_start = 1080 + 4,
+	.vsync_end = 1080 + 4 + 4,
+	.vtotal = 1080 + 4 + 4 + 24,
+};
+
+static const struct panel_desc innolux_n125hce_gn1 = {
+	.modes = &innolux_n125hce_gn1_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 276,
+		.height = 155,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB,
+	.connector_type = DRM_MODE_CONNECTOR_eDP,
+};
+
 static const struct drm_display_mode innolux_n156bge_l21_mode = {
 	.clock = 69300,
 	.hdisplay = 1366,
@@ -4092,6 +4117,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "innolux,n116bge",
 		.data = &innolux_n116bge,
+	}, {
+		.compatible = "innolux,n125hce-gn1",
+		.data = &innolux_n125hce_gn1,
 	}, {
 		.compatible = "innolux,n156bge-l21",
 		.data = &innolux_n156bge_l21,
-- 
2.28.0


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

* [PATCH 2/2] dt-bindings: display/panel: add Innolux N125HCE-GN1
  2020-11-24 17:26 [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1 Lukas F. Hartmann
@ 2020-11-24 17:26 ` Lukas F. Hartmann
  2020-11-24 17:45   ` Sam Ravnborg
  2020-11-24 17:46 ` [PATCH 1/2] panel-simple: " Sam Ravnborg
  1 sibling, 1 reply; 4+ messages in thread
From: Lukas F. Hartmann @ 2020-11-24 17:26 UTC (permalink / raw)
  To: lukas
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, dri-devel, devicetree, linux-kernel

The Innolux N125HCE-GN1 display is used in the MNT Reform 2.0 laptop,
attached via eDP to a SN65DSI86 MIPI-DSI to eDP bridge. This patch
contains the DT binding for "innolux,n125hce-gn1".

Signed-off-by: Lukas F. Hartmann <lukas@mntre.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 edb53ab0d..03b3e0b9d 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -160,6 +160,8 @@ properties:
         # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel
       - innolux,n116bge
         # InnoLux 15.6" WXGA TFT LCD panel
+      - innolux,n125hce-gn1
+        # InnoLux 13.3" FHD (1920x1080) eDP TFT LCD panel
       - innolux,n156bge-l21
         # Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
       - innolux,zj070na-01p
-- 
2.28.0


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

* Re: [PATCH 2/2] dt-bindings: display/panel: add Innolux N125HCE-GN1
  2020-11-24 17:26 ` [PATCH 2/2] dt-bindings: display/panel: " Lukas F. Hartmann
@ 2020-11-24 17:45   ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2020-11-24 17:45 UTC (permalink / raw)
  To: Lukas F. Hartmann
  Cc: Thierry Reding, David Airlie, Daniel Vetter, Rob Herring,
	dri-devel, devicetree, linux-kernel

Hi Lukas

On Tue, Nov 24, 2020 at 06:26:06PM +0100, Lukas F. Hartmann wrote:
> The Innolux N125HCE-GN1 display is used in the MNT Reform 2.0 laptop,
> attached via eDP to a SN65DSI86 MIPI-DSI to eDP bridge. This patch
> contains the DT binding for "innolux,n125hce-gn1".
> 
> Signed-off-by: Lukas F. Hartmann <lukas@mntre.com>

bindings before their usage, so this should be first patch.

> ---
>  .../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 edb53ab0d..03b3e0b9d 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> @@ -160,6 +160,8 @@ properties:
>          # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel
>        - innolux,n116bge
>          # InnoLux 15.6" WXGA TFT LCD panel
> +      - innolux,n125hce-gn1
> +        # InnoLux 13.3" FHD (1920x1080) eDP TFT LCD panel

Comments before the compatible.

I applied this first and reordered the comment - so both details are
handled.

Applied to drm-misc-next.

	Sam

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

* Re: [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1
  2020-11-24 17:26 [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1 Lukas F. Hartmann
  2020-11-24 17:26 ` [PATCH 2/2] dt-bindings: display/panel: " Lukas F. Hartmann
@ 2020-11-24 17:46 ` Sam Ravnborg
  1 sibling, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2020-11-24 17:46 UTC (permalink / raw)
  To: Lukas F. Hartmann
  Cc: Thierry Reding, David Airlie, Daniel Vetter, Rob Herring,
	dri-devel, devicetree, linux-kernel

Hi Lukas.

On Tue, Nov 24, 2020 at 06:26:04PM +0100, Lukas F. Hartmann wrote:
> The Innolux N125HCE-GN1 display is used in the MNT Reform 2.0 laptop,
> attached via eDP to a SN65DSI86 MIPI-DSI to eDP bridge.
> 
> Signed-off-by: Lukas F. Hartmann <lukas@mntre.com>

Danke, applied to drm-misc-next.

	Sam

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

end of thread, other threads:[~2020-11-24 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 17:26 [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1 Lukas F. Hartmann
2020-11-24 17:26 ` [PATCH 2/2] dt-bindings: display/panel: " Lukas F. Hartmann
2020-11-24 17:45   ` Sam Ravnborg
2020-11-24 17:46 ` [PATCH 1/2] panel-simple: " Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).