[PATCH 2/3] drm/bridge/sii8620: Fix display of packed pixel modes

2018-06-29 Thread Maciej Purski
B (no packed pixel) or YCBCR422 (packed pixel). This reverts commit e8b92efa629dac0e70ea4145c5e70616de5f89c8 ("drm/bridge/sii8620: fix display of packed pixel modes in MHL2"). Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 17 - 1 file changed

[PATCH 1/3] drm/bridge/sii8620: Send AVI infoframe in all MHL versions

2018-06-29 Thread Maciej Purski
manually filling each infoframe structure's field. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 39 ++-- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridg

[PATCH 3/3] drm/bridge/sii8620: Fix link mode selection

2018-06-29 Thread Maciej Purski
Current link mode values do not allow to enable packed pixel modes. Select packed pixel clock mode, if needed, every time the link mode register gets updated. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 30 -- 1 file changed, 20

[PATCH 0/3] Fix packed pixel modes display on MHL2

2018-06-29 Thread Maciej Purski
on MHL2, while not breaking it on MHL3. Best regards, Maciej Purski Maciej Purski (3): drm/bridge/sii8620: Send AVI infoframe in all MHL versions drm/bridge/sii8620: Fix display of packed pixel modes drm/bridge/sii8620: Fix link mode selection drivers/gpu/drm/bridge/sil-sii8620.c | 86

[PATCH v3 4/9] dt-bindings: display: add DT bindings for BOE HV070WSA-100 panel

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda The patch adds bindings to BOE HV070-WSA WSVGA panel. Bindings are compatible with simple panel bindings. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../bindings/display/panel/boe,hv070wsa-100.txt| 28 ++ 1 file changed, 28

[PATCH v3 1/9] drm/exynos: rename "bridge_node" to "mic_bridge_node"

2018-06-19 Thread Maciej Purski
When adding support for peripheral out bridges, the "bridge" name becomes imprecise as it refers to a different device than the "out_bridge". Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 1 file changed, 8 insertions(+),

[PATCH v3 7/9] drm/bridge: tc358764: Add DSI to LVDS bridge driver

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/Kconfig| 8 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/tc358764.c | 521

[PATCH v3 9/9] ARM: dts: exynos5250-arndale: add DSI and panel nodes

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda The patch adds bridge and panel nodes. It adds also DSI properties specific for arndale board and regulators required by the bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250-arndale.dts | 61

[PATCH v3 2/9] drm/exynos: move connector creation to attach callback

2018-06-19 Thread Maciej Purski
L in order to avoid an out bridge from being visible by the framework, as the DSI bus needs control on enabling its child output bridge. Such sequence is required by Toshiba TC358764 bridge, which is a DSI peripheral bridge device. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos

[PATCH v3 3/9] drm/exynos: enable out_bridge in exynos_dsi_enable()

2018-06-19 Thread Maciej Purski
As the out bridge will not be enabled directly by the framework, it should be enabled by DSI. Exynos_dsi_enable() should handle a case, when there is an out_bridge connected as a DSI peripheral. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 34

[PATCH v3 8/9] ARM: dts: exynos5250: add DSI node

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda The patch adds common part of DSI node for Exynos5250 platforms and a required mipi-phy node. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch

[PATCH v3 5/9] drm/panel: add support for BOE HV070WSA-100 panel to simple-panel

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda The patch adds support for BOE HV070WSA-100 WSVGA 7.01 inch panel in panel-simple driver. The panel is used in Exynos5250-arndale boards. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/panel/panel-simple.c | 25 + 1

[PATCH v3 6/9] dt-bindings: tc358754: add DT bindings

2018-06-19 Thread Maciej Purski
From: Andrzej Hajda The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. Bindings describe power supplies, reset gpio and video interfaces. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../bindings/display/bridge/toshiba,tc358764.txt | 35 ++ 1

[PATCH v3 0/9] Add TOSHIBA TC358764 DSI/LVDS bridge driver

2018-06-19 Thread Maciej Purski
-arndale.dtsi. Best regards, Maciej Purski --- Changes in v3: - call drm_bridge_enable() and drm_bridge_pre_enable() in exynos_drm_dsi_enable() and make the bridge invisible for the framework in order to prevent it from being enabled by the framework - expand panel binding description - fix

