mbox series

[v3,0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b

Message ID cover.1559905870.git.hns@goldelico.com
Headers show
Series drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b | expand

Message

H. Nikolaus Schaller June 7, 2019, 11:11 a.m. UTC
V3:
* add bindings documentation (suggested by sam@ravnborg.org)

V2 2019-06-05 07:07:05:
* fix typo in 99dtc panel compatible string (reported by imirkin@alum.mit.edu)

V1 2019-06-04 14:53:00:

Since v5.2-rc1 OMAP is no longer using a special display driver architecture
for DPI panels, but uses the general drm/panel/panel-simple.

So we finally can add SoC independent panel definitions for two panel models
which we already had worked on quite a while ago (before device tree was
introduced):

	https://patchwork.kernel.org/patch/2851295/



H. Nikolaus Schaller (5):
  drm/panel: simple: Add Sharp LQ070Y3DG3B panel support
  drm/panel: simple: Add Ortustech COM37H3M panel support
  dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel
  dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel
  dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel

 .../display/panel/ortustech,com37h3m05dtc.txt | 12 ++++
 .../display/panel/ortustech,com37h3m99dtc.txt | 12 ++++
 .../display/panel/sharp,lq070y3dg3b.txt       | 12 ++++
 drivers/gpu/drm/panel/panel-simple.c          | 63 +++++++++++++++++++
 4 files changed, 99 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m05dtc.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m99dtc.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq070y3dg3b.txt

Comments

H. Nikolaus Schaller June 24, 2019, 6:44 p.m. UTC | #1
Hi,

> Am 07.06.2019 um 13:11 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
> 
> V3:
> * add bindings documentation (suggested by sam@ravnborg.org)
> 
> V2 2019-06-05 07:07:05:
> * fix typo in 99dtc panel compatible string (reported by imirkin@alum.mit.edu)
> 
> V1 2019-06-04 14:53:00:
> 
> Since v5.2-rc1 OMAP is no longer using a special display driver architecture
> for DPI panels, but uses the general drm/panel/panel-simple.
> 
> So we finally can add SoC independent panel definitions for two panel models
> which we already had worked on quite a while ago (before device tree was
> introduced):
> 
> 	https://patchwork.kernel.org/patch/2851295/
> 
> 
> 
> H. Nikolaus Schaller (5):
>  drm/panel: simple: Add Sharp LQ070Y3DG3B panel support
>  drm/panel: simple: Add Ortustech COM37H3M panel support
>  dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel
>  dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel
>  dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel
> 
> .../display/panel/ortustech,com37h3m05dtc.txt | 12 ++++
> .../display/panel/ortustech,com37h3m99dtc.txt | 12 ++++
> .../display/panel/sharp,lq070y3dg3b.txt       | 12 ++++
> drivers/gpu/drm/panel/panel-simple.c          | 63 +++++++++++++++++++
> 4 files changed, 99 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m05dtc.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m99dtc.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq070y3dg3b.txt
> 
> -- 
> 2.19.1
> 

any progress towards merging this somewhere? It did not yet arrive in linux-next.

BTW: should also be applied to 5.2

BR and thanks,
Nikolaus
Sam Ravnborg June 25, 2019, 8:39 p.m. UTC | #2
On Fri, Jun 07, 2019 at 01:11:07PM +0200, H. Nikolaus Schaller wrote:
> The change adds support for the Sharp LQ070Y3DG3B 7.0" TFT LCD panel.
> 
> Tested on Letux7004.
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 30 ++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 569be4efd8d1..5b27829c5a78 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2204,6 +2204,33 @@ static const struct panel_desc samsung_ltn140at29_301 = {
>  	},
>  };
>  
> +static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
> +	.clock = 33260,
> +	.hdisplay = 800,
> +	.hsync_start = 800 + 64,
> +	.hsync_end = 800 + 64 + 128,
> +	.htotal = 800 + 64 + 128 + 64,
> +	.vdisplay = 480,
> +	.vsync_start = 480 + 8,
> +	.vsync_end = 480 + 8 + 2,
> +	.vtotal = 480 + 8 + 2 + 35,
> +	.vrefresh = 60,
> +	.flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
> +};
> +
> +static const struct panel_desc sharp_lq070y3dg3b = {
> +	.modes = &sharp_lq070y3dg3b_mode,
> +	.num_modes = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 152,	/* 152.4mm */
> +		.height = 91,	/* 91.4mm */
> +	},
> +	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
> +	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE |
> +		     DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
> +};
> +
>  static const struct drm_display_mode sharp_lq035q7db03_mode = {
>  	.clock = 5500,
>  	.hdisplay = 240,
> @@ -2786,6 +2813,9 @@ static const struct of_device_id platform_of_match[] = {
>  	}, {
>  		.compatible = "sharp,lq035q7db03",
>  		.data = &sharp_lq035q7db03,
> +	}, {
> +		.compatible = "sharp,lq070y3dg3b",
> +		.data = &sharp_lq070y3dg3b,
>  	}, {
>  		.compatible = "sharp,lq101k1ly04",
>  		.data = &sharp_lq101k1ly04,
> -- 
> 2.19.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg June 25, 2019, 8:40 p.m. UTC | #3
On Fri, Jun 07, 2019 at 01:11:08PM +0200, H. Nikolaus Schaller wrote:
> The change adds support for the Ortustech COM37H3M05DTC/99DTC 3.7" TFT LCD panel.
> 
> Tested on Letux3704.
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 5b27829c5a78..1fb74908a269 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2007,6 +2007,33 @@ static const struct panel_desc ontat_yx700wv03 = {
>  	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
>  };
>  
> +static const struct drm_display_mode ortustech_com37h3m_mode  = {
> +	.clock = 22153,
> +	.hdisplay = 480,
> +	.hsync_start = 480 + 8,
> +	.hsync_end = 480 + 8 + 10,
> +	.htotal = 480 + 8 + 10 + 10,
> +	.vdisplay = 640,
> +	.vsync_start = 640 + 4,
> +	.vsync_end = 640 + 4 + 3,
> +	.vtotal = 640 + 4 + 3 + 4,
> +	.vrefresh = 60,
> +	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
> +};
> +
> +static const struct panel_desc ortustech_com37h3m = {
> +	.modes = &ortustech_com37h3m_mode,
> +	.num_modes = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 56,	/* 56.16mm */
> +		.height = 75,	/* 74.88mm */
> +	},
> +	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
> +	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE |
> +		     DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
> +};
> +
>  static const struct drm_display_mode ortustech_com43h4m85ulc_mode  = {
>  	.clock = 25000,
>  	.hdisplay = 480,
> @@ -2786,6 +2813,12 @@ static const struct of_device_id platform_of_match[] = {
>  	}, {
>  		.compatible = "ontat,yx700wv03",
>  		.data = &ontat_yx700wv03,
> +	}, {
> +		.compatible = "ortustech,com37h3m05dtc",
> +		.data = &ortustech_com37h3m,
> +	}, {
> +		.compatible = "ortustech,com37h3m99dtc",
> +		.data = &ortustech_com37h3m,
>  	}, {
>  		.compatible = "ortustech,com43h4m85ulc",
>  		.data = &ortustech_com43h4m85ulc,
> -- 
> 2.19.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sam Ravnborg June 25, 2019, 8:43 p.m. UTC | #4
Hi Nikolaus

> > V3:
> > * add bindings documentation (suggested by sam@ravnborg.org)
> > 
> > V2 2019-06-05 07:07:05:
> > * fix typo in 99dtc panel compatible string (reported by imirkin@alum.mit.edu)
> > 
> > V1 2019-06-04 14:53:00:
> > 
> > Since v5.2-rc1 OMAP is no longer using a special display driver architecture
> > for DPI panels, but uses the general drm/panel/panel-simple.
> > 
> > So we finally can add SoC independent panel definitions for two panel models
> > which we already had worked on quite a while ago (before device tree was
> > introduced):
> > 
> > 	https://patchwork.kernel.org/patch/2851295/
> > 
> > 
> > 
> > H. Nikolaus Schaller (5):
> >  drm/panel: simple: Add Sharp LQ070Y3DG3B panel support
> >  drm/panel: simple: Add Ortustech COM37H3M panel support
> >  dt-bindings: drm/panel: simple: add ortustech,com37h3m05dtc panel
> >  dt-bindings: drm/panel: simple: add ortustech,com37h3m99dtc panel
> >  dt-bindings: drm/panel: simple: add sharp,lq070y3dg3b panel
> > 
> > .../display/panel/ortustech,com37h3m05dtc.txt | 12 ++++
> > .../display/panel/ortustech,com37h3m99dtc.txt | 12 ++++
> > .../display/panel/sharp,lq070y3dg3b.txt       | 12 ++++
> > drivers/gpu/drm/panel/panel-simple.c          | 63 +++++++++++++++++++
> > 4 files changed, 99 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m05dtc.txt
> > create mode 100644 Documentation/devicetree/bindings/display/panel/ortustech,com37h3m99dtc.txt
> > create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq070y3dg3b.txt
> > 
> > -- 
> > 2.19.1
> > 
> 
> any progress towards merging this somewhere? It did not yet arrive in linux-next.
> 
> BTW: should also be applied to 5.2
The drm bits are reviewed. The DT bits needs OK from DT people.
When we have OK from DT people we can apply them all to drm-misc-next.

If we need them expedited towards the upstream kernel you will need help
from someone else. But let's get them in drm-misc-next first.

	Sam
Sam Ravnborg June 26, 2019, 7:33 a.m. UTC | #5
Hi Nikolaus.

> > 
> > any progress towards merging this somewhere? It did not yet arrive in linux-next.
> > 
> > BTW: should also be applied to 5.2
> The drm bits are reviewed. The DT bits needs OK from DT people.
> When we have OK from DT people we can apply them all to drm-misc-next.

I got OK on irc from Rob to process these.
All patches are now applied to drm-misc-next.

	Sam
H. Nikolaus Schaller June 26, 2019, 12:40 p.m. UTC | #6
Hi Sam,

> Am 26.06.2019 um 09:33 schrieb Sam Ravnborg <sam@ravnborg.org>:
> 
> Hi Nikolaus.
> 
>>> 
>>> any progress towards merging this somewhere? It did not yet arrive in linux-next.
>>> 
>>> BTW: should also be applied to 5.2
>> The drm bits are reviewed. The DT bits needs OK from DT people.
>> When we have OK from DT people we can apply them all to drm-misc-next.
> 
> I got OK on irc from Rob to process these.
> All patches are now applied to drm-misc-next.

Thanks for taking care of this!

> 
> 	Sam

BR,
Nikolaus
H. Nikolaus Schaller July 17, 2019, 5:33 p.m. UTC | #7
Hi Sam,

> Am 26.06.2019 um 14:40 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
> 
> Hi Sam,
> 
>> Am 26.06.2019 um 09:33 schrieb Sam Ravnborg <sam@ravnborg.org>:
>> 
>> Hi Nikolaus.
>> 
>>>> 
>>>> any progress towards merging this somewhere? It did not yet arrive in linux-next.
>>>> 
>>>> BTW: should also be applied to 5.2
>>> The drm bits are reviewed. The DT bits needs OK from DT people.
>>> When we have OK from DT people we can apply them all to drm-misc-next.
>> 
>> I got OK on irc from Rob to process these.
>> All patches are now applied to drm-misc-next.
> 
> Thanks for taking care of this!

I have checked but it seems they are still not merged into linux-next.

BR and thanks,
Nikolaus
Sam Ravnborg July 17, 2019, 6:14 p.m. UTC | #8
Hi Nikolaus.

> >>>> BTW: should also be applied to 5.2
> >>> The drm bits are reviewed. The DT bits needs OK from DT people.
> >>> When we have OK from DT people we can apply them all to drm-misc-next.
> >> 
> >> I got OK on irc from Rob to process these.
> >> All patches are now applied to drm-misc-next.
> > 
> > Thanks for taking care of this!
> 
> I have checked but it seems they are still not merged into linux-next.

They will appear in next merge window. They were to late to hit current
merge window, as the cut-of time is around .rc5 in the drm subsystem.
And this is not really a fix so not stable material.

	Sam
H. Nikolaus Schaller July 23, 2019, 6:59 a.m. UTC | #9
Hi Sam,

> Am 17.07.2019 um 20:14 schrieb Sam Ravnborg <sam@ravnborg.org>:
> 
> Hi Nikolaus.
> 
>>>>>> BTW: should also be applied to 5.2
>>>>> The drm bits are reviewed. The DT bits needs OK from DT people.
>>>>> When we have OK from DT people we can apply them all to drm-misc-next.
>>>> 
>>>> I got OK on irc from Rob to process these.
>>>> All patches are now applied to drm-misc-next.
>>> 
>>> Thanks for taking care of this!
>> 
>> I have checked but it seems they are still not merged into linux-next.
> 
> They will appear in next merge window. They were to late to hit current
> merge window, as the cut-of time is around .rc5 in the drm subsystem.
> And this is not really a fix so not stable material.

have finally arrived. I just wasn't patient enough :)

BR and thanks,
Nikolaus