Re: [PATCH 5/6] arm64: dts: renesas: r8a77990: ebisu: Enable LVDS1 encoder

2019-01-22 Thread Laurent Pinchart
Hi Geert, On Thu, Jan 17, 2019 at 11:21:32AM +0100, Geert Uytterhoeven wrote: > On Thu, Jan 17, 2019 at 3:07 AM Laurent Pinchart > wrote: > > The LVDS1 encoder must supply a pixel clock to the DU for the DPAD > > output when the LVDS0 encoder is used. Enable it despite its ou

Re: [PATCH v3 2/5] dt-bindings: display: bridge: lvds-transmitter: cleanup example

2019-01-22 Thread Laurent Pinchart
Hi Peter, Thank you for the patch. On Sat, Dec 29, 2018 at 07:07:25AM +, Peter Rosin wrote: > Drop #address-cells and #size-cells from the root node in the > example, they are unused. > > Reviewed-by: Rob Herring > Signed-off-by: Peter Rosin Reviewed-by: L

Re: [PATCH v3 1/5] dt-bindings: display: bridge: fork out ti,ds90c185 from lvds-transmitter

2019-01-22 Thread Laurent Pinchart
s90c185.txt > > @@ -0,0 +1,55 @@ > > +Texas Instruments FPD-Link (LVDS) Serializer > > + > > + > > +The DS90C185 and DS90C187 are low-power serializers for portable > > +battery-powered applications that reduc

Re: [PATCH v3 3/5] dt-bindings: display: bridge: thc63lvdm83d: use standard powerdown-gpios

2019-01-22 Thread Laurent Pinchart
rting the binding > (lvds-encoder.c) never implemented the property, and no dts file > names it. At least not upstream. > > Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchart > --- > Documentation/devicetree/bindings/display/bridge/thine,thc63lvdm83d.txt | 2 > +- >

Re: [PATCH v3 4/5] drm/bridge: lvds-encoder: add dev helper variable in .probe()

2019-01-22 Thread Laurent Pinchart
Hi Peter, Thank you for the patch. On Sat, Dec 29, 2018 at 07:07:37AM +, Peter Rosin wrote: > Make the code easier to read and modify. > > Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/bridge/lvds-encoder.c | 19 +-- &g

Re: [PATCH v3 5/5] drm/bridge: lvds-encoder: add powerdown-gpios support

