[PATCH v2] linux-firmware: update firmware for mhdp8546

2019-06-03 Thread Damian Kos
This patch updates mhdp8546 firmware from v1.2.12 to v1.2.15. Added support for performing arbitrary I2C-over-AUX transactions. Corrected handling of erroneous requests for reading/writing 0 bytes over DPCD. Add mailbox message to force uCPU fatal error. Signed-off-by: Damian Kos --- WHENCE

RE: [PATCH v7 0/4] drm: add support for Cadence MHDP DPI/DP bridge.

2019-03-28 Thread Damian Kos
>Damian, ping. > >On 31/01/2019 14:08, Tomi Valkeinen wrote: >> Hi, >> >> On 30/01/2019 13:03, Damian Kos wrote: >>> Hello! >>> >>> This is the series of patches that will add support for the Cadence's DPI/DP >>> bridge. Please

[PATCH v7 2/4] drm/dp: fix link probing for devices supporting DP 1.4+

2019-01-31 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos

[PATCH] linux-firmware: update firmware for mhdp8546

2019-01-31 Thread Damian Kos
Updated firmware for Cadence MHDP8546 DP bridge. Release version: 1.2.15 --- cadence/mhdp8546.bin | Bin 131072 -> 131072 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/cadence/mhdp8546.bin b/cadence/mhdp8546.bin index 01a31f6775e1c4d8d889216e78ef90e62888c487..40097e0ec908ab

[PATCH v7 4/4] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2019-01-31 Thread Damian Kos
from cdn_dp_device to cdns_mhdp_device structure. Signed-off-by: Quentin Schulz Signed-off-by: Piotr Sroka Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kconfig|9 + drivers/gpu/drm/bridge/Makefile |3 + .../cdns-mhdp-com

[PATCH v7 3/4] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings

2019-01-31 Thread Damian Kos
From: Quentin Schulz Document the bindings used for the Cadence MHDP DPI/DP bridge. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos Reviewed-by: Rob Herring --- .../bindings/display/bridge/cdns,mhdp.txt | 47 +++ 1 file changed, 47 insertions(+) create mode

[PATCH v7 0/4] drm: add support for Cadence MHDP DPI/DP bridge.

2019-01-31 Thread Damian Kos
7;s going on here in general. - New structure. Now we have one common low level driver + two high level drivers - one for RockChip with minimum changes and one, more general, for Cadence. - Dropped some changes made to DRM helpers. - Updated the device tree bindings document. Damian Kos (1): dr

[PATCH v7 1/4] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2019-01-31 Thread Damian Kos
odified cdn-dp-core.c to use the new driver structure and new function names. Signed-off-by: Damian Kos Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 220 +++-- drivers/gpu/drm/rockchip/cdn-dp-core.h | 40 +-- drivers/gpu/drm/rockchi

[PATCH] drm/rockchip: fix for mailbox read validation.

2018-11-20 Thread Damian Kos
This is basically the same fix as in commit fa68d4f8476b ("drm/rockchip: fix for mailbox read size") but for cdn_dp_mailbox_validate_receive function. See patchwork.kernel.org/patch/10671981/ for details. Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 2

RE: [PATCH v6 5/6] drm/bridge: add support for MST in mhdp8546 driver

2018-11-09 Thread Damian Kos
From: Andrzej Hajda Sent: Wednesday, November 7, 2018 12:40 To: Damian Kos ; David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Laurent Pinchart ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang ; Heiko Stübner ; Quentin Schulz ; Piotr Sroka ; dri-devel

[RFC PATCH] drm/bridge: add support for DSC in mhdp8546 driver

2018-11-09 Thread Damian Kos
ith relying on not-yet-in-mainline code are also welcome. Signed-off-by: Przemyslaw Gaj Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Makefile|2 +- drivers/gpu/drm/bridge/cdns-mhdp-dsc.c | 1468 drivers/gpu/drm/bridge/cdns-mhdp-dsc.h | 304 +

[RFC PATCH] drm/bridge: add support for FEC in mhdp8546 driver

2018-11-07 Thread Damian Kos
From: Przemyslaw Gaj This patch enables FEC (Forward Error Correction) on Cadence DisplayPort controller if it's supported by the Sink. This patch is an addition to patch with mhdp8546 driver @ patchwork.kernel.org/cover/10632065/ Signed-off-by: Przemyslaw Gaj Signed-off-by: Damia

[PATCH] drm/rockchip: fix for mailbox read size

2018-11-07 Thread Damian Kos
ytes of an additional info). In other words - CTSes with HDCP Repeater won't pass without this fix. Oh, and the driver will most likely stop working (best case scenario). Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

