Re: [PATCH v5 13/14] drm: stm: remove dead code and pointless local lut storage

2017-07-17 Thread Philippe CORNU
> Acked-by: Daniel Vetter <daniel.vet...@ffwll.ch> > Signed-off-by: Peter Rosin <p...@axentia.se> Acked-by: Philippe Cornu <philippe.co...@st.com> Note: we will update stm32 clut support after your patch. Many thanks. > --- > drivers/gpu/drm/stm/ltdc.c | 12

[PATCH v1 0/2] drm/bridge/synopsys: dsi: Various cleanups

2017-07-18 Thread Philippe CORNU
Version 1: - Initial commit The purpose of this set of patches is to clean up the mipi dsi dw Synopsys drm bridge. Philippe CORNU (2): drm/bridge/synopsys: dsi: Constify funcs structures drm/bridge/synopsys: dsi: Register list clean up drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 79

[PATCH v1 2/2] drm/bridge/synopsys: dsi: Register list clean up

2017-07-18 Thread Philippe CORNU
This patch cleans up the Synopsys mipi dsi register list: - remove unused registers - rename registers according to the Synopsys documentation (1.30 & 1.31) - fix typos - re-order registers for a better coherency Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/

[PATCH v1 4/7] drm/stm: ltdc: Constify funcs structures

2017-07-18 Thread Philippe CORNU
Constify drm funcs structures. Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 628825b..92e58ba 100644 --- a/drive

[PATCH v1 1/7] drm/stm: drv: Rename platform driver name

2017-07-18 Thread Philippe CORNU
Rename the platform driver name from "stm" to "stm32-display" for a better readability in /sys/bus/platform/drivers entries. Note: We keep "stm" as drm_driver.name because it is better when using "modetest -M stm ..." (even if recent modetest patch avoids u

[PATCH v1 6/7] drm/stm: ltdc: Cleanup rename returned value

2017-07-18 Thread Philippe CORNU
Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index f4ed21a..8cd1b9b 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/d

[PATCH v1 0/7] drm/stm: Various cleanups

2017-07-18 Thread Philippe CORNU
Version 1: - Initial commit The purpose of this set of patches is to clean up the drm stm driver. Philippe CORNU (7): drm/stm: drv: Rename platform driver name drm/stm: ltdc: Cleanup signal polarity defines drm/stm: ltdc: Lindent and minor cleanups drm/stm: ltdc: Constify funcs

[PATCH v1 5/7] drm/stm: ltdc: add devm_reset_control & platform_get_ressource

2017-07-18 Thread Philippe CORNU
Use devm_reset_control_get to avoid resource leakage. Also use platform_get_resource, which is more usual and consistent with platform_get_irq called later. Signed-off-by: Fabien Dessenne <fabien.desse...@st.com> Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers

[PATCH v1 7/7] drm/stm: dsi: Constify phy ops structure

2017-07-18 Thread Philippe CORNU
Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index 16ae00e..568c5d0 100644 --- a/drivers/g

[PATCH v1 2/7] drm/stm: ltdc: Cleanup signal polarity defines

2017-07-18 Thread Philippe CORNU
The GCR_PCPOL/DEPOL/VSPOL/HSPOL defines are sufficient to describe the HS, VS, DE & PC signal polarities. Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-)

[PATCH v1 3/7] drm/stm: ltdc: Lindent and minor cleanups

2017-07-18 Thread Philippe CORNU
Lindent then checkpatch --strict cleanups Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 172 ++--- 1 file changed, 85 insertions(+), 87 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/d

[PATCH v1 1/2] drm/bridge/synopsys: dsi: Constify funcs structures

2017-07-18 Thread Philippe CORNU
Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index 36f5ccb..63c7a01

[PATCH v2 1/3] drm/bridge/synopsys: dsi: Constify funcs structures

2017-07-20 Thread Philippe CORNU
Constify dw_mipi_dsi_bridge_funcs as these functions are not supposed to change at runtime. Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 2 +- 1 fil