2019-01-22 Thread Laurent Pinchart
struct lvds_encoder, > + bridge); > + > + if (lvds_encoder->powerdown_gpio) > + gpiod_set_value_cansleep(lvds_encoder->powerdown_gpio, 1); Same here. > +} > + > static struct drm_bridge_funcs funcs = { Whil

Re: [PATCH] drm/bridge: lvds-encoder: remove surplus NULL checks

2019-01-22 Thread Laurent Pinchart
Hajda > Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/bridge/lvds-encoder.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c > b/drivers/gpu/drm/bridge/lvds-encoder.

Re: [PATCH] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it.

2019-01-22 Thread Laurent Pinchart
depends on OF > + depends on INPUT > select DRM_KMS_HELPER > imply EXTCON > - select INPUT > select RC_CORE RC_CORE is always a user-visible symbol (which by the way depends on INPUT). I think reverting commit d6abe6df706c would be a better solution. >

[PATCH v2 5/6] arm64: dts: renesas: r8a77990: ebisu: Enable LVDS1 encoder

2019-01-22 Thread Laurent Pinchart
The LVDS1 encoder must supply a pixel clock to the DU for the DPAD output when the LVDS0 encoder is used. Enable it despite its output not being connected. Signed-off-by: Laurent Pinchart --- Changes since v1: - Add a comment in the DT to explain why the LVDS1 encoder needs to be enabled

[PATCH v2 3/6] drm: rcar-du: lvds: Add API to enable/disable clock output

2019-01-22 Thread Laurent Pinchart
, the LVDS PLL needs to be controlled manually. Add an API to do so, to be called by the DU driver. The drivers/gpu/drm/rcar-du/ directory has to be treated as obj-y unconditionally, as the LVDS driver could be built-in while the DU driver is compiled as a module. Signed-off-by: Laurent Pinchart

[PATCH v2 2/6] drm: rcar-du: lvds: Don't fail probe if output is not connected on D3/E3

2019-01-22 Thread Laurent Pinchart
case on D3 and E3. Signed-off-by: Laurent Pinchart --- Changes since v1: - Typo fix in the commit message --- drivers/gpu/drm/rcar-du/rcar_lvds.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rc

[PATCH v2 1/6] drm: rcar-du: Simplify encoder registration

2019-01-22 Thread Laurent Pinchart
, removing most of the DT parsing. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 3 +- drivers/gpu/drm/rcar-du/rcar_du_encoder.h | 3 +- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 52 ++- 3 files changed, 6 insertions(+), 52 deletions(-) diff

[PATCH v2 0/6] R-Car DU DPAD support for D3 and E3

2019-01-22 Thread Laurent Pinchart
in the DT files. The patches have been tested on Draak only as I don't have access to an Ebisu board, but they should work equally well on both boards. For your convenience the patches are available from git://linuxtv.org/pinchartl/media.git drm/du/d3e3 Laurent Pinchart (6): drm:

[PATCH v2 4/6] drm: rcar-du: Turn LVDS clock output on/off for DPAD0 output on D3/E3

2019-01-22 Thread Laurent Pinchart
On the D3 and E3 SoCs the LVDS PLL clock output provides the dot clock to the DU channels, even when the LVDS outputs are not in use. Enable and disable the LVDS clock output when enabling or disabling a CRTC connected to the DPAD0 output. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm

[PATCH v2 6/6] arm64: dts: renesas: r8a77995: draak: Enable LVDS1 encoder

2019-01-22 Thread Laurent Pinchart
The LVDS1 encoder must supply a pixel clock to the DU for the DPAD output when the LVDS0 encoder is used. Enable it despite its output not being connected. Signed-off-by: Laurent Pinchart --- Changes since v1: - Add a comment in the DT to explain why the LVDS1 encoder needs to be enabled

Re: [PATCH v2 5/6] arm64: dts: renesas: r8a77990: ebisu: Enable LVDS1 encoder

2019-01-23 Thread Laurent Pinchart
Hi Simon, On Wed, Jan 23, 2019 at 09:56:57AM +0100, Simon Horman wrote: > On Wed, Jan 23, 2019 at 12:54:04AM +0200, Laurent Pinchart wrote: > > The LVDS1 encoder must supply a pixel clock to the DU for the DPAD > > output when the LVDS0 encoder is used. Enable it despite its outpu

Re: [PATCH] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it.

2019-01-23 Thread Laurent Pinchart
ct RC_CORE > > Keeping "select RC_CORE" is wrong though, as the driver appears to be > working find without RC. Maybe it should be stubbed out? It should definitely not be select'ed as it's a user-visible symbol. My preference would be to simply revert d6abe6df706c. If

Re: [PATCH] drm/bridge: sil_sii8620: depend on INPUT instead of selecting it.

2019-01-23 Thread Laurent Pinchart
Hello Dmity, On Wed, Jan 23, 2019 at 02:21:05PM -0800, Dmitry Torokhov wrote: > On Thu, Jan 24, 2019 at 12:17:35AM +0200, Laurent Pinchart wrote: > > On Wed, Jan 23, 2019 at 02:03:42PM -0800, Dmitry Torokhov wrote: > >> On Wed, Jan 23, 2019 at 09:45:56AM +0100, Lukas Wunner w

Re: [PATCH] drm/doc: Task to rename CMA helpers

2019-01-30 Thread Laurent Pinchart
Hi Daniel, On Tue, Jan 29, 2019 at 02:21:53PM +0100, Daniel Vetter wrote: > I'm kinda fed up explaining why the have a confusing name :-) Fully agreed, it's confusing and should definitely be fixed. Acked-by: Laurent Pinchart > Cc: Noralf Trønnes > Cc: Laurent Pincha

Re: [PATCH 0/8] drm/meson: Add support for HDMI2.0 4k60

2019-01-31 Thread Laurent Pinchart
++--- > > drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 1 + > > drivers/gpu/drm/meson/meson_dw_hdmi.c | 128 --- > > drivers/gpu/drm/meson/meson_vclk.c| 93 --- > > drivers/gpu/drm/meson/meson_vclk.h| 7 +- > > drivers/gpu/drm/meson/meson_venc.c| 8 +- > > drivers/gpu/drm/meson/meson_venc.h| 11 ++ > > drivers/gpu/drm/meson/meson_venc_cvbs.c | 3 +- > > include/drm/bridge/dw_hdmi.h | 7 + > > 9 files changed, 374 insertions(+), 66 deletions(-) -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 2/5] dt-bindings: display: renesas: lvds: Document r8a7744 bindings

2019-02-01 Thread Laurent Pinchart
Hi Rob, On Wed, Jan 30, 2019 at 10:39:10AM -0600, Rob Herring wrote: > On Tue, Jan 22, 2019 at 05:44:28PM +0200, Laurent Pinchart wrote: > > On Tue, Jan 22, 2019 at 03:25:46PM +, Biju Das wrote: > >> Document the RZ/G1N (R8A7744) LVDS bindings. > >> &

[GIT PULL FOR v5.1] Renesas display drivers changes, second part