RE: [PATCH v6 0/6] drm: add support for Cadence MHDP DPI/DP bridge.

2018-11-06 Thread Damian Kos
Hi Laurent, Understood. Thanks. Damian -Original Message- From: Laurent Pinchart Sent: Monday, November 5, 2018 11:30 To: Damian Kos Cc: David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Andrzej Hajda ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang

RE: [PATCH v6 0/6] drm: add support for Cadence MHDP DPI/DP bridge.

2018-11-06 Thread Damian Kos
Hi Andrzej, Thanks! Damian -Original Message- From: Andrzej Hajda Sent: Monday, November 5, 2018 12:10 To: Damian Kos ; Laurent Pinchart Cc: David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang ; Heiko Stübner

RE: [PATCH v6 0/6] drm: add support for Cadence MHDP DPI/DP bridge.

2018-11-06 Thread Damian Kos
al Message----- From: Damian Kos Sent: Monday, October 8, 2018 23:42 To: David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Andrzej Hajda ; Laurent Pinchart ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang ; Heiko Stübner ; Quentin Schulz ; Damian Kos ; Piotr Sroka ;

[PATCH v6 6/6] drm/bridge: add PHY initialization in mhdp8546 driver.

2018-10-09 Thread Damian Kos
This patch modifies the mhdp8546 driver to initialize sd0801 "Torrent" PHY. And removes the dbg_regs field from cdns_mhdp_device structure. Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/cdns-mhdp.c| 9 + include/drm/bridge/cdns-mhdp-common.h | 1 - 2 files

[PATCH v6 1/6] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2018-10-09 Thread Damian Kos
odified cdn-dp-core.c to use the new driver structure and new function names. Signed-off-by: Damian Kos Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 220 +++-- drivers/gpu/drm/rockchip/cdn-dp-core.h | 40 +-- drivers/gpu/drm/rockchi

[PATCH v6 0/6] drm: add support for Cadence MHDP DPI/DP bridge.

2018-10-09 Thread Damian Kos
ges in v6: - Added Reviewed-bys for already reviewed patches - Dropped patch v5-0003 (that made dp_get_lane_status helper public) - Added patch with MST support - Added patch with Cadence SD0801 PHY init Damian Kos (2): drm/rockchip: prepare common code for cdns and rk dpi/dp driver drm/bridge:

[PATCH v6 3/6] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings

2018-10-09 Thread Damian Kos
From: Quentin Schulz Document the bindings used for the Cadence MHDP DPI/DP bridge. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos Reviewed-by: Rob Herring --- .../bindings/display/bridge/cdns,mhdp.txt | 43 +++ 1 file changed, 43 insertions(+) create mode

[PATCH v6 2/6] drm/dp: fix link probing for devices supporting DP 1.4+

2018-10-09 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos

[PATCH v6 5/6] drm/bridge: add support for MST in mhdp8546 driver

2018-10-09 Thread Damian Kos
created/destroyed Signed-off-by: Piotr Sroka Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Makefile| 2 +- drivers/gpu/drm/bridge/cdns-mhdp-mst.c | 594 + drivers/gpu/drm/bridge/cdns-mhdp.c | 560 --- drivers/gpu/drm/bridge/cdns

[PATCH v6 4/6] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-10-09 Thread Damian Kos
dn-dp-core.*): - Moved audio_info and audio_pdev fields from cdn_dp_device to cdns_mhdp_device structure. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kconfig|9 + drivers/gpu/drm/bridge/Makefile |3 + .../cdns-mhd

[PATCH v5 1/5] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2018-09-26 Thread Damian Kos
odified cdn-dp-core.c to use the new driver structure and new function names. Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 220 +++-- drivers/gpu/drm/rockchip/cdn-dp-core.h | 40 +-- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 428 + dri

[PATCH v5 3/5] drm/dp: make dp_get_lane_status usable from outside of the core

2018-09-26 Thread Damian Kos
n or as modules. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 9 + include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c ind

[PATCH v5 4/5] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings

2018-09-26 Thread Damian Kos
From: Quentin Schulz Document the bindings used for the Cadence MHDP DPI/DP bridge. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- .../bindings/display/bridge/cdns,mhdp.txt | 43 +++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v5 5/5] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-09-26 Thread Damian Kos
dn-dp-core.*): - Moved audio_info and audio_pdev fields from cdn_dp_device to cdns_mhdp_device structure. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kconfig|9 + drivers/gpu/drm/bridge/Makefile |3 + .../cdns-mhd

[PATCH v5 2/5] drm/dp: fix link probing for devices supporting DP 1.4+