[PATCH v2 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-07-20 Thread Philippe CORNU
idge. Philippe CORNU (3): drm/bridge/synopsys: dsi: Constify funcs structures drm/bridge/synopsys: dsi: Register list clean up drm/bridge/synopsys: dsi: explicitly request exclusive reset control drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 96 --- 1 file changed, 58 insert

[PATCH v2 2/3] drm/bridge/synopsys: dsi: Register list clean up

2017-07-20 Thread Philippe CORNU
This patch cleans up the Synopsys mipi dsi register list: - rename registers according to the Synopsys documentation (1.30 & 1.31) - fix typos - re-order registers for a better coherency Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Laurent Pinchart <

[PATCH v2 4/7] drm/stm: ltdc: Constify funcs structures

2017-07-20 Thread Philippe CORNU
Constify drm funcs structures. Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> --- drivers/gpu/drm/stm/ltdc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/dri

[PATCH v2 1/7] drm/stm: drv: Rename platform driver name

2017-07-20 Thread Philippe CORNU
Rename the platform driver name from "stm" to "stm32-display" for a better readability in /sys/bus/platform/drivers entries. Note: We keep "stm" as drm_driver.name because it is better when using "modetest -M stm ..." (even if recent modetest patch avoids u

[PATCH v2 5/7] drm/stm: ltdc: add devm_reset_control & platform_get_ressource

2017-07-20 Thread Philippe CORNU
;fabien.desse...@st.com> Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> Cc: Philipp Zabel <p.za...@pengutronix.de> --- drivers/gpu/drm/stm/ltdc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --

[PATCH v2 6/7] drm/stm: ltdc: Cleanup rename returned value

2017-07-20 Thread Philippe CORNU
Rename the returned value from "res" to "ret" as it is more "readable". Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> --- drivers/gpu/drm/stm/ltdc.c | 10 +- 1 file changed, 5

[PATCH v2 2/7] drm/stm: ltdc: Cleanup signal polarity defines

2017-07-20 Thread Philippe CORNU
The GCR_PCPOL/DEPOL/VSPOL/HSPOL defines are sufficient to describe the HS, VS, DE & PC signal polarities. Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> --- drivers/gpu/drm/stm/ltdc.c | 28 ++--

[PATCH v2 7/7] drm/stm: dsi: Constify phy ops structure

2017-07-20 Thread Philippe CORNU
Constify dw_mipi_dsi_stm_phy_ops as these ops are not supposed to change at runtime. Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH v2 0/7] drm/stm: Various cleanups

2017-07-20 Thread Philippe CORNU
Version 2: - Add devm_reset_control_get_exclusive to follow explicit reset API - Add missing commit messages & reviewed-by. Version 1: - Initial commit The purpose of this set of patches is to clean up the drm stm driver. Philippe CORNU (7): drm/stm: drv: Rename platform driver name drm

[PATCH v2 3/7] drm/stm: ltdc: Lindent and minor cleanups

2017-07-20 Thread Philippe CORNU
Lindent then checkpatch --strict cleanups Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> --- drivers/gpu/drm/stm/ltdc.c | 172 ++--- 1 file changed, 85 insertions(+),

[PATCH v2 3/3] drm/bridge/synopsys: dsi: explicitly request exclusive reset control

2017-07-20 Thread Philippe CORNU
shared reset control behavior. Convert all drivers requesting exclusive resets to the explicit API call so the temporary transition helpers can be removed. No functional changes. Cc: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- dr

Re: [PATCH v5 2/6] drm/bridge: Add a devm_ allocator for panel bridge.

2017-07-19 Thread Philippe CORNU
> Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> Reviewed-by: Philippe Cornu <philippe.co...@st.com> Tested-by: Philippe Cornu <philippe.co...@st.com> > --- > drivers/gpu/drm/bridge/panel.c | 30 ++ > include/drm/drm_bridge.h | 3 +++ >

Re: [PATCH v1 2/2] drm/bridge/synopsys: dsi: Register list clean up

2017-07-19 Thread Philippe CORNU
On 07/18/2017 03:39 PM, Laurent Pinchart wrote: > Hi Philippe, > > Thank you for the patch. > > On Tuesday 18 Jul 2017 13:43:52 Philippe CORNU wrote: >> This patch cleans up the Synopsys mipi dsi register list: >> - remove unused registers > > Is the documenta

Re: [PATCH] drm/stm: fix warning about multiplication in condition

2017-07-25 Thread Philippe CORNU
ext, > suggest '&&' instead [-Werror=int-in-bool-context] > > The code here is correct, but can be easily rephrased to make > that more obvious. I also swap out the error handling and the normal > code path for clarity. Hi Arnd, And many thanks for this new & much better co

[PATCH v3 2/3] drm/bridge/synopsys: dsi: Register list clean up

2017-08-01 Thread Philippe CORNU
This patch cleans up the Synopsys mipi dsi register list: - rename registers according to the Synopsys documentation (1.30 & 1.31) - fix typos - re-order registers for a better coherency Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Laurent Pinchart <

[PATCH v3 1/3] drm/bridge/synopsys: dsi: Constify funcs structures

2017-08-01 Thread Philippe CORNU
Constify dw_mipi_dsi_bridge_funcs as these functions are not supposed to change at runtime. Signed-off-by: Philippe CORNU <philippe.co...@st.com> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 2 +- 1 fil

[PATCH v3 3/3] drm/bridge/synopsys: dsi: explicitly request exclusive reset control

2017-08-01 Thread Philippe CORNU
shared reset control behavior. Convert all drivers requesting exclusive resets to the explicit API call so the temporary transition helpers can be removed. No functional changes. Cc: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Philippe CORNU <philippe.co...@st.com&g

[PATCH v3 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-08-01 Thread Philippe CORNU
pose of this set of patches is to clean up the mipi dsi dw Synopsys drm bridge. Philippe CORNU (3): drm/bridge/synopsys: dsi: Constify funcs structures drm/bridge/synopsys: dsi: Register list clean up drm/bridge/synopsys: dsi: explicitly request exclusive reset control drivers/gpu/drm/bridge/syno

Re: [PATCH v3 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-08-01 Thread Philippe CORNU
7 03:23 PM, Philippe CORNU wrote: > Version 3: > - Add devm_reset_control_get_optional_exclusive (Philipp Zabel). > > Version 2: > - Put back Synopsys mipi dsi unused registers. > - Add devm_reset_control_get_exclusive to follow explicit reset API. > - Add a missing commit messag

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Philippe CORNU
On 06/22/2017 10:17 AM, Archit Taneja wrote: > > > On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: >> 2017-06-20 19:31 GMT+02:00 Eric Anholt : >>> Archit Taneja writes: >>> On 06/16/2017 08:13 PM, Eric Anholt wrote: > Archit Taneja

Re: [PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-22 Thread Philippe CORNU
On 06/22/2017 08:06 AM, Peter Rosin wrote: > The redundant fb helper .load_lut is no longer used, and can not > work right without also providing the fb helpers .gamma_set and > .gamma_get thus rendering the code in this driver suspect. > Hi Peter, STM32 chipsets supports 8-bit CLUT mode but

Re: [PATCH 2/2] drm/stm: Fixup for "drm/stm: ltdc: Add panel-bridge support"

2017-06-23 Thread Philippe CORNU
On 06/22/2017 07:56 PM, Eric Anholt wrote: > Signed-off-by: Eric Anholt > --- > > This fixup would be squashed into patch 1 of your series. Hi Eric, and many thanks for the two patches, I will follow your suggestion for the v5 serie. By the way, do you have more comments on

Re: [PATCH] drm/stm: add COMPILE_TEST to Kconfig (fwd)

2017-05-19 Thread Philippe CORNU
; > TO: Masahiro Yamada <yamada.masah...@socionext.com> > CC: dri-de...@lists.freedesktop.org, Daniel Vetter <daniel.vet...@intel.com>, > linux-kernel@vger.kernel.org, Masahiro Yamada > <yamada.masah...@socionext.com>, Yannick Fertre <yannick.fer...@st.com>

Re: [PATCH] drm/stm: add COMPILE_TEST to Kconfig (fwd)

2017-05-22 Thread Philippe CORNU
On 05/20/2017 07:32 PM, Masahiro Yamada wrote: > Hi Philippe, > > > 2017-05-19 21:17 GMT+09:00 Philippe CORNU <philippe.co...@st.com>: >> >> >> On 05/19/2017 09:49 AM, Julia Lawall wrote: >>> On line 466, the preceeding comment suggests that the se

[PATCH] drm/stm: ltdc: fix duplicated arguments

2017-05-22 Thread Philippe CORNU
Fix COMPILE_TEST build issue detected with the rule: "duplicated argument to & or |" Signed-off-by: Philippe CORNU <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/driver

Re: [PATCH v2 5/7] drm/ltdc: Use the panel-bridge helper.

2017-05-30 Thread Philippe CORNU
Hi Eric, I took your patch for the panel-bridge and it works perfectly in both DPI mode (panel RGB //) and DSI mode (bridge dw mipi dsi), bravo :-) ~160 lines have been removed from ltdc.c thanks to your panel-bridge code! Many thanks Philippe On 05/11/2017 08:31 PM, Eric Anholt wrote: >

Re: [PATCH v2 5/7] drm/ltdc: Use the panel-bridge helper.

2017-06-01 Thread Philippe CORNU
>> On 05/31/2017 11:56 AM, Boris Brezillon wrote: >>>> Hi Philippe, >>>> >>>> Le Tue, 30 May 2017 16:55:42 +, >>>> Philippe CORNU <philippe.co...@st.com> a écrit : >>>> >>>>> Hi Eric, >>>>>

Re: [PATCH 0/3] Simplify panel bridge cleanup

2017-09-29 Thread Philippe CORNU
Hi Benjamin, and many thanks for this cleanup patchset. Reviewed-by: Philippe Cornu <philippe.co...@st.com> Tested-by: Philippe Cornu <philippe.co...@st.com> Philippe :-) On 09/29/2017 02:59 PM, Benjamin Gaignard wrote: > The goal of this series is to simplify driver code

Re: [PATCH v3 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-09-01 Thread Philippe CORNU
, Philippe :-) On 08/01/2017 03:30 PM, Philippe CORNU wrote: > Hi Archit, > > The 2 first patches have been reviewed by Laurent. The 3rd one has been > "acked" by Philipp. > > Do not hesitate to send me any comments so I can take them into account > before my holida

Re: [PATCH v3 3/3] drm/bridge/synopsys: dsi: explicitly request exclusive reset control

2017-09-04 Thread Philippe CORNU
On 09/04/2017 01:40 PM, Archit Taneja wrote: > > > On 09/01/2017 07:15 PM, Andrzej Hajda wrote: >> On 01.08.2017 15:23, Philippe CORNU wrote: >>> Based on patch "Convert drivers to explicit reset API" from Philipp >>> Zabel >>> >>>

Re: [PATCH] drm/stm: ltdc: add clut mode support

2017-11-13 Thread Philippe CORNU
Hi Peter, On 11/12/2017 01:31 PM, Peter Rosin wrote: > On 2017-11-10 17:12, Philippe CORNU wrote: >> Hi Peter, >> >> On 11/07/2017 05:34 PM, Peter Rosin wrote: >>> On 2017-11-07 16:53, Philippe CORNU wrote: >>>> + Peter >>>> >>>>

Re: [PATCH] drm/bridge/synopsis: stop clobbering drvdata

2017-11-28 Thread Philippe CORNU
s cleanup. (please update the headline with "synopsys") Successfully tested on stm. Acked-by: Philippe Cornu <philippe.co...@st.com> Many thanks, Philippe :-) > > Signed-off-by: Brian Norris <briannor...@chromium.org> > --- > drivers

Re: [PATCH] drm/stm: ltdc: add clut mode support

2017-11-24 Thread Philippe CORNU
Hi Peter, On 11/13/2017 11:40 AM, Philippe CORNU wrote: > Hi Peter, > > On 11/12/2017 01:31 PM, Peter Rosin wrote: >> On 2017-11-10 17:12, Philippe CORNU wrote: >>> Hi Peter, >>> >>> On 11/07/2017 05:34 PM, Peter Rosin wrote: >>>> On

Re: [PATCH v4 1/3] drm/bridge/synopsys: dsi: stop clobbering drvdata

2017-12-01 Thread Philippe CORNU
for removal. > > Signed-off-by: Brian Norris <briannor...@chromium.org> > Signed-off-by: Nickey Yang <nickey.y...@rock-chips.com> > Reviewed-by: Matthias Kaehlcke <m...@chromium.org> > Reviewed-by: Archit Taneja <arch...@codeaurora.org> > Acked-by: Philippe Cor

Re: [PATCH v4 1/3] drm/bridge/synopsys: dsi: stop clobbering drvdata

2017-12-01 Thread Philippe CORNU
Hi Nickey, On 12/01/2017 10:11 AM, Nickey Yang wrote: > Hi Philippe, > > > On 2017年12月01日 16:32, Philippe CORNU wrote: >> Dear Nickey, >> >> Many thanks for your patch. >> >> I am sorry to say that but you can not add my "Acked-by"

Re: [PATCH] drm/stm: ltdc: add clut mode support

2017-11-10 Thread Philippe CORNU
Hi Peter, On 11/07/2017 05:34 PM, Peter Rosin wrote: > On 2017-11-07 16:53, Philippe CORNU wrote: >> + Peter >> >> Hi Peter, >> >> CLUT support on STM32 has been removed thanks to your clean up patch > > Support is a bit strong for what I thought w

Re: [PATCH] drm/stm: ltdc: add clut mode support

2017-11-07 Thread Philippe CORNU
May I ask you please a short review on this patch? Many thanks, Philippe :-) On 10/26/2017 01:17 PM, Philippe Cornu wrote: > Add the 8-bit clut mode support at crtc level. > Useful for low memory footprint user interfaces but also for > 8-bit old games (including color shifting visual

Re: [PATCH v6 3/3] drm/rockchip: Add ROCKCHIP DW MIPI DSI controller driver

2017-12-07 Thread Philippe CORNU
Hi Brian, On 12/06/2017 10:52 PM, Brian Norris wrote: > Hi Nickey, others, > > I just want to highlight a thing or two here. Otherwise, my > 'Reviewed-by' still basically stands (FWIW). > > On Wed, Dec 06, 2017 at 05:08:21PM +0800, Nickey Yang wrote: >> Add the ROCKCHIP DSI controller driver

Re: [PATCH v6 1/3] drm/bridge/synopsys: dsi: stop clobbering drvdata

2017-12-07 Thread Philippe CORNU
Hi Nickey, platform_set_drvdata() is still missing in your version. Thanks, Philippe :-) On 12/06/2017 10:39 PM, Brian Norris wrote: > On Wed, Dec 06, 2017 at 05:08:19PM +0800, Nickey Yang wrote: >> From: Brian Norris >> >> Bridge drivers/helpers shouldn't be

Re: [PATCH v3 3/6] drm/rockchip/dsi: correct Feedback divider setting

2017-10-26 Thread Philippe CORNU
Hi, On 10/26/2017 06:13 AM, Archit Taneja wrote: > Hi, > > On 10/26/2017 06:39 AM, Brian Norris wrote: >> On Wed, Oct 25, 2017 at 03:57:19AM -0400, Sean Paul wrote: >>> Archit asked a question about moving to >>> dw-mipi-dsi >> >> That question made me think though: this approach seems

[PATCH] drm/stm: dsi: Rename driver name

2017-10-26 Thread Philippe Cornu
Rename the driver name from "dw_mipi_dsi-stm" to "stm32-display-dsi" for a better readability in /sys/bus/platform/drivers entries. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] drm/stm: checkpatch strict minor updates

2017-10-26 Thread Philippe Cornu
Minor fixes detected with "scripts/checkpatch.pl --strict" Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 4 ++-- drivers/gpu/drm/stm/ltdc.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dri

Re: [PATCH v2 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies

2018-05-14 Thread Philippe CORNU
Hi Rob & Laurent :) On 04/26/2018 12:05 AM, Laurent Pinchart wrote: > Hi Rob, > > On Wednesday, 25 April 2018 20:11:23 EEST Rob Herring wrote: >> On Wed, Apr 25, 2018 at 04:17:25PM +0300, Laurent Pinchart wrote: >>> On Wednesday, 25 April 2018 15:20:04 EEST Philipp

Re: [PATCH v2 2/2] drm/bridge: sii902x: add optional power supplies

2018-05-14 Thread Philippe CORNU
Hi Laurent, Archit, Andrzej & Yannick, Do you have any comments on this v2 driver part? (more details regarding v1/v2 differences in the cover letter https://www.spinics.net/lists/dri-devel/msg174137.html) Thank you, Philippe :-) On 04/25/2018 09:53 AM, Philippe Cornu wrote: &

Re: [PATCH v2 2/2] drm/bridge: sii902x: add optional power supplies

2018-05-14 Thread Philippe CORNU
Hi Andrzej, On 05/14/2018 12:33 PM, Andrzej Hajda wrote: > On 14.05.2018 11:38, Philippe CORNU wrote: >> Hi Laurent, Archit, Andrzej & Yannick, >> >> Do you have any comments on this v2 driver part? >> (more details regarding v1/v2 differences in the cover letter &

Re: [PATCH] drm/stm: ltdc: fix warnings in ltdc_plane_create()

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:13 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré <yannick.fer...@st.com> > Applied on drm-misc-next. Many thanks, Philippe :-) > > On 04/19/2018 03:28 PM, Philippe Cornu wrote: >> "make C=1" returns 2 wa

Re: [PATCH] drm/stm: ltdc: fix deferred endpoint management

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:12 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré <yannick.fer...@st.com> Applied on drm-misc-next. Many thanks, Philippe :-) > > > On 04/17/2018 01:34 PM, Philippe Cornu wrote: >> When a driver related to one of th

Re: [PATCH] drm/stm: ltdc: add mode_valid()

2018-04-27 Thread Philippe CORNU
On 04/25/2018 09:12 AM, Yannick FERTRE wrote: > Hi Philippe, > > Reviewed-by: Yannick Fertré <yannick.fer...@st.com> > Applied on drm-misc-next. Many thanks, Philippe :-) > On 04/17/2018 01:40 PM, Philippe Cornu wrote: >> Add mode_valid() function to filter m