2019-02-07 Thread Laurent Pinchart
drm: rcar-du: add missing of_node_put Laurent Pinchart (4): drm: rcar-du: Simplify encoder registration drm: rcar-du: lvds: Don't fail probe if output is not connected on D3/E3 drm: rcar-du: lvds: Add API to enable/disable clock output drm: rcar-du: Turn LVDS cloc

Re: [PATCH v2 1/2] drm/omap: panel-tpo-td028ttec1: add backlight support

2019-02-07 Thread Laurent Pinchart
This ensures the backlight is also disabled when the display is > turned off like when doing xset dpms force off. > > Signed-off-by: Andreas Kemnade Reviewed-by: Laurent Pinchart > --- > Changes in v2: > - do not reorder initialisation > - fix commit message > >

Re: [PATCH v2 2/2] dt-bindings: panel: td028ttec1: add backlight property

2019-02-07 Thread Laurent Pinchart
Hi Andreas, Thank you for the patch. On Tue, Feb 05, 2019 at 07:38:13AM +0100, Andreas Kemnade wrote: > This adds an additional backlight property as described > in panel-common.txt > > Signed-off-by: Andreas Kemnade Reviewed-by: Laurent Pinchart > --- > Documentation/d

[PATCH v2.1 43/49] dt-bindings: display: Add OSD Displays OSD070T1718-19TS panel binding

2019-02-08 Thread Laurent Pinchart
The OSD Displays OSD070T1718-19TS is a 7" WVGA (800x480) 24bit RGB panel and is compatible with the simple-panel bindings. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen --- Changes since v2: - Specify which of the simple-panel properties are valid --- .../display/

Re: [PATCH v2 45/49] drm/omap: Add support for drm_bridge

2019-02-08 Thread Laurent Pinchart
Hi Tomi, On Fri, Jan 18, 2019 at 12:33:03PM +0200, Tomi Valkeinen wrote: > On 11/01/19 05:51, Laurent Pinchart wrote: > > Hook up drm_bridge support in the omapdrm driver. Despite the recent > > extensive preparation work, this is a rather intrusive change, as the > > manage

Re: [PATCH 0/6] omapdrm: drm_bridge and drm_panel support

2019-02-10 Thread Laurent Pinchart
Hi Sebastian, On Sat, Feb 09, 2019 at 01:05:14PM +0100, Sebastian Reichel wrote: > On Fri, Jan 11, 2019 at 03:34:19AM +0200, Laurent Pinchart wrote: > > On Thursday, 20 December 2018 14:17:27 EET Sebastian Reichel wrote: > >> On Mon, Dec 10, 2018 at 03:06:17AM +0200, Laur

[PATCH v2.1 45/49] drm/omap: Add support for drm_bridge

