[PATCH] ARM: multi_v7_defconfig: add STM32 CEC support

2021-01-15 Thread Yannick Fertre
Enable CEC support for STMicroelectronics as loadable module. Signed-off-by: Yannick Fertre --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index c5f25710fedc..05cc0607a9ad

Re: [PATCH V4] drm/stm: Fix bus_flags handling

2021-01-28 Thread yannick Fertre
Hi Marek, Thanks for the patch. Tested-by: Yannick Fertre On 1/27/21 12:07 PM, Marek Vasut wrote: The drm_display_mode_to_videomode() does not populate DISPLAY_FLAGS_DE_LOW or DISPLAY_FLAGS_PIXDATA_NEGEDGE flags in struct videomode. Therefore, no matter what polarity the next bridge or

Re: [PATCH] drm/bridge: dw-mipi-dsi: Move drm_bridge_add into probe

2021-02-15 Thread yannick Fertre
Hello Jagan, I tested your patch on the stm32mp1 board. Unfortunately, the dsi panel does not probe well with this patch. The problem is due to the panel which is placed in the node of the dsi bridge (no problem with i2c devices). Regarding component bindings for stm drivers, I am currently wo

Re: [PATCH] drm/stm: ltdc: Use simple encoder

2021-03-03 Thread yannick Fertre
Thanks Jagan for the patch. Tested-by: Yannick Fertre On 3/2/21 6:57 PM, Jagan Teki wrote: STM ltdc driver uses an empty implementation for its encoder. Replace the code with the generic simple encoder. Signed-off-by: Jagan Teki --- drivers/gpu/drm/stm/ltdc.c | 12 ++-- 1 file

Re: [PATCH] drm/stm: ltdc: Use simple encoder

2021-03-04 Thread yannick Fertre
Hi Thomas, I wait a few days before merging it. Thank you for your help. Best regards Yannick On 3/4/21 9:21 AM, Thomas Zimmermann wrote: Hi, shall I merge this patch? Am 02.03.21 um 18:57 schrieb Jagan Teki: STM ltdc driver uses an empty implementation for its encoder. Replace the code wi

