Re: [PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-23 Thread Lothar Waßmann
__drm_atomic_helper_crtc_destroy_state(crtc->state); > + > + kfree(to_lcdif_crtc_state(crtc->state)); > If crtc-state can be NULL at this point, this will only work as long as 'base' is the first member of the lcdif_crtc_state struct (which currently is the case, but there is no guarantee that this will always be this way), otherwise the if clause above is not needed. Lothar Waßmann

Re: [RESENT PATCH] drm/panel: support Innolux P097PFG panel

2017-12-04 Thread Lothar Waßmann
_device_id innolux_of_match[] = { > - { .compatible = "innolux,p079zca", }, > - { } > + { .compatible = "innolux,p079zca", > + .data = _p079zca_panel_desc > + }, > + { .compatible = "innolux,p097pfg", > + .data = _p097pf

Re: [PATCH] drm/bridge: Fix lvds-encoder since the panel_bridge rework.

2017-11-15 Thread Lothar Waßmann
oder->bridge.funcs = > + drm_bridge_add(_encoder->bridge); > > - platform_set_drvdata(pdev, bridge); > + platform_set_drvdata(pdev, lvds_encoder); > > return 0; > } > > static int lvds_encoder_remove(struct platform_device *p

Re: drivers/gpu/drm/bridge/lvds-encoder.c broken in mainline

2017-11-09 Thread Lothar Waßmann
Hi, On Wed, 08 Nov 2017 10:18:03 -0800 Eric Anholt wrote: > Lothar Waßmann <l...@karo-electronics.de> writes: > > > Hi, > > > > drivers/gpu/drm/bridge/lvds-encoder.c driver is currently > > dysfunctional due to: > > |commit 13dfc0540a575b47b2d640b093

drivers/gpu/drm/bridge/lvds-encoder.c broken in mainline

2017-11-07 Thread Lothar Waßmann
l.dtsi or r8a77xx-aa121td01-panel.dtsi, but those files are referenced nowhere in the kernel source. Should the driver be removed or moved to staging, until it is properly fixed? Lothar Waßmann ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-25 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:45:04 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 02:25:07PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Wa

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-18 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > > Use the newly defined macro to generate the display_mode data entries > > for all panels. This reduces the code size significantly and makes th

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-18 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 15:08:31 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 03:05:16PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßman

Re: [PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-18 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:12:40 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:35PM +0200, Lothar Waßmann wrote: > > The baseboards for the Ka-Ro electronics series of i.MX modules > > use a 24bit LCD interface, no matter what LCD bus width the SoC on the >

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-18 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > converter that requires a fixed pixelclk polarity, no matter what the > &

Re: [PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-18 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:08:18 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:33PM +0200, Lothar Waßmann wrote: > > Create a macro that eases the definition of display mode parameters by > > accecpting the parameters: > > freq, hactive, hfront-porch,

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-17 Thread Lothar Waßmann
Hi, On Mon, 16 Oct 2017 17:13:29 -0500 Rob Herring wrote: > On Wed, Oct 11, 2017 at 6:23 AM, Lothar Waßmann <l...@karo-electronics.de> > wrote: > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > converter that requires a fixed pixelclk polarity, no

Re: [PATCH 1/2] vgaarb: Select a default VGA device even if there's no legacy VGA

2017-10-13 Thread Lothar Waßmann
a_set_default_device(pdev); > > + break; > > + } > > + } > > + } > > + > > + if (!vga_default_device()) { > > + vgadev = list_first_entry_or_null(_list, > > + struct vga_device, list); > > + if (vgadev) { > > + struct device *dev = >pdev->dev; > > + vgaarb_info(dev, "setting as boot device (VGA legacy > > resources not available)\n"); > > + vga_set_default_device(pdev); > > Isn't 'pdev' NULL here? shouldn't it be vgadev->pdev instead? > That cannot not happen, though it isn't quite obvious. 'vgadev' will only be non-NULL, when the vga_list isn't empty and in that case pdev has been set up in the list_for_each_entry() loop above. Lothar Waßmann ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 7/9] drm/panel: simple: add support for NLT NL12880 12.1" WXGA LVDS panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/nlt,nl12880bc20.txt | 14 +++ drivers/gpu/drm/panel/panel-simple.c | 45 ++ 2 files changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-12 Thread Lothar Waßmann
The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS converter that requires a fixed pixelclk polarity, no matter what the panel's display_mode specifies. Add an option to override the pixelclk polarity defined in the panel's display_mode via DTB. Signed-off-by: Lothar Waßmann <l..

[PATCH 6/9] drm/panel: simple: add support for EDT ET0430 4.3" HVGA panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/edt,et0430g0dh6.txt| 7 +++ drivers/gpu/drm/panel/panel-simple.c | 19 +++ 2 files changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 8/9] drm/panel: simple: add support for EDT ETM0700G0EDH6 7" WVGA panel

2017-10-12 Thread Lothar Waßmann
This panel is the same as ETM0700g0DH6 with an inverted pixel clock. Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/edt,etm0700g0edh6.txt | 9 + drivers/gpu/drm/panel/panel-simple.c | 15 +++ 2

[PATCH 9/9] drm/panel: simple: add support for EDT ET1010G0DSA/ETML1010G0DKA 10.1" WXGA LVDS panels

2017-10-12 Thread Lothar Waßmann
This adds support for the Emerging Display Technologies Corporation 10.1" WXGA LVDS panel ET1010G0DSA (without a touch panel) and ETML1010G0DKA (with capacitive touch panel). Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/edt,et1010g0dsa.t

[PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-12 Thread Lothar Waßmann
Use the newly defined macro to generate the display_mode data entries for all panels. This reduces the code size significantly and makes the code more readable. Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- drivers/gpu/drm/panel/panel-simple.c

[PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-12 Thread Lothar Waßmann
to handle certain quirks of the LCD interface to the panel driver to be able to override the bus format specified in a panel's display_mode. Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/simple-panel.txt| 2 ++ drivers/gpu/drm/panel/panel-si

[PATCH 5/9] drm/panel: simple: add support for EDT ET0350 3.5" QVGA panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../bindings/display/panel/edt,et0350g0dh6.txt| 7 +++ drivers/gpu/drm/panel/panel-simple.c | 19 +++ 2 files changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-12 Thread Lothar Waßmann
open coded repeating the same parameters multiple times into the macro expansion. Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- drivers/gpu/drm/panel/panel-simple.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/d

[PATCH 0/9] drm/panel: simple: improve definition of display modes and add more panels

2017-10-12 Thread Lothar Waßmann
The first two patches of this patchset simplify the definition of display modes in the driver and make it less error prone. Patch 3 & 4 add support for overriding certain settings defined in the panel definitions via DT entries to match up HW interfacing variants. The remaining patches add

[PATCH] devicetree/bindings: display: fix reference to Documentation/.../display-timing.txt

2017-08-30 Thread Lothar Waßmann
panel-common.txt references display-timing.txt with an invalid path ('/panel' missing). Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- Documentation/devicetree/bindings/display/panel/panel-common.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documen

[PATCH] devicetree/bindings: display: fix copy/paste error

2017-08-30 Thread Lothar Waßmann
Adjust the compatible string that was obviously copied from the mitsubishi,aa121td01.txt file. Signed-off-by: Lothar Waßmann <l...@karo-electronics.de> --- .../devicetree/bindings/display/panel/mitsubishi,aa104xd12.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v4 2/5] arm: dts: Add the burst and esc clock frequency properties to DSI node

2017-03-06 Thread Lothar Waßmann
vddcore-supply = <_reg>; > vddio-supply = <_reg>; > + samsung,burst-clock-frequency = <5>; > + samsung,esc-clock-frequency = <2000>; > samsung,pll-clock-frequency = <2400>; > status = "okay"; > Lothar Waßmann ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH V2] drm: update kerneldoc for changes introduced by commits "16fadc2568e9" and "9671e228fb78"

2016-08-16 Thread Lothar Waßmann
Describe the new parameter 'bus_flags' to of_get_drm_display_mode() in the kerneldoc comments and add kerneldoc comments to the new function drm_bus_flags_from_videomode(). Signed-off-by: Lothar Waßmann --- Changes vs. v1: - added missing characters drivers/gpu/drm/drm_modes.c | 10

[PATCH] drm: update kerneldoc for changes introduced by commits "16fadc2568e9" and "9671e228fb78"

2016-08-16 Thread Lothar Waßmann
Hi, On Tue, 16 Aug 2016 13:41:20 +0200 Lucas Stach wrote: > Hi Lothar, > > Am Dienstag, den 16.08.2016, 13:12 +0200 schrieb Lothar Waßmann: > > Describe the new parameter 'bus_flags' to of_get_drm_display_mode() in > > the kerneldoc comments and add kerneldoc comments to the new function > >

[PATCH] drm: update kerneldoc for changes introduced by commits "16fadc2568e9" and "9671e228fb78"

2016-08-16 Thread Lothar Waßmann
Describe the new parameter 'bus_flags' to of_get_drm_display_mode() in the kerneldoc comments and add kerneldoc comments to the new function drm_bus_flags_from_videomode(). Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/drm_modes.c | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v5] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-08-02 Thread Lothar Waßmann
Hi, On Thu, 14 Jul 2016 11:47:52 +0200 Philipp Zabel wrote: > Hi Lothar, > > Am Dienstag, den 12.07.2016, 18:50 +0200 schrieb Philipp Zabel: > > From: Lothar Waßmann > > > > The 'de-active' and 'pixelclk-active' DT properties are evaluated > > by of_parse_display_timing() called from

[PATCHv4 3/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Lothar Waßmann
The 'de-active' and 'pixelclk-active' DT properties are evaluated by of_parse_display_timing() called from of_get_drm_display_mode(), but later lost in the conversion from videomode.flags to drm_display_mode.flags. Enhance of_get_drm_display_mode() to also return the bus flags in a separate

[PATCHv4 2/3] drm: add a helper function to extract 'de-active' and 'pixelclk-active' from DT

2016-07-12 Thread Lothar Waßmann
add a helper function to extract information about pixel clock and DE polarity from DT for use by of_get_drm_display_mode(). While at it, convert spaces to tabs in indentation in drm_modes.h. Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/drm_modes.c | 15 +++

[PATCHv4 1/3] drm/imx: parallel-display: check return code from of_get_drm_display_mode()

2016-07-12 Thread Lothar Waßmann
of_get_drm_display_mode() may fail. Check its return code and bail out on error. Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/imx/parallel-display.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/parallel-display.c

[PATCHv4 0/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Lothar Waßmann
The 'de-active' and 'pixelclk-active' DT properties are evaluated by of_parse_display_timing() called from of_get_drm_display_mode(), but later lost in the conversion from videomode.flags to drm_display_mode.flags. Changes vs. v3: - split the patch as suggested by Daniel Vetter Changes vs.

[PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Lothar Waßmann
Hi, On Wed, 25 May 2016 15:18:16 +0200 Lothar Waßmann wrote: > The 'de-active' and 'pixelclk-active' DT properties are evaluated > by of_parse_display_timing() called from of_get_drm_display_mode(), > but later lost in the conversion from videomode.flags to > drm_display_mode.flags. > Use an

[PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-25 Thread Lothar Waßmann
The 'de-active' and 'pixelclk-active' DT properties are evaluated by of_parse_display_timing() called from of_get_drm_display_mode(), but later lost in the conversion from videomode.flags to drm_display_mode.flags. Use an open coded version of of_get_drm_display_mode() to get access to these

[PATCHv2 2/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-25 Thread Lothar Waßmann
Hi, On Tue, 24 May 2016 16:16:40 +0200 Philipp Zabel wrote: > Hi Lothar, > > thank you for rebasing. I have applied the other two patches. > With this one, I'd like to avoid the duplicated code. See below: > > Am Dienstag, den 24.05.2016, 08:31 +0200 schrieb Lothar Waßmann: > > Currently these

[PATCHv2 3/3] drm/imx: remove dead code

2016-05-24 Thread Lothar Waßmann
The 'mode_valid' flag is never set in this driver. Remove it and the code that depends on it. Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/imx/parallel-display.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/imx/parallel-display.c

[PATCHv2 2/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-24 Thread Lothar Waßmann
Currently these flags are lost in the call drm_display_mode_from_videomode() Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/imx/imx-ldb.c | 37 ++ drivers/gpu/drm/imx/parallel-display.c | 31 2 files changed, 56

[PATCHv2 1/3] drm/imx: imx-ldb: honor 'native-mode' property when selecting video mode from DT

2016-05-24 Thread Lothar Waßmann
This patch allows to select a specific video mode from a list of modes defined in DT by setting the 'native-mode' property appropriately. This change does not affect the behaviour of existing platforms, since they either: - have just one display-timings subnode - have the native-mode

[PATCHv2 0/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-24 Thread Lothar Waßmann
The 'de-active' and 'pixelclk-active' DT properties are evaluated by of_parse_display_timing() called from of_get_drm_display_mode(), but later lost in the conversion from videomode.flags to drm_display_mode.flags. Use an open coded version of of_get_drm_display_mode() to get access to these

[PATCH 3/3] drm/imx: remove dead code

2016-05-20 Thread Lothar Waßmann
The 'mode_valid' flag is never set in this driver. Remove it and the code that depends on it. Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/imx/parallel-display.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/imx/parallel-display.c

[PATCH 2/3] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-05-20 Thread Lothar Waßmann
Currently these flags are lost in the call drm_display_mode_from_videomode() Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/imx/imx-drm-core.c | 12 +++ drivers/gpu/drm/imx/imx-drm.h | 7 --- drivers/gpu/drm/imx/imx-ldb.c | 37

[PATCH 1/3] drm/imx: imx-ldb: honor 'native-mode' property when selecting video mode from DT

2016-05-20 Thread Lothar Waßmann
This patch allows to select a specific video mode from a list of modes defined in DT by setting the 'native-mode' property appropriately. This change does not affect the behaviour of existing platforms, since they either: - have just one display-timings subnode - have the native-mode

[PATCH 0/3] drm/imx: convey the pixelclk-active and de-active flags to the ipu-di driver

2016-05-20 Thread Lothar Waßmann
The 'de-active' and 'pixelclk-active' DT properties are evaluated by of_parse_display_timing() called from of_get_drm_display_mode(), but later lost in the conversion from videomode.flags to drm_display_mode.flags. Use an open coded version of of_get_drm_display_mode() to get access to these

[PATCH v2] drm/imx: Match imx-ipuv3-crtc components using device node in platform data

2016-05-18 Thread Lothar Waßmann
Hi, On Wed, 18 May 2016 14:56:40 +0200 Philipp Zabel wrote: > The component master driver imx-drm-core matches component devices using > their of_node. Since commit 950b410dd1ab ("gpu: ipu-v3: Fix imx-ipuv3-crtc > module autoloading"), the imx-ipuv3-crtc dev->of_node is not set during > probing.

imx-drm: regression due to commit 503fe87bd0a8 ("gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading")

2016-05-18 Thread Lothar Waßmann
Hi, On Fri, 13 May 2016 13:04:12 +0200 Philipp Zabel wrote: > Hi Lothar, > > Am Freitag, den 13.05.2016, 12:33 +0200 schrieb Lothar Waßmann: > > Hi, > > > > the commit 503fe87bd0a8 ("gpu: ipu-v3: Fix imx-ipuv3-crtc module > > autoloading") > > indeed fixes the autoloading issue, but

imx-drm: regression due to commit 503fe87bd0a8 ("gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading")

2016-05-13 Thread Lothar Waßmann
Hi, the commit 503fe87bd0a8 ("gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading") indeed fixes the autoloading issue, but completely breaks the driver in non-modular mode (at least with the parallel-display driver I didn't yet check with the imx-ldb driver. Can anyone confirm that the imx-drm

[PATCH v12][ 06/12] ARM: dts: imx5*, imx6*: correct display-timings nodes.

2014-04-09 Thread Lothar Waßmann
Hi, Shawn Guo wrote: > On Mon, Apr 07, 2014 at 02:44:45PM +0200, Denis Carikli wrote: > > The imx-drm driver can't use the de-active and > > pixelclk-active display-timings properties yet. > > > > Instead the data-enable and the pixel data clock > > polarity are hardcoded in the imx-drm driver.

[PATCH 07/12] drm: drm_display_mode: add signal polarity flags

2014-03-18 Thread Lothar Waßmann
Hi, Laurent Pinchart wrote: > Hi Lothar, > > On Tuesday 18 March 2014 08:50:30 Lothar Wa?mann wrote: > > Laurent Pinchart wrote: > > > On Monday 17 March 2014 16:14:36 Lothar Wa?mann wrote: > > > > Laurent Pinchart wrote: > > > > > On Monday 17 March 2014 14:41:09 Andrzej Hajda wrote: > > > > >

[PATCH 08/12] imx-drm: Use drm_display_mode timings flags.

2014-03-18 Thread Lothar Waßmann
Hi, Denis Carikli wrote: > The previous hardware behaviour was kept if the > flags are not set. > > Signed-off-by: Denis Carikli > --- > ChangeLog v10->v11: > - This patch was splitted-out and adapted from: > "Prepare imx-drm for extra display-timings retrival." > - The display-timings dt

[PATCH 07/12] drm: drm_display_mode: add signal polarity flags

2014-03-18 Thread Lothar Waßmann
Hi, Laurent Pinchart wrote: > Hi Lothar, > > On Monday 17 March 2014 16:14:36 Lothar Wa?mann wrote: > > Laurent Pinchart wrote: > > > On Monday 17 March 2014 14:41:09 Andrzej Hajda wrote: > > > > On 03/13/2014 06:17 PM, Denis Carikli wrote: > > > > > We need a way to pass signal polarity

[PATCH 07/12] drm: drm_display_mode: add signal polarity flags

2014-03-17 Thread Lothar Waßmann
Hi, Laurent Pinchart wrote: > Hello, > > On Monday 17 March 2014 14:41:09 Andrzej Hajda wrote: > > On 03/13/2014 06:17 PM, Denis Carikli wrote: > > > We need a way to pass signal polarity informations > > > between DRM panels, and the display drivers. > > > > > > To do that, a pol_flags field