Re: [PATCH] drm/bridge: checkpatch strict minor updates

2018-05-17 Thread Philippe CORNU
37:36PM +0200, Philippe Cornu wrote: >> Minor fixes detected with "scripts/checkpatch.pl --strict" >> >> Signed-off-by: Philippe Cornu <philippe.co...@st.com> >> --- >> Detected when merging "drm: clarify adjusted_mode documentation for bridges"

Re: [PATCH] drm: clarify adjusted_mode documentation for bridges

2018-05-15 Thread Philippe CORNU
Hi, Applied on drm-misc-next. Many thanks, Philippe :-) On 04/19/2018 07:00 PM, Archit Taneja wrote: > > > On Thursday 19 April 2018 09:20 PM, Philippe CORNU wrote: >> Hi Archit & Andrzej, >> >> May I ask you please a short review of this documentation upd

[PATCH] drm/bridge: checkpatch strict minor updates

2018-05-15 Thread Philippe Cornu
Minor fixes detected with "scripts/checkpatch.pl --strict" Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- Detected when merging "drm: clarify adjusted_mode documentation for bridges" include/drm/drm_bridge.h | 10 +- 1 file changed, 5 insertions(+),

[PATCH] dt-bindings: display: stm32: add pixel clock mandatory property

2017-10-26 Thread Philippe Cornu
Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations. Note: Fix also the DSI panel example where "ref" & "pclk" clocks were swapped. Signed-off-by: Philippe Cornu <philippe.co...@st.com>