Re: [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER

2021-03-08 Thread yannick Fertre
Tested-by: Yannick Fertre On 2/22/21 10:22 AM, Raphael GALLAIS-POU - foss wrote: From: Yannick Fertre Don't print error when probe deferred error is returned. Signed-off-by: Raphael Gallais-Pou Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 9 +++-

Re: [PATCH 2/2] drm/stm: dsi: Use dev_ based logging

2021-03-08 Thread yannick Fertre
Tested-by: Yannick Fertre On 2/22/21 10:23 AM, Raphael GALLAIS-POU - foss wrote: From: Yannick Fertre Standardize on the dev_ based logging. Signed-off-by: Raphael Gallais-Pou Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 49 ++- 1

Re: [PATCH v4 19/27] drm/stm: Don't set struct drm_device.irq_enabled

2021-06-29 Thread yannick Fertre
Hello Thomas, thanks for the patch. Tested-by: Yannick Fertre Best regards On 6/25/21 10:22 AM, Thomas Zimmermann wrote: The field drm_device.irq_enabled is only used by legacy drivers with userspace modesetting. Don't set it in stm. Signed-off-by: Thomas Zimmermann Reviewed-by: La

Re: [PATCH] drm/stm: ltdc: improve pm_runtime to stop clocks

2021-07-06 Thread yannick Fertre
Hi Raphaël, thanks for the patch. Tested-by: Yannick Fertre On 6/29/21 1:58 PM, Raphael GALLAIS-POU - foss wrote: Bugzilla ticket: https://intbugzilla.st.com/show_bug.cgi?id=60620 Gerrit patch: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/208093/ In the LTDC driver, pm_runtime_get_sync

Re: [PATCH] drm/stm: ltdc: Silence -EPROBE_DEFER till bridge attached

2021-07-07 Thread yannick Fertre
Hi Jagan, thanks for the patch. Tested-by: Yannick Fertre On 7/4/21 3:59 PM, Jagan Teki wrote: As dw-mipi-dsi supported all possible ways to find the DSI devices. It can take multiple iterations for ltdc to find all components attached to the DSI bridge. The current ltdc driver failed to

Re: [PATCH] drm/bridge: dw-mipi-dsi: Find the possible DSI devices

2021-07-07 Thread yannick Fertre
Hi Jagan, Sorry for the delay. Thanks for the patch. Tested-by: Yannick Fertre On 7/4/21 4:03 PM, Jagan Teki wrote: Finding panel_or_bridge might vary based on associated DSI devices like DSI panel, bridge, and I2C based DSI bridge. 1. DSI panels and bridges will invoke the host attach

Re: [PATCH] drm/stm: Enable RPM during fbdev registration

2020-11-06 Thread Yannick FERTRE
Hi Marek, On 11/5/20 10:45 AM, Marek Vasut wrote: > On 11/5/20 10:39 AM, Daniel Vetter wrote: >> On Wed, Nov 04, 2020 at 01:52:00PM +0100, Marek Vasut wrote: >>> Enable runtime PM before registering the fbdev emulation and disable it >>> afterward, otherwise register access to the LTDC IP during t

Re: [PATCH] drm/stm: ltdc: add support for CRC hashing feature

2022-02-22 Thread yannick Fertre
Hi Raphael, thanks for the patch. Acked-by: Yannick Fertre Best regards On 2/11/22 11:46, Raphaël Gallais-Pou wrote: From: Raphael Gallais-Pou This patch adds the CRC hashing feature supported by some recent hardware versions of the LTDC. This is useful for test suite such as IGT-GPU

Re: [PATCH] drm/stm: ltdc: add layer alpha support

2021-09-06 Thread yannick Fertre
Hi Raphael, thanks for the patch. Acked-by: Yannick Fertre Reviewed-by: Yannick Fertre On 9/3/21 10:58 AM, Raphael GALLAIS-POU - foss wrote: Android Hardware Composer supports alpha values applied to layers. Enabling non-opaque layers for the STM CRTC could help offload GPU resources for

Re: [PATCH] drm/stm: ltdc: attach immutable zpos property to planes

2021-09-06 Thread yannick Fertre
Hi Raphael, thanks for the patch. Acked-by: Yannick Fertre Reviewed-by: Yannick Fertre On 9/2/21 5:30 PM, Raphael GALLAIS-POU - foss wrote: Defines plane ordering by hard-coding an immutable Z position from the first plane, used as primary layer, to the next ones as overlay in order of

[PATCH] drm: bridge: remove error message for EPROBE_DEFER in bridge_attach

2021-12-03 Thread Yannick Fertre
Probe deferred is not an error, don't print it. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/drm_bridge.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index c96847fc0ebc..cef0a62ef5d0 100644

[PATCH] drm/stm: remove conflicting framebuffers

2021-12-03 Thread Yannick Fertre
In case of using simplefb or another conflicting framebuffer, call drm_aperture_remove_framebuffers() to remove memory allocated. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/drv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm

[PATCH] drm/stm: ltdc: support of new hardware version

2021-12-03 Thread Yannick Fertre
Add support of new hardware version 0x40100. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 172 ++--- drivers/gpu/drm/stm/ltdc.h | 3 +- 2 files changed, 145 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu

Re: [PATCH] drm/stm: remove conflicting framebuffers

2021-12-06 Thread yannick Fertre
Hi Thomas, On 12/3/21 10:35 AM, Thomas Zimmermann wrote: Hi Am 03.12.21 um 09:55 schrieb Yannick Fertre: In case of using simplefb or another conflicting framebuffer, call drm_aperture_remove_framebuffers() to remove memory allocated. Signed-off-by: Yannick Fertre ---   drivers/gpu/drm/stm

[PATCH] drm/stm: remove conflicting framebuffers

2021-12-06 Thread Yannick Fertre
In case of using simplefb or another conflicting framebuffer, call drm_aperture_remove_framebuffers() to remove memory allocated. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/drv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm

Re: [PATCH V2] drm/stm: Fix bus_flags handling

2021-01-07 Thread Yannick FERTRE
Otherwise, extract bus_flags from the connector, > which is the display. > > Fixes: b759012c5fa7 ("drm/stm: Add STM32 LTDC driver") > Signed-off-by: Marek Vasut > Cc: Alexandre Torgue > Cc: Antonio Borneo > Cc: Benjamin Gaignard > Cc: Maxime Coquelin > Cc: Phil

Re: [PATCH] drm/stm: Remove usage of drm_display_mode_to_videomode()

2021-01-07 Thread Yannick FERTRE
nu > Cc: Sam Ravnborg > Cc: Vincent Abriou > Cc: Yannick Fertre > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-st...@st-md-mailman.stormreply.com > To: dri-devel@lists.freedesktop.org > --- > drivers/gpu/drm/stm/ltdc.c | 33 + &g

[PATCH 0/5] drm/stm: new features to display controller

2021-12-15 Thread Yannick Fertre
k to patch"drm/stm: ltdc: support of new hardware version" (https://patchwork.freedesktop.org/patch/465207). Yannick Fertre (5): drm/stm: ltdc: switch to regmap drm/stm: ltdc: add YCbCr 422 output support drm/stm: ltdc: add per plane update support drm/stm: ltdc: add support of

[PATCH 1/5] drm/stm: ltdc: switch to regmap

2021-12-15 Thread Yannick Fertre
Replace the legacy register access by regmap API. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 138 ++--- drivers/gpu/drm/stm/ltdc.h | 1 + 2 files changed, 68 insertions(+), 71 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers

[PATCH 2/5] drm/stm: ltdc: add YCbCr 422 output support

2021-12-15 Thread Yannick Fertre
Y0Cb, then Y1Cr, Y2Cb and so on). * Cr is output first (Y0Cr, then Y1Cb, Y2Cr and so on). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 44 +- drivers/gpu/drm/stm/ltdc.h | 1 + 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH 3/5] drm/stm: ltdc: add per plane update support

