Re: [PATCH v2 1/2] drm/client: Dual licence the file in GPL-2 and MIT

2020-02-25 Thread Emmanuel Vadot
On Mon, 24 Feb 2020 11:40:38 + Chris Wilson wrote: > Quoting Jani Nikula (2020-02-15 18:33:09) > > On Sat, 15 Feb 2020, Emmanuel Vadot wrote: > > > From: Emmanuel Vadot > > > > > > Contributors for this file are : > > > Chris Wilson > > > Denis Efremov > > > Jani Nikula > > > Maxime Ripa

Re: [PATCH v10 08/12] drm/bridge: lvds-codec: Implement basic bus format negotiation

2020-02-25 Thread Boris Brezillon
On Tue, 25 Feb 2020 07:15:43 +0100 Sam Ravnborg wrote: > Hi Boris/Laurent. > > > > + > > > + err = of_property_read_u32(np, "bus-width", &input_bus_width); > > > + of_node_put(np); > > > + > > > + if (err) { > > > + lvds_codec->input_fmt = MEDIA_BUS_FMT_FIXED; > > > + } else if (input_bu

Re: [PATCH v10 10/12] drm/bridge: panel: Propage bus format/flags

2020-02-25 Thread Boris Brezillon
On Tue, 25 Feb 2020 00:34:00 +0200 Laurent Pinchart wrote: > Hi Boris, > > Thank you for the patch. > > On Fri, Jan 31, 2020 at 06:25:05PM +0100, Boris Brezillon wrote: > > And the typo (Propage -> Propagate) is still there :-(. Fixing it right > > now so I don't forget. > > > > On Tue, 28 Jan

[PATCHv2 42/56] drm/omap: remove global dss_device variable

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/base.c| 14 ---

[PATCHv2 36/56] drm/omap: drop omapdss-boot-init

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/Kconfig | 3 - drivers/gpu/drm/omapdrm/dss/Makefile | 2 - .../gpu/drm/o

Re: [PATCH 04/89] i2c: brcmstb: Allow to compile it on BCM2835

2020-02-25 Thread Florian Fainelli
On 2/24/20 1:06 AM, Maxime Ripard wrote: > The BCM2711, supported by ARCH_BCM2835, also has a controller by the > brcmstb driver so let's allow it to be compiled on that platform. > > Cc: Kamal Dasu > Cc: Florian Fainelli > Cc: Wolfram Sang > Cc: bcm-kernel-feedback-l...@broadcom.com > Cc: linu

[PATCHv2 48/56] drm/omap: simplify omap_display_id

2020-02-25 Thread Sebastian Reichel
We no longer need to check for the DSS API, since all encoders, panels and connectors have been converted to the bridge API. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_drv.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/omapdrm

[PATCH 2/7] drm/sun4i: Add separate DE3 VI layer formats

2020-02-25 Thread Jernej Skrabec
DE3 VI layers support alpha blending, but DE2 VI layers do not. Additionally, DE3 VI layers support 10-bit RGB and YUV formats. Make a separate list for DE3. Fixes: c50519e6db4d ("drm/sun4i: Add basic support for DE3") Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 3

[PATCHv2 14/56] drm/omap: dsi: introduce mipi_dsi_host

2020-02-25 Thread Sebastian Reichel
This moves from custom platform driver infrastructure to mipi_dsi_host and mipi_dsi_device. Note, that this is a graduate step and the driver only uses the devices types and transfer function, but not yet the new device binding style or drm_panel. Signed-off-by: Sebastian Reichel --- .../gpu/drm

[PATCHv2 11/56] drm/omap: dsi: simplify write function

2020-02-25 Thread Sebastian Reichel
Simplify the write related messages handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/Kconfig | 1 + drivers/gpu/drm/omapdrm/dss/dsi.c | 144 +++- 2 files changed, 33 insertions(+), 11

[PATCH 3/7] drm/sun4i: Fix DE2 VI layer format support

2020-02-25 Thread Jernej Skrabec
DE2 VI layer doesn't support blending which means alpha channel is ignored. Replace all formats with alpha with "don't care" (X) channel. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 56 ++ drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 22 +---

Re: [PATCH 01/89] dt-bindings: i2c: brcmstb: Convert the BRCMSTB binding to a schema

2020-02-25 Thread Florian Fainelli
On 2/24/20 1:06 AM, Maxime Ripard wrote: > Switch the DT binding to a YAML schema to enable the DT validation. > > Cc: Kamal Dasu > Cc: Florian Fainelli > Cc: Rob Herring > Cc: Wolfram Sang > Cc: bcm-kernel-feedback-l...@broadcom.com > Cc: linux-...@vger.kernel.org > Cc: devicet...@vger.kernel

[PATCHv2 00/56] drm/omap: Convert DSI code to use drm_mipi_dsi and drm_panel

2020-02-25 Thread Sebastian Reichel
This updates the existing omapdrm DSI code, so that it uses common drm_mipi_dsi API and drm_panel. The patchset has been tested with Droid 4 using Linux console, X.org and Weston. The patchset is based on Laurent Pinchartl's patch series [0] and removes the last custom panel driver, so quite a few

[PATCHv2 46/56] drm/omap: remove legacy DSS device operations

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/base.c | 66 drivers/gpu/drm/omapdrm/d

[PATCH v7 0/2] Add initial support for slimport anx7625

2020-02-25 Thread Xin Ji
Hi all, The following series add initial support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the initial version, any mistakes, please let me know, I will fix it in the next series. Thanks, Xin Xin Ji (2): dt

[PATCHv2 20/56] drm/omap: dsi: drop unused get_te()

2020-02-25 Thread Sebastian Reichel
The get_te() callback is not used, so we can drop the custom API. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 13 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/omapdr

Re: [PATCHv2 02/56] ARM: dts: omap4-droid4: add panel compatible

2020-02-25 Thread Tony Lindgren
* Laurent Pinchart [200224 23:38]: > Hi Sebastian, > > Thank you for the patch. > > On Tue, Feb 25, 2020 at 12:20:32AM +0100, Sebastian Reichel wrote: > > Add Droid 4 specific compatible value in addition to the > > generic one, so that we have the ability to add panel > > specific quirks in the

[PATCHv2 13/56] drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/dsi.c | 92 +++ 1 file changed, 45 i

[PATCHv2 47/56] drm/omap: remove unused omap_connector

2020-02-25 Thread Sebastian Reichel
Remove unused code. Connectors are now created via drm_bridge_connector_init() and no longer OMAP specific. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/Makefile | 1 - drivers/gpu/drm/omapdrm/omap_connector.c | 128 --- drivers/gpu/drm/omapdrm/omap_

[PATCH v7 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2020-02-25 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI to DisplayPort 1.3 4K. You can add support to your board with binding. Example: anx7625_bridge: encoder@58 { compatible = "analogix,anx7625"; reg = <0x

[PATCH 0/7] drm/sun4i: de2/de3 format fixes and updates

2020-02-25 Thread Jernej Skrabec
Currently VI layer code reported wrong formats for DE2 and DE3. First three patches are fixes. Next two patches do code refactoring to remove redundant information, which is already included elsewhere. Last two patches are more cosmetic. Note: It can be argued if patch 2 is really a fix. Consider

[PATCHv2 19/56] drm/omap: dsi: drop unused memory_read()

2020-02-25 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 93 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 4 - 2 files changed, 97 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/pan

[PATCH 3/3] bus: ti-sysc: Implement display subsystem reset quirk

2020-02-25 Thread Tony Lindgren
The display subsystem (DSS) needs the child outputs disabled for reset. In order to prepare to probe DSS without legacy platform data, let's implement sysc_pre_reset_quirk_dss() similar to what we have for the platform data with omap_dss_reset(). Note that we cannot directly use the old omap_dss_r

[PATCHv2 28/56] drm/omap: dsi: do bus locking in host driver

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 46 +-- drivers/gpu/drm/omapdrm/dss/dsi.c | 33 - driver

[PATCHv2 02/56] ARM: dts: omap4-droid4: add panel compatible

2020-02-25 Thread Sebastian Reichel
Add Droid 4 specific compatible value in addition to the generic one, so that we have the ability to add panel specific quirks in the future. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/motorola-mapphone-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

[PATCHv2 05/56] drm/omap: dsi: use MIPI_DSI_FMT_* instead of OMAP_DSS_DSI_FMT_*

2020-02-25 Thread Sebastian Reichel
This replaces OMAP specific enum for pixel format with common implementation. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 49 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 10 +--

[PATCHv2 50/56] drm/omap: drop empty omap_encoder helper functions

2020-02-25 Thread Sebastian Reichel
Cleanup empty functions for encoder enable, disable and atomic check. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_encoder.c | 28 -- 1 file changed, 28 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_encoder.c b/drivers/gpu/drm/omapdrm/omap_

[PATCHv2 23/56] drm/omap: dsi: use pixel-format and mode from attach

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 -- drivers/gpu/drm/omapdrm/dss/dsi.c | 20 +---

RFC: drm/virtio: Dummy virtio GPU

2020-02-25 Thread Lepton Wu
Hi, I'd like to get comments on this before I polish it. This is a simple way to get something similar with vkms but it heavily reuse the code provided by virtio-gpu. Please feel free to give me any feedbacks or comments. Thanks! ___ dri-devel mailin

[PATCH 0/3] ti-sysc changes for probing DSS with dts data

2020-02-25 Thread Tony Lindgren
Hi all, Here are some changes to start probing display susbsystem (DSS) with device tree data instead of platform data. These changes are against v5.6-rc1, and depend on the earlier series "[PATCH 0/7] ti-sysc driver fix for hdq1w and few improvments". I'll be posting the related dts changes sep

[PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-02-25 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. Signed-off-by: Xin Ji -

[PATCHv2 26/56] drm/omap: dsi: move TE GPIO handling into core

2020-02-25 Thread Sebastian Reichel
In preparation for removing custom DSS calls from the DSI panel driver, this moves support for external tearing event GPIOs into the DSI host driver. This way tearing events are always handled in the core resulting in simplification of the panel drivers. The TE GPIO acquisition follows works in th

Re: [PATCH v7 0/2] Add initial support for slimport anx7625

2020-02-25 Thread Xin Ji
On Tue, Feb 25, 2020 at 10:42:00AM +0300, Dan Carpenter wrote: > On Tue, Feb 25, 2020 at 02:11:39PM +0800, Xin Ji wrote: > > Hi all, > > > > The following series add initial support for the Slimport ANX7625 > > transmitter, a > > ultra-low power Full-HD 4K MIPI to DP transmitter designed for port

[PATCHv2 41/56] drm/omap: dsi: return proper error code from dsi_update_all()

2020-02-25 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index acbfffe83b3e..f629e6b1025b 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/d

[PATCHv2 35/56] drm/omap: dsi: convert to drm_panel

2020-02-25 Thread Sebastian Reichel
This converts the DSI module to expect common drm_panel display drivers instead of dssdev based ones. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 210 +++--- drivers/gpu/drm/omapdrm/dss/dsi.c | 133 +-- .../gpu/drm/omapdrm/

[PATCH 4/7] drm/sun4i: de2: rgb field in de2 format struct is redundant

2020-02-25 Thread Jernej Skrabec
drm_format_info structure already contains information if format is RGB or YUV. Use that instead. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 48 -- drivers/gpu/drm/sun4i/sun8i_mixer.h| 1 - drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 6 +

[PATCHv2 56/56] ARM: dts: omap4-droid4: add panel orientation

2020-02-25 Thread Sebastian Reichel
Add information about panel orientation, so that the system boots into a properly rotated shell. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/motorola-mapphone-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/motorola-mapphone-common.dtsi b/arch/arm/bo

[PATCHv2 18/56] drm/omap: panel-dsi-cm: use common MIPI DCS 1.3 defines

2020-02-25 Thread Sebastian Reichel
Drop local definition of common MIPI DCS 1.3 defines. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/d

[PATCHv2 08/56] drm/omap: panel-dsi-cm: convert to transfer API

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 133 +---

Re: [PATCH 03/89] i2c: brcmstb: Support BCM2711 HDMI BSC controllers

2020-02-25 Thread Florian Fainelli
On 2/24/20 1:06 AM, Maxime Ripard wrote: > The HDMI blocks in the BCM2771 have an i2c controller to retrieve the > EDID. This block is split into two parts, the BSC and the AUTO_I2C, > lying in two separate register areas. > > The AUTO_I2C block has a mailbox-like interface and will take away the

[PATCH 1/7] drm/sun4i: de2/de3: Remove unsupported VI layer formats

2020-02-25 Thread Jernej Skrabec
YUV444 and YVU444 are planar formats, but HW format RGB888 is packed. This means that those two mappings were never correct. Remove them. Fixes: 60a3dcf96aa8 ("drm/sun4i: Add DE2 definitions for YUV formats") Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 12 -

[PATCHv2 17/56] drm/omap: panel-dsi-cm: drop hardcoded VC

2020-02-25 Thread Sebastian Reichel
Use dsi->channel everywhere, which originates from DT. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 20 +++ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/om

[PATCHv2 34/56] drm/omap: dsi: drop custom panel capability support

2020-02-25 Thread Sebastian Reichel
Due to previous changes the DSI encoder gets the capabilities via DSI client's mode_flags and no longer needs the omapdss specific caps. The core code now checks if the DSI encoder is actually configured into command mode instead of just checking the panel capabilities. Signed-off-by: Sebastian Re

[PATCHv2 01/56] ARM: dts: omap: add channel to DSI panels

2020-02-25 Thread Sebastian Reichel
The standard binding for DSI requires, that the channel number of the panel is encoded in DT. This adds the channel number in all OMAP3-5 boards, in preparation for using common infrastructure. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/display/panel/panel-dsi-cm.txt | 4 +

[PATCH 5/7] drm/sun4i: de2: csc_mode in de2 format struct is mostly redundant

2020-02-25 Thread Jernej Skrabec
For RGB formats CSC mode is always set to none and for YUV formats almost always set to YUV to RGB. Add a helper function to deduce CSC mode from format. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 48 -- drivers/gpu/drm/sun4i/sun8i_mixer.h

Re: [PATCH RFC v3 2/6] drm/sprd: add Unisoc's drm kms master

2020-02-25 Thread tang pengchuan
Got it, thanks! On Tue, Feb 25, 2020 at 12:43 AM Emil Velikov wrote: > Hi all, > > On Fri, 21 Feb 2020 at 11:15, Kevin Tang wrote: > > > > From: Kevin Tang > > > > Adds drm support for the Unisoc's display subsystem. > > > > This is drm device and gem driver. This driver provides support for t

Re: [PATCH 02/89] dt-bindings: i2c: brcmstb: Add BCM2711 BSC/AUTO-I2C binding

2020-02-25 Thread Florian Fainelli
On 2/24/20 1:06 AM, Maxime Ripard wrote: > The HDMI blocks in the BCM2771 have an i2c controller to retrieve the > EDID. This block is split into two parts, the BSC and the AUTO_I2C, > lying in two separate register areas. > > The AUTO_I2C block has a mailbox-like interface and will take away the

[PATCHv2 15/56] drm/omap: panel-dsi-cm: use DSI helpers

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 126 +++--- 1 file changed, 18 insertions(+), 108 deletions(-) diff --git a/driver

[PATCHv2 49/56] drm/omap: drop unused DSS next pointer

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/base.c | 2 +- drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - drivers/gpu/drm/omapdrm/dss/output.c | 13 +---

Re: [PATCHv3 2/2] drm/panel: add support for rm69299 visionox panel driver

2020-02-25 Thread Bjorn Andersson
On Wed 05 Feb 05:06 PST 2020, Harigovindan P wrote: > Add support for Visionox panel driver. > > Signed-off-by: Harigovindan P > --- > > Changes in v1: > - Split out panel driver patch from dsi config changes(Rob Clark). > - Remove unrelated code(Stephen Boyd). > - Remove stat

[PATCH 7/7] drm/sun4i: Sort includes in VI and UI layer code

2020-02-25 Thread Jernej Skrabec
sun8i_mixer.h include is misplaced. Move it. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 2 +- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_ui_layer.c b/drivers/gpu/drm/su

[PATCHv2 30/56] drm/dsi: add MIPI_DSI_MODE_ULPS_IDLE

2020-02-25 Thread Sebastian Reichel
DSI command mode panels are self-refreshing displays, that can be updated very rarely for static images. For this kind of scenario some panels support, that the DSI bus switches into ULPS mode until the panel needs to be refreshed. This is problematic on some panels, so introduce a flag to signal

[PATCHv2 40/56] drm/omap: panel-dsi-cm: fix remove()

2020-02-25 Thread Sebastian Reichel
Do not try to reset the panel after DSI has been detached, since the DSI clocks may have been disabled at this point. The panel will be disabled and unprepared before being removed and a reset will be done when being probed again. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/disp

Re: [PATCH 1/3] drm/omap: Prepare DSS for probing without legacy platform data

2020-02-25 Thread Tony Lindgren
* Sebastian Reichel [200224 23:32]: > Hi, > > On Mon, Feb 24, 2020 at 11:12:28AM -0800, Tony Lindgren wrote: > > In order to probe display subsystem (DSS) components with ti-sysc > > interconnect target module without legacy platform data and using > > devicetree, we need to update dss probing a

[PATCHv2 27/56] drm/omap: dsi: drop custom enable_te() API

2020-02-25 Thread Sebastian Reichel
Instead of using the custon enable_te() API, this automatically enables/disables TE core support when a matching packet is send to the panel. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 3 -- drivers/gpu/drm/omapdrm/dss/dsi.c | 33 +++

[PATCHv2 12/56] drm/omap: dsi: simplify read functions

2020-02-25 Thread Sebastian Reichel
Simplify the read related message handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 109 +- 1 file changed, 33 insertions(+), 76 deletions(-) diff --git a/drivers/gpu/drm/omap

[PATCHv2 54/56] ARM: omap2plus_defconfig: Update for moved DSI command mode panel

2020-02-25 Thread 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 --- arch/arm/configs/omap2plus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/omap2plus_defconfig b/arc

[PATCHv2 44/56] drm/panel: Move OMAP's DSI command mode panel driver

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/Kconfig| 1 - drivers/gpu/drm/omapdrm/Makefile | 1 - drivers/gpu/drm/omapdr

[PATCH 2/3] bus: ti-sysc: Detect display subsystem related devices

2020-02-25 Thread Tony Lindgren
In order to prepare probing display subsystem (DSS) with ti-sysc interconnect target module driver and device tree data, let's detect DSS related modules. We need to also add reset quirk handling for DSS, but until that's done, let's just enable the optional clock quirks for DSS and omap4 HDMI. Th

Re: [PATCH 22/89] clk: bcm: rpi: Discover the firmware clocks

2020-02-25 Thread Florian Fainelli
On 2/24/20 1:06 AM, Maxime Ripard wrote: > The firmware has an interface to discover the clocks it exposes. > > Let's use it to discover, register the clocks in the clocks framework and > then expose them through the device tree for consumers to use them. > > Cc: Michael Turquette > Cc: Stephen

[PATCHv2 16/56] drm/omap: dsi: request VC via mipi_dsi_attach

2020-02-25 Thread Sebastian Reichel
Drop custom request_vc/release_vc callbacks by using the generic mipi_dsi_attach/mipi_dsi_detach functions. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 24 +--- drivers/gpu/drm/omapdrm/dss/dsi.c | 61 --- drivers/gpu/drm/om

[PATCHv2 33/56] drm/omap: dsi: Reverse direction of the DSS device enable/disable operations

2020-02-25 Thread Sebastian Reichel
Complete the direction reversal of the DSS device enable/disable operations started by 19b4200d8f4b ("drm/omap: Reverse direction of the DSS device enable/disable operations"). This effectively drops the requirement of calling DSS specific code from the DSI panel driver moving it a bit further to

[PATCHv2 43/56] drm/omap: bind components with drm_device argument

2020-02-25 Thread Sebastian Reichel
This fixes the omapdrm driver to call component_bind_all() with drm_device as data argument as recommended in the DRM component helper usage text. After this patch DRM functionality can be implemented directly in the components resulting in a simpler driver stack by removing one layer of abstracti

[PATCHv2 51/56] drm/omap: drop DSS ops_flags

2020-02-25 Thread Sebastian Reichel
The omapdss device's ops_flags field is no longer used and can be dropped. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 9 - drivers/gpu/drm/omapdrm/dss/venc.c| 1 - 2 files changed, 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h

[PATCHv2 06/56] drm/omap: constify write buffers

2020-02-25 Thread Sebastian Reichel
The write buffers are not modified, so they can be constant. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 24 drivers/gpu/drm/omapdrm/dss/omapdss.h | 10 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/g

[PATCHv2 07/56] drm/omap: dsi: add generic transfer function

2020-02-25 Thread Sebastian Reichel
This prepares the driver for becoming a mipi_dsi_host implementation, which provides a generic transfer function instead of all kind of different read/write functions. The implementation will become more elegant after unexporting the specific functions in the following patches. Signed-off-by: Seba

[PATCHv2 04/56] omap/drm: drop unused dsi.configure_pins

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11 --- drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCHv2 32/56] drm/omap: dsi: move panel refresh function to host

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 68 drivers/gpu/drm/omapdrm/dss/dsi.c | 101

[PATCHv2 55/56] drm/panel/panel-dsi-cm: support rotation property

2020-02-25 Thread Sebastian Reichel
Add support for the rotation property described by the common panel bindings. The information is forwarded to userspace using the orientation property. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/panel/panel-dsi-cm.c | 24 +++- 1 file changed, 23 insertions(+), 1 del

[PATCHv2 09/56] drm/omap: dsi: unexport specific data transfer functions

2020-02-25 Thread Sebastian Reichel
After converting all DSI drivers, unexport the specific transfer functions. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 12 drivers/gpu/drm/omapdrm/dss/omapdss.h | 20 2 files changed, 32 deletions(-) diff --git a/drivers/gpu/dr

Re: [PATCH 37/51] drm/rockchip: Drop explicit drm_mode_config_cleanup call

2020-02-25 Thread Francesco Lavra
On Fri, Feb 21, 2020 at 10:04 PM Daniel Vetter wrote: > > It's (almost, there's some iommu stuff without significance) right > above the drm_dev_put(). > > This is made possible by a preceeding patch which added a drmm_ > cleanup action to drm_mode_config_init(), hence all we need to do to > ensur

[PATCHv2 10/56] drm/omap: dsi: drop virtual channel logic

2020-02-25 Thread Sebastian Reichel
This drops the virtual channel logic. Afterwards DSI clients request their channel number and get the virtual channel with the same number or -EBUSY if already in use. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11 ++--- drivers/gpu/drm/omapdrm/dss/dsi.c

[PATCHv2 39/56] drm/omap: panel-dsi-cm: support unbinding

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/pan

[PATCHv2 38/56] drm/omap: panel-dsi-cm: use DEVICE_ATTR_RO

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/

[PATCHv2 25/56] drm/omap: dsi: lp/hs switching support for transfer()

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 6 +++--- drivers/gpu/drm/omapdrm/dss/dsi.c | 13 +++-- drivers/

Re: [PATCH] drm/hisilicon: Set preferred mode resolution and maximum resolution

2020-02-25 Thread Xinliang Liu
On Tue, 25 Feb 2020 at 10:19, Xinliang Liu wrote: > > > On Wed, 19 Feb 2020 at 10:52, Tian Tao wrote: > >> set the preferred mode resolution to 1024 * 768 and maximum >> resolution to 1920 * 1200. >> >> Signed-off-by: Tian Tao >> Signed-off-by: Gong junjie >> --- >> drivers/gpu/drm/hisilicon/

[PATCHv2 22/56] drm/omap: dsi: drop useless sync()

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c| 18 -- drivers/gpu/drm/omapdrm/dss/

[PATCH 1/3] drm/omap: Prepare DSS for probing without legacy platform data

2020-02-25 Thread Tony Lindgren
In order to probe display subsystem (DSS) components with ti-sysc interconnect target module without legacy platform data and using devicetree, we need to update dss probing a bit. In the device tree, we will be defining the data also for the interconnect target modules as DSS really is a private

Re: [PATCHv2 00/56] drm/omap: Convert DSI code to use drm_mipi_dsi and drm_panel

2020-02-25 Thread Tony Lindgren
* Sebastian Reichel [200224 23:22]: > This updates the existing omapdrm DSI code, so that it uses > common drm_mipi_dsi API and drm_panel. > > The patchset has been tested with Droid 4 using Linux console, X.org and > Weston. The patchset is based on Laurent Pinchartl's patch series [0] > and rem

[PATCHv2 21/56] drm/omap: dsi: drop unused enable_te()

2020-02-25 Thread Sebastian Reichel
enable_te() is not used, so the custom API can be dropped. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 39 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 - 2 files changed, 41 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dis

[PATCHv2 03/56] Revert "drm/omap: dss: Remove unused omap_dss_device operations"

2020-02-25 Thread Sebastian Reichel
From: Sebastian Reichel This reverts commit 4ff8e98879e6eeae9d125dfcf3b642075d00089d. --- drivers/gpu/drm/omapdrm/dss/base.c | 26 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 drivers/gpu/drm/omapdrm/omap_encoder.c | 44 +++--- 3 files changed, 71 ins

Re: [PATCH 6/7] drm/sun4i: de2: Don't return de2_fmt_info struct

2020-02-25 Thread Maxime Ripard
Hi, On Mon, Feb 24, 2020 at 06:39:00PM +0100, Jernej Skrabec wrote: > Now that de2_fmt_info contains only DRM <-> HW format mapping, it > doesn't make sense to return pointer to structure when searching by DRM > format. Rework that to return only HW format instead. > > This doesn't make any functi

[PATCHv2 24/56] drm/omap: panel-dsi-cm: use bulk regulator API

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 65 +

[PATCH] RFC: drm/virtio: Dummy virtio GPU

2020-02-25 Thread Lepton Wu
The idea here is: if we run the vm headless, we don't really need to communicate with VMM, and we even don't need any VMM support for virtio-gpu. Of course, only 2d works. But it's enough for some use case. And this looks simpler than vkms. Signed-off-by: Lepton Wu --- drivers/gpu/drm/virtio/Kco

[PATCHv2 31/56] drm/omap: dsi: do ULPS in host driver

2020-02-25 Thread Sebastian Reichel
Move ULPS handling into the DSI host controller, so that we no longer need a custom API for the DSI client. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 273 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 61 +++- drivers/gpu/drm/omapd

Re: [PATCH] drm/hisilicon: Set preferred mode resolution and maximum resolution

2020-02-25 Thread Xinliang Liu
On Wed, 19 Feb 2020 at 10:52, Tian Tao wrote: > set the preferred mode resolution to 1024 * 768 and maximum > resolution to 1920 * 1200. > > Signed-off-by: Tian Tao > Signed-off-by: Gong junjie > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 10 +- > 1 file changed, 9 insert

[PATCHv2 37/56] drm/omap: dsi: implement check timings

2020-02-25 Thread Sebastian Reichel
Implement check timings, which will check if its possible to configure the clocks for the provided mode using the same code as the set_config() hook. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 70 +++ 1 file changed, 44 insertions(+), 26

[PATCHv2 45/56] drm/omap: dsi: Register a drm_bridge

2020-02-25 Thread Sebastian Reichel
In order to integrate with a chain of drm_bridge, the internal DSI output has to expose its operations through the drm_bridge API. Register a bridge at initialisation time to do so and remove the omap_dss_device operations that are now unused. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm

[PATCHv2 53/56] drm/omap: simplify DSI manual update code

2020-02-25 Thread 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 --- drivers/gpu/drm/omapdrm/dss/dsi.c | 10 -- drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 +- drivers/g

[PATCH 6/7] drm/sun4i: de2: Don't return de2_fmt_info struct

2020-02-25 Thread Jernej Skrabec
Now that de2_fmt_info contains only DRM <-> HW format mapping, it doesn't make sense to return pointer to structure when searching by DRM format. Rework that to return only HW format instead. This doesn't make any functional change. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_

[PATCHv2 52/56] drm/omap: drop dssdev display field

2020-02-25 Thread Sebastian Reichel
All displays are using drm_panel instead off dssdev now, so this field is always 0 and can be dropped. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/base.c| 2 +- drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git

[PATCHv2 29/56] drm/omap: dsi: untangle ulps ops from enable/disable

2020-02-25 Thread 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 --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 8 ++-- drivers

Re: [PATCH 6/7] drm/sun4i: de2: Don't return de2_fmt_info struct

2020-02-25 Thread Chen-Yu Tsai
On Tue, Feb 25, 2020 at 4:35 PM Maxime Ripard wrote: > > Hi, > > On Mon, Feb 24, 2020 at 06:39:00PM +0100, Jernej Skrabec wrote: > > Now that de2_fmt_info contains only DRM <-> HW format mapping, it > > doesn't make sense to return pointer to structure when searching by DRM > > format. Rework that

Re: [PATCH v10 09/12] dt-bindings: display: bridge: lvds-codec: Add new bus-width prop

2020-02-25 Thread Boris Brezillon
On Tue, 25 Feb 2020 00:31:39 +0200 Laurent Pinchart wrote: > Hi Boris, > > Thank you for the patch. > > On Tue, Jan 28, 2020 at 02:55:11PM +0100, Boris Brezillon wrote: > > Add the bus-width property to describe the input bus format. > > > > v10: > > * Add changelog to the commit message > > *

Re: [PATCH 3/3] drm/pci: Unexport drm_get_pci_dev

2020-02-25 Thread Thomas Zimmermann
Hi Am 22.02.20 um 18:54 schrieb Daniel Vetter: > Only user left is the shadow attach for legacy drivers. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_pci.c | 22 +++--- > include/drm/drm_pci.h | 11 --- > 2 files changed, 3 insertions(+), 30 deletions

[PATCH v2 3/3] drm/panel: add panel driver for Elida KD35T133 panels

2020-02-25 Thread Heiko Stuebner
From: Heiko Stuebner Panel driver for the KD35T133 display from Elida, used for example in the rk3326-based Odroid Go Advance handheld. changes in v2: - rename dsi_generic_write_seq macro to dsi_dcs_write_seq to honor the underlying mipi_dsi_dcs_write (Robin) Signed-off-by: Heiko Stuebner --

[PATCH v2 1/3] dt-bindings: Add vendor prefix for Elida

2020-02-25 Thread Heiko Stuebner
From: Heiko Stuebner Shenzen Elida Technology Co. Ltd. is a Chinese TFT manufacturer. Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documen

[PATCH v2 2/3] dt-bindings: display: panel: Add binding document for Elida KD35T133

2020-02-25 Thread Heiko Stuebner
From: Heiko Stuebner The KD35T133 is a 3.5" 320x480 DSI display used in the RK3326-based Odroid Go Advance handheld device. Signed-off-by: Heiko Stuebner --- .../display/panel/elida,kd35t133.yaml | 49 +++ 1 file changed, 49 insertions(+) create mode 100644 Documentat

[PATCH v8 4/7] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-02-25 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/displ

[PATCH v8 3/7] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-02-25 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set pin mode to gpio oupput-low to avoid leakage current when dpi disable. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

  1   2   3   >