[PATCH v1 1/2] dt-bindings: display: stm32: add a 2nd endpoint

2017-10-26 Thread Philippe Cornu
ltdc can have up to 2 endpoints: - dpi external gpios: for rgb panels or external bridge ICs. - dpi internal ios: connected internally to dsi. Note: Refer to the reference manual to know if the dsi is present on your device. Signed-off-by: Philippe Cornu <philippe.co...@st.

[PATCH v1 2/2] drm/stm: ltdc: add a 2nd endpoint

2017-10-26 Thread Philippe Cornu
ltdc can have up to 2 endpoints: - dpi external gpios: for rgb panels or external bridge ICs. - dpi internal ios: connected internally to dsi. Note: Refer to the reference manual to know if the dsi is present on your device. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- d

[PATCH v1 0/2] drm/stm: ltdc: add a 2nd endpoint

2017-10-26 Thread Philippe Cornu
Version 1: - Initial commit The purpose of this set of patches is to offer the possibility to use up to 2 endpoints for the ltdc dpi video port. Philippe Cornu (2): dt-bindings: display: stm32: add a 2nd endpoint drm/stm: ltdc: add a 2nd endpoint .../devicetree/bindings/display/st,stm32

[PATCH] drm/bridge/synopsys: dsi: add optional pixel clock