2021-12-15 Thread Yannick Fertre
Recent ltdc hardware versions offer the ability to update a plane independently of others planes. This is could be useful especially if a plane is assigned to another OS. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 26 +++--- drivers/gpu/drm/stm/ltdc.h

[PATCH 4/5] drm/stm: ltdc: add support of flexible pixel formats

2021-12-15 Thread Yannick Fertre
This feature allows the generation of any RGB pixel format. The list of supported formats is no longer linked to the register LXPFCR_PF, that the reason why a list of drm formats is defined for each display controller version. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 196

[PATCH 5/5] drm/stm: ltdc: add support of ycbcr pixel formats

2021-12-15 Thread Yannick Fertre
This patch adds the following YCbCr input pixel formats on the latest LTDC hardware version: 1 plane (co-planar) : YUYV, YVYU, UYVY, VYUY 2 planes (semi-planar): NV12, NV21 3 planes (full-planar): YU12=I420=DRM YUV420, YV12=DRM YVU420 Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm

Re: [PATCH v2 6/6] drm/stm: ltdc: Drop format_mod_supported function

2022-01-12 Thread yannick Fertre
Hello José, thanks for your patch. Reviewed-by: Yannick Fertre Tested-by: Yannick Fertre On 12/22/21 10:05 AM, José Expósito wrote: The "drm_plane_funcs.format_mod_supported" can be removed in favor of the default implementation. Signed-off-by: José Expósito --- drivers/g

Re: [PATCH] drm/stm: ltdc: remove clk_round_rate comment

2019-05-13 Thread Yannick FERTRE
Dear Philippe, you're right, clk_disable() & clk_enable() are necessary with STM32F4 SOC (not for STM32MP1). I'll revert this part of the patch. Many thanks -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 620600270 Microcontrollers and Digital ICs Group | Microcontrolle

Re: [PATCH] drm/stm: fix CONFIG_FB dependency

2019-03-08 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré Arnd, could you merge the patch? I think that Benjamin could also merge it. Best regards Yannick Fertré On 3/7/19 4:53 PM, Arnd Bergmann wrote: The DRM_STM driver can be built independently of the framebuffer layer, but it causes a

Re: [PATCH 1/3] drm/stm: drv: fix suspend/resume

2019-06-21 Thread Yannick FERTRE
Hi Emil, The msm driver tests the return value & set state to NULL if no error is detected. the ltdc driver tests the return value & force to suspend if an error is detected. It's not exactly the same. Best regards -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 62060

Re: [PATCH v2 3/5] ARM: dts: stm32: add phy-dsi-supply property on stm32mp157c

2019-08-02 Thread Yannick FERTRE
Hi Alexandre, this patch can be abandoned. BR -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 620600270 Microcontrollers and Digital ICs Group | Microcontrolleurs Division On 5/10/19 4:20 PM, Yannick Fertré wrote: > The dsi physical layer is powered by the 1v8 power con

Re: [PATCH v2 5/5] ARM: dts: stm32: remove phy-dsi-supply property on stm32mp157c-dk2 board

2019-08-02 Thread Yannick FERTRE
Hi Alexandre, this patch can be abandoned. BR -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 620600270 Microcontrollers and Digital ICs Group | Microcontrolleurs Division On 5/10/19 4:20 PM, Yannick Fertré wrote: > This property is already defined into stm32mp157c.dtsi fi

Re: [PATCH v2 4/5] ARM: dts: stm32: move fixe regulators reg11 & reg18

