[PATCH v4 48/80] drm/omap: dsi: simplify pin config

2020-11-24 Thread Tomi Valkeinen
a pointless conversion and means the pins can be configured earlier. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 37 ++- drivers/gpu/drm/omapdrm/dss/omapdss.h | 15 --- 2 files

[PATCH v4 64/80] drm/omap: dsi: cleanup channel usages

2020-11-24 Thread Tomi Valkeinen
annel" 2) "vc" 3) "dispc_channel" This patch is mostly about renaming things, but as in some places 1) and 2) have gotten mixed up, additional changes were needed to untangle them. This is mostly just adding a new parameter to some functions so that we pass both the vc and the

[PATCH v4 75/80] drm/omap: dsi: rename dsi_display_* functions

2020-11-24 Thread Tomi Valkeinen
The function names have evolved to be very confusing, and bunch of them have "display" in them even if the function doesn't deal with display as such (e.g. dsi_display_enable which just enables the DSI interface). Rename them by dropping the "display". Signed-off-by: Tomi Val

[PATCH v4 80/80] drm/omap: dsi: fix DCS_CMD_ENABLE

2020-11-24 Thread Tomi Valkeinen
We only need to set VC_CTRL:DCS_CMD_ENABLE for command mode panels when the HW has DSI_QUIRK_DCS_CMD_CONFIG_VC quirk. The old code did this right by accident, but now we set DCS_CMD_ENABLE for video mode panels too. Fix this by skipping the set for video mode. Signed-off-by: Tomi Valkeinen

[PATCH v4 73/80] drm/omap: dsi: display_enable cleanup

2020-11-24 Thread Tomi Valkeinen
We can drop dsi_display_enable(), which just calls _dsi_display_enable(), and rename _dsi_display_enable() to dsi_display_enable(). Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH v4 71/80] drm/omap: dsi: move structs & defines to dsi.h

2020-11-24 Thread Tomi Valkeinen
Move structs and defines to a private dsi.h header file to make dsi.c a bit easier to navigate. Also move the (now) private structs and defines from omapdss.h to dsi.h. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 384 +- drivers/gpu/drm/omapdrm

[PATCH v4 74/80] drm/omap: dsi: display_disable cleanup

2020-11-24 Thread Tomi Valkeinen
We can drop dsi_display_disable() which just calls _dsi_display_disable(), and rename _dsi_display_disable() to dsi_display_disable(). Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git

[PATCH v4 50/80] drm/omap: squash omapdrm sub-modules into one

