[PATCH] drm/stm: dsi: higher pll out only in video burst mode

2019-09-12 Thread Yannick Fertré
In order to better support video non-burst modes, the +20% on pll out is added only in burst mode. Signed-off-by: Philippe Cornu Reviewed-by: Yannick FERTRE --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/stm: ltdc: add pinctrl for DPI encoder mode

2019-09-06 Thread Yannick Fertré
node. Reviewed-by: Philippe Cornu Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 3ab4fbf..1c4fde0 100644 --- a/drivers/gpu/drm

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

2019-06-17 Thread Yannick Fertré
Without this fix, the system can not go in "suspend" mode due to an error in drv_suspend function. Fixes: 35ab6cf ("drm/stm: support runtime power management") Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/drv.c | 15 --- 1 file changed, 8 insert

[PATCH] drm/stm: support runtime power management

2019-06-03 Thread Yannick Fertré
This patch enables runtime power management (runtime PM) support for the display controller. pm_runtime_enable() and pm_runtime_disable() are added during ltdc load and unload respectively. pm_runtime_get_sync() and pm_runtime_put_sync() are added for ltdc register access. Signed-off-by: Yannick

[PATCH] drm/stm: ltdc: No message if probe

2019-06-03 Thread Yannick Fertré
Print display controller hardware version in debug mode only. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index a40870b..2fe6c4a 100644 --- a/drivers/gpu

[PATCH v1 0/2] dw-mipi-dsi: add power on & off optional phy ops and update stm

2019-05-27 Thread Yannick Fertré
layer only when the bridge is enable. Yannick Fertré (2): drm/bridge/synopsys: dsi: add power on/off optional phy ops drm/stm: dsi: add power on/off phy ops drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 8 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 21

[PATCH v1 2/2] drm/stm: dsi: add power on/off phy ops

2019-05-27 Thread Yannick Fertré
These new physical operations are helpful to power_on/off the dsi wrapper. If the dsi wrapper is powered in video mode, the display controller (ltdc) register access will hang when DSI fifos are full. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 21

[PATCH v1 1/2] drm/bridge/synopsys: dsi: add power on/off optional phy ops

2019-05-27 Thread Yannick Fertré
Add power on & off optional physical operation functions, helpful to program specific registers of the DSI physical part. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 8 include/drm/bridge/dw_mipi_dsi.h | 2 ++ 2 files changed

[PATCH] drm/stm: ltdc: No message if probe

2019-05-27 Thread Yannick Fertré
Print display controller hardware version in debug mode only. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index d24ffc2..16b1103 100644 --- a/drivers/gpu

[PATCH v4 0/2] Add supply property for DSI controller

2019-05-14 Thread Yannick Fertré
n v2: - rename patch drm/stm: dsi: add support of an optional regulator - rework dw_mipi_dsi-stm probe sequence Changes in v3: - remove device-tree patches - replace the optional regulator by a regulator Changes in v4: - update patch commit - return always error code Yannick Fertré (2): dt-bind

[PATCH v4 2/2] drm/stm: dsi: add regulator support

2019-05-14 Thread Yannick Fertré
Add support of regulator for the phy part of the DSI controller. Signed-off-by: Yannick Fertré Acked-by: Philippe Cornu --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 60 --- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/stm

[PATCH v4 1/2] dt-bindings: display: stm32: add supply property to DSI controller

2019-05-14 Thread Yannick Fertré
This patch adds documentation of a new property phy-dsi-supply to the STM32 DSI controller. Signed-off-by: Yannick Fertré Reviewed-by: Rob Herring Reviewed-by: Philippe Cornu --- Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v3 1/2] dt-bindings: display: stm32: add supply property to DSI controller

2019-05-13 Thread Yannick Fertré
This patch adds documentation of a new property phy-dsi-supply to the STM32 DSI controller. Signed-off-by: Yannick Fertré Reviewed-by: Rob Herring Reviewed-by: Philippe Cornu --- Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v3 2/2] drm/stm: dsi: add support of an regulator

2019-05-13 Thread Yannick Fertré
Add support of an regulator for the phy part of the DSI controller. Signed-off-by: Yannick Fertré Acked-by: Philippe Cornu --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 53 +-- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/stm

[PATCH v3 0/2] Add supply property for DSI controller