2019-08-02 Thread Yannick FERTRE
Hi Alexandre, this patch can be abandoned. BR -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 620600270 Microcontrollers and Digital ICs Group | Microcontrolleurs Division On 5/10/19 4:20 PM, Yannick Fertré wrote: > Move regulators reg11 & reg18 from device-tree files stm

[PATCH] drm/stm: ltdc: update hardware error management

2022-06-03 Thread Yannick Fertre
The latest hardware version (0x40100) supports a hardware threshold register (aka FUTR) to trigger a fifo underrun interrupt. A software threshold has been implemented for other hardware versions. The threshold is set to 128 by default. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm

[PATCH] drm/stm: ltdc: add support of horizontal & vertical mirroring

2022-06-03 Thread Yannick Fertre
Support of vertical & horizontal mirroring features thanks to the plane rotation property. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 163 - drivers/gpu/drm/stm/ltdc.h | 1 + 2 files changed, 108 insertions(+), 56 deletions(-)

[PATCH] drm/stm: ltdc: fix various coding-style warnings

2022-06-03 Thread Yannick Fertre
Fix issues reported by checkpatch.pl: - Braces {} should be used on all arms - Blank lines Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index

[PATCH] drm/stm: ltdc: disable all layers before crtc shutdown

2022-06-03 Thread Yannick Fertre
All plans must be disabled before the CRTC shutdown helping the crtc to restart from a clean situation (without unwanted planes already enable). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/stm/ltdc.c b

[PATCH] drm/stm: ltdc: add support of the dynamic z-order

2022-06-03 Thread Yannick Fertre
Zpos property is immutable for all hardware versions except the last version (0x40100) which support the blending order feature (dynamic z-order). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/drv.c | 1 + drivers/gpu/drm/stm/ltdc.c | 23 --- drivers/gpu/drm/stm

[PATCH] drm/stm: ltdc: remove error message about scaling

2022-06-03 Thread Yannick Fertre
Remove error message about scaling & replace it by a debug message to avoid too much error. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c i

Re: [PATCH 5/5] drm/stm: ltdc: add support of ycbcr pixel formats

2022-02-07 Thread yannick Fertre
Hi Nathan, On 2/2/22 17:54, Nathan Chancellor wrote: Hi Yannick, On Wed, Dec 15, 2021 at 10:48:43PM +0100, Yannick Fertre wrote: This patch adds the following YCbCr input pixel formats on the latest LTDC hardware version: 1 plane (co-planar) : YUYV, YVYU, UYVY, VYUY 2 planes (semi-planar

Re: [PATCH] drm/stm: Avoid using val uninitialized in ltdc_set_ycbcr_config()

2022-02-08 Thread yannick Fertre
Hi Nathan, Thenks for the patch. Acked-by: Yannick Fertre Best regards On 2/7/22 17:53, Nathan Chancellor wrote: Clang warns: drivers/gpu/drm/stm/ltdc.c:625:2: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]

[PATCH] dt-bindings: display: Convert orisetech, otm8009a panel to DT schema

2019-12-20 Thread Yannick Fertre
From: Yannick Fertré Convert the orisetech,otm8009a panel binding to DT schema. Signed-off-by: Yannick Fertre --- .../bindings/display/panel/orisetech,otm8009a.txt | 23 .../bindings/display/panel/orisetech,otm8009a.yaml | 62 ++ 2 files changed, 62 insertions

[PATCH] dt-bindings: display: Convert raydium, rm68200 panel to DT schema

2019-12-20 Thread Yannick Fertre
From: Yannick Fertré Convert the raydium,rm68200 panel binding to DT schema. Signed-off-by: Yannick Fertre --- .../bindings/display/panel/raydium,rm68200.txt | 25 - .../bindings/display/panel/raydium,rm68200.yaml| 61 ++ 2 files changed, 61 insertions

Re: [PATCH] drm/bridge/synopsys: dsi: use mipi_dsi_device to find panel or bridge

2019-12-20 Thread Yannick FERTRE
Hello Heiko, I test with success your patch on a board stm32mp1 with a panel raydium rm68200. I need more time to test with a HDMI bridge  like ad7533. Best regards Yannick Fertré On 12/17/19 11:41 PM, Heiko Stuebner wrote: > From: Heiko Stuebner > > Right now the dsi driver uses drm_of_find

[PATCH] drm/stm: ltdc: check number of endpoints

2020-02-28 Thread Yannick Fertre
. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 102 +++-- 1 file changed, 52 insertions(+), 50 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index df585fe..f894968 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b