2020-11-24 Thread Tomi Valkeinen
ct); /* - * Components Handling @@ -290,7 +274,6 @@ void omapdss_gather_components(struct device *dev) for_each_available_child_of_node(dev->of_node, child) omapdss_walk_device

[PATCH v4 69/80] drm/panel: panel-dsi-cm: add panel database to driver

2020-11-24 Thread Tomi Valkeinen
Add a panel database to the driver instead of reading propertes from DT data. This is similar to panel-simple, and I believe it's more future safe way to handle the panels. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-dsi-cm.c | 107 +-- 1 file changed

[PATCH v4 56/80] drm/panel: panel-dsi-cm: cleanup tear enable

2020-11-24 Thread Tomi Valkeinen
Simplify the code by moving code from _dsicm_enable_te() into dsicm_power_on(). Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-dsi-cm.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.c b/drivers/gpu

[PATCH v4 54/80] drm/omap: remove dss_mgr_ops

2020-11-24 Thread Tomi Valkeinen
dss_mgr_ops was needed with the multi-module architecture, but is no longer needed. We can thus remove it and use direct calls. Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dss.h | 1 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 42

[PATCH v4 59/80] drm/omap: dsi: set trans_mode according to client mode_flags

2020-11-24 Thread Tomi Valkeinen
The DSI host driver currently ignores the video mode flags in client->mode_flags. Add the code to take the transfer mode from client's mode_flags. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/

[PATCH v4 76/80] drm/omap: dsi: cleanup initial vc setup

2020-11-24 Thread Tomi Valkeinen
As we now have a fixed setup for VCs (VC0 for video stream, VC1 for commands), we can simplify the VC setup. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 85 +++ 1 file changed, 31 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v4 62/80] drm/omap: dsi: simplify VC handling

2020-11-24 Thread Tomi Valkeinen
mipi_dsi_device pointer and remove the for loops which made passes over all the four VCs (just the first one was ever used). Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 49 --- 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/drivers

[PATCH v4 66/80] drm/omap: dsi: set LP/HS before update

2020-11-24 Thread Tomi Valkeinen
a frame update. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index c3f13226ac26..41d6231d6e31 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b

[PATCH v4 77/80] drm/omap: dsi: split video mode enable/disable into separate func

2020-11-24 Thread Tomi Valkeinen
Clean up the code by separating video-mode enable/disable code into functions of their own. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 101 +- 1 file changed, 57 insertions(+), 44 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCH v4 57/80] ARM: dts: omap5: add address-cells & size-cells to dsi

2020-11-24 Thread Tomi Valkeinen
Add address-cells & size-cells to DSI nodes so that board files do not need to define them. Signed-off-by: Tomi Valkeinen Cc: Tony Lindgren --- arch/arm/boot/dts/omap5.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.

[PATCH v4 58/80] drm/omap: pll: fix iteration loop check

2020-11-24 Thread Tomi Valkeinen
If the PLL calc function is given bad parameters, n_start/m_start may be higher than n_stop/m_stop, which leads to the loops iterating through the whole u32 number space. Fix this by failing early on such cases. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/pll.c | 6 ++ 1

[PATCH v4 44/80] drm/omap: drop unused DSS next pointer

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Since all encoders and panels are using the bridge API now, we next pointer is no longer useful and can be dropped. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/base.c | 2

[PATCH v4 68/80] drm/panel: panel-dsi-cm: remove extra 'if'

2020-11-24 Thread Tomi Valkeinen
We have a useless 'if' in the dsicm_bl_update_status(), a left over from the conversion to DRM model. Drop the if. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-dsi-cm.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH v4 63/80] drm/omap: dsi: drop useless channel checks

2020-11-24 Thread Tomi Valkeinen
A DSI peripheral can have virtual channel ID of 0-3. This should be always the case, and there's no need in the driver to validate the channel. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v4 55/80] drm/panel: panel-dsi-cm: use MIPI_DCS_GET_ERROR_COUNT_ON_DSI

2020-11-24 Thread Tomi Valkeinen
Use the common MIPI_DCS_GET_ERROR_COUNT_ON_DSI define instead of driver's own. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-dsi-cm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.c b/drivers/gpu/drm/panel/panel-dsi

[PATCH v4 61/80] drm/omap: dsi: send nop instead of page & column

2020-11-24 Thread Tomi Valkeinen
feature/issue with OMAP DSI driver, or a feature/issue in the command mode panel used. So this probably needs to be revisited later. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 41 +-- 1 file changed, 12 insertions(+), 29 deletions(-) di

[PATCH v4 65/80] drm/omap: dsi: skip dsi_vc_enable_hs when already in correct mode

2020-11-24 Thread Tomi Valkeinen
Simplify and optimize dsi_vc_enable_hs() so that it can be called without checking the current HS/LP mode. Make dsi_vc_enable_hs() return if the VC is already in the correct mode. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 10 -- 1 file changed, 4 insertions

[PATCH v4 53/80] drm/omap: remove dispc_ops

2020-11-24 Thread Tomi Valkeinen
dispc_ops was created to help with the multi-module architecture and giving us the possibility of multiple dispc implementations. Neither of these is valid anymore, and we can remove dispc_ops and use direct calls to dispc. Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart --- drivers

[PATCH v4 60/80] drm/panel: panel-dsi-cm: set column & page at setup

2020-11-24 Thread Tomi Valkeinen
Set the column & page address once during setup, instead of relying the DSI host driver to set those. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-dsi-cm.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.

[PATCH v4 45/80] drm/omap: drop DSS ops_flags

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The omapdss device's ops_flags field is no longer used and can be dropped. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 9 - drivers/gpu/drm/omapdrm/dss/venc.c| 1

[PATCH v4 51/80] drm/omap: remove unused display.c

2020-11-24 Thread Tomi Valkeinen
The functions in display.c are not used, so drop the file. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/Makefile | 2 +- drivers/gpu/drm/omapdrm/dss/display.c | 58 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 4 -- 3

[PATCH v4 49/80] ARM: omap2plus_defconfig: Update for moved DSI command mode panel

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The DSI command mode panel is no longer specific to OMAP and thus the config option has been renamed slightly. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Cc: Tony Lindgren Reviewed-by: Laurent Pinchart --- arch/arm/configs/omap2plus_defconfig | 2

[PATCH v4 47/80] drm/omap: simplify DSI manual update code

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Move dsi_ops into the main structure, since all other ops are gone. Instead of checking the device type we can simply check if dsi_ops are set. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm

[PATCH v4 36/80] drm/omap: panel-dsi-cm: support unbinding

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Now, that the driver implements the common DRM panel API the unbind no longer needs to be suppressed. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 5 ++--- 1 file

[PATCH v4 35/80] drm/omap: panel-dsi-cm: use DEVICE_ATTR_RO

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Use DEVICE_ATTR_RO helper instead of plain DEVICE_ATTR, which makes the code a bit shorter and easier to read. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 8

[PATCH v4 52/80] drm/omap: drop unused owner field

2020-11-24 Thread Tomi Valkeinen
dssdev->owner is set, but never used. We can drop the field. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dpi.c | 1 - drivers/gpu/drm/omapdrm/dss/dsi.c | 1 - drivers/gpu/drm/omapdrm/dss/hdmi4.c | 1 - drivers/gpu/drm/omapdrm/dss/hd

[PATCH v4 40/80] drm/omap: dsi: Register a drm_bridge

2020-11-24 Thread Tomi Valkeinen
Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 134 -- 1 file changed, 89 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 549386f3897b

[PATCH v4 41/80] drm/omap: remove legacy DSS device operations

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel All DSS devices have been converted to bridge API, so the device operations are always NULL. This removes the device ops function pointers and all code using it. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers

[PATCH v4 34/80] drm/omap: dsi: implement check timings

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Implement check timings, which will check if it's possible to configure the clocks for the provided mode using the same code as the set_config() hook. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dsi.c | 70

[PATCH v4 28/80] drm/omap: dsi: do ULPS in host driver

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Move ULPS handling into the DSI host controller, so that we no longer need a custom API for the DSI client. Note that for now ULPS is always disabled. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart --- .../gpu/drm/omapdrm

[PATCH v4 46/80] drm/omap: drop dssdev display field

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel All displays are now using a drm_panel or a drm_bridge that models the connector instead of dssdev, so this field is always 0 and can be dropped. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm

[PATCH v4 38/80] drm/omap: remove global dss_device variable

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel We can simply provide the device to the omapdrm driver via pdata. omapdss_is_initialized() is no longer required (even before this patch), since omapdrm device is only registered after the pointer is initialized. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi

[PATCH v4 39/80] drm/panel: Move OMAP's DSI command mode panel driver

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The panel driver is no longer using any OMAP specific APIs, so let's move it into the generic panel directory. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Cc: Thierry Reding Cc: Sam Ravnborg Acked-by: Sam Ravnborg Acked-by: Laurent Pinchart

[PATCH v4 26/80] drm/omap: dsi: do bus locking in host driver

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This moves the bus locking into the host driver and unexports the custom API in preparation for drm_panel support. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 44 +-- drivers/gpu

[PATCH v4 31/80] drm/omap: dsi: drop custom panel capability support

2020-11-24 Thread Tomi Valkeinen
. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 3 --- drivers/gpu/drm/omapdrm/dss/dsi.c | 8 drivers/gpu/drm/omapdrm/dss/omapdss.h | 8 +--- drivers/gpu/drm

[PATCH v4 32/80] drm/omap: dsi: convert to drm_panel

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This converts the DSI module to expect common drm_panel display drivers instead of dssdev based ones. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 203 +++--- drivers/gpu/drm/omapdrm/dss

[PATCH v4 33/80] drm/omap: drop omapdss-boot-init

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The table of compatible values needed to be prefixed with "omapdss," is empty, so all of this code is doing nothing now. Let's drop it. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/o

[PATCH v4 29/80] drm/omap: dsi: move panel refresh function to host

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This moves the panel refresh/update function from the panel driver into the DSI host driver to prepare for common drm_panel support. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 68

[PATCH v4 42/80] drm/omap: remove unused omap_connector

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Remove unused code. Connectors are now created via drm_bridge_connector_init() and no longer OMAP specific. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/Makefile | 1 - drivers/gpu

[PATCH v4 21/80] drm/omap: dsi: use pixel-format and mode from attach

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel In order to reduce the amount of custom functionality, this moves handling of pixel format and DSI mode from set_config() to dsi attach. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 -- drivers

[PATCH v4 25/80] drm/omap: dsi: drop custom enable_te() API

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Instead of using the custom enable_te() API, this automatically enables/disables TE core support when a matching packet is sent to the panel. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays

[PATCH v4 37/80] drm/omap: panel-dsi-cm: fix remove()

2020-11-24 Thread Tomi Valkeinen
-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index 19d629a976c5..35a0c7da1974

[PATCH v4 20/80] drm/omap: dsi: drop useless sync()

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The DSI sync() function only locks the bus and then releases it again. Currently the only invocation is directly before update(), which locks the bus anyways. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi

[PATCH v4 19/80] drm/omap: dsi: drop unused enable_te()

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel enable_te() is not used, so the custom API can be dropped. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 39 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 - 2 files changed

[PATCH v4 22/80] drm/omap: panel-dsi-cm: use bulk regulator API

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Use bulk regulator API to simplify the code. This also switches from _optional variant to normal variant, which will provide a dummy regulator (i.e. if some always-enabled regulator is not described in DT). Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen

[PATCH v4 10/80] drm/omap: dsi: simplify read functions

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Simplify the read related message handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 110

[PATCH v4 16/80] drm/omap: panel-dsi-cm: use common MIPI DCS 1.3 defines

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Drop local definition of common MIPI DCS 1.3 defines. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[PATCH v4 14/80] drm/omap: dsi: request VC via mipi_dsi_attach

2020-11-24 Thread Tomi Valkeinen
the latter will get dropped. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 24 +--- drivers/gpu/drm/omapdrm/dss/dsi.c | 61 --- drivers/gpu/drm/omapdrm/dss/omapdss.h

[PATCH v4 30/80] drm/omap: dsi: Reverse direction of the DSS device enable/disable operations

2020-11-24 Thread Tomi Valkeinen
nel driver moving it a bit further to a standard drm_panel driver. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 74 +-- drivers/gpu/drm/omapdrm/omap_encoder.c| 28 ++

[PATCH v4 23/80] drm/omap: dsi: lp/hs switching support for transfer()

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Integrate low-power / high-speed bus switching into transfer function and drop the omapdrm specific enable_hs() callback. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[PATCH v4 11/80] drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Simplify the DSI encoder by using mipi_dsi_msg for dsi_vc_send_long and dsi_vc_send_short. Further improvements require cleaning up the channel allocation code first. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart

[PATCH v4 05/80] drm/omap: dsi: add generic transfer function

2020-11-24 Thread Tomi Valkeinen
patches. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 54 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 3 ++ 2 files changed, 57 insertions(+) diff --git a/drivers/gpu/drm/omapdrm

[PATCH v4 24/80] drm/omap: dsi: move TE GPIO handling into core

2020-11-24 Thread Tomi Valkeinen
acquisition follows works in the same way as the exynos DSI implementation. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 103 +--- drivers/gpu/drm/omapdrm/dss/dsi.c | 146 -- 2 files changed

[PATCH v4 13/80] drm/omap: panel-dsi-cm: use DSI helpers

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel After converting the driver to mipi_dsi_device we can use the generic message helpers to simplify the driver a lot. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 125

[PATCH v4 27/80] drm/omap: dsi: untangle ulps ops from enable/disable

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Create a custom function pointer for ULPS and use it instead of reusing disable/enable functions for ULPS mode switch. This allows us to use the common disable/enable functions pointers for DSI. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen

[PATCH v4 15/80] drm/omap: panel-dsi-cm: drop hardcoded VC

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Use dsi->channel everywhere, which originates from DT. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 20 +++ 1 file changed, 7 insertions(+),

[PATCH v4 08/80] drm/omap: dsi: drop virtual channel logic

2020-11-24 Thread Tomi Valkeinen
fter which we can do that work with the proper APIs. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11 ++--- drivers/gpu/drm/omapdrm/dss/dsi.c | 46 --- drivers/gpu/d

[PATCH v4 17/80] drm/omap: dsi: drop unused memory_read()

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel memory_read is not used, so we can drop the code. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 93 --- drivers/gpu/drm/omapdrm/dss/omapdss.h

[PATCH v4 18/80] drm/omap: dsi: drop unused get_te()

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The get_te() callback is not used, so we can drop the custom API. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 13 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - 2 files

[PATCH v4 09/80] drm/omap: dsi: simplify write function

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel Simplify the write related messages handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/Kconfig | 1 + drivers/gpu/drm

[PATCH v4 12/80] drm/omap: dsi: introduce mipi_dsi_host

2020-11-24 Thread Tomi Valkeinen
-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 121 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 53 ++-- drivers/gpu/drm/omapdrm/dss/omapdss.h | 4 - 3 files changed, 102 insertions

[PATCH v4 03/80] drm/omap: dsi: use MIPI_DSI_FMT_* instead of OMAP_DSS_DSI_FMT_*

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This replaces OMAP specific enum for pixel format with common implementation. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 +- drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCH v4 02/80] drm/omap: drop unused dsi.configure_pins

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The panel-dsi-cm's ddata->pin_config is always NULL, so this callback is never called. Instead the DSI encoder gets the pin configuration directly from DT. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/

[PATCH v4 06/80] drm/omap: panel-dsi-cm: convert to transfer API

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This converts the panel-dsi-cm driver to use the transfer API instead of specific functions, so that the specific functions can be unexported and squashed into the generic transfer function. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Acked

[PATCH v4 07/80] drm/omap: dsi: unexport specific data transfer functions

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel After converting all DSI drivers, unexport the specific transfer functions. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 12 drivers/gpu/drm/omapdrm/dss/omapdss.h

[PATCH v4 04/80] drm/omap: constify write buffers

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel The write buffers are not modified, so they can be constant. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dsi.c | 24 drivers/gpu/drm/omapdrm/dss/omapdss.h

[PATCH v4 01/80] Revert "drm/omap: dss: Remove unused omap_dss_device operations"

2020-11-24 Thread Tomi Valkeinen
From: Sebastian Reichel This reverts commit e086558ae923 ("drm/omap: dss: Remove unused omap_dss_device operations") This is still needed by DSI. E.g. unloading modules without this will cause a crash. Signed-off-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen Reviewed-b

[PATCH v4 00/80] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-24 Thread Tomi Valkeinen
moved DSI command mode panel Tomi Valkeinen (31): drm/omap: squash omapdrm sub-modules into one drm/omap: remove unused display.c drm/omap: drop unused owner field drm/omap: remove dispc_ops drm/omap: remove dss_mgr_ops drm/panel: panel-dsi-cm: use MIPI_DCS_GET_ERROR_COUNT_ON_DSI

[PATCH RESEND v3 0/2] drm: add DisplayPort connector

2020-11-24 Thread Tomi Valkeinen
Hi, This series adds the DT bindings and a driver for DisplayPort connector. This is a resend of https://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg326794.html with no changes (rebased on top of latest drm-misc). Tomi Tomi Valkeinen (2): dt-bindings: dp-connector: add binding

[PATCH RESEND v3 2/2] drm/bridge: display-connector: add DP support

2020-11-24 Thread Tomi Valkeinen
-off-by: Tomi Valkeinen --- drivers/gpu/drm/bridge/display-connector.c | 46 +- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/display-connector.c b/drivers/gpu/drm/bridge/display-connector.c index 4d278573cdb9..04362feccd75 100644

[PATCH RESEND v3 1/2] dt-bindings: dp-connector: add binding for DisplayPort connector

2020-11-24 Thread Tomi Valkeinen
don't want to guess what it could look like, and could it be part of the dp-connector binding. * No DP++. I'm not familiar with DP++. DP++ might need an i2c bus added to the bindings. Signed-off-by: Tomi Valkeinen Cc: Rob Herring --- .../display/connector/dp-connector.yaml

Re: [PATCH v3 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-23 Thread Tomi Valkeinen
required in other places. > > Signed-off-by: Nikhil Devshatwar > Reviewed-by: Swapnil Jakhade Reviewed-by: Tomi Valkeinen I think this is fine as a fix for this issue, but at some point the irq management needs some work. E.g. we call cdns_mhdp_bridge_hpd_enable when attaching/enablin

Re: [PATCH v1 0/4] Add bus format negotiation support for Cadence MHDP8546 driver

2020-11-16 Thread Tomi Valkeinen
Hi, On 13/11/2020 11:46, Yuti Amonkar wrote: > This patch series add bus format negotiation support for Cadence MHDP8546 > bridge > driver. > > The patch series has four patches in the below sequence: > 1. drm: bridge: cdns-mhdp8546: Add output bus format negotiation > Add minimal output bus

Re: [PATCH v3 30/56] drm/omap: dsi: move panel refresh function to host

2020-11-12 Thread Tomi Valkeinen
On 11/11/2020 17:58, Laurent Pinchart wrote: diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index 030a8fa140db..1582960f9e90 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++

Re: [PATCH v3 33/56] drm/omap: dsi: convert to drm_panel

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 12:39, Laurent Pinchart wrote: > On Thu, Nov 05, 2020 at 02:03:10PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> This converts the DSI module to expect common drm_panel display >> drivers instead of dssdev based ones. >> &g

Re: [PATCH v3 30/56] drm/omap: dsi: move panel refresh function to host

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 12:10, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:07PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> This moves the panel refresh/update function from the panel &

Re: [PATCH v3 29/56] drm/omap: dsi: do ULPS in host driver

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 12:03, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:06PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> Move ULPS handling into the DSI host controller, so that

Re: [PATCH v3 28/56] drm/omap: dsi: untangle ulps ops from enable/disable

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 11:57, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:05PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> Create a custom function pointer for ULPS and use it ins

Re: [PATCH v3 27/56] drm/omap: dsi: do bus locking in host driver

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 15:27, Sebastian Reichel wrote: > Hi, > > On Mon, Nov 09, 2020 at 12:08:33PM +0200, Tomi Valkeinen wrote: >> On 09/11/2020 11:52, Laurent Pinchart wrote: >>> Hi Tomi, >>> >>> Thank you for the patch. >>> >>> On Thu, Nov 0

Re: [PATCH v3 25/56] drm/omap: dsi: move TE GPIO handling into core

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 11:19, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:02PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> In preparation for removing custom DSS calls from the DSI &g

Re: [PATCH v3 35/56] drm/omap: dsi: implement check timings

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 12:47, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:12PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> Implement check timings, which will check if its possible to

Re: [PATCH v3 50/56] drm/omap: dsi: simplify pin config

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 13:09, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > Thank you for the patch. > > On Thu, Nov 05, 2020 at 02:03:27PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> Simplify DSI pin config, which always originates from DT >&

Re: [PATCH v3 37/56] drm/omap: panel-dsi-cm: support unbinding

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 12:49, Laurent Pinchart wrote: > Hi Tomi and Sebastian, > > On Thu, Nov 05, 2020 at 02:03:14PM +0200, Tomi Valkeinen wrote: >> From: Sebastian Reichel >> >> Now, that the driver implements the common DRM panel API >> the unbind no longer needs t

Re: [PATCH v2 5/6] drm/tidss: Move to newer connector model

2020-11-11 Thread Tomi Valkeinen
nce to > create the connector and attach bridges with flag > DRM_BRIDGE_ATTACH_NO_CONNECTOR > > Signed-off-by: Nikhil Devshatwar > --- > drivers/gpu/drm/tidss/tidss_drv.h | 3 +++ > drivers/gpu/drm/tidss/tidss_kms.c | 19 ++- > 2 files changed, 21 insertions(

Re: [PATCH v2 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-11-11 Thread Tomi Valkeinen
On 09/11/2020 19:05, Nikhil Devshatwar wrote: > When there is a chain of bridges attached to the encoder, > the bus_format should be ideally set from the input format of the > first bridge in the chain. > > Use the bridge state to get the negotiated bus_format. > If the bridge does not support

Re: [PATCH v2 3/6] drm/bridge: mhdp8546: Add minimal format negotiation

2020-11-11 Thread Tomi Valkeinen
, > .atomic_destroy_state = cdns_mhdp_bridge_atomic_destroy_state, > .atomic_reset = cdns_mhdp_bridge_atomic_reset, > + .atomic_get_input_bus_fmts = cdns_mhdp_get_input_bus_fmts, > .detect = cdns_mhdp_bridge_detect, > .get_edid = cdns_mhdp_bridge_get_edid,

Re: [PATCH v2 2/6] drm/bridge: tfp410: Support format negotiation hooks

2020-11-11 Thread Tomi Valkeinen
10 *dvi = drm_bridge_to_tfp410(bridge); > + u32 *input_fmts; > + > + *num_input_fmts = 0; > + > + /* > + * Output of tfp410 is DVI, which is TMDS. > + * There is no media format defined for this > + * Using MEDIA_BUS_FMT_FIXED for now > + */ Please fix the missing