Re: [PATCH v2 07/10] dt-bindings: tc358754: add DT bindings

2018-06-18 Thread Maciej Purski
On 05/30/2018 02:36 PM, Laurent Pinchart wrote: > Hi Maciej, > > On Wednesday, 30 May 2018 15:15:58 EEST Maciej Purski wrote: >> From: Andrzej Hajda >> >> The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. >> Bindings describe power supplies

Re: [PATCH v2 07/10] dt-bindings: tc358754: add DT bindings

2018-06-18 Thread Maciej Purski
On 05/31/2018 06:02 AM, Rob Herring wrote: > On Wed, May 30, 2018 at 02:15:58PM +0200, Maciej Purski wrote: >> From: Andrzej Hajda >> >> The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. >> Bindings describe power supplies, reset gpio and video inte

Re: [PATCH v2 08/10] drm/bridge: tc358764: Add DSI to LVDS bridge driver

2018-06-18 Thread Maciej Purski
On 05/31/2018 08:51 AM, Archit Taneja wrote: > Hi, > > On Wednesday 30 May 2018 05:45 PM, Maciej Purski wrote: >> From: Andrzej Hajda >> >> Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge. >> >> Signed-off-by: Andrzej

Re: [PATCH 3/3] drm/bridge/sii8620: fix loops in EDID fetch logic

2018-06-14 Thread Maciej Purski
Hi Andrzej, On 01/15/2018 06:33 PM, Andrzej Hajda wrote: > Function should constantly check if cable is connected and finish > in finite time. > > Signed-off-by: Andrzej Hajda Looks fine to me. Reviewed-by: Maciej Purski > --- > drivers/gpu/drm/bridge/

Re: [PATCH v2] drm/bridge/sii8620: simplify hardware reset procedure

2018-06-14 Thread Maciej Purski
Hi Andrzej, On 06/08/2018 08:04 AM, Andrzej Hajda wrote: > There is no need to flip reset pin twice. Also delays can be changed to > values present in vendor's code. > > Signed-off-by: Andrzej Hajda Reviewed-by: Maciej Purski > --- > Hi, > > This is v2 of forgot

[PATCH v2 01/10] drm/exynos: rename "bridge_node" to "mic_bridge_node"

2018-05-31 Thread Maciej Purski
When adding support for peripheral out bridges, the "bridge" name becomes imprecise as it refers to a different device than the "out_bridge". Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 1 file changed, 8 insertions(+),

[PATCH v2 00/10] Add TOSHIBA TC358764 DSI/LVDS bridge driver

2018-05-31 Thread Maciej Purski
-arndale.dtsi. Best regards, Maciej Purski --- Changes in v2: - fix commits authorship - don't call pm_runtime_put_sync() in exyons_dsi_disable(), if pm_runtime_get_sync() has not been called - squash dts commits - merge some redundant regulators in tc358764 bindings and in DTS - fix kbuild

[PATCH v2 10/10] ARM: dts: exynos5250-arndale: add DSI and panel nodes

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda The patch adds bridge and panel nodes. It adds also DSI properties specific for arndale board and regulators required by the bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250-arndale.dts | 61

[PATCH v2 07/10] dt-bindings: tc358754: add DT bindings

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. Bindings describe power supplies, reset gpio and video interfaces. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../bindings/display/bridge/toshiba,tc358764.txt | 37 ++ 1

[PATCH v2 09/10] ARM: dts: exynos5250: add DSI node

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda The patch adds common part of DSI node for Exynos5250 platforms and a required mipi-phy node. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch

[PATCH v2 02/10] drm/exynos: move pm_runtime_get_sync() to exynos_dsi_init()

2018-05-31 Thread Maciej Purski
In order to allow bridge drivers to use DSI transfers in their pre_enable callbacks, pm_runtime_get_sync() should be performed before exynos_dsi_enable(). DSIM_STATE_ENABLED flag now should not guard from calling dsi_host_transfer() before enabling. Signed-off-by: Maciej Purski --- drivers/gpu

[PATCH v2 04/10] drm/exynos: add non-panel path to exynos_dsi_enable()