RE: [PATCH] drm/stm: repair runtime power management

2020-03-09 Thread Yannick FERTRE
l Message- From: Marek Vasut Sent: samedi 29 février 2020 23:17 To: dri-devel@lists.freedesktop.org Cc: Marek Vasut ; Yannick FERTRE ; Philippe CORNU ; Benjamin Gaignard ; Vincent ABRIOU ; Maxime Coquelin ; Alexandre TORGUE ; linux-st...@st-md-mailman.stormreply.com; linux-arm-ker...@lists.inf

Re: [PATCH 01/23] drm: Add get_scanout_position() to struct drm_crtc_helper_funcs

2020-01-14 Thread Yannick FERTRE
Thanks for the patch. Tested-by: Yannick Fertré BR Yannick Fertré On 1/10/20 10:21 AM, Thomas Zimmermann wrote: The new callback get_scanout_position() reads the current location of the scanout process. The operation is currentyl located in struct drm_driver, but

Re: [PATCH 09/23] drm: Remove struct drm_driver.get_scanout_position()

2020-01-14 Thread Yannick FERTRE
Thanks for the patch. Tested-by: Yannick Fertré BR Yannick Fertré On 1/10/20 10:21 AM, Thomas Zimmermann wrote: All users of struct drm_driver.get_scanout_position() have been covnerted to the respective CRTC helper function. Remove the callback from struct drm_d

Re: [PATCH 08/23] drm/stm: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-14 Thread Yannick FERTRE
Thanks for the patch. Tested-by: Yannick Fertré BR Yannick Fertré On 1/10/20 10:21 AM, Thomas Zimmermann wrote: The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert stm over.

Re: [PATCH 23/23] drm: Cleanup VBLANK callbacks in struct drm_driver

2020-01-14 Thread Yannick FERTRE
Thanks for the patch. Tested-by: Yannick Fertré BR Yannick Fertré On 1/10/20 10:21 AM, Thomas Zimmermann wrote: All non-legacy users of VBLANK functions in struct drm_driver have been converted to use the respective interfaces in struct drm_crtc_funcs. The remain

Re: [PATCH 19/23] drm/stm: Convert to CRTC VBLANK callbacks

2020-01-14 Thread Yannick FERTRE
Thanks for the patch. Tested-by: Yannick Fertré BR Yannick Fertré On 1/10/20 10:21 AM, Thomas Zimmermann wrote: VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert stm over. Signed-off-by: Thomas Z

[PATCH] drm/stm: ltdc: enable/disable depends on encoder

2020-01-20 Thread Yannick Fertre
From: Yannick Fertré When connected to a dsi host, the ltdc display controller must send frames only after the end of the dsi panel initialization to avoid errors when the dsi host sends commands to the dsi panel (dsi px fifo full). To avoid this issue, the display controller must be enabled/disa

[PATCH] drm/stm: ltdc: check crtc state before enabling LIE

2020-01-21 Thread Yannick Fertre
Following investigations of a hardware bug, the LIE interrupt can occur while the display controller is not activated. LIE interrupt (vblank) don't have to be set if the CRTC is not enabled. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 7 ++- 1 file changed, 6 inser

[PATCH] drm/stm: ltdc: add number of interrupts

2020-01-21 Thread Yannick Fertre
The number of interrupts depends on the ltdc version. Don't try to get interrupt which not exist, avoiding kernel warning messages. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 30 +++--- drivers/gpu/drm/stm/ltdc.h | 1 + 2 files changed, 16 inser

[PATCH] drm/stm: ltdc: check number of endpoints

2020-01-21 Thread Yannick Fertre
Number of endpoints could exceed the fix value MAX_ENDPOINTS(2). Instead of increase simply this value, the number of endpoint could be read from device tree. Load sequence has been a little rework to take care of several panel or bridge which can be connected/disconnected or enable/disable. Signe

[PATCH] drm/stm: dsi: stm mipi dsi doesn't print error on probe deferral

2020-01-21 Thread Yannick Fertre
From: Etienne Carriere Change DSI driver to not print an error trace when probe is deferred for a clock resource. Signed-off-by: Etienne Carriere --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm

[PATCH] drm/bridge/synopsys: dsi: missing post disable

2020-01-21 Thread Yannick Fertre
From: Yannick Fertré Sometime the post_disable function is missing (not registered). Signed-off-by: Yannick Fertré --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gp

Re: [PATCH] drm/bridge/synopsys: dsi: Use devm_platform_ioremap_resource() in __dw_mipi_dsi_probe()