2017-10-26 Thread Philippe Cornu
The pixel clock is optional. When available, it offers a better preciseness for timing computations. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff

[PATCH] drm/stm: ltdc: add clut mode support

2017-10-26 Thread Philippe Cornu
Add the 8-bit clut mode support at crtc level. Useful for low memory footprint user interfaces but also for 8-bit old games (including color shifting visual effects). Tested with fbdev FBIOPUTCMAP & drm DRM_IOCTL_MODE_SETGAMMA ioctls. Signed-off-by: Philippe Cornu <philippe.co...

Re: [PATCH] drm/bridge/synopsys: dsi: add optional pixel clock

2017-10-27 Thread Philippe CORNU
Hi Andrzej, On 10/27/2017 08:41 AM, Andrzej Hajda wrote: > On 26.10.2017 18:09, Philippe Cornu wrote: >> The pixel clock is optional. When available, it offers a better >> preciseness for timing computations. >> >> Signed-off-by: Philippe Cornu <philippe.co...@st.co

Re: [PATCH] dt-bindings: display: stm32: add pixel clock mandatory property

2017-10-27 Thread Philippe CORNU
Hi Rob, On 10/27/2017 04:38 PM, Rob Herring wrote: > On Thu, Oct 26, 2017 at 06:12:36PM +0200, Philippe Cornu wrote: >> Add the DPI/RGB input pixel clock in mandatory properties >> because it really offers a better preciseness for timing >> computations. >> Note: Fix