2019-02-10 Thread Laurent Pinchart
evice infrastructure is not affected), this will be fixed in subsequent changes. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- Changes since v2: - Remove struct omap_drm_pipeline display field Changes since v1: - Fix typo in function name (u

[PATCH v3 00/50] omapdrm: drm_bridge and drm_panel support

2019-02-11 Thread Laurent Pinchart
and review tags collected. Please see individual patches for changelogs. The whole series is available from git://linuxtv.org/pinchartl/media.git omapdrm/bridge/next Laurent Pinchart (46): drm/atomic: Constify mode argument to mode_valid_path() drm/omap: Remove declaration of

[PATCH v3 01/50] drm/atomic: Constify mode argument to mode_valid_path()

2019-02-11 Thread Laurent Pinchart
The mode_valid_path() function validates the mode it receives without ever modifying it. Constify the mode pointer argument to make that explicit. Signed-off-by: Laurent Pinchart Reviewed-by: Ville Syrjälä Reviewed-by: Tomi Valkeinen Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel

[PATCH v3 04/50] drm/omap: dsi: Hack-fix DSI bus flags

2019-02-11 Thread Laurent Pinchart
by adding back video mode flags handling in the DSI encoder driver as a hack in the meantime. Fixes: b4935e3a3cfa ("drm/omap: Store bus flags in the omap_dss_device structure") Signed-off-by: Tomi Valkeinen Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-b

[PATCH v3 06/50] drm/omap: Remove unused kobj field from struct omap_dss_device

2019-02-11 Thread Laurent Pinchart
The kobj field from struct omap_dss_device is not used. Remove it. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers

[PATCH v3 02/50] drm/omap: dsi: Fix crash in DSI debug dumps

2019-02-11 Thread Laurent Pinchart
ned-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm

[PATCH v3 29/50] drm/omap: Pass drm_display_mode to .check_timings() and .set_timings()

2019-02-11 Thread Laurent Pinchart
e API. Replace the videomode parameter to the .check_timings() and .set_timings() operations with a drm_display_mode. This pushed the conversion to videomode down to the DSS devices in some cases. If needed they will be converted to operate on drm_display_mode natively. Signed-off-by: Laurent Pin

[PATCH v3 12/50] drm/omap: Remove enable checks from display .enable() and .remove()

2019-02-11 Thread Laurent Pinchart
;s still a good practice to disable the device explicitly. There is currently a safety check in .remove() in some drivers but not all of them. Remove the safety checks from the .enable() and .disable() handlers, and add missing ones in the .remove() handler. Signed-off-by: Laurent Pinchart Reviewe

[PATCH v3 21/50] drm/omap: Move display alias ID to omap_drm_pipeline

2019-02-11 Thread Laurent Pinchart
the alias ID is done when initializing display dss devices. That code will be removed when moving to drm_bridge and drm_panel. Move retrieval of the alias ID to display pipeline connection time and store it in the pipeline structure instead to keep the feature. Signed-off-by: Laurent Pinchart

[PATCH v3 27/50] drm/omap: venc: Simplify mode setting by caching configuration

2019-02-11 Thread Laurent Pinchart
The mode setting handler of the VENC stores the video mode internally, to then convert it to a configuration when programming the hardware. The stored mode is otherwise unused. Cache the configuration directly instead. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by

[PATCH v3 16/50] drm/omap: Expose DRM modes instead of timings in display devices

2019-02-11 Thread Laurent Pinchart
create a helper function for panels to add a single DRM mode from the panel video timings. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 8 ++--- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 10

[PATCH v3 03/50] drm/omap: dsi: Fix OF platform depopulate

2019-02-11 Thread Laurent Pinchart
ults in OF child devices being potentially removed multiple times. Fix it by placing the of_platform_depopulate() call where it belongs. Fixes: edb715dffdee ("drm/omap: dss: dsi: Move initialization code from bind to probe") Signed-off-by: Tomi Valkeinen Signed-off-by: Laurent P

[PATCH v3 18/50] drm/omap: Add a dss device operation flag for .get_modes()

2019-02-11 Thread Laurent Pinchart
Instead of manually iterating over the dss devices in the pipeline to find the first one that implements the .get_modes() operation, add a new operation flag for .get_modes() and use the omap_connector_find_device() helper function to locate the right dss device. Signed-off-by: Laurent Pinchart

[PATCH v3 19/50] drm/omap: venc: List both PAL and NTSC modes

2019-02-11 Thread Laurent Pinchart
The TV encoder supports both PAL and NTSC modes, but when queried for the list of modes it supports, only the currently selected mode is reported. Fix it and report the two modes unconditionally. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel

[PATCH v3 15/50] drm/omap: Factor out common init/cleanup code for output devices

2019-02-11 Thread Laurent Pinchart
All the internal encoders share common init and cleanup code. Factor it out to separate functions. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dpi.c | 17 +++-- drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCH v3 05/50] drm/omap: Remove declaration of nonexisting function

2019-02-11 Thread Laurent Pinchart
The omap_connector_attached_encoder() doesn't exist anymore, remove its declaration from omap_connector.h. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_connector.h | 2 -- 1

[PATCH v3 26/50] drm/omap: Move DISPC timing checks to CRTC .mode_valid() operation

2019-02-11 Thread Laurent Pinchart
The DISPC timings checks relate to the CRTC, but they're performed in the encoder and connector .atomic_check() and .mode_valid() operations. Move them to the CRTC .mode_valid() operation. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- dr

[PATCH v3 09/50] drm/omap: Move common display enable/disable code to encoder

2019-02-11 Thread Laurent Pinchart
ll be addressed separately. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- .../omapdrm/displays/connector-analog-tv.c| 23 +- .../gpu/drm/omapdrm/displays/connector-dvi.c | 17 +-- .../gpu/drm/omapdrm/displays/connector-h

[PATCH v3 32/50] drm/omap: Simplify OF lookup of DSS devices

2019-02-11 Thread Laurent Pinchart
Now that the direction of OF graph walk has been reversed, there's no need to lookup devices by port as we have no sink device connected through multiple sink ports. Simplify OF lookup of the DSS devices to look them up by node only. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Re

[PATCH v3 13/50] drm/omap: Reverse direction of the DSS device enable/disable operations

2019-02-11 Thread Laurent Pinchart
utput devices only. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- Changes since v1: - Shutdown pipelines starting at the output device --- .../omapdrm/displays/connector-analog-tv.c| 21 -- .../gpu/drm/omapdrm/displays/connector-dvi.c

[PATCH v3 08/50] drm/omap: Use atomic suspend/resume helpers

2019-02-11 Thread Laurent Pinchart
Instead of rolling out custom suspend/resume implementations based on state information stored in the driver's data structures, use the atomic suspend/resume helpers that rely on a DRM atomic state object. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Seba