2019-09-23 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré Tested-by: Yannick Fertré Best regards -- Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 620600270 Microcontrollers and Digital ICs Group | Microcontrolleurs Division On 9/21/19 8:20

[PATCH] drm/bridge/synopsys: dsi: check post disable

2019-11-27 Thread Yannick Fertre
From: Yannick Fertré Some bridges did not registered the post_disable function. To avoid a crash, check it before calling. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH] drm/stm: ltdc: move pinctrl to encoder mode set

2019-11-27 Thread Yannick Fertre
From: Yannick Fertré The pin control must be set to default as soon as possible to establish a good video link between tv & bridge hdmi (encoder mode set is call before encoder enable). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 24 ++-- 1 file cha

[PATCH] drm/bridge/synopsys: dsi: read status error during transfer

2019-11-27 Thread Yannick Fertre
From: Yannick Fertré Read the DSI_INT_ST1 status register to check if errors occur while reading/writing a command to panel. In case of error, the transfer is retried 3 times. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 99 +++ 1

[PATCH] Input: goodix: request_irq: convert gpio to irq

2019-11-27 Thread Yannick Fertre
From: Yannick Fertré Convert gpio to irq if not already done by gpio lib. Signed-off-by: Yannick Fertré #include #include +#include #include #include #include @@ -392,6 +393,13 @@ static void goodix_free_irq(struct goodix_ts_data *ts) static int goodix_request_irq(struct goodix_ts

[PATCH] Input: goodix - support gt9147 touchpanel

2019-11-27 Thread Yannick Fertre
From: Yannick Fertré Add support for it by adding compatible and supported chip data (default settings used). The chip data on GT9147 is similar to GT912, like - config data register has 0x8047 address - config data register max len is 240 - config data checksum has 8-bit Signed-off-by: Yannick

[PATCH] drm/stm: Remove usage of drm_display_mode_to_videomode()

2021-05-28 Thread Yannick Fertre
There is not much value in the extra conversion step, the calculations required for the LTDC IP are different than what is used in the drm_display_mode_to_videomode(), so just do the right ones in the LTDC driver right away. Signed-off-by: Marek Vasut Signed-off-by: Yannick Fertre --- drivers

Re: [PATCH] drm/stm: Remove usage of drm_display_mode_to_videomode()

2021-05-28 Thread yannick Fertre
Hi Philippe, I have already reviewed this patch on January 7, 2020. (https://lore.kernel.org/dri-devel/0ab4ee45-4437-3b02-cf63-0e3b1b539...@st.com/) Could you please review it and merge it? Best regards Yannick On 5/28/21 10:05 AM, Yannick Fertre wrote: There is not much value in the extra

Re: [PATCH] drm/stm: Fix resolution bitmasks

2022-10-14 Thread Yannick FERTRE
Hi Marek, thanks for the patch. Reviewed-by: Yannick Fertre On 10/12/22 01:10, Marek Vasut wrote: STM32MP15xx RM0436 Rev 6 "35.7.3 LTDC synchronization size configuration register (LTDC_SSCR)" on page 1784 and onward indicates VSH and similar bits are all [11:0] instead of [10:0]

Re: [PATCH] drm/stm: Fix resolution bitmasks

2022-10-14 Thread Yannick FERTRE
d on 16bits. I would like to know if you use a display which resolution exceed 2048. Best regards Yannick Fertré On 10/14/22 14:17, Yannick FERTRE wrote: Hi Marek, thanks for the patch. Reviewed-by: Yannick Fertre On 10/12/22 01:10, Marek Vasut wrote: STM32MP15xx RM0436 Rev 6 "35

Re: [PATCH] drm/stm: ltdc: fix late dereference check

2023-04-13 Thread Yannick FERTRE
Hi Raphael, thanks for the patch. Reviewed-by: Yannick Fertre On 4/12/23 11:25, Raphael GALLAIS-POU wrote: Attention: Sender not authenticated -- In ltdc_crtc_set_crc_source(), struct drm_crtc was dereferenced in a container_of() before the

[PATCH v6 9/9] ARM: configs: stm32: Add simple panel support in STM32 defconfig

2017-04-14 Thread Yannick Fertre
This patch adds simple panel support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index c2ff2e7..0d38263 100644 --- a/arch/arm

[PATCH v6 2/9] drm/fb-cma-helper: Add drm_fb_cma_get_gem_addr()

2017-04-14 Thread Yannick Fertre
Add function drm_fb_cma_get_gem_addr() which return the physical address of framebuffer (1st pixel). This function will usually be called by plane callback (atomic_update). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/drm_fb_cma_helper.c | 27 +++ include/drm

[PATCH v6 0/9] STM32 LCD-TFT display controller

2017-04-14 Thread Yannick Fertre
on board stm32429i. Stm32f4 is a MCU platform which don't have MMU so the last patches developed by Benjamin Gaignard regarding "DRM: allow to use mmuless devices" are necessary. The board stm429i embeds a Ampire AM-480272H3TMQW-T01H screen. A new simple panel am-480272h3tmqw-t01h h

[PATCH v6 3/9] dt-bindings: display: Add STM32 LTDC driver

2017-04-14 Thread Yannick Fertre
This patch adds documentation of device tree bindings for the STM32 LTDC (Lcd-Tft Display Controller). Acked-by: Rob Herring Signed-off-by: Yannick Fertre --- .../devicetree/bindings/display/st,stm32-ltdc.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH v6 6/9] ARM: dts: stm32: Add ltdc support on stm32f429 MCU

