Re: [PATCH 0/7] drm: Extend COMPILE_TEST support to some ARM drivers

2021-07-28 Thread Tomi Valkeinen
On 28/07/2021 18:37, Laurent Pinchart wrote: Hello, This patch series stems from subsystem-wide changes I wanted to compile-test with an ARM64 cross-compiler. My laziness to fire a 32-bit ARM build probably resulted in more time being spent writing these patches, but hopefully they'll turn out t

Re: [PATCH 1/7] drm/omap: Cast pointer to integer safely

2021-07-28 Thread Tomi Valkeinen
On 28/07/2021 18:37, Laurent Pinchart wrote: On 64-bit platforms, the compiler complains that casting a void pointer to an unsigned int loses data. Cast the pointer to a uintptr_t unsigned to fix this. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.c | 2 +- 1 file chan

Re: [PATCH 10/14] drm/tidss: Convert to Linux IRQ interfaces

2021-07-29 Thread Tomi Valkeinen
by: Thomas Zimmermann --- drivers/gpu/drm/tidss/tidss_drv.c | 15 +-- drivers/gpu/drm/tidss/tidss_drv.h | 2 ++ drivers/gpu/drm/tidss/tidss_irq.c | 27 --- drivers/gpu/drm/tidss/tidss_irq.h | 4 +--- 4 files changed, 32 insertions(+), 16 deletions(-) Reviewe

Re: [PATCH] drm/bridge: Centralize error message when bridge attach fails

2021-04-14 Thread Tomi Valkeinen
/tidss_kms.c | 4 +--- drivers/gpu/drm/tilcdc/tilcdc_external.c | 4 +--- drivers/gpu/drm/vc4/vc4_dsi.c | 4 +--- 26 files changed, 33 insertions(+), 103 deletions(-) Reviewed-by: Tomi Valkeinen Tomi

Re: [PATCHv2 1/6] drm: drm_bridge: add connector_attach/detach bridge ops

2021-04-16 Thread Tomi Valkeinen
Hi Hans, On 02/03/2021 18:23, Hans Verkuil wrote: Add bridge connector_attach/detach ops. These ops are called when a bridge is attached or detached to a drm_connector. These ops can be used to register and unregister an HDMI CEC adapter for a bridge that supports CEC. Signed-off-by: Hans Verku

Re: [PATCHv2 2/6] drm/omapdrm/dss/hdmi4: switch to the connector bridge ops

2021-04-16 Thread Tomi Valkeinen
/gpu/drm/omapdrm/dss/hdmi4.c | 27 + drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 9 ++--- drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h | 7 --- 3 files changed, 29 insertions(+), 14 deletions(-) Reviewed-by: Tomi Valkeinen Tomi

Re: [PATCH 18/40] drm/omapdrm/omap_irq: Fix a couple of incorrectly documented functions

2021-04-23 Thread Tomi Valkeinen
prototype for disable_vblank(). Prototype was for omap_irq_disable_vblank() instead Cc: Tomi Valkeinen Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/omapdrm/omap_irq.c | 4 ++-- 1 file changed, 2 insertions

Re: [PATCH 19/40] drm/omapdrm/omap_gem: Properly document omap_gem_dumb_map_offset()

2021-04-23 Thread Tomi Valkeinen
On 16/04/2021 17:37, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/omapdrm/omap_gem.c:619: warning: expecting prototype for omap_gem_dumb_map(). Prototype was for omap_gem_dumb_map_offset() instead Cc: Tomi Valkeinen Cc: David Airlie Cc: Daniel Vetter

Re: [PATCH] drm/omap: Fix issue with clocks left on after resume

2021-04-27 Thread Tomi Valkeinen
Hi Tony, On 26/04/2021 17:12, Tony Lindgren wrote: On resume, dispc pm_runtime_force_resume() is not enabling the hardware as we pass the pm_runtime_need_not_resume() test as the device is suspended with no child devices. As the resume continues, omap_atomic_comit_tail() calls dispc_runtime_get

Re: [PATCHv2] drm/omap: Fix issue with clocks left on after resume

2021-05-03 Thread Tomi Valkeinen
On 29/04/2021 07:46, Tony Lindgren wrote: Hi, * Laurent Pinchart [210428 14:10]: Based on my experience on the camera and display side with devices that are made of multiple components, suspend and resume are best handled in a controlled way by the top-level driver. Otherwise you end up having

Re: [PATCHv1] drm/omap: get fbdev working for manually updated display

2021-05-03 Thread Tomi Valkeinen
On 01/05/2021 23:00, Sebastian Reichel wrote: Running a legacy application, which directly uses /dev/fb0 currently results in display not being refreshed when the application mmaps the memory instead of calling write(). Deferred IO support will also schedule dirty_work with the damage collected