Re: [PATCH] drm/bridge/synopsys: dsi: add optional pixel clock

2017-10-27 Thread Philippe CORNU
Hi Philipp, On 10/27/2017 10:06 AM, Philipp Zabel wrote: > Hi Philippe, > > On Thu, 2017-10-26 at 18:09 +0200, Philippe Cornu wrote: >> The pixel clock is optional. When available, it offers a better >> preciseness for timing computations. >> >> Signed-of

Re: [PATCH v2 1/2] drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()

2018-01-11 Thread Philippe CORNU
s by Nickey Yang, > to make the Rockchip DSI driver wrap this common driver. > > Signed-off-by: Brian Norris <briannor...@chromium.org> > Reviewed-by: Philippe Cornu <philippe.co...@st.com> > Tested-by: Philippe Cornu <philippe.co...@st.com> > --- > v2: >

Re: [PATCH] drm/bridge/synopsys: dsi: make dw_mipi_dsi_bridge_mode_set() static

2018-01-11 Thread Philippe CORNU
Hi Brian, Reviewed-by: Philippe Cornu <philippe.co...@st.com> Many thanks, Philippe :-) On 01/09/2018 09:33 PM, Brian Norris wrote: > sparse complains: > > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:703:6: warning: symbol > 'dw_mipi_dsi_bridge_mode_set' was not declared. S

Re: [PATCH] drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()

2018-01-11 Thread Philippe CORNU
Hi Brian, On 01/09/2018 07:55 PM, Brian Norris wrote: > Hi Philippe, > > On Tue, Jan 09, 2018 at 10:48:43AM +, Philippe CORNU wrote: >> Hi Brian, >> >> And many thanks for implementing these TODOs. > > And thanks for adding them; it gave me a better opti

Re: [PATCH] drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()

