linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible
@ 2020-08-21 15:35 Douglas Anderson
  2020-08-21 15:35 ` [PATCH 2/2] drm: panel: simple: Add KD116N21-30NV-A010 Douglas Anderson
  2020-08-21 17:16 ` [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Sam Ravnborg
  0 siblings, 2 replies; 3+ messages in thread
From: Douglas Anderson @ 2020-08-21 15:35 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg
  Cc: Daniel Vetter, robdclark, Douglas Anderson, David Airlie,
	Rob Herring, devicetree, dri-devel, linux-kernel

The KD116N21-30NV-A010 is a pretty standard eDP panel.  Add it to the
list of compatible strings.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 .../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 47247ace86ac..f2204f17a9dc 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -161,6 +161,8 @@ properties:
       - innolux,n156bge-l21
         # Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
       - innolux,zj070na-01p
+        # King & Display KD116N21-30NV-A010 eDP TFT LCD panel
+      - kingdisplay,kd116n21-30nv-a010
         # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
       - koe,tx14d24vm1bpa
         # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel
-- 
2.28.0.297.g1956fa8f8d-goog


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

* [PATCH 2/2] drm: panel: simple: Add KD116N21-30NV-A010
  2020-08-21 15:35 [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Douglas Anderson
@ 2020-08-21 15:35 ` Douglas Anderson
  2020-08-21 17:16 ` [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Douglas Anderson @ 2020-08-21 15:35 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg
  Cc: Daniel Vetter, robdclark, Douglas Anderson, David Airlie,
	dri-devel, linux-kernel

Values come from the vendor and have been tested on hardware.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 4eabfdd3be2d..f499de71ab3d 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2341,6 +2341,34 @@ static const struct panel_desc ivo_m133nwf4_r0 = {
 	.connector_type = DRM_MODE_CONNECTOR_eDP,
 };
 
+static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
+	.clock = 81000,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 40,
+	.hsync_end = 1366 + 40 + 32,
+	.htotal = 1366 + 40 + 32 + 62,
+	.vdisplay = 768,
+	.vsync_start = 768 + 5,
+	.vsync_end = 768 + 5 + 5,
+	.vtotal = 768 + 5 + 5 + 122,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc kingdisplay_kd116n21_30nv_a010 = {
+	.modes = &kingdisplay_kd116n21_30nv_a010_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 256,
+		.height = 144,
+	},
+	.delay = {
+		.hpd_absent_delay = 200,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+	.connector_type = DRM_MODE_CONNECTOR_eDP,
+};
+
 static const struct display_timing koe_tx14d24vm1bpa_timing = {
 	.pixelclock = { 5580000, 5850000, 6200000 },
 	.hactive = { 320, 320, 320 },
@@ -4047,6 +4075,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "ivo,m133nwf4-r0",
 		.data = &ivo_m133nwf4_r0,
+	}, {
+		.compatible = "kingdisplay,kd116n21-30nv-a010",
+		.data = &kingdisplay_kd116n21_30nv_a010,
 	}, {
 		.compatible = "koe,tx14d24vm1bpa",
 		.data = &koe_tx14d24vm1bpa,
-- 
2.28.0.297.g1956fa8f8d-goog


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

* Re: [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible
  2020-08-21 15:35 [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Douglas Anderson
  2020-08-21 15:35 ` [PATCH 2/2] drm: panel: simple: Add KD116N21-30NV-A010 Douglas Anderson
@ 2020-08-21 17:16 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2020-08-21 17:16 UTC (permalink / raw)
  To: Douglas Anderson
  Cc: Thierry Reding, Daniel Vetter, robdclark, David Airlie,
	Rob Herring, devicetree, dri-devel, linux-kernel

Hi Douglas.

On Fri, Aug 21, 2020 at 08:35:14AM -0700, Douglas Anderson wrote:
> The KD116N21-30NV-A010 is a pretty standard eDP panel.  Add it to the
> list of compatible strings.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>

Both patches applied to drm-misc-next.

	Sam

> ---
> 
>  .../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 47247ace86ac..f2204f17a9dc 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> @@ -161,6 +161,8 @@ properties:
>        - innolux,n156bge-l21
>          # Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
>        - innolux,zj070na-01p
> +        # King & Display KD116N21-30NV-A010 eDP TFT LCD panel
> +      - kingdisplay,kd116n21-30nv-a010
>          # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
>        - koe,tx14d24vm1bpa
>          # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel
> -- 
> 2.28.0.297.g1956fa8f8d-goog

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

end of thread, other threads:[~2020-08-21 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21 15:35 [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Douglas Anderson
2020-08-21 15:35 ` [PATCH 2/2] drm: panel: simple: Add KD116N21-30NV-A010 Douglas Anderson
2020-08-21 17:16 ` [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible 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).