2018-09-26 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Dami

[PATCH v5 0/5] drm: add support for Cadence MHDP DPI/DP bridge.

2018-09-26 Thread Damian Kos
rm/bridge instead of drivers/gpu/drm/bridge/ - Updated the mhdp_validate_cr function Damian Kos (1): drm/rockchip: prepare common code for cdns and rk dpi/dp driver Quentin Schulz (4): drm/dp: fix link probing for devices supporting DP 1.4+ drm/dp: make dp_get_lane_status usable from outsi

RE: [PATCH v4 5/5] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-09-25 Thread Damian Kos
Heiko, > Hi Damian, > > Am Montag, 24. September 2018, 13:40:03 CEST schrieb Damian Kos: > > > Am Donnerstag, 20. September 2018, 16:54:40 CEST schrieb Damian Kos: > > > > From: Quentin Schulz > > > > > > > > This adds basic support for Cad

RE: [PATCH v4 5/5] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-09-25 Thread Damian Kos
> On Thu, Sep 20, 2018 at 03:54:40PM +0100, Damian Kos wrote: > > From: Quentin Schulz > > > > This adds basic support for Cadence MHDP DPI to DP bridge. > > > > Basically, it takes a DPI stream as input and output it encoded in DP > > format. It&#

RE: [PATCH v4 5/5] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-09-25 Thread Damian Kos
Hi Heiko, > Hi Damian, > > Am Donnerstag, 20. September 2018, 16:54:40 CEST schrieb Damian Kos: > > From: Quentin Schulz > > > > This adds basic support for Cadence MHDP DPI to DP bridge. > > > > Basically, it takes a DPI stream as input and output it

[PATCH v4 0/5] drm: add support for Cadence MHDP DPI/DP bridge.

2018-09-21 Thread Damian Kos
nfig in drm/rockchip - Fixed Signed-offs - dp_link_status() is no longer public since it's used only in drm_dp_helper.c - Replaced EXTRA_CFLAGS with ccflags-y in drm/rockchip Makefile Damian Kos (1): drm/rockchip: prepare common code for cdns and rk dpi/dp driver Quentin Schulz (4)

[PATCH v4 3/5] drm/dp: make dp_get_lane_status usable from outside of the core

2018-09-21 Thread Damian Kos
n or as modules. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 9 + include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c ind

[PATCH v4 4/5] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings

2018-09-21 Thread Damian Kos
From: Quentin Schulz Document the bindings used for the Cadence MHDP DPI/DP bridge. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- .../bindings/display/bridge/cdns,mhdp.txt | 43 +++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v4 5/5] drm: bridge: add support for Cadence MHDP DPI/DP bridge

2018-09-21 Thread Damian Kos
ields from cdn_dp_device to cdns_mhdp_device structure. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kconfig|9 + drivers/gpu/drm/bridge/Makefile |3 + .../cdns-mhdp-common.c} | 137 +- .../cdns-mhd

[PATCH v4 1/5] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2018-09-21 Thread Damian Kos
odified cdn-dp-core.c to use the new driver structure and new function names. Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 220 +++-- drivers/gpu/drm/rockchip/cdn-dp-core.h | 40 +-- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 428 + dri

[PATCH v4 2/5] drm/dp: fix link probing for devices supporting DP 1.4+

2018-09-21 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Dami

RE: [PATCH v3 0/5] drm: add support for Cadence MHDP DPI/DP bridge.

2018-09-18 Thread Damian Kos
Got it. -depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m) +depends on DRM_ROCKCHIP=m +select EXTCON Damian -Original Message- From: Heiko Stuebner Sent: Thursday, September 13, 2018 14:32 To: Damian Kos Cc: David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Andrze

RE: [PATCH v3 1/5] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2018-09-14 Thread Damian Kos
To: Damian Kos ; David Airlie ; Rob Herring ; Mark Rutland ; Archit Taneja ; Laurent Pinchart ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang ; Heiko Stübner ; Quentin Schulz ; dri-devel@lists.freedesktop.org; devicet...@vger.kernel.org; linux-ker...@vger.kernel.org; linux

[PATCH v3 1/5] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2018-08-29 Thread Damian Kos
odified cdn-dp-core.c to use the new driver structure and new function names. Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 220 +++-- drivers/gpu/drm/rockchip/cdn-dp-core.h | 40 +-- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 428 + dri

[PATCH v3 3/5] drm/dp: make dp_link_status and dp_get_lane_status usable from outside of the core

2018-08-29 Thread Damian Kos
e used by other drivers, be they compiled built-in or as modules. Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 20 +++- include/drm/drm_dp_helper.h | 3 +++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/