Re: [PATCH v2 1/9] drm/omap: Use correct printk format specifiers for size_t

2021-08-04 Thread Tomi Valkeinen
en + 4) { @@ -2390,7 +2390,7 @@ static int dsi_vc_generic_read(struct omap_dss_device *dssdev, int vc, return 0; err: - DSSERR("%s(vc %d, reqlen %d) failed\n", __func__, vc, msg->tx_len); + DSSERR("%s(vc %d, reqlen %zu) failed\n", __func__, vc, msg->

Re: [PATCH v2 2/9] drm/omap: Cast pointer to integer without generating warning

2021-08-04 Thread Tomi Valkeinen
ed_workqueue("omapdrm", 0); mutex_init(&priv->list_lock); Reviewed-by: Tomi Valkeinen Tomi

Re: [PATCH v2 5/9] drm/omap: Enable COMPILE_TEST on all architectures

2021-08-04 Thread Tomi Valkeinen
DRM_OMAP tristate "OMAP DRM" depends on DRM - depends on ARCH_OMAP2PLUS || ARCH_MULTIPLATFORM + depends on ARCH_OMAP2PLUS || ARCH_MULTIPLATFORM || COMPILE_TEST select OMAP2_DSS select DRM_KMS_HELPER select VIDEOMODE_HELPERS Reviewe

Re: [PATCH] drm/omap: dsi: fix unsigned expression compared with zero

2021-03-16 Thread Tomi Valkeinen
On 14/03/2021 04:15, Laurent Pinchart wrote: Hi Junlin, Thank you for the patch. On Fri, Mar 12, 2021 at 03:14:45PM +0800, angkery wrote: From: Junlin Yang r is "u32" always >= 0,mipi_dsi_create_packet may return little than zero. so r < 0 condition is never accessible. Fixes coccicheck war

Re: [PATCH] drm/panel: panel-dsi-cm: disable TE for now

2021-03-16 Thread Tomi Valkeinen
Hi Sebastian, Sam, Thierry, On 27/02/2021 23:45, Sebastian Reichel wrote: From: Sebastian Reichel Disable TE for Droid 4 panel, since implementation is currently broken. Also disable it for N950 panel, which is untested. Reported-by: Tony Lindgren Reported-by: Tomi Valkeinen Fixes

Re: [PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-17 Thread Tomi Valkeinen
On 14/03/2021 17:13, Dario Binacchi wrote: As reported by TI spruh73x RM, the LCD pixel clock (LCD_PCLK) frequency is obtained by dividing LCD_CLK, the LCD controller reference clock, for CLKDIV: LCD_PCLK = LCD_CLK / CLKDIV where CLKDIV must be greater than 1. Therefore LCD_CLK must be set to

Re: [PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int'

2021-03-17 Thread Tomi Valkeinen
Hi, On 17/03/2021 11:48, ChunyouTang wrote: From: tangchunyou 1.the type of mipi_dsi_create_packet id int 2.u32 can not < 0 Signed-off-by: tangchunyou --- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.

Re: linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-03-17 Thread Tomi Valkeinen
On 18/03/2021 03:02, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/omapdrm/dss/dsi.c between commit: 690911544275 ("drm/omap: dsi: fix unsigned expression compared with zero") from the drm-misc-fixes tree and commit: bbd

Re: [PATCH v2 3/3] drm/tilcdc: fix pixel clock setting warning message

2021-03-22 Thread Tomi Valkeinen
On 21/03/2021 10:31, Dario Binacchi wrote: The warning message did not printed the LCD pixel clock rate but the LCD clock divisor input rate. As a consequence, the required and real pixel clock rates are now passed to the tilcdc_pclk_diff(). Signed-off-by: Dario Binacchi --- Changes in v2: -

Re: [PATCH v2 0/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-22 Thread Tomi Valkeinen
fixes a warning message. Thanks you, I think this looks good now. Reviewed-by: Jyri Sarha For the series. I'll wait a day or two if Tomi has something more to say and merge this to drm-misc-next. I had one comment about the print, but otherwise: Reviewed-by: Tomi Valkeinen

Re: [PATCH] drm/omap: fix misleading indentation in pixinc()

2021-03-26 Thread Tomi Valkeinen
On 22/03/2021 18:41, Arnd Bergmann wrote: From: Arnd Bergmann An old patch added a 'return' statement after each BUG() in this driver, which was necessary at the time, but has become redundant after the BUG() definition was updated to handle this properly. gcc-11 now warns about one such insta

Re: [PATCH v2] drm/omap: dsi: Add missing IRQF_ONESHOT

2021-03-26 Thread Tomi Valkeinen
On 23/03/2021 13:15, Sebastian Reichel wrote: Hi, On Tue, Mar 23, 2021 at 05:34:53PM +0800, Yang Li wrote: fixed the following coccicheck: ./drivers/gpu/drm/omapdrm/dss/dsi.c:4329:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Reported-by: Abaci Robot Signed-

Re: [PATCH] [v2] drivers: gpu: drm: Remove duplicate declaration

2021-03-26 Thread Tomi Valkeinen
On 25/03/2021 15:05, Laurent Pinchart wrote: Hi Wan, Thank you for the patch. On Thu, Mar 25, 2021 at 07:10:24PM +0800, Wan Jiabing wrote: struct dss_device has been declared. Remove the duplicate. And sort these forward declarations alphabetically. Signed-off-by: Wan Jiabing Reviewed-by:

Re: [PATCH] drm/panel: panel-dsi-cm: disable TE for now

2021-04-06 Thread Tomi Valkeinen
On 06/04/2021 16:51, Thierry Reding wrote: On Tue, Mar 16, 2021 at 04:11:30PM +0200, Tomi Valkeinen wrote: Hi Sebastian, Sam, Thierry, On 27/02/2021 23:45, Sebastian Reichel wrote: From: Sebastian Reichel Disable TE for Droid 4 panel, since implementation is currently broken. Also disable

Re: [PATCH v2] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-27 Thread Tomi Valkeinen
On 27/01/2021 03:51, menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the > 'r < 0' can't be true. > > Fix this by introducing a 'err' of type 'int' insteaded. > > Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/

Re: [PATCH] drm/tilcdc: send vblank event when disabling crtc

2021-01-28 Thread Tomi Valkeinen
Dropped the @ti.com addresses and added the new ones. Tomi On 29/01/2021 07:58, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > When run xrandr to change resolution on Beaglebone Black board, it will > print the error information: > > root@beaglebone:~# xrandr -display :0 --outpu

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

2021-02-10 Thread Tomi Valkeinen
On 08/02/2021 19:55, Tony Lindgren wrote: > Hi, > > * Tomi Valkeinen [201124 12:47]: >> From: Sebastian Reichel >> >> In preparation for removing custom DSS calls from the DSI >> panel driver, this moves support for external tearing event >> GPIOs int

Re: [PATCH] drm/tilcdc: fix raster control register setting

2021-02-15 Thread Tomi Valkeinen
Adding Jyri with the non-TI address. Tomi On 14/02/2021 15:16, Dario Binacchi wrote: > The fdd property of the tilcdc_panel_info structure must set the reqdly > bit field (bit 12 to 19) of the raster control register. The previous > statement set the least significant bit instead. > > Signed-o

Re: [RESEND PATCH] drm/tilcdc: fix raster control register setting

2021-02-16 Thread Tomi Valkeinen
ot blow up LCDC totally? The fix looks correct to me, but it will change the register value for boards that have apparently been working for years. Dario, did you test this on actual HW, or did you just spot the error? Reviewed-by: Tomi Valkeinen Tomi

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

2021-02-16 Thread Tomi Valkeinen
On 11/02/2021 19:35, Tony Lindgren wrote: > * Tomi Valkeinen [210211 07:35]: >> On 08/02/2021 19:55, Tony Lindgren wrote: >>> Hi, >>> >>> * Tomi Valkeinen [201124 12:47]: >>>> From: Sebastian Reichel >>>> >>>> In prepar

Re: [PATCH 5/5] ARM: dts: dra7/omap5: add cec clock

2021-02-19 Thread Tomi Valkeinen
Hi Hans, On 11/02/2021 12:37, Hans Verkuil wrote: > Add cec clock to the dra7 and omap5 device trees. > > Signed-off-by: Hans Verkuil > --- > arch/arm/boot/dts/dra7.dtsi | 5 +++-- > arch/arm/boot/dts/omap5.dtsi | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/ar

Re: [PATCH 4/5] drm/omap: hdmi5: add CEC support

2021-02-19 Thread Tomi Valkeinen
Hi Hans, On 11/02/2021 12:37, Hans Verkuil wrote: > Add HDMI CEC support for OMAP5. > > Many thanks to Tomi for helping out how to enable CEC for omap5. > > Signed-off-by: Hans Verkuil > Thanks-to: Tomi Valkeinen > --- > drivers/gpu/drm/omapdrm/dss/Kconfig |

Re: [PATCH 1/5] drm: drm_bridge: add cec_init/exit bridge ops

2021-02-19 Thread Tomi Valkeinen
idge_connector.c | 23 +++ > include/drm/drm_bridge.h | 31 ++ > 2 files changed, 54 insertions(+) Reviewed-by: Tomi Valkeinen Tomi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedeskt

Re: [PATCH 2/5] drm/omap: hdmi4: switch to the cec bridge ops

2021-02-19 Thread Tomi Valkeinen
> drivers/gpu/drm/omapdrm/dss/hdmi4.c | 28 + > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 8 --- > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h | 7 --- > 3 files changed, 28 insertions(+), 15 deletions(-) Revie

Re: [PATCH 3/5] drm/omap: hdmi4: simplify CEC Phys Addr handling

2021-02-19 Thread Tomi Valkeinen
--- > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 4 ++-- > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h | 5 +++-- > 3 files changed, 7 insertions(+), 15 deletions(-) Reviewed-by: Tomi Valkeinen Tomi ___ dri-devel mailing list dri-devel@

Re: [PATCH 0/5] drm/omap: hdmi: improve hdmi4 CEC, add CEC for hdmi5

2021-02-19 Thread Tomi Valkeinen
gt; >> arch/arm/boot/dts/dra7.dtsi | 5 +- >> arch/arm/boot/dts/omap5.dtsi | 5 +- >> drivers/gpu/drm/drm_bridge_connector.c | 23 +++ >> drivers/gpu/drm/omapdrm/dss/Kconfig | 8 + >> drivers/gpu/drm/omapdrm/dss/Makefile | 1 + &

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

2021-02-22 Thread Tomi Valkeinen
On 18/02/2021 07:57, Tony Lindgren wrote: > * Tomi Valkeinen [210217 07:42]: >> On 11/02/2021 19:35, Tony Lindgren wrote: >>> * Tomi Valkeinen [210211 07:35]: >>>> On 08/02/2021 19:55, Tony Lindgren wrote: >>>>> Hi, >>>>> >>&g

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

2021-02-26 Thread Tomi Valkeinen
On 25/02/2021 14:46, Tony Lindgren wrote: * Tomi Valkeinen [210222 08:47]: On 18/02/2021 07:57, Tony Lindgren wrote: Oh cool that you have those running again/still :) In this case there is no te-gpios if that might make a difference. No, GPIO TE is not used on OMAP4 SDP either. OK So

Re: [PATCH] drm/panel: panel-dsi-cm: disable TE for now

2021-03-02 Thread Tomi Valkeinen
On 27/02/2021 23:45, Sebastian Reichel wrote: From: Sebastian Reichel Disable TE for Droid 4 panel, since implementation is currently broken. Also disable it for N950 panel, which is untested. Reported-by: Tony Lindgren Reported-by: Tomi Valkeinen Fixes: 4c1b935fea54 ("drm/omap: dsi:

Re: [PATCHv2 4/6] dt-bindings: display: ti: ti, omap5-dss.txt: add cec clock

2021-03-02 Thread Tomi Valkeinen
-names: "fck", "sys_clk", "cec" Optional nodes: - Video port for HDMI output Reviewed-by: Tomi Valkeinen Tomi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCHv2 5/6] dra7.dtsi/omap5.dtsi: add cec clock

2021-03-02 Thread Tomi Valkeinen
kctrl OMAP5_DSS_CORE_CLKCTRL 11>; + clock-names = "fck", "sys_clk", "cec"; dmas = <&sdma 76>; dma-names = "audio_tx&quo

Re: [PATCHv2 6/6] drm/omapdrm/dss/hdmi5: add CEC support

2021-03-02 Thread Tomi Valkeinen
everything else uses tabs. Other than that: Reviewed-by: Tomi Valkeinen Tomi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCHv3 1/6] drm: drm_bridge: add connector_attach/detach bridge ops

2021-05-04 Thread Tomi Valkeinen
* The @connector_detach callback is optional. +*/ + void (*connector_detach)(struct drm_bridge *bridge, + struct drm_connector *conn); }; /** Reviewed-by: Tomi Valkeinen I can take this series as it's mostly omapdrm, but w

Re: [PATCHv2] drm/omap: Fix issue with clocks left on after resume

2021-05-07 Thread Tomi Valkeinen
On 05/05/2021 14:12, Tony Lindgren wrote: * Tony Lindgren [210503 12:18]: I think we still fix the dispc related issue too, otherwise the parent child_count will just keep increasing on each suspend. I check that again though. After tons more debugging, I found the root cause for the parent c

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

2020-11-23 Thread Tomi Valkeinen
quired 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/enabling t

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

2020-11-24 Thread Tomi Valkeinen
as possible. Signed-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..04362

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

2020-11-24 Thread Tomi Valkeinen
even if there is, I 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 --- .../displa

[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 v4 00/80] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-24 Thread Tomi Valkeinen
efconfig: Update for 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_

[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 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-by

[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 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 --- dri

[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
: 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 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 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
el, after 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/

[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 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 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 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 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 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 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 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 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 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/

[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
ities. 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/gp

[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 Pin

[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 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 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 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 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 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 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

[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 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

[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 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

  1   2   3   4   5   6   7   8   9   10   >