[PATCH v3 07/50] drm/omap: venc: Remove wss_data field from venc_device structure

2019-02-11 Thread Laurent Pinchart
The venc_device structure wss_data field is set to 0 and never otherwise modified, remove it. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/venc.c | 11 +-- 1 file changed, 1

[PATCH v3 17/50] drm/omap: Merge display .get_modes() and .get_size() operations

2019-02-11 Thread Laurent Pinchart
Now that the .get_modes() operations takes a drm_connector and fills it with modes, it becomes easy to fill display information in the same operation without requiring a separate .get_size() opearation. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel

[PATCH v3 38/50] dt-bindings: display: tfp410: Add bus parameters properties

2019-02-11 Thread Laurent Pinchart
-sample to specify the pixel clock sampling edge (as set through the EDGE pin). Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Rob Herring Tested-by: Sebastian Reichel --- .../bindings/display/bridge/ti,tfp410.txt | 24 ++- 1 file changed, 18

[PATCH v3 31/50] drm/omap: Store pixel clock instead of full mode in DPI and SDI encoders

2019-02-11 Thread Laurent Pinchart
The DPI and SDI encoders store the full videomode upon mode set, to only use the value of the pixel clock when enabling the encoder. This wastes memory. Store the pixel clock value only. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers

[PATCH v3 23/50] drm/omap: panel-dsi-cm: Store source pointer internally

2019-02-11 Thread Laurent Pinchart
The source pointer will be removed to the omap_dss_device structure. Store it internally in the DSI panel driver data. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 55 ++- 1 file

[PATCH v3 14/50] drm/omap: Remove omap_dss_device dst field

2019-02-11 Thread Laurent Pinchart
The field is only used in a safety check during device connection/disconnection, where the src field can be easily used instead. Remove it and use src. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c| 6

[PATCH v3 11/50] drm/omap: Remove connection checks from display .enable() and .remove()

2019-02-11 Thread Laurent Pinchart
odule is taken when constructing the dss devices chain, so the module can only be unloaded when the dss device is disconnected. Remove the safety checks. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/encoder-opa

[PATCH v3 10/50] drm/omap: Remove connection checks from internal encoders .enable()

2019-02-11 Thread Laurent Pinchart
paths that access the dss devices chain from the display device, which is set to NULL when the device isn't connected, making it impossible to access the device in that case. The safety check is thus not needed, remove it. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Test

[PATCH v3 45/50] drm/omap: Add support for drm_bridge