[PATCH v3 5/5] drm/bridge: add preliminary driver for cadence dpi/dp bridge

2018-08-29 Thread Damian Kos
public - added functions for reading registers and link training adjustment Changes made in RK's driver (cdn-dp-core.*): - Moved audio_info and audio_pdev fields from cdn_dp_device to cdns_mhdp_device structure. Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kc

[PATCH v3 2/5] drm/dp: fix link probing for devices supporting DP 1.4+

2018-08-29 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RCVR_CAPA_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Damian Kos --- drivers/

[PATCH v3 0/5] drm: add support for Cadence MHDP DPI/DP bridge.

2018-08-29 Thread Damian Kos
Changes in v3: - Corrected dt-bindings document - Enabled some clocks at startup (since FW doesn't do that anymore). - Changed Firmware file name to match the file on Linux Firmware repo. - Added SST audio support - Made common functions (in cdns-mhdp-common.*) public. Damian Kos (1): drm/roc

[PATCH v3 4/5] dt-bindings: drm/bridge Document Cadence MHDP DPI/DP bridge bindings

2018-08-29 Thread Damian Kos
From: Quentin Schulz Signed-off-by: Damian Kos --- .../bindings/display/bridge/cdns,mhdp.txt | 43 +++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp.txt diff --git a/Documentation/devicetree/bindings

[PATCH 0/1] linux-firmware: add firmware for mhdp8546

2018-08-20 Thread Damian Kos
This patch adds the v1.2.12 binary firmware for Cadence MHDP8546 DP bridge. Damian Kos (1): linux-firmware: add firmware for mhdp8546 LICENCE.cadence | 63 +++ WHENCE | 9 +++ cadence/mhdp8546.bin | Bin 0 -> 131072 bytes

[PATCH 1/1] linux-firmware: add firmware for mhdp8546

2018-08-20 Thread Damian Kos
Add binary firmware for Cadence MHDP8546 DP bridge. Release version: 1.2.12 Signed-off-by: Damian Kos --- LICENCE.cadence | 63 +++ WHENCE | 9 +++ cadence/mhdp8546.bin | Bin 0 -> 131072 bytes 3 files changed, 72 inserti

[PATCH v2 5/5] drm/bridge: add preliminary driver for cadence dpi/dp bridge

2018-07-25 Thread Damian Kos
: Damian Kos --- drivers/gpu/drm/bridge/Makefile |2 +- drivers/gpu/drm/bridge/cdns-mhdp-common.c | 110 +- drivers/gpu/drm/bridge/cdns-mhdp-common.h | 11 + drivers/gpu/drm/bridge/cdns-mhdp.c| 1233 + 4 files changed, 1353 insertions(+), 3 deletions

[PATCH v2 0/5] drm: add support for Cadence MHDP DPI/DP bridge.

2018-07-25 Thread Damian Kos
tains, what is it for and what's going on here in general. - New structure. Now we have one common low level driver + two high level drivers - one for RockChip with minimum changes and one, more general, for Cadence. - Dropped some changes made to DRM helpers. - Updated the device tree bind

[PATCH v2 2/5] drm/dp: fix link probing for devices supporting DP 1.4+

2018-07-25 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RCVR_CAPA_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Damian Kos --- drivers/

[PATCH v2 4/5] dt-bindings: drm/bridge Document Cadence MHDP DPI/DP bridge bindings

2018-07-25 Thread Damian Kos
From: Quentin Schulz Signed-off-by: Damian Kos --- .../bindings/display/bridge/cdns,mhdp.txt | 43 +++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp.txt diff --git a/Documentation/devicetree/bindings

[PATCH v2 1/5] drm/rockchip: moved cdns mhdp dpi/dp bridge low driver to a new location

2018-07-25 Thread Damian Kos
ce MHDP DPI/DP bridge (DRM_CDNS_MHDP). Signed-off-by: Damian Kos --- drivers/gpu/drm/bridge/Kconfig| 7 + drivers/gpu/drm/bridge/Makefile | 1 + .../cdns-mhdp-common.c} | 434 +- .../cdns-mhdp-common.h}

[PATCH v2 3/5] drm/dp: make dp_link_status and dp_get_lane_status usable from outside of the core

2018-07-25 Thread Damian Kos
e used by other drivers, be they compiled built-in or as modules. Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 20 +++- include/drm/drm_dp_helper.h | 3 +++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/

[PATCH 03/12] drm/dp: add helpers for drm_dp_set_adjust_request_pre_emphasis and drm_dp_set_adjust_request_voltage