2017-04-14 Thread Yannick Fertre
Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32f429.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ee0da97..23debd9 100644

[PATCH v6 1/9] drm/cma: Update DEFINE_DRM_GEM_CMA_FOPS to add get_unmapped_area

2017-04-14 Thread Yannick Fertre
Missing field get_unmapped_area which is necessary with device without MMU Signed-off-by: Yannick Fertre --- include/drm/drm_gem_cma_helper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h index f962d33..7320b14 100644

[PATCH v6 8/9] ARM: configs: stm32: Add DRM support in STM32 defconfig

2017-04-14 Thread Yannick Fertre
This patch adds DRM (Direct Rendering Manager) support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..c2ff2e7 100644

[PATCH v6 5/9] [media] add maintainers for DRM STM driver

2017-04-14 Thread Yannick Fertre
Add Philippe Cornu and myself as maintainers. Signed-off-by: Yannick Fertre --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c36dfae..84cf73f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4424,6 +4424,15 @@ S: Maintained F

[PATCH v6 4/9] drm/stm: Add STM32 LTDC driver

2017-04-14 Thread Yannick Fertre
This controller provides output signals to interface directly a variety of LCD and TFT panels. These output signals are: RGB signals (up to 24bpp), vertical & horizontal synchronisations, data enable and the pixel clock. Reviewed-by: Eric Anholt Signed-off-by: Yannick Fertre --- drivers

[PATCH v6 7/9] ARM: dts: stm32: Enable ltdc & simple panel on stm32f429-Eval board

2017-04-14 Thread Yannick Fertre
Enable ltdc & enable am-480272h3tmqw-t01h panel. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts i

Re: [PATCH v6 5/9] [media] add maintainers for DRM STM driver

2017-04-14 Thread Yannick FERTRE
Hi Neil, This tag is not link to drm driver. Sorry for this mistake, I'll push a new patch. Yannick On 04/14/2017 11:07 AM, Neil Armstrong wrote: > On 04/14/2017 10:10 AM, Yannick Fertre wrote: >> Add Philippe Cornu and myself as maintainers. >> >> Sig

[PATCH v7 3/9] dt-bindings: display: Add STM32 LTDC driver

2017-04-14 Thread Yannick Fertre
This patch adds documentation of device tree bindings for the STM32 LTDC (Lcd-Tft Display Controller). Acked-by: Rob Herring Signed-off-by: Yannick Fertre --- .../devicetree/bindings/display/st,stm32-ltdc.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH v7 0/9] STM32 LCD-TFT display controller

2017-04-14 Thread Yannick Fertre
01H screen. A new simple panel am-480272h3tmqw-t01h have been added to support it. Yannick Fertre (9): drm/cma: Update DEFINE_DRM_GEM_CMA_FOPS to add get_unmapped_area drm/fb-cma-helper: Add drm_fb_cma_get_gem_addr() dt-bindings: display: Add STM32 LTDC driver drm/stm: Add STM32 LTDC driver

[PATCH v7 2/9] drm/fb-cma-helper: Add drm_fb_cma_get_gem_addr()

2017-04-14 Thread Yannick Fertre
Add function drm_fb_cma_get_gem_addr() which return the physical address of framebuffer (1st pixel). This function will usually be called by plane callback (atomic_update). Signed-off-by: Yannick Fertre --- drivers/gpu/drm/drm_fb_cma_helper.c | 27 +++ include/drm

[PATCH v7 5/9] MAINTAINERS: add maintainers for DRM STM driver