2019-02-11 Thread Laurent Pinchart
evice infrastructure is not affected), this will be fixed in subsequent changes. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- Changes since v2: - Remove struct omap_drm_pipeline display field Changes since v1: - Fix typo in function name (u

[PATCH v3 30/50] drm/omap: venc: Use drm_display_mode natively

2019-02-11 Thread Laurent Pinchart
Replace internal usage of struct videomode with struct drm_display_mode in order to avoid converting needlessly between the data structures. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- Changes since v1: - Set mode.crtc_* fields and mode name

[PATCH v3 22/50] drm/omap: Don't store display pointer in omap_connector structure

2019-02-11 Thread Laurent Pinchart
ocate the last matching device. The display device is still passed to the connector init function in order to find its type, which requires access to the end of the pipeline. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/om

[PATCH v3 41/50] drm/bridge: ti-tfp410: Report input bus config through bridge timings

2019-02-11 Thread Laurent Pinchart
imply use the default configuration in that case. When the chip is configured through dedicated pins, we parse the configuration from DT. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Jyri Sarha Tested-by: Sebastian Reichel --- drivers/gpu/drm/bridge/ti-tfp410.c

[PATCH v3 28/50] drm/omap: Factor out common mode validation code

2019-02-11 Thread Laurent Pinchart
The encoder .atomic_check() and connector .mode_valid() operations both walk through the dss devices in the pipeline to validate the mode. Factor out the common code in a new omap_drm_connector_mode_fixup() function. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by

[PATCH v3 20/50] drm/omap: Don't pass display pointer to encoder init function

2019-02-11 Thread Laurent Pinchart
The display isn't used by the encoder implementation, don't pass it to the initialization function and store it internally needlessly. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_drv.c | 2 +- drive

[PATCH v3 37/50] drm/bridge: use bus flags in bridge timings

2019-02-11 Thread Laurent Pinchart
(DRM_BUS_FLAG_DE_LOW). Signed-off-by: Stefan Agner Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Tested-by: Sebastian Reichel --- Changes since v1: - Renamed bus_flags to input_bus_flags --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 +++--- include/drm/drm_bridge.h | 12

[PATCH v3 36/50] drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags

2019-02-11 Thread Laurent Pinchart
From: Laurent Pinchart The DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE and DRM_BUS_FLAG_SYNC_(POS|NEG)EDGE flags are deprecated in favour of the new DRM_BUS_FLAG_PIXDATA_(DRIVE|SAMPLE)_(POS|NEG)EDGE and new DRM_BUS_FLAG_SYNC_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags. Replace them through the code. This

[PATCH v3 24/50] drm/omap: Notify all devices in the pipeline of output disconnection

2019-02-11 Thread Laurent Pinchart
For HDMI pipelines, when the output gets disconnected the device handling CEC needs to be notified. Instead of guessing which device that would be (and sometimes getting it wrong), notify all devices in the pipeline. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by

[PATCH v3 44/50] drm/panel: simple: Add OSD070T1718-19TS panel support

2019-02-11 Thread Laurent Pinchart
Add support for the OSD070T1718-19TS 7" 800x480 panel from One Stop Displays to the panel-simple driver. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Reviewed-by: Tomi Valkeinen Tested-by: Sebastian Reichel --- drivers/gpu/drm/panel/panel-simple.c

[PATCH v3 40/50] drm/bridge: ti-tfp410: Add support for the powerdown GPIO

2019-02-11 Thread Laurent Pinchart
The TFP410 has a powerdown pin that can be connected to a GPIO to control power saving. The DT bindings define a corresponding property, but the driver doesn't implement support for it. Fix that. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Jyri Sarha Test

[PATCH v3 34/50] drm/omap: Merge omap_dss_device type and output_type fields

2019-02-11 Thread Laurent Pinchart
display field to the omap_dss_device structure to identify displays, and merge the type and output_type fields. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/connector-analog-tv.c | 1 + drivers/gpu/drm/omapdrm/displays

[PATCH v3 43/50] dt-bindings: display: Add OSD Displays OSD070T1718-19TS panel binding

2019-02-11 Thread Laurent Pinchart
The OSD Displays OSD070T1718-19TS is a 7" WVGA (800x480) 24bit RGB panel and is compatible with the simple-panel bindings. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Tested-by: Sebastian Reichel --- Changes since v2: - Specify which of the simple-panel properties are

[PATCH v3 42/50] dt-bindings: Add vendor prefix for OSD Displays

2019-02-11 Thread Laurent Pinchart
OSD Displays is a panel manufacturer. It has been acquired by New Vision Displays in 2015 but continues to operate under its own brand name. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Rob Herring Tested-by: Sebastian Reichel --- Documentation/devicetree/bindings

[PATCH v3 48/50] drm/omap: Remove TFP410 and DVI connector drivers

2019-02-11 Thread Laurent Pinchart
Those components are supported by the drm_bridge infrastructure, remove the omapdrm-specific driver. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/Kconfig | 11 - drivers/gpu/drm/omapdrm/displays/Makefile

[PATCH v3 46/50] drm/omap: Add support for drm_panel

2019-02-11 Thread Laurent Pinchart
bus flags (set by the panel) into account, and enable/disable the panel in the encoder enable/disable operations handlers. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c | 12 --- drivers/gpu/drm/omapdrm

[PATCH v3 39/50] drm/bridge: ti-tfp410: Set connector type based on DT connector node

2019-02-11 Thread Laurent Pinchart
. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Jyri Sarha Tested-by: Sebastian Reichel --- drivers/gpu/drm/bridge/ti-tfp410.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c

[PATCH v3 25/50] drm/omap: Remove src field from omap_dss_device structure

2019-02-11 Thread Laurent Pinchart
The field is only used to check whether the device is connected, and we can do so by checking the dss field instead. Remove the src field. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c| 14

[PATCH v3 50/50] drm: Turn bus flags macros into an enum

2019-02-11 Thread Laurent Pinchart
This allows nicer kerneldoc with an easy way to reference the enum and the values. Signed-off-by: Laurent Pinchart --- include/drm/drm_connector.h | 108 +--- 1 file changed, 64 insertions(+), 44 deletions(-) diff --git a/include/drm/drm_connector.h b/include

[PATCH v3 33/50] drm/omap: Refactor initialization sequence

2019-02-11 Thread Laurent Pinchart
will need to attach to the bridges before getting the aliases. As attaching to bridges requires an encoder object, we have to reorganize the initialization sequence to create encoders before getting aliases and sorting the pipelines. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel

[PATCH v3 47/50] drm/omap: Whitelist DT nodes to fixup with omapdss, prefix

2019-02-11 Thread Laurent Pinchart
ck code is updated accordingly to ignore devices managed by external bridge drivers. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c| 20 +++--- .../gpu/drm/omapdrm/dss/omapdss-boot-ini

[PATCH v3 35/50] drm: Clarify definition of the DRM_BUS_FLAG_(PIXDATA|SYNC)_* macros

2019-02-11 Thread Laurent Pinchart
From: Laurent Pinchart The DRM_BUS_FLAG_PIXDATA_POSEDGE and DRM_BUS_FLAG_PIXDATA_NEGEDGE macros and their DRM_BUS_FLAG_SYNC_* counterparts define on which pixel clock edge data and sync signals are driven. They are however used in some drivers to define on which pixel clock edge data and sync

[PATCH v3 49/50] drm/omap: Remove panel-dpi driver

2019-02-11 Thread Laurent Pinchart
Panels are now supported through the drm_panel infrastructure, remove the omapdrm-specific driver. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/Kconfig | 6 - drivers/gpu/drm/omapdrm/displays/Makefile

Re: [PATCH v12 01/38] drm/doc: document recommended component helper usage

2019-02-12 Thread Laurent Pinchart
changes would be quite intrusive. Long term major changes will be needed there anyway as it makes no sense to have to frameworks with similar purposes in DRM/KMS and V4L2. > + */ > + > +/** > * drm_dev_init - Initialise new DRM device > * @dev: DRM device > * @driver: DRM driver -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] MAINTAINERS: drm: Remove myself as drm-bridge maintainer

2018-12-18 Thread Laurent Pinchart
e > >> to review bridge related work. Andrzej has been doing it by himself > >> for a while now. > >> > >> Cc: Andrzej Hajda > >> Cc: Laurent Pinchart > >> Cc: Gustavo Padovan > >> Cc: Maarten Lankhorst > >> Cc: Sean Paul >

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-18 Thread Laurent Pinchart
Hi Daniel, On Tuesday, 18 December 2018 11:37:14 EET Daniel Vetter wrote: > On Tue, Dec 18, 2018 at 7:47 AM Laurent Pinchart wrote: > > On Tuesday, 18 December 2018 08:00:24 EET Kuninori Morimoto wrote: > >> From: Kuninori Morimoto > >> > >> This patch

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-18 Thread Laurent Pinchart
Hi Morimoto-san, On Wednesday, 19 December 2018 02:16:55 EET Kuninori Morimoto wrote: > Hi > > >>>> This patch updates license to use SPDX-License-Identifier > >>>> instead of verbose license text. > >>>> > >>>> Signed-off

Re: [PATCH RFC v2 5/8] drm/bridge: dw-hdmi: support dynamically get input/out color info

2018-12-18 Thread Laurent Pinchart
BUS_FMT_RGB888_1X24; > > > > hdmi->hdmi_data.pix_repet_factor = 0; > > hdmi->hdmi_data.hdcp_enable = 0; > > > > diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h > > index 7a02744ce0bc..2e797f782c51 100644 > > --- a/include/drm/bridge/dw_hdmi.h > > +++ b/include/drm/bridge/dw_hdmi.h > > @@ -142,6 +142,11 @@ struct dw_hdmi_plat_data { > > > > int (*configure_phy)(struct dw_hdmi *hdmi, > > > > const struct dw_hdmi_plat_data *pdata, > > unsigned long mpixelclock); > > > > + > > + unsigned long (*get_input_bus_format)(void *data); > > + unsigned long (*get_output_bus_format)(void *data); > > + unsigned long (*get_enc_in_encoding)(void *data); > > + unsigned long (*get_enc_out_encoding)(void *data); > > > > }; > > > > struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Laurent Pinchart
ode sequencing of GPIOs and power supplies in DT. That path has been tried in the past, with no good results. I would instead create device-specific bindings, like done for thine,thc63lvdm83d. It's fine to then add support for the pwdn-gpios property in the lvds-encoder driver, as long as the meaning of the property comes from specific DT bindings, not from the generic ones. -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] gpu: anx7808: fix a missing check of return value

2018-12-20 Thread Laurent Pinchart
nted in the probe() path. > err = anx78xx_enable_interrupts(anx78xx); > if (err) > @@ -1379,7 +1387,9 @@ static int anx78xx_i2c_probe(struct i2c_client > *client, } > > /* Look for supported chip ID */ > - anx78xx_poweron(anx78xx); > +

Re: [PATCH] drm/bridge/panel: Remove duplicate header

2018-12-26 Thread Laurent Pinchart
include While at it, how about sorting headers alphabetically to make sure this won't happen again ? With that change, Reviewed-by: Laurent Pinchart > struct panel_bridge { > struct drm_bridge bridge; -- Regards, Laurent Pinchart ___

Re: [PATCH v1 4/7] drm: remove include of drmP.h from bridge/dw_hdmi.h

2018-12-27 Thread Laurent Pinchart
Hi Sam, Thank you for the patch. On Wednesday, 26 December 2018 23:03:50 EET Sam Ravnborg wrote: > Add missing includes in dw_hdmi.h and > fix fallout in drivers. > > Signed-off-by: Sam Ravnborg > Cc: Archit Taneja > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: Da

Re: [PATCH v1 6/7] drm: remove include of drmP.h from drm_modeset_helper.h

2018-12-27 Thread Laurent Pinchart
: Archit Taneja > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Sean Paul > Cc: Kieran Bingham > --- > drivers/gpu/drm/arc/arcpgu_sim.c | 1 + > drivers/gpu/drm/bridge/cdns-dsi.c| 2 ++ > drivers/gpu/drm/drm

[PATCH] drm: rcar-du: Remove inclusion of drmP.h

2018-12-27 Thread Laurent Pinchart
forward declarations of structures. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c| 1 - drivers/gpu/drm/rcar-du/rcar_du_crtc.h| 1 - drivers/gpu/drm/rcar-du/rcar_du_drv.c | 1 - drivers/gpu/drm/rcar-du/rcar_du_drv.h | 1 + drivers/gpu/drm/rcar-du

Re: [PATCH v2] drm: un-inline drm_legacy_findmap()

2018-12-30 Thread Laurent Pinchart
avoid including drm_device.h by un-inlining (Daniel) It would be nice to explain why you de-inline the function (I assume because it's a bit too large). Reviewed-by: Laurent Pinchart > Cc: Sam Ravnborg > Cc: Daniel Vetter > Cc: Laurent Pinchart > Signed-off-by: Jani Nikula > ---

Re: [PATCH 3/6] drm: include idr.h from drm_file.h

2018-12-30 Thread Laurent Pinchart
to make drm_file.h self-contained." Reviewed-by: Laurent Pinchart > Cc: Sam Ravnborg > Cc: Daniel Vetter > Cc: Laurent Pinchart > Signed-off-by: Jani Nikula > --- > include/drm/drm_file.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/drm/drm

Re: [PATCH 4/6] drm: include types.h from drm_hdcp.h

2018-12-30 Thread Laurent Pinchart
luding linux/kernel.h. This prepares for dropping drmP.h from files including drm_hdcp.h." Reviewed-by: Laurent Pinchart > Cc: Sam Ravnborg > Cc: Daniel Vetter > Cc: Laurent Pinchart > Signed-off-by: Jani Nikula > --- > include/drm/drm_hdcp.h | 2 ++ > 1 file changed, 2

Re: [PATCH v2] drm: forward declare struct drm_file in drm_syncobj.h

2018-12-30 Thread Laurent Pinchart
Hi Jani, Thank you for the patch. On Friday, 28 December 2018 10:28:15 EET Jani Nikula wrote: > Make it easier to drop drmP.h includes. Switch from "" to <> includes > while at it. > > v2: forward declare instead of including drm_file.h (Daniel) Reviewed-by: Lau

Re: [PATCH 0/6] drm/i915: drmP.h include removal w/ drm prep work

2019-01-02 Thread Laurent Pinchart
It's also included in drm-tip now. > > So I did this *before* I got the review feedback from Laurent, based on > Daniel's review only. Would you all like me to redo the branch with > Laurent's comments addressed and r-b added? If you think my comments are valuable, th

Re: [PATCH 0/6] omapdrm: drm_bridge and drm_panel support

2019-01-10 Thread Laurent Pinchart
Hi Sebastian, On Thursday, 20 December 2018 14:17:27 EET Sebastian Reichel wrote: > Hi, > > On Mon, Dec 10, 2018 at 03:06:17AM +0200, Laurent Pinchart wrote: > > This patch series hooks up support for drm_bridge and drm_panel in the > > omapdrm driver. > > &

[PATCH v2 13/49] drm/omap: Reverse direction of the DSS device enable/disable operations

2019-01-10 Thread Laurent Pinchart
utput devices only. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- Changes since v1: - Shutdown pipelines starting at the output device --- .../omapdrm/displays/connector-analog-tv.c| 21 -- .../gpu/drm/omapdrm/displays/connector-dvi.c

[PATCH v2 14/49] drm/omap: Remove omap_dss_device dst field

2019-01-10 Thread Laurent Pinchart
The field is only used in a safety check during device connection/disconnection, where the src field can be easily used instead. Remove it and use src. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c| 6

[PATCH v2 15/49] drm/omap: Factor out common init/cleanup code for output devices

2019-01-10 Thread Laurent Pinchart
All the internal encoders share common init and cleanup code. Factor it out to separate functions. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dpi.c | 17 +++-- drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCH v2 05/49] drm/omap: Remove declaration of nonexisting function

2019-01-10 Thread Laurent Pinchart
The omap_connector_attached_encoder() doesn't exist anymore, remove its declaration from omap_connector.h. Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_connector.h | 2 -- 1 file changed, 2 deletions(-)

<    5   6   7   8   9   10   11   12   13   14   >