2018-01-09 Thread Philippe CORNU
eate_packet(, msg); > + if (ret) { > + dev_err(dsi->dev, "failed to create packet: %d\n", ret); > + return ret; > } > > - return ret; > + dw_mipi_message_config(dsi, msg); > + > + return dw_mipi_dsi_dcs_write(dsi, ); > } > > static const struct mipi_dsi_host_ops dw_mipi_dsi_host_ops = { > I performed some tests tracing all DSI_GEN_HDR & DSI_GEN_PLD_DATA reg writes with panel/panel-orisetech-otm8009a.c (using long dcs commands) before and after your patch and this is "100% perfect"! So, apart the un-important "dcs" in dw_mipi_dsi_dcs_write() function name: Reviewed-by: Philippe Cornu <philippe.co...@st.com> Tested-by: Philippe Cornu <philippe.co...@st.com> This clean-up will help a lot to add the dsi read feature in the future. Very good patch Brian and big "thank you" ! Philippe :-)

Re: [PATCH] drm/stm: ltdc: add clut mode support

2018-01-09 Thread Philippe CORNU
Hi all, Do you think the patch is "acceptable" or should I change it somehow? Any opinion is welcomed : ) Many thanks, Philippe :-) On 11/24/2017 02:54 PM, Philippe CORNU wrote: > Hi Peter, > > On 11/13/2017 11:40 AM, Philippe CORNU wrote: >> Hi Peter, >> >>

Re: [PATCH] drm/bridge/synopsis: stop clobbering drvdata

2018-01-09 Thread Philippe CORNU
Hi Archit, Andrzej & Laurent, Regarding this patch from Brian, I think it could be nice to merge it (1xAcked-by, 2xReviewed-by). Could you please have a look? Only the small "typo" in the headline needs to be changed. Many thanks, Philippe :-) On 11/28/2017 10:34 AM, Philip

Re: [PATCH v2] drm/bridge/synopsys: dsi: add optional pixel clock

2018-01-15 Thread Philippe CORNU
Hi Andrzej, On 01/15/2018 02:52 PM, Andrzej Hajda wrote: > On 12.01.2018 17:25, Philippe Cornu wrote: >> The pixel clock is optional. When available, it offers a better >> preciseness for timing computations and allows to reduce the extra dsi >> bandwidth in burst mode (fro

Re: [PATCH 1/2] clk: stm32: END_PRIMARY_CLK should be declare after CLK_SYSCLK

2018-01-18 Thread Philippe CORNU
Hi Gabriel, Tested successfully on f469 disco board. Tested-by: Philippe Cornu <philippe.co...@st.com> Many thanks, Philippe :-) On 01/18/2018 03:49 PM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez <gabriel.fernan...@st.com> > > Update of END_PRIMARY_CLK

Re: [PATCH 2/2] clk: stm32: Add DSI clock for STM32F469 Board

2018-01-18 Thread Philippe CORNU
Hi Gabriel, Tested successfully on f469 disco board. Tested-by: Philippe Cornu <philippe.co...@st.com> Many thanks, Philippe :-) On 01/18/2018 03:49 PM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez <gabriel.fernan...@st.com> > > This patch adds DSI cloc

Re: [PATCH v2] drm/bridge/synopsys: dsi: add optional pixel clock

2018-01-18 Thread Philippe CORNU
Hi Brian, On 01/15/2018 06:11 PM, Andrzej Hajda wrote: > On 15.01.2018 15:40, Philippe CORNU wrote: >> Hi Andrzej, >> >> On 01/15/2018 02:52 PM, Andrzej Hajda wrote: >>> On 12.01.2018 17:25, Philippe Cornu wrote: >>>> The pixel clock is op

Re: [PATCH] drm/dsi: Fix improper use of mipi_dsi_device_transfer() return value

2018-01-15 Thread Philippe CORNU
Hi Andrzej, On 01/15/2018 10:12 AM, Andrzej Hajda wrote: > On 12.01.2018 15:48, Philippe Cornu wrote: >> The function mipi_dsi_device_transfer() returns the number of transmitted >> or received bytes on success or a negative error code on failure. >> >> The functions m

[PATCH] drm/panel: otm8009a: Adopt SPDX identifiers

2018-01-19 Thread Philippe Cornu
Add SPDX identifiers to OriseTech OTM8009a panel driver. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/d

[PATCH] dt-bindings: display: stm32: correct clock-names in dsi panel example

2018-01-21 Thread Philippe Cornu
In the dsi panel example, clock names in the "clock-names" field have been swapped: * "pclk" (peripheral clock) is < 1 CLK_F469_DSI> on stm32f4 * "ref" (dsi phy pll ref clock) is <_hse> on stm32f4 Signed-off-by: Philippe Cornu <philippe.co...@st.com>

[PATCH] dt-bindings: display: stm32: add pixel clock mandatory property

2018-01-21 Thread Philippe Cornu
Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- Please apply "dt-bindings: display: stm32: correct clock-names in dsi panel example" b

Re: [PATCH v2] dt-bindings: display: stm32: add pixel clock mandatory property