2017-04-14 Thread Yannick Fertre
Add Philippe Cornu and myself as maintainers. Signed-off-by: Yannick Fertre --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c36dfae..84cf73f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4424,6 +4424,15 @@ S: Maintained F

[PATCH v7 7/9] ARM: dts: stm32: Enable ltdc & simple panel on stm32f429-Eval board

2017-04-14 Thread Yannick Fertre
Enable ltdc & enable am-480272h3tmqw-t01h panel. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts i

[PATCH v7 9/9] ARM: configs: stm32: Add simple panel support in STM32 defconfig

2017-04-14 Thread Yannick Fertre
This patch adds simple panel support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index c2ff2e7..0d38263 100644 --- a/arch/arm

[PATCH v7 8/9] ARM: configs: stm32: Add DRM support in STM32 defconfig

2017-04-14 Thread Yannick Fertre
This patch adds DRM (Direct Rendering Manager) support in stm32_defconfig file Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..c2ff2e7 100644

[PATCH v7 6/9] ARM: dts: stm32: Add ltdc support on stm32f429 MCU

2017-04-14 Thread Yannick Fertre
Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32f429.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ee0da97..23debd9 100644

[PATCH v7 1/9] drm/cma: Update DEFINE_DRM_GEM_CMA_FOPS to add get_unmapped_area

2017-04-14 Thread Yannick Fertre
Missing field get_unmapped_area which is necessary with device without MMU Signed-off-by: Yannick Fertre --- include/drm/drm_gem_cma_helper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_gem_cma_helper.h b/include/drm/drm_gem_cma_helper.h index f962d33..7320b14 100644

[PATCH v7 4/9] drm/stm: Add STM32 LTDC driver

2017-04-14 Thread Yannick Fertre
This controller provides output signals to interface directly a variety of LCD and TFT panels. These output signals are: RGB signals (up to 24bpp), vertical & horizontal synchronisations, data enable and the pixel clock. Reviewed-by: Eric Anholt Signed-off-by: Yannick Fertre --- drivers

[PATCH v2 8/9] ARM: dts: stm32: Enable ltdc & simple panel on stm32f429-Eval board

2017-02-10 Thread Yannick Fertre
Enable ltdc & enable am-480272h3tmqw-t01h panel. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32429i-eval.dts | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts i

[PATCH v2 0/9] STM32 LCD-TFT display controller

2017-02-10 Thread Yannick Fertre
Gaignard regarding "DRM: allow to use mmuless devices" are necessary. The board stm429i embeds a Ampire AM-480272H3TMQW-T01H screen. A new simple panel am-480272h3tmqw-t01h have been added to support it. Yannick Fertre (9): dt-bindings: display: add STM32 LTDC driver drm/st: Add STM32 L

[PATCH v2 3/9] drm/st: Add STM32 LTDC driver

2017-02-10 Thread Yannick Fertre
This patch adds support for the STM32 LCD-TFT display controller. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 0a393e2..148607d 100644 --- a

[PATCH v2 4/9] dt-bindings: Add Ampire AM-480272H3TMQW-T01H panel

2017-02-10 Thread Yannick Fertre
Signed-off-by: Yannick Fertre --- .../bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt diff --git a/Documentation/devicetree/bindings

[PATCH v2 6/9] ARM: dts: stm32: Add ltdc support on stm32f429 MCU

2017-02-10 Thread Yannick Fertre
Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32f429.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index e4dae0e..47351e2

[PATCH v2 5/9] drm/panel: simple: Add support for Ampire AM-480272H3TMQW-T01H

2017-02-10 Thread Yannick Fertre
Add simple-panel support for the Ampire AM-480272H3TMQW-T01H, which is a 4.3" WQVGA panel. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/panel/panel-simple.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/dr

[PATCH v2 1/9] dt-bindings: display: add STM32 LTDC driver

2017-02-10 Thread Yannick Fertre
Signed-off-by: Yannick Fertre --- .../devicetree/bindings/display/st,stm32-ltdc.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/st,stm32-ltdc.txt diff --git a/Documentation/devicetree/bindings/display/st,stm32

[PATCH v2 7/9] ARM: dts: stm32: Add ltdc support on stm32f429 MCU

2017-02-10 Thread Yannick Fertre
Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/stm32f429.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 47351e2..00f6681 100644 --- a/arch

[PATCH v2 9/9] ARM: configs: stm32: ADD LDTC support

2017-02-10 Thread Yannick Fertre
Signed-off-by: Yannick Fertre --- arch/arm/configs/stm32_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index e995209..d6a00b8 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/configs

  1   2   3   >