2019-05-13 Thread Yannick Fertré
n v2: - rename patch drm/stm: dsi: add support of an optional regulator - rework dw_mipi_dsi-stm probe sequence Changes in v3: - remove device-tree patches - replace the optional regulator by a regulator Yannick Fertré (2): dt-bindings: display: stm32: add supply property to DSI controller drm/stm:

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

2019-05-13 Thread Yannick Fertré
Clk_round_rate returns rounded clock without changing the hardware in any way. This function couldn't replace set_rate/get_rate calls. Todo comment has been removed & a new log inserted. Signed-off-by: Yannick Fertré --- Changes in v2: - Clk_enable & clk_disable are needed for

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

2019-05-10 Thread Yannick Fertré
Clk_round_rate returns rounded clock without changing the hardware in any way. This function couldn't replace set_rate/get_rate calls. Todo comment has been removed & a new log inserted. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 10 +++--- 1 file changed, 3 insert

[PATCH] drm/stm: dsi: check hardware version

2019-05-10 Thread Yannick Fertré
Check version of DSI hardware IP. Only versions 1.30 & 1.31 are supported. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers

[PATCH v2 2/3] drm/stm: dsi: add support of an optional regulator

2019-05-10 Thread Yannick Fertré
Add support of an optional regulator for the phy part of the DSI controller. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 45 ++- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b

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

2019-05-10 Thread Yannick Fertré
The dsi physical layer is powered by the 1v8 power controller supply. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 2afeee6..6b14f1e 100644

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

2019-05-10 Thread Yannick Fertré
This property is already defined into stm32mp157c.dtsi file. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c-dk2.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts index 020ea0f..09f6e7b 100644

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

2019-05-10 Thread Yannick Fertré
Move regulators reg11 & reg18 from device-tree files stm32mp157c-ed1.dts & stm32mp157c-dk2.dts to file stm32mp157c.dtsi. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c-dk2.dts | 8 arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 arch/arm/

[PATCH v2 1/5] dt-bindings: display: stm32: add supply property to DSI controller

2019-05-10 Thread Yannick Fertré
This patch adds documentation of a new property phy-dsi-supply to the STM32 DSI controller. Signed-off-by: Yannick Fertré --- Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/display/st,stm32

[PATCH v2 0/5] Add supply property for DSI controller

2019-05-10 Thread Yannick Fertré
n v2: - rename patch drm/stm: dsi: add support of an optional regulator - rework dw_mipi_dsi-stm probe sequence Yannick Fertré (5): dt-bindings: display: stm32: add supply property to DSI controller drm/stm: dsi: add support of an optional regulator ARM: dts: stm32: add phy-dsi-supply prop

[PATCH] drm/stm: ltdc: add modifier support

2019-04-03 Thread Yannick Fertré
Signed-off-by: Mickael Reulier Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index b1741a9..6fa8fbc 100644 --- a/drivers/gpu/drm/stm

[PATCH] drm/stm: ltdc: reset controller to avoid partial refresh

2019-04-03 Thread Yannick Fertré
Display controller reset must be done as soon as possible after enable the clock to avoid partial refresh on screen. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers

[PATCH] drm/stm: ltdc: limit number of layer to avoid memory overflow

2019-04-03 Thread Yannick Fertré
If the number of layer is greater than LTDC_MAX_LAYER, we can have memory overflow when reading plane_fpsi[]. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm

[PATCH v1 1/5] dt-bindings: display: stm32: add supply property to DSI controller

2019-04-03 Thread Yannick Fertré
This patch adds documentation of a new property phy-dsi-supply to the STM32 DSI controller. Signed-off-by: Yannick Fertré --- Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/display/st,stm32

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

2019-04-03 Thread Yannick Fertré
The dsi physical layer is powered by the 1v8 power controller supply. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 6ce75f6..4611b57 100644

[PATCH v1 0/5] Add supply property for DSI controller

2019-04-03 Thread Yannick Fertré
The DSI controller needs a new property that powers its physical layer. Binding has been updated to documented this property. Device tree of stm32mp157c soc. Move reg18 & reg11 to stm32mp157c device tree file. Remove property phy-dsi-supply property to stm32mp157c-dk2.dts file. Yannick Fertr

[PATCH v1 2/5] drm/stm: dw_mipi_dsi-stm: add support of an optional regulator

2019-04-03 Thread Yannick Fertré
Add support of an optional regulator for the phy part of the DSI controller. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi

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