2018-01-21 Thread Philippe CORNU
Hi Rob, On 01/19/2018 11:43 PM, Rob Herring wrote: > On Fri, Jan 12, 2018 at 04:30:34PM +0100, Philippe Cornu wrote: >> Add the DPI/RGB input pixel clock in mandatory properties >> because it really offers a better preciseness for timing >> computations. >> Note: Fix

[PATCH] drm/bridge/synopsys: dsi: Adopt SPDX identifiers

2018-01-22 Thread Philippe Cornu
Add SPDX identifiers to the Synopsys DesignWare MIPI DSI host controller driver. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/synop

[PATCH] drm/stm: drv: Improve data transfers

2018-01-22 Thread Philippe Cornu
To optimize data transfers, align pitch on 128 bytes & height on 4 bytes. This optimization is not applicable without MMU. Signed-off-by: Yannick Fertre <yannick.fer...@st.com> Signed-off-by: Vincent Abriou <vincent.abr...@st.com> Signed-off-by: Philippe Cornu <philippe.co...@s

Re: [PATCH] drm/bridge/synopsys: dsi: Adopt SPDX identifiers

2018-01-23 Thread Philippe CORNU
Hi Laurent, A big *thank* for your review On 01/23/2018 12:30 AM, Laurent Pinchart wrote: > Hi Philippe, > > Thank you for the patch. > > On Monday, 22 January 2018 12:26:08 EET Philippe Cornu wrote: >> Add SPDX identifiers to the Synopsys DesignWare MIPI DSI >

Re: [PATCH] drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

2018-01-26 Thread Philippe CORNU
Hi Brian, And a big thanks for your Tested-by On 01/25/2018 11:47 PM, Brian Norris wrote: > On Thu, Jan 25, 2018 at 7:55 AM, Philippe Cornu <philippe.co...@st.com> wrote: >> The "adjusted_mode" clock value (ie the real pixel clock) is more >> accurate than "mo

Re: [PATCH v3] drm/bridge/synopsys: dsi: add optional pixel clock

2018-01-25 Thread Philippe CORNU
On 01/23/2018 06:08 PM, Philippe Cornu wrote: > The pixel clock is optional. When available, it offers a better > preciseness for timing computations and allows to reduce the extra dsi > bandwidth in burst mode (from ~20% to ~10-12%, hw platform dependant). > > Reviewed-by: Andrzej H

[PATCH] drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock

2018-01-25 Thread Philippe Cornu
ming computations. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/stm/ltdc.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index b48589343ae1..90

Re: [PATCH] dt-bindings: display: stm32: add pixel clock mandatory property

2018-01-25 Thread Philippe CORNU
: dsi: use adjusted_mode in mode_set Hope it is better, comments are welcome Many thanks, Philippe :-) On 01/22/2018 04:38 PM, Philippe Cornu wrote: > Add the DPI/RGB input pixel clock in mandatory properties > because it really offers a better preciseness for timing > computatio

[PATCH] drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

2018-01-25 Thread Philippe Cornu
~10-12%, hw platform dependant). Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- Note: This patch replaces "drm/bridge/synopsys: dsi: add optional pixel clock" drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

Re: [PATCH v3] drm/bridge/synopsys: dsi: add optional pixel clock

2018-01-25 Thread Philippe CORNU
Hi Brian, On 01/24/2018 07:09 PM, Brian Norris wrote: > On Wed, Jan 24, 2018 at 09:24:06AM +0000, Philippe CORNU wrote: >> On 01/23/2018 09:49 PM, Brian Norris wrote: >>> On Tue, Jan 23, 2018 at 06:08:06PM +0100, Philippe Cornu wrote: >>>> --- a/drivers/gpu/drm

Re: [PATCH] drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()

2018-01-25 Thread Philippe CORNU
Hi Andrzej, On 01/25/2018 12:07 PM, Andrzej Hajda wrote: > On 24.01.2018 10:51, Philippe CORNU wrote: >> Hi Brian, >> >> On 01/23/2018 10:15 PM, Brian Norris wrote: >>> Hi Philippe, >>> >>> On Thu, Jan 18, 2018 at 11:40:48AM +, Philippe CO

[PATCH v2 1/2] drm/bridge/synopsys: dsi: Add a warning msg on dsi read requests

2018-01-25 Thread Philippe Cornu
The dcs/generic dsi read feature is not yet implemented so it is important to warn the host_transfer() caller in case of read operation requests. Signed-off-by: Philippe Cornu <philippe.co...@st.com> --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++ 1 file changed, 6 inse

[PATCH v2 0/2] drm/bridge/synopsys: dsi: Add fix & warning in dsi_host_transfer()

2018-01-25 Thread Philippe Cornu
Add a fix & a warning in the dsi_host_transfer(). Version 2: - Simplify the 2 patches following comments from Brian Norris. - Swap the 2 patches as the return value is only on tx and in case of rx requests the warning is there. Version 1: - Initial commit Philippe Cornu (2): drm/br

  1   2   3   4   5   >