2018-07-04 Thread Damian Kos
drm_dp_set_adjust_request_voltage that respectively set the pre-emphasis and voltage of a lane in the link status array. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 28 include/drm/drm_dp_helper.h |4 2 files changed, 32

[PATCH 10/12] dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings

2018-07-04 Thread Damian Kos
Document the bindings used for the Cadence MHDP DPI/DP bridge. Signed-off-by: Damian Kos --- .../bindings/display/bridge/cdns,mhdp.txt | 39 1 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge

[PATCH 09/12] drm/dp: add pixel encoding and colorimetry format indicator field in MISC1

2018-07-04 Thread Damian Kos
. This is used for Y420. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- include/drm/drm_dp_helper.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index accefbb..22f6c3e 100644 --- a/include/drm

[PATCH 08/12] drm/dp: add max number of lanes supported

2018-07-04 Thread Damian Kos
From: Quentin Schulz Currently, a maximum of 4 lanes is supported in DP. It can be useful to add this maximum so that we can e.g. create arrays in drivers that can store data for several lanes (e.g. DP_TRAINING_LANEx_SET). Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- include

[PATCH 02/12] drm/dp: make dp_link_status and dp_get_lane_status usable from outside of the core

2018-07-04 Thread Damian Kos
e used by other drivers, be they compiled built-in or as modules. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 20 +++- include/drm/drm_dp_helper.h |3 +++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/

[PATCH 07/12] drm/dp: fix drm_dp_link_train_clock_recovery_delay for DP 1.4

2018-07-04 Thread Damian Kos
From: Quentin Schulz In DP 1.4, interval between link status and adjust request read for the clock recovery phase is fixed to 100us whatever the value of the register is. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c |5 + 1 files changed

[PATCH 04/12] drm/dp: fix training interval formula for DP 1.3+

2018-07-04 Thread Damian Kos
y: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 14 ++ include/drm/drm_dp_helper.h |2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index ca2f469..7f5d568

[PATCH 01/12] HACK: increase timeout for drm_atomic_helper_wait_for_vblanks

2018-07-04 Thread Damian Kos
From: Quentin Schulz Due to the DP IP being simulated in a different and way slower way than the rest of the hardware, increase the timeout in drm_atomic_helper_wait_for_vblanks so that we don't miss the vblank event. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- driver

[PATCH 00/12] drm: add support for Cadence MHDP DPI/DP bridge.

2018-07-04 Thread Damian Kos
Damian Kos (3): dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings drm/rockchip: added implementation for a few FW commands. drm/rockchip: add support for CDNS MHDP IP controller. Quentin Schulz (9): HACK: increase timeout for drm_atomic_helper_wait_for_vblanks drm/dp: make

[PATCH 06/12] drm/dp: fix drm_dp_link_power_* for DP 1.2+

2018-07-04 Thread Damian Kos
reserved values). Thus, we need to expand DP_SET_POWER_MASK to 3 bits (thus 0x7). It is safe to expand DP_SET_POWER_MASK to 3 bits since bit 2 in DP 1.1 is reserved and read 0. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- include/drm/drm_dp_helper.h |2 +- 1 files changed, 1

[PATCH 12/12] drm/rockchip: add support for CDNS MHDP IP controller.

2018-07-04 Thread Damian Kos
Signed-off-by: Damian Kos --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 953 +++- drivers/gpu/drm/rockchip/cdn-dp-core.h | 25 + drivers/gpu/drm/rockchip/cdn-dp-reg.c |2 +- drivers/gpu/drm/rockchip/cdn-dp-reg.h |4 + 4 files changed, 960 insertions(+), 24

[PATCH 11/12] drm/rockchip: added implementation for a few FW commands.

2018-07-04 Thread Damian Kos
Added support for a register read, register write and register field write commands. Added support for adjust link training command. Updated cdn_dp_get_event function, so it reads all SW event registers. Added definitions mostly for Framer and Streamer. Signed-off-by: Damian Kos --- drivers/gpu

RE: [PATCH 12/12] drm/rockchip: add support for CDNS MHDP IP controller.

2018-07-04 Thread Damian Kos
Stübner Sent: Tuesday, July 3, 2018 13:03 To: Damian Kos Cc: David Airlie ; Rob Herring ; Mark Rutland ; Gustavo Padovan ; Maarten Lankhorst ; Sean Paul ; Sandy Huang ; dri-devel@lists.freedesktop.org; devicet...@vger.kernel.org; linux-ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.or

[PATCH 05/12] drm/dp: fix link probing for devices supporting DP 1.4+

2018-07-04 Thread Damian Kos
alfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RCVR_CAPA_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Dami