linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel
@ 2019-11-07 17:23 Sebastian Reichel
  2019-11-07 17:23 ` [PATCHv1 2/2] drm/panel: simple: Add support for AUO G156XTN01.0 panel Sebastian Reichel
  2019-11-30 21:51 ` [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel Sam Ravnborg
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Reichel @ 2019-11-07 17:23 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	dri-devel, linux-kernel
  Cc: kernel, Sebastian Reichel

Add timings for the AUO G121EAN01.4 panel.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 28fa6ba7b767..46ca59db6819 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -806,6 +806,29 @@ static const struct panel_desc auo_g104sn02 = {
 	},
 };
 
+static const struct drm_display_mode auo_g121ean01_mode = {
+	.clock = 66700,
+	.hdisplay = 1280,
+	.hsync_start = 1280 + 58,
+	.hsync_end = 1280 + 58 + 8,
+	.htotal = 1280 + 58 + 8 + 70,
+	.vdisplay = 800,
+	.vsync_start = 800 + 6,
+	.vsync_end = 800 + 6 + 4,
+	.vtotal = 800 + 6 + 4 + 10,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc auo_g121ean01 = {
+	.modes = &auo_g121ean01_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 261,
+		.height = 163,
+	},
+};
+
 static const struct display_timing auo_g133han01_timings = {
 	.pixelclock = { 134000000, 141200000, 149000000 },
 	.hactive = { 1920, 1920, 1920 },
@@ -3114,6 +3137,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "auo,g104sn02",
 		.data = &auo_g104sn02,
+	}, {
+		.compatible = "auo,g121ean01.4",
+		.data = &auo_g121ean01,
 	}, {
 		.compatible = "auo,g133han01",
 		.data = &auo_g133han01,
-- 
2.24.0.rc1


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

* [PATCHv1 2/2] drm/panel: simple: Add support for AUO G156XTN01.0 panel
  2019-11-07 17:23 [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel Sebastian Reichel
@ 2019-11-07 17:23 ` Sebastian Reichel
  2019-11-30 21:51 ` [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2019-11-07 17:23 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	dri-devel, linux-kernel
  Cc: kernel, Sebastian Reichel

Add timings for the AUO G156XTN01.0 panel.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 46ca59db6819..49a3f3b3d4be 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -858,6 +858,29 @@ static const struct panel_desc auo_g133han01 = {
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
 };
 
+static const struct drm_display_mode auo_g156xtn01_mode = {
+	.clock = 76000,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 33,
+	.hsync_end = 1366 + 33 + 67,
+	.htotal = 1560,
+	.vdisplay = 768,
+	.vsync_start = 768 + 4,
+	.vsync_end = 768 + 4 + 4,
+	.vtotal = 806,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc auo_g156xtn01 = {
+	.modes = &auo_g156xtn01_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 344,
+		.height = 194,
+	},
+};
+
 static const struct display_timing auo_g185han01_timings = {
 	.pixelclock = { 120000000, 144000000, 175000000 },
 	.hactive = { 1920, 1920, 1920 },
@@ -3143,6 +3166,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "auo,g133han01",
 		.data = &auo_g133han01,
+	}, {
+		.compatible = "auo,g156xtn01",
+		.data = &auo_g156xtn01,
 	}, {
 		.compatible = "auo,g185han01",
 		.data = &auo_g185han01,
-- 
2.24.0.rc1


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

* Re: [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel
  2019-11-07 17:23 [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel Sebastian Reichel
  2019-11-07 17:23 ` [PATCHv1 2/2] drm/panel: simple: Add support for AUO G156XTN01.0 panel Sebastian Reichel
@ 2019-11-30 21:51 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2019-11-30 21:51 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Thierry Reding, David Airlie, Daniel Vetter, dri-devel,
	linux-kernel, kernel

Hi Sebastian.
On Thu, Nov 07, 2019 at 06:23:30PM +0100, Sebastian Reichel wrote:
> Add timings for the AUO G121EAN01.4 panel.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 28fa6ba7b767..46ca59db6819 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -806,6 +806,29 @@ static const struct panel_desc auo_g104sn02 = {
>  	},
>  };
>  
> +static const struct drm_display_mode auo_g121ean01_mode = {
> +	.clock = 66700,
> +	.hdisplay = 1280,
> +	.hsync_start = 1280 + 58,
> +	.hsync_end = 1280 + 58 + 8,
> +	.htotal = 1280 + 58 + 8 + 70,
> +	.vdisplay = 800,
> +	.vsync_start = 800 + 6,
> +	.vsync_end = 800 + 6 + 4,
> +	.vtotal = 800 + 6 + 4 + 10,
> +	.vrefresh = 60,
> +};
> +
> +static const struct panel_desc auo_g121ean01 = {
> +	.modes = &auo_g121ean01_mode,
> +	.num_modes = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 261,
> +		.height = 163,
> +	},
> +};
> +
>  static const struct display_timing auo_g133han01_timings = {
>  	.pixelclock = { 134000000, 141200000, 149000000 },
>  	.hactive = { 1920, 1920, 1920 },
> @@ -3114,6 +3137,9 @@ static const struct of_device_id platform_of_match[] = {
>  	}, {
>  		.compatible = "auo,g104sn02",
>  		.data = &auo_g104sn02,
> +	}, {
> +		.compatible = "auo,g121ean01.4",
> +		.data = &auo_g121ean01,

I did not find any binding document for this,
so I cannot apply.
If you need to create a new binding then please
use the meta-schema format (.yaml).

	Sam

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

end of thread, other threads:[~2019-11-30 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 17:23 [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel Sebastian Reichel
2019-11-07 17:23 ` [PATCHv1 2/2] drm/panel: simple: Add support for AUO G156XTN01.0 panel Sebastian Reichel
2019-11-30 21:51 ` [PATCHv1 1/2] drm/panel: simple: Add support for AUO G121EAN01.4 panel 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).