Re: [PATCH v2 1/6] drm: bridge: Propagate the bus flags from bridge->timings

2020-11-11 Thread Tomi Valkeinen
ould be more clear. Maybe something like: If legacy bus flags are provided in bridge->timings, use those as input flags instead of propagating the output flags. Other than that: Reviewed-by: Tomi Valkeinen Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Busin

Re: [PATCH v3 00/56] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-11 Thread Tomi Valkeinen
On 11/11/2020 09:48, H. Nikolaus Schaller wrote: > >> Am 11.11.2020 um 07:40 schrieb Tomi Valkeinen : >> >> On 10/11/2020 23:04, H. Nikolaus Schaller wrote: >>> >>>> Am 10.11.2020 um 17:52 schrieb Tomi Valkeinen : >>>> >>>> On 1

Re: [PATCH v3 00/56] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-11 Thread Tomi Valkeinen
On 10/11/2020 23:04, H. Nikolaus Schaller wrote: > >> Am 10.11.2020 um 17:52 schrieb Tomi Valkeinen : >> >> On 10/11/2020 18:49, H. Nikolaus Schaller wrote: >> >> I guess you have the same issue. It goes to dsi_bridge_mode_valid, then >> __dsi_calc_config,

Re: [PATCH v3 00/56] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-10 Thread Tomi Valkeinen
On 10/11/2020 18:49, H. Nikolaus Schaller wrote: > >> Am 10.11.2020 um 14:49 schrieb H. Nikolaus Schaller : >> >> Hi Tomi, >> >>> Am 09.11.2020 um 12:33 schrieb Tomi Valkeinen : >>> >>> On 09/11/2020 13:09, H. Nikolaus Schaller wrote: >>

Re: [PATCH v3 00/56] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-10 Thread Tomi Valkeinen
On 10/11/2020 15:49, H. Nikolaus Schaller wrote: > I did now some tests based on v5.10-rc3 by adding mre and more printk() and > dump_stack(). > And I did blacklist the panel driver so that I could boot and after > modprobing it manually > I could trigger a re-probe by inserting some USB memory

Re: [PATCH 0/4] drm/omap: fix reference leak in runtime get ops

2020-11-10 Thread Tomi Valkeinen
Hi, On 10/11/2020 14:51, Zhang Qilong wrote: > This series of patches fixed several usage counter leaks refer to > pm_runtime_get_sync. Many callers forget to call pm_runtime_put_noidle > when pm_runtime_get_sync failed, and we fixed it. > > Zhang Qilong (4): > drm: omapdrm: dsi:

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