2019-04-03 Thread Yannick Fertré
This property is already defined into stm32mp157c.dtsi file. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c-dk2.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts index 9a81d2d..d4038e7 100644

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

2019-04-03 Thread Yannick Fertré
Move regulators reg11 & reg18 from device-tree files stm32mp157c-ed1.dts & stm32mp157c-dk2.dts to file stm32mp157c.dtsi. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c-dk2.dts | 8 arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 arch/arm/

[PATCH] drm/stm: ltdc: update planes at next vblank to avoid partial refresh

2019-04-01 Thread Yannick Fertré
Plane updates must be synchronized on vblank with the shadow register mechanism to avoid partial refresh on screen. Signed-off-by: Yannick Fertré --- 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

[PATCH] drm/stm: ltdc: fix data enable polarity

2019-03-29 Thread Yannick Fertré
Wrong DISPLAY_FLAGS used to set the data enable polarity. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index b1741a9..6ba326a 100644 --- a/drivers/gpu/drm

[PATCH] drm/stm: ltdc: disable hw interrupts before its handler init

2019-03-29 Thread Yannick Fertré
Interrupt register must be disabled before call of devm_request_threaded_irq function to avoid dummy interruption. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu

[PATCH] drm/stm: ltdc: use DRM_WARN for fifo & transfer error messages

2019-03-29 Thread Yannick Fertré
From: Philippe Cornu Use DRM_WARN() instead of DRM_DEBUG_DRIVER() to better inform the user in case of fifo underruns or transfer errors. Signed-off-by: Philippe Cornu --- drivers/gpu/drm/stm/ltdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] drm/bridge: sii902x: initialize CEC device

2019-03-29 Thread Yannick Fertré
Initialize the CEC device embedded into sii902x bridge. By default, the CEC device must be disabled to allow other CEC devices to bypass the bridge. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/bridge/sii902x.c | 64 1 file changed, 64 insertions

[PATCH] drm/panel: otm8009a: set clock to 29.70 Mhz

2019-03-21 Thread Yannick Fertré
The panel does not support clock frequency over 30.74 Mhz. The clock rate has been reduced to 29.70 Mhz & new timings have been computed to get a framerate of 50fps. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 14 +++--- 1 file change

[PATCH] drm/panel: otm8009a: add delay at the end of initialization

2019-03-21 Thread Yannick Fertré
At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen). Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++ 1 file changed, 3 insert

[PATCH] drm/panel: otm8009a: no error msg if probe deferred

2019-03-21 Thread Yannick Fertré
Do not print an error message if the regulator framework returns EPROBE_DEFER. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu

[PATCH] drm/stm: add sleep power management

2019-03-21 Thread Yannick Fertré
Implements system sleep power management ops. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/drv.c | 35 +++ drivers/gpu/drm/stm/ltdc.c | 24 drivers/gpu/drm/stm/ltdc.h | 3 +++ 3 files changed, 62 insertions(+) diff --git

[PATCH] drm/stm: dw_mipi_dsi-stm: add sleep power management

2019-03-21 Thread Yannick Fertré
Implements system sleep power management ops. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index a672b59

[PATCH] drm/panel: rm68200: no error msg if probe deferred

2019-03-21 Thread Yannick Fertré
Do not print an error message if the regulator framework returns EPROBE_DEFER. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm

[PATCH v1 2/2] drm/stm: ltdc: Solve issue on pixel clock & data enable polarity

2018-09-24 Thread Yannick Fertré
Wrong flags used for set the pixel clock & data enable polarities. Add trace for polarities of hsync, vsync, data enabled & pixel clock. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/ltdc.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) di

[PATCH v1 1/2] drm: Add missing flags for pixel clock & data enable

2018-09-24 Thread Yannick Fertré
Add missing flags for pixel clock & data enable polarities. These flags are similar to other synchronization signals (hsync, vsync...). Signed-off-by: Yannick Fertré --- drivers/gpu/drm/drm_modes.c | 19 ++- include/uapi/drm/drm_mode.h | 6 ++ 2 files changed, 24 insert

[PATCH v1 0/2] Manage pixel clock & data enable polarities

2018-09-24 Thread Yannick Fertré
Version 1: - Initial commit This serie contains all patchsets needed for control the pixel clock & data enable polarities by the display controller driver. Yannick Fertré (2): drm: Add missing flags for pixel clock & data enable drm/stm: ltdc: Solve issue on pixel clock &