2018-05-31 Thread Maciej Purski
As DSIM can now have a bridge connected as a peripheral, it should be possible to successfully enable exynos_dsi, when there is no panel provided. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 26 -- 1 file changed, 12 insertions(+), 14

[PATCH v2 03/10] drm/exynos: move connector creation to attach callback

2018-05-31 Thread Maciej Purski
The current implementation assumes that the only possible peripheral device for DSIM is a panel. Using an output bridge should also be possible. If an output bridge in available, don't create a new connector. Instead add bridge to DSIM encdoer in dsi_host_attach(). Signed-off-by: Maciej P

[PATCH v2 05/10] panel/hv070wsa-100: add DT bindings

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda The patch adds bindings to BOE HV070-WSA WSVGA panel. Bindings are compatible with simple panel bindings. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../devicetree/bindings/display/panel/boe,hv070wsa-100.txt | 7 +++ 1 file changed, 7

[PATCH v2 06/10] drm/panel: add support for BOE HV070WSA-100 panel to simple-panel

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda The patch adds support for BOE HV070WSA-100 WSVGA 7.01 inch panel in panel-simple driver. The panel is used in Exynos5250-arndale boards. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/panel/panel-simple.c | 25 + 1

[PATCH v2 08/10] drm/bridge: tc358764: Add DSI to LVDS bridge driver

2018-05-31 Thread Maciej Purski
From: Andrzej Hajda Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/Kconfig| 9 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/tc358764.c | 547

[PATCH 09/12] ARM: dts: exynos5250: add mipi-phy node

2018-05-28 Thread Maciej Purski
The patch adds phy node, required by MIPI devices. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 2daf505

[PATCH 11/12] ARM: dts: exynos5250-arndale: add display regulators

2018-05-28 Thread Maciej Purski
The patch adds fixed regulators used by DSI/LVDS bridge and panel. Regulators are named according to schematics. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250-arndale.dts | 24 1 file changed, 24 insertions(+) diff --git a

[PATCH 08/12] drm/bridge: tc358764: Add DSI to LVDS bridge driver

2018-05-28 Thread Maciej Purski
Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/Kconfig| 7 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/tc358764.c | 547

[PATCH 06/12] drm/panel: add support for BOE HV070WSA-100 panel to simple-panel

2018-05-28 Thread Maciej Purski
The patch adds support for BOE HV070WSA-100 WSVGA 7.01 inch panel in panel-simple driver. The panel is used in Exynos5250-arndale boards. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- drivers/gpu/drm/panel/panel-simple.c | 25 + 1 file changed, 25

[PATCH 04/12] drm/exynos: add non-panel path to exynos_dsi_enable()

2018-05-28 Thread Maciej Purski
As DSIM can now have a bridge connected as a peripheral, it should be possible to successfully enable exynos_dsi, when there is no panel provided. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 27 +-- 1 file changed, 13 insertions(+), 14

[PATCH 05/12] panel/hv070wsa-100: add DT bindings

2018-05-28 Thread Maciej Purski
The patch adds bindings to BOE HV070-WSA WSVGA panel. Bindings are compatible with simple panel bindings. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../devicetree/bindings/display/panel/boe,hv070wsa-100.txt | 7 +++ 1 file changed, 7 insertions(+) create mode

[PATCH 07/12] dt-bindings: tc358754: add DT bindings

2018-05-28 Thread Maciej Purski
The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. Bindings describe power supplies, reset gpio and video interfaces. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- .../bindings/display/bridge/toshiba,tc358764.txt | 42 ++ 1 file changed, 42

[PATCH 12/12] ARM: dts: exynos5250-arndale: add dsi and panel nodes

2018-05-28 Thread Maciej Purski
The patch adds bridge and panel nodes. It adds also DSI properties specific for arndale board. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250-arndale.dts | 39 1 file changed, 39 insertions(+) diff --git a/arch/arm

[PATCH 02/12] drm/exynos: move pm_runtime_get_sync() to exynos_dsi_init()

2018-05-28 Thread Maciej Purski
In order to allow bridge drivers to use DSI transfers in their pre_enable callbacks, pm_runtime_get_sync() should be performed before exynos_dsi_enable(). DSIM_STATE_ENABLED flag now should not guard from calling dsi_host_transfer() before enabling. Signed-off-by: Maciej Purski --- drivers/gpu

[PATCH 10/12] ARM: dts: exynos5250: add DSI node

2018-05-28 Thread Maciej Purski
The patch adds common part of DSI node for Exynos5250 platforms. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5250.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250

[PATCH 01/12] drm/exynos: rename "bridge_node" to "mic_bridge_node"

2018-05-28 Thread Maciej Purski
When adding support for peripheral out bridges, the "bridge" name becomes imprecise as it refers to a different device than the "out_bridge". Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 1 file changed, 8 insertions(+),

[PATCH 03/12] drm/exynos: move connector creation to attach callback

2018-05-28 Thread Maciej Purski
The current implementation assumes that the only possible peripheral device for DSIM is a panel. Using an output bridge should also be possible. If an output bridge in available, don't create a new connector. Instead add bridge to DSIM encdoer in dsi_host_attach(). Signed-off-by: Maciej P

[PATCH 00/12] Add TOSHIBA TC358764 DSI/LVDS bridge driver

2018-05-28 Thread Maciej Purski
-arndale.dtsi. Best regards, Maciej Purski Maciej Purski (12): drm/exynos: rename "bridge_node" to "mic_bridge_node" drm/exynos: move pm_runtime_get_sync() to exynos_dsi_init() drm/exynos: move connector creation to attach callback drm/exynos: add non-panel path to exynos_

[PATCH 8/8] [media] s5p-mfc: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 6 ++-- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c

[PATCH 4/8] drm/exynos/dsi: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. In order to achieve consistency with other drivers, define clock names in driver's variants structures. Signed-off-by: Maciej Purski --- drivers/gpu/

[PATCH 7/8] [media] exynos-gsc: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/media/platform/exynos-gsc/gsc-core.c | 55 ++-- drivers/media/platform/exynos-gsc/gsc-core.h | 2

[PATCH 5/8] drm/exynos: mic: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 41 +++-- 1 file changed, 14 insertions(+), 27 deletions(-)

[PATCH 6/8] drm/exynos/hdmi: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_hdmi.c | 97 ++-- 1 file changed, 27 insertions(+), 70 deletions(-)

[PATCH 3/8] drm/exynos/decon: Use clk bulk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 50 --- 1 file changed, 15 insertions(+), 35 deletions(-)

[PATCH 0/8] Use clk bulk API in exynos5433 drivers

2018-02-19 Thread Maciej Purski
Hi all, the main goal of this patchset is to simplify clk management code in exynos5433 drivers by using clk bulk API. In order to achieve that, patch #1 adds a new function to clk core, which dynamically allocates clk_bulk_data array and fills its id fields. Best regards, Maciej Purski Maciej

[PATCH 2/8] media: s5p-jpeg: Use bulk clk API

2018-02-19 Thread Maciej Purski
Using bulk clk functions simplifies the driver's code. Use devm_clk_bulk functions instead of iterating over an array of clks. Signed-off-by: Maciej Purski --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 45 - drivers/media/platform/s5p-jpeg/jpeg-core.h | 2

[PATCH 1/8] clk: Add clk_bulk_alloc functions

2018-02-19 Thread Maciej Purski
by clk_bulk_alloc() function. Add a managed version of clk_bulk_alloc(). Signed-off-by: Maciej Purski --- drivers/clk/clk-bulk.c | 16 drivers/clk/clk-devres.c | 37 +--- include/linux/clk.h | 64 3 files

[PATCH v2] drm/bridge/sii8620: fix display modes validation

2018-02-02 Thread Maciej Purski
Current implementation of mode_valid() and mode_fixup() callbacks handle packed pixel modes improperly. Fix it by using proper maximum clock values from the documentation. Signed-off-by: Maciej Purski --- Changes in v2: - simplify is_packing_required() function - fix uninitialized variable

[PATCH v2] drm/bridge/sii8620: fix HDMI cable connection to dongle

2018-01-23 Thread Maciej Purski
MHL1, MHL2 and MHL3 using various vendors' dongles both in DVI and HDMI mode. Signed-off-by: Maciej Purski --- Changes in v2: - handle MHL1 and MHL2 initialization sequence - rename hpd_plugged() function to identify_sink(), as it is now used in different contexts - fix commit me

[PATCH] drm/bridge/sii8620: fix display of packed pixel modes in MHL2

2018-01-23 Thread Maciej Purski
Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index 1718c2e..e13708d 100644 --- a/drivers/gpu/drm/bridge/sil

[PATCH] drm/bridge/sii8620: fix display modes validation

2018-01-23 Thread Maciej Purski
Current implementation of mode_valid() and mode_fixup() callbacks handle packed pixel modes improperly. Fix it by using proper maximum clock values from the documentation. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 90 1 file

[PATCH 2/2] drm/bridge/sii8620: fix HDMI cable connection to dongle

2017-11-29 Thread Maciej Purski
MHL bridge is usually connected to TV via MHL dongle. Currently plugging HDMI cable to dongle is handled improperly. This patch fixes it. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 49 1 file changed, 27 insertions(+), 22

[PATCH 1/2] drm/bridge/sii8620: remove HSIC initialization

2017-11-29 Thread Maciej Purski
HSIC initialization was taken from the vendor code. HSIC in MHL circuit is not connected, so it is not possible to test it. Tests prove that without HSIC the device works well. Therefore it can be removed. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 38

[PATCH] drm/bridge/sii8620: start MHL transmission after HDMI signal detection

2017-11-29 Thread Maciej Purski
lines in irq_scdt() function without waiting for infoframe interrupt. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 53 ++-- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm

[PATCH] drm/bridge/sii8620: fix potential buffer overflow

2017-11-22 Thread Maciej Purski
oid buffer overflow error. Reported-by: Dan Carpenter Fixes: bf1722ca ("drm/bridge/sii8620: rewrite hdmi start sequence") Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sil-

[PATCH v2] drm/bridge/sii8620: add DVI mode support

2017-11-09 Thread Maciej Purski
start_video, if the sink is DVI and mode is MHL1 or MHl2, write appropriate values to registers else the path should remain the same as in HDMI mode. Signed-off-by: Maciej Purski --- v2: - remove redundant defines --- drivers/gpu/drm/bridge/sil-sii8620.c | 36 ++-- 1 file

[PATCH] drm/bridge/sii8620: add DVI mode support

2017-11-09 Thread Maciej Purski
start_video, if the sink is DVI and mode is MHL1 or MHl2, write appropriate values to registers else the path should remain the same as in HDMI mode. Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/sil-sii8620.c | 37 ++-- drivers/gpu/drm/bridge/sil-sii8620.h | 2

[RESEND PATCH v5] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-10-09 Thread Maciej Purski
-by: Maciej Purski Reviewed-by: Andrzej Hajda --- arch/arm/boot/dts/exynos4412-trats2.dts | 111 1 file changed, 111 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index bceb919..d7f77a6 100644 --- a

[PATCH v5 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-10-05 Thread Maciej Purski
interface to perform this operation. This patch is based on the code refactored by Tomasz Stanislawski , which was initially developed by: Adam Hampson Erik Gilling Shankar Bandal Dharam Kumar Signed-off-by: Maciej Purski Acked-by: Rob Herring [for dt bindings] --- .../devicetree/bindings/display

[PATCH v5 2/2] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-10-05 Thread Maciej Purski
-by: Maciej Purski --- arch/arm/boot/dts/exynos4412-trats2.dts | 111 1 file changed, 111 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 35e9b94..4483deb 100644 --- a/arch/arm/boot/dts/exynos4412

[PATCH v5 0/2] add Silicon Image SiI9234 driver

2017-10-05 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Changes in v5

Re: [PATCH v4] drm/bridge/sii8620: add remote control support

2017-09-18 Thread Maciej Purski
presented in my last email? Best Regards, Maciej [1] https://git.linuxtv.org/media_tree.git/commit/drivers/media/cec/cec-adap.c?id=a9a249a2c997506a64eaee22f1458fda893f62a8 On 08/27/2017 02:40 PM, Hans Verkuil wrote: Hi Maciej, On 24/08/17 10:58, Maciej Purski wrote: MHL specification

[PATCH v4 2/2] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-09-12 Thread Maciej Purski
-by: Maciej Purski --- arch/arm/boot/dts/exynos4412-trats2.dts | 112 1 file changed, 112 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 35e9b94..742e02a 100644 --- a/arch/arm/boot/dts/exynos4412

[PATCH v4 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-09-12 Thread Maciej Purski
interface to perform this operation. This patch is based on the code refactored by Tomasz Stanislawski , which was initially developed by: Adam Hampson Erik Gilling Shankar Bandal Dharam Kumar Signed-off-by: Maciej Purski --- .../devicetree/bindings/display/bridge/sii9234.txt | 49 + drivers/gpu

[PATCH v4 0/2] add Silicon Image SiI9234 driver

2017-09-12 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Changes in v4

Re: [PATCH v3 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-09-11 Thread Maciej Purski
Hi Krzysztof, thank you for your comments. On 08.09.2017 at 19:05, Krzysztof Kozlowski wrote: On Tue, Sep 05, 2017 at 04:01:38PM +0200, Maciej Purski wrote: SiI9234 transmitter converts eTMDS/HDMI signal to MHL 1.0. It is controlled via I2C bus. Its interaction with other devices in video

[PATCH v3 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-09-05 Thread Maciej Purski
interface to perform this operation. This patch is based on the code refactored by Tomasz Stanislawski , which was initially developed by: Adam Hampson Erik Gilling Shankar Bandal Dharam Kumar Signed-off-by: Maciej Purski --- .../devicetree/bindings/display/bridge/sii9234.txt | 34 + drivers/gpu

[PATCH v3 2/2] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-09-05 Thread Maciej Purski
-by: Maciej Purski --- arch/arm/boot/dts/exynos4412-trats2.dts | 112 1 file changed, 112 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 35e9b94..742e02a 100644 --- a/arch/arm/boot/dts/exynos4412

[PATCH v3 0/2] add Silicon Image SiI9234 driver

2017-09-05 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Changes in v3

Re: [PATCH v2 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-09-05 Thread Maciej Purski
/2015-December/096756.html Regards, Maciej On 31/08/17 15:30, Laurent Pinchart wrote: Hi Maciej, Thank you for the patch. On Thursday, 31 August 2017 15:27:13 EEST Maciej Purski wrote: SiI9234 transmitter converts eTMDS/HDMI signal to MHL 1.0. It is controlled via I2C bus. Its interaction

[PATCH] drm/exynos/hdmi: Fix unsafe list iteration

2017-09-05 Thread Maciej Purski
Function hdmi_mode_fixup() used bare list_for_each entry, which was unsafe and caused memory corruption detected by kasan. It now uses drm_for_each_connector_iter macro, which is now recommended by the documentation and safe. Signed-off-by: Maciej Purski --- drivers/gpu/drm/exynos/exynos_hdmi.c

Re: [PATCH v4] drm/bridge/sii8620: add remote control support

2017-09-05 Thread Maciej Purski
ns Verkuil wrote: Hi Maciej, On 24/08/17 10:58, Maciej Purski wrote: MHL specification defines Remote Control Protocol(RCP) to send input events between MHL devices. The driver now recognizes RCP messages and reacts to them by reporting key events to input subsystem, allowing a user to contro

[PATCH v2 2/2] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-08-31 Thread Maciej Purski
-by: Maciej Purski --- Changes in v2: - fix commit message - add regulators nodes to model actual physical connections --- arch/arm/boot/dts/exynos4412-trats2.dts | 111 1 file changed, 111 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch

[PATCH v2 0/2] add Silicon Image SiI9234 driver

2017-08-31 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Changes in v2

[PATCH v2 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-08-31 Thread Maciej Purski
interface to perform this operation. This patch is based on the code refactored by Tomasz Stanislawski , which was initially developed by: Adam Hampson Erik Gilling Shankar Bandal Dharam Kumar Signed-off-by: Maciej Purski --- Changes in v2: - use bulk_requlators instead of single one - substitute

[PATCH v4] drm/bridge/sii8620: add remote control support

2017-08-24 Thread Maciej Purski
MHL specification defines Remote Control Protocol(RCP) to send input events between MHL devices. The driver now recognizes RCP messages and reacts to them by reporting key events to input subsystem, allowing a user to control a device using TV remote control. Signed-off-by: Maciej Purski

[PATCH] drm/bridge/sii8620: Fix memory corruption

2017-08-21 Thread Maciej Purski
Function sii8620_mt_read_devcap_reg_recv() used to read array index from a wrong msg register, which caused writing out of array bounds. It led to writing on other fields of struct sii8620. Signed-off-by: Maciej Purski Fixes: e9c6da270 ("drm/bridge/sii8620: add reading device capab

[PATCH v3] drm/bridge/sii8620: add remote control support

2017-08-21 Thread Maciej Purski
v3: - fix error handling in init_rcp and in attach callback Signed-off-by: Maciej Purski --- drivers/gpu/drm/bridge/Kconfig | 2 +- drivers/gpu/drm/bridge/sil-sii8620.c | 101 +-- include/drm/bridge/mhl.h | 4 ++ 3 files changed, 101 insertions

[PATCH v2] drm/bridge/sii8620: add remote control support

2017-08-16 Thread Maciej Purski
-by: Maciej Purski --- drivers/gpu/drm/bridge/Kconfig | 2 +- drivers/gpu/drm/bridge/sil-sii8620.c | 99 ++-- include/drm/bridge/mhl.h | 4 ++ 3 files changed, 99 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers

[PATCH 0/2] add Silicon Image SiI9234 driver

2017-08-10 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Patch

[PATCH 2/2] arm64: dts: exynos: add extcon phandle

2017-08-10 Thread Maciej Purski
Sii8620 driver can now use extcon in order to switch on and off the device. Signed-off-by: Maciej Purski --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts

[PATCH 1/2] drm/bridge/sii8620: add external connector handle

2017-08-10 Thread Maciej Purski
The driver should be switched on if an external connector is plugged and switched off if it is unplugged. Extcon is optional. If it is not found, the driver stays in "always-on" mode. Signed-off-by: Maciej Purski --- .../bindings/display/bridge/sil-sii8620.txt| 4 ++ drive

[PATCH 0/2] drm/bridge/sii8620: add external connector handle

2017-08-10 Thread Maciej Purski
Hi everyone, These patches add external connector handling to sii8620 driver. The first patch documents the extcon binding and add extcon handling to the driver. The second adds support for this in exynos5433-tm2-common.dtsi. All comments are welcome. Regards, Maciej Purski Patch summary

Re: [PATCH] drm/bridge/sii8620: add remote control support

2017-08-10 Thread Maciej Purski
and I'm going to use RC subsystem there. Regards, Maciej Purski On 08/03/2017 10:28 AM, Hans Verkuil wrote: Hi Maciej, Unfortunately I do not have the MHL spec, but I was wondering what the relationship between RCP and CEC is. CEC has remote control support as well, so is RCP

[PATCH 0/2] add Silicon Image SiI9234 driver

2017-08-03 Thread Maciej Purski
/ and integrated with drm/bridge subsystem * added filtering-out unsupported display modes * changed gpio interface to up-to-date * changed interrupt handling * improve code style * add hdmi and sii9324 to exynos4412-trats2 device tree All comments are welcome. Regards, Maciej Purski Patch

[PATCH 2/2] ARM: dts: exynos: Add HDMI and Sil9234 to Trats2 board

2017-08-03 Thread Maciej Purski
This patch adds HDMI and Sil9234 MHL converter to Trats2 board. Based on previous work by: Tomasz Stanislawski Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos4412-trats2.dts | 93 + 1 file changed, 93 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 1/2] drm/bridge: add Silicon Image SiI9234 driver

2017-08-03 Thread Maciej Purski
interface to perform this operation. This patch is based on the code refactored by Tomasz Stanislawski , which was initially developed by: Adam Hampson Erik Gilling Shankar Bandal Dharam Kumar Signed-off-by: Maciej Purski --- .../devicetree/bindings/display/bridge/sii9234.txt | 20 + drivers/gpu

[PATCH] drm/bridge/sii8620: add remote control support

2017-08-03 Thread Maciej Purski
MHL specification defines Remote Control Protocol(RCP) to send input events between MHL devices. The driver now recognizes RCP messages and reacts to them by reporting key events to input subsystem, allowing a user to control a device using TV remote control. Signed-off-by: Maciej Purski