[PATCH 1/2] drivers/video/hdmi: allow for larger-than-needed vendor IF

2017-11-20 Thread Hans Verkuil
From: Hans Verkuil <hansv...@cisco.com> Some devices (Windows Intel driver!) send a Vendor InfoFrame that uses a payload length of 0x1b instead of the length of 5 or 6 that the unpack code expects. The InfoFrame is padded with 0 by the source. The current code thinks anything other than

[PATCH 0/2] video/hdmi: two fixes

2017-11-20 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Ville, can you add these two to your "drm/edid: Infoframe cleanups and fixes" patch series? These two have been in our queue for some time now and were never upstreamed, so this is a good opportunity to finally kick them out. Once all

[PATCH 2/2] hdmi: audio infoframe log: corrected channel count

2017-11-20 Thread Hans Verkuil
From: Martin Bugge <marbu...@cisco.com> Audio channel count should start from 2. Reference: CEA-861-F Table 27. Cc: Hans Verkuil <hverk...@xs4all.nl> Reported-by: Ahung Cheng <ahch...@nvidia.com> Signed-off-by: Martin Bugge <marbu...@cisco.com> --- drivers/video/hdmi.

Re: [PATCH 10/10] video/hdmi: Pass buffer size to infoframe unpack functions

2017-11-20 Thread Hans Verkuil
On 11/13/2017 06:04 PM, Ville Syrjala wrote: > From: Ville Syrjälä <ville.syrj...@linux.intel.com> > > To make sure the infoframe unpack functions don't end up examining > stack garbage or oopsing, let's pass in the size of the buffer. > > Cc: Thierry Reding <thierry.r

Re: [PATCH v3] drm: bridge: synopsys/dw-hdmi: Enable cec clock

2017-11-20 Thread Hans Verkuil
I didn't see this merged for 4.15, is it too late to include this? All other changes needed to get CEC to work on rk3288 and rk3399 are all merged. Regards, Hans On 10/26/2017 08:19 PM, Pierre-Hugues Husson wrote: > The documentation already mentions "cec" optional clock, but >

[PATCHv5 2/3] drm-kms-helpers.rst: document the DP CEC helpers

2017-11-20 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the Display Port CEC helper functions. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- No changes since v4. --- Documentation/gpu/drm-kms-helpers.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/Documenta

[PATCHv5 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-11-20 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Implement support for this DisplayPort feature. The cec device is created whenever it detects an adapter that has this feature. It is only removed when a new adapter is connected that does not support this. If a new adapter is connected th

[PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-11-20 Thread Hans Verkuil
This patch series adds support for the DisplayPort CEC-Tunneling-over-AUX feature. This patch series is based on the 4.14 mainline release but applies as well to drm-next. This patch series has been tested with my NUC7i5BNK, a Samsung USB-C to HDMI adapter and a Club 3D DisplayPort MST Hub +

[PATCHv5 1/3] drm: add support for DisplayPort CEC-Tunneling-over-AUX

2017-11-20 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This adds support for the DisplayPort CEC-Tunneling-over-AUX feature that is part of the DisplayPort 1.3 standard. Unfortunately, not all DisplayPort/USB-C to HDMI adapters with a chip that has this capability actually hook up the CEC pin, s

[RFC] [PATCH] drm: adv7511/33: Fix adv7511_cec_init() failure handling

2017-11-17 Thread Hans Verkuil
t; Cc: Dan Carpenter <dan.carpen...@oracle.com> Cc: Sean Paul <seanp...@chromium.org> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Archit Taneja <arch...@codeaurora.org> Cc: John Stultz <john.stu...@linaro.org> Link: https://bugs.linaro.org/show_bug.cgi?id=3345 Link: http

Re: [PATCH] [RFT] drm: adv7511/33: fix adv7511_cec_init() failure handling

2017-11-15 Thread Hans Verkuil
On 15/11/17 13:37, Arnd Bergmann wrote: > An otherwise correct cleanup patch from Dan Carpenter turned a broken > failure handling from a feature patch by Hans Verkuil into a kernel > Oops, so bisection points to commit 7af35b0addbc ("drm/kirin: Checking > for IS_ERR() instead

Re: [PATCH] omapdrm: hdmi4_cec: signedness bug in hdmi4_cec_init()

2017-10-28 Thread Hans Verkuil
On 10/27/2017 08:27 AM, Dan Carpenter wrote: > "ret" needs to be signed for the error handling to work. > > Fixes: 8d7f934df8d8 ("omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support") > Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> Oops! Not sure how

[PATCH] tegra-cec: fix messy probe() cleanup

2017-10-21 Thread Hans Verkuil
, it was just messy. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Since I already posted the pull request for this driver and since this is just a cleanup I decided to do this as a separate patch on top of the pull request code rather than merging this in the pull request. --- d

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Hans Verkuil
On 10/19/17 15:30, Thierry Reding wrote: > On Thu, Oct 19, 2017 at 03:17:16PM +0200, Thierry Reding wrote: >> On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: >>> From: Hans Verkuil <hans.verk...@cisco.com> >>> >>> In order to support CEC th

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-19 Thread Hans Verkuil
On 10/19/17 11:20, Thierry Reding wrote: > On Mon, Sep 11, 2017 at 02:29:48PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> This patch series adds support for the Tegra CEC functionality. >> >> This v4 has been reba

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-14 Thread Hans Verkuil
On 10/14/2017 03:34 PM, Thierry Reding wrote: > On Sat, Oct 14, 2017 at 02:08:31PM +0200, Hans Verkuil wrote: >> Hi Thierry, >> >> On 09/11/2017 02:29 PM, Hans Verkuil wrote: >>> From: Hans Verkuil <hans.verk...@cisco.com> >>> >>> This pat

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-14 Thread Hans Verkuil
Hi Thierry, On 09/11/2017 02:29 PM, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > This patch series adds support for the Tegra CEC functionality. > > This v4 has been rebased to the latest 4.14 pre-rc1 mainline. > > Please review!

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-14 Thread Hans Verkuil
On 10/12/2017 10:03 AM, Tomi Valkeinen wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 12/10/17 09:50, Hans Verkuil wrote: > >>> I can't test with a TV, so no CEC for

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-12 Thread Hans Verkuil
On 10/12/17 10:03, Tomi Valkeinen wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 12/10/17 09:50, Hans Verkuil wrote: > >>> I can't test with a TV, so no CEC for

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-12 Thread Hans Verkuil
Hi Tomi, On 08/22/2017 11:44 AM, Tomi Valkeinen wrote: > Hi Hans, > >>> > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 11/08/17 13:57, Tomi Valkeinen wrote: >>> I'm doing some testing with this

[PATCHv3 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-10-07 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the cec clock binding. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt | 4 1 file changed, 4 inserti

[PATCHv3 0/2] drm/bridge/adv7511: add CEC support

2017-10-07 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This patch series adds CEC support to the drm adv7511/adv7533 drivers. I have tested this with the Qualcomm Dragonboard C410 (adv7533 based) and the Renesas R-Car Koelsch board (adv7511 based). I only have the Koelsch board to test with, but it

[PATCHv3 2/2] drm: adv7511/33: add HDMI CEC support

2017-10-07 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for HDMI CEC to the drm adv7511/adv7533 drivers. The CEC registers that we need to use are identical for both drivers, but they appear at different offsets in the register map. Signed-off-by: Hans Verkuil <hans.verk...@

Re: [PATCHv2 2/2] drm: adv7511/33: add HDMI CEC support

2017-10-06 Thread Hans Verkuil
On 06/10/17 06:26, Archit Taneja wrote: > Hi Hans, > > On 09/19/2017 01:03 PM, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Add support for HDMI CEC to the drm adv7511/adv7533 drivers. >> >> The CEC registers that

Re: [PATCHv4 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-25 Thread Hans Verkuil
Hi Ville, On 18/09/17 17:49, Ville Syrjälä wrote: > On Mon, Sep 18, 2017 at 05:26:43PM +0200, Hans Verkuil wrote: >> On 09/18/2017 04:36 PM, Ville Syrjälä wrote: >>> On Mon, Sep 18, 2017 at 04:07:41PM +0200, Hans Verkuil wrote: >>>> Hi Ville, >>>> >&g

Re: [PATCH 00/11] drm/sun4i: add CEC support

2017-09-21 Thread Hans Verkuil
On 21/09/17 22:37, Maxime Ripard wrote: > Hi Hans, > > On Fri, Sep 08, 2017 at 10:59:44AM +0000, Hans Verkuil wrote: >> Hi Maxime, >> >> On 07/18/17 18:29, Maxime Ripard wrote: >>> Hi, >>> >>> On Tue, Jul 11, 2017 at 11:06:52PM +0200, Han

Re: [RESEND RFC PATCH 0/7] sun8i H3 HDMI glue driver for DW HDMI

2017-09-21 Thread Hans Verkuil
On 09/21/17 11:39, Jose Abreu wrote: > Hi Jernej, > > On 20-09-2017 21:01, Jernej Skrabec wrote: >> [added media mailing list due to CEC question] >> >> This patch series adds a HDMI glue driver for Allwinner H3 SoC. For now, only >> video and CEC functionality is supported. Audio needs more

[ANN] edid-decode on freedesktop.org has been updated to the latest CTA-861 spec

2017-09-20 Thread Hans Verkuil
For anyone interested in decoding an EDID: The edid-decode utility available from git://anongit.freedesktop.org/xorg/app/edid-decode has been updated to include the latest CTA-861-G standard. Also many bug fixes were applied and the utility does a much better job at checking the EDID for

Re: [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-09-19 Thread Hans Verkuil
On 09/19/17 12:42, Sergei Shtylyov wrote: > On 9/19/2017 1:35 PM, Hans Verkuil wrote: > >>>>>>>> From: Hans Verkuil <hans.verk...@cisco.com> >>>>>>>> >>>>>>>> Document the cec clock binding. >>>>>

Re: [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-09-19 Thread Hans Verkuil
On 09/19/17 12:15, Sergei Shtylyov wrote: > On 9/19/2017 1:07 PM, Hans Verkuil wrote: > >>>>>> From: Hans Verkuil <hans.verk...@cisco.com> >>>>>> >>>>>> Document the cec clock binding. >>>>>> >>>>>&

Re: [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-09-19 Thread Hans Verkuil
On 09/19/17 11:35, Sergei Shtylyov wrote: > On 9/19/2017 12:29 PM, Hans Verkuil wrote: > >>>> From: Hans Verkuil <hans.verk...@cisco.com> >>>> >>>> Document the cec clock binding. >>>> >>>> Signed-off-by: Hans Verk

Re: [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-09-19 Thread Hans Verkuil
On 09/19/17 11:20, Sergei Shtylyov wrote: > Hello! > > On 9/19/2017 10:33 AM, Hans Verkuil wrote: > >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Document the cec clock binding. >> >> Signed-off-by: Hans Verkuil <hans.verk...@c

[PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock

2017-09-19 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the cec clock binding. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt | 4 1 file changed, 4 inserti

[PATCHv2 2/2] drm: adv7511/33: add HDMI CEC support

2017-09-19 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for HDMI CEC to the drm adv7511/adv7533 drivers. The CEC registers that we need to use are identical for both drivers, but they appear at different offsets in the register map. Signed-off-by: Hans Verkuil <hans.verk...@

[PATCHv2 0/2] drm/bridge/adv7511: add CEC support

2017-09-19 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> I should have posted this a month ago, but I completely forgot about it. Apologies for that. This patch series adds CEC support to the drm adv7511/adv7533 drivers. I have tested this with the Qualcomm Dragonboard C410 (adv7533 based) and the Ren

Re: [PATCHv4 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-18 Thread Hans Verkuil
On 09/18/2017 04:36 PM, Ville Syrjälä wrote: > On Mon, Sep 18, 2017 at 04:07:41PM +0200, Hans Verkuil wrote: >> Hi Ville, >> >> On 09/18/2017 03:05 PM, Ville Syrjälä wrote: >>> On Sat, Sep 16, 2017 at 04:17:26PM +0200, Hans Verkuil wrote: >>>>

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

2017-09-18 Thread Hans Verkuil
st 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 Pursk

Re: [PATCHv4 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-18 Thread Hans Verkuil
Hi Ville, On 09/18/2017 03:05 PM, Ville Syrjälä wrote: > On Sat, Sep 16, 2017 at 04:17:26PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Implement support for this DisplayPort feature. >> >> The cec device is created whe

[PATCHv6 5/5] MAINTAINERS: add cec-gpio entry

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add an entry for the CEC GPIO driver. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eb930ebecfcb..5ef0d34ef502 100644 --- a

[PATCHv6 3/5] dt-bindings: document the CEC GPIO bindings

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the bindings for the cec-gpio module for hardware where the CEC line and optionally the HPD line are connected to GPIO lines. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Reviewed-by: Linus Walleij <linus.wal

[PATCHv6 1/5] cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH. This is specifically meant for use with the upcoming cec-gpio driver and makes it possible to trace when the HPD pin changes. Some HDMI sinks do strange things with t

[PATCHv6 2/5] cec-ioc-dqevent.rst: document new CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document these new CEC events. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/media/uapi

[PATCHv6 4/5] cec-gpio: add HDMI CEC GPIO driver

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. While I have heard of SoCs that use the GPIO pin for CEC (apparently an early RockChip SoC used that), the main use-case of this driver is to function as a debuggin

[PATCHv6 0/5] cec-gpio: add HDMI CEC GPIO-based driver

2017-09-17 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This driver adds support for CEC implementations that use a pull-up GPIO line. While SoCs exist that do this, the primary use-case is to turn a single-board computer into a cheap CEC debugger. Together with 'cec-ctl --monitor-pin' you can do low

[PATCHv5 3/5] dt-bindings: document the CEC GPIO bindings

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the bindings for the cec-gpio module for hardware where the CEC line and optionally the HPD line are connected to GPIO lines. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- .../devicetree/bindings/media/cec-gpio.txt

[PATCHv5 2/5] cec-ioc-dqevent.rst: document new CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document these new CEC events. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/media/uapi

[PATCHv5 5/5] MAINTAINERS: add cec-gpio entry

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add an entry for the CEC GPIO driver. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eb930ebecfcb..5ef0d34ef502 100644 --- a

[PATCHv5 4/5] cec-gpio: add HDMI CEC GPIO driver

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. While I have heard of SoCs that use the GPIO pin for CEC (apparently an early RockChip SoC used that), the main use-case of this driver is to function as a debuggin

[PATCHv5 0/5] cec-gpio: add HDMI CEC GPIO-based driver

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This driver adds support for CEC implementations that use a pull-up GPIO line. While SoCs exist that do this, the primary use-case is to turn a single-board computer into a cheap CEC debugger. Together with 'cec-ctl --monitor-pin' you can do low

[PATCHv5 1/5] cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH. This is specifically meant for use with the upcoming cec-gpio driver and makes it possible to trace when the HPD pin changes. Some HDMI sinks do strange things with t

[PATCHv4 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Implement support for this DisplayPort feature. The cec device is created whenever it detects an adapter that has this feature. It is only removed when a new adapter is connected that does not support this. If a new adapter is connected th

[PATCHv4 1/3] drm: add support for DisplayPort CEC-Tunneling-over-AUX

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This adds support for the DisplayPort CEC-Tunneling-over-AUX feature that is part of the DisplayPort 1.3 standard. Unfortunately, not all DisplayPort/USB-C to HDMI adapters with a chip that has this capability actually hook up the CEC pin, s

[PATCHv4 2/3] drm-kms-helpers.rst: document the DP CEC helpers

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the Display Port CEC helper functions. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/gpu/drm-kms-helpers.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/gpu/drm-kms-he

[PATCHv4 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-16 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This patch series adds support for the DisplayPort CEC-Tunneling-over-AUX feature. This patch series is based on the current pre-4.14-rc1 mainline which has all the needed cec 4.14 patches merged. This patch series has been tested with my NUC

Re: [PATCHv4 3/5] dt-bindings: document the CEC GPIO bindings

2017-09-15 Thread Hans Verkuil
Hi Rob, On 09/13/17 10:21, Hans Verkuil wrote: > On 09/12/2017 04:43 PM, Rob Herring wrote: >> On Thu, Aug 31, 2017 at 01:01:54PM +0200, Hans Verkuil wrote: >>> From: Hans Verkuil <hans.verk...@cisco.com> >>> >>> Document the bindings for the cec-gpio

Re: [PATCHv3 1/3] drm: add support for DisplayPort CEC-Tunneling-over-AUX

2017-09-13 Thread Hans Verkuil
On 09/12/2017 07:39 PM, Ville Syrjälä wrote: > On Mon, Sep 11, 2017 at 01:25:45PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> This adds support for the DisplayPort CEC-Tunneling-over-AUX >> feature that is par

Re: [PATCHv4 3/5] dt-bindings: document the CEC GPIO bindings

2017-09-13 Thread Hans Verkuil
On 09/12/2017 04:43 PM, Rob Herring wrote: > On Thu, Aug 31, 2017 at 01:01:54PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Document the bindings for the cec-gpio module for hardware where the >> CEC line and optionally the HPD

[PATCHv4 1/4] dt-bindings: document the tegra CEC bindings

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This documents the binding for the Tegra CEC module. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/media/tegra-cec.txt| 27 ++

[PATCHv4 2/4] ARM: tegra: add CEC support to tegra124.dtsi

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for the Tegra CEC IP to tegra124.dtsi and enable it on the Jetson TK1. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 4 arch/arm/boot/dts/tegra124.dtsi

[PATCHv4 3/4] tegra-cec: add Tegra HDMI CEC driver

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This driver adds support for the Tegra CEC IP. It is based on the NVIDIA drivers/misc/tegra-cec driver in their 3.10 kernel. This has been converted to the CEC framework and cleaned up. Tested with my Jetson TK1 board. It has also been

[PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> In order to support CEC the HDMI driver has to inform the CEC driver whenever the physical address changes. So when the EDID is read the CEC driver has to be informed and whenever the hotplug detect goes away. This is done through the cec-no

[PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This patch series adds support for the Tegra CEC functionality. This v4 has been rebased to the latest 4.14 pre-rc1 mainline. Please review! Other than for the bindings that are now Acked I have not received any feedback. The first patch doc

[PATCHv3 3/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Implement support for this DisplayPort feature. The cec device is created whenever it detects an adapter that has this feature. It is only removed when a new adapter is connected that does not support this. If a new adapter is connected th

[PATCHv3 1/3] drm: add support for DisplayPort CEC-Tunneling-over-AUX

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This adds support for the DisplayPort CEC-Tunneling-over-AUX feature that is part of the DisplayPort 1.3 standard. Unfortunately, not all DisplayPort/USB-C to HDMI adapters with a chip that has this capability actually hook up the CEC pin, s

[PATCHv3 2/3] drm-kms-helpers.rst: document the DP CEC helpers

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the Display Port CEC helper functions. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/gpu/drm-kms-helpers.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/gpu/drm-kms-he

[PATCHv3 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-09-11 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This patch series adds support for the DisplayPort CEC-Tunneling-over-AUX feature. This patch series is based on the current pre-4.14-rc1 mainline which has all the needed cec 4.14 patches merged. This patch series has been tested with my NUC

Re: [PATCHv4 3/5] dt-bindings: document the CEC GPIO bindings

2017-09-11 Thread Hans Verkuil
Ping! Still waiting for an Ack from the devicetree devs so this can be merged for 4.15. Regards, Hans On 08/31/2017 01:01 PM, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > Document the bindings for the cec-gpio module for hardware where

Re: [PATCH 00/11] drm/sun4i: add CEC support

2017-09-08 Thread Hans Verkuil
Hi Maxime, On 07/18/17 18:29, Maxime Ripard wrote: > Hi, > > On Tue, Jul 11, 2017 at 11:06:52PM +0200, Hans Verkuil wrote: >> On 11/07/17 22:39, Maxime Ripard wrote: >>> On Tue, Jul 11, 2017 at 08:30:33AM +0200, Hans Verkuil wrote: >>>> From:

Re: [PATCHv4 4/5] cec-gpio: add HDMI CEC GPIO driver

2017-08-31 Thread Hans Verkuil
On 31/08/17 16:10, Linus Walleij wrote: > On Thu, Aug 31, 2017 at 1:01 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. >&

[PATCHv4 5/5] MAINTAINERS: add cec-gpio entry

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add an entry for the CEC GPIO driver. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eb930ebecfcb..5ef0d34ef502 100644 --- a

[PATCHv4 0/5] cec-gpio: add HDMI CEC GPIO-based driver

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This driver adds support for CEC implementations that use a pull-up GPIO line. While SoCs exist that do this, the primary use-case is to turn a single-board computer into a cheap CEC debugger. Together with 'cec-ctl --monitor-pin' you can do low

[PATCHv4 2/5] cec-ioc-dqevent.rst: document new CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document these new CEC events. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/media/uapi

[PATCHv4 1/5] cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH. This is specifically meant for use with the upcoming cec-gpio driver and makes it possible to trace when the HPD pin changes. Some HDMI sinks do strange things with t

[PATCHv4 3/5] dt-bindings: document the CEC GPIO bindings

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the bindings for the cec-gpio module for hardware where the CEC line and optionally the HPD line are connected to GPIO lines. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- .../devicetree/bindings/media/cec-gpio.txt

[PATCHv4 4/5] cec-gpio: add HDMI CEC GPIO driver

2017-08-31 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. While I have heard of SoCs that use the GPIO pin for CEC (apparently an early RockChip SoC used that), the main use-case of this driver is to function as a debuggin

Re: [PATCHv3 3/5] dt-bindings: document the CEC GPIO bindings

2017-08-31 Thread Hans Verkuil
On 31/08/17 11:20, Linus Walleij wrote: > On Wed, Aug 30, 2017 at 6:10 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Document the bindings for the cec-gpio module for hardware where the >> CEC pi

[PATCHv3 4/5] cec-gpio: add HDMI CEC GPIO driver

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. While I have heard of SoCs that use the GPIO pin for CEC (apparently an early RockChip SoC used that), the main use-case of this driver is to function as a debuggin

[PATCHv3 5/5] MAINTAINERS: add cec-gpio entry

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add an entry for the CEC GPIO driver. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eb930ebecfcb..5ef0d34ef502 100644 --- a

[PATCHv3 0/5] cec-gpio: add HDMI CEC GPIO-based driver

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This driver adds support for CEC implementations that use a pull-up GPIO pin. While SoCs exist that do this, the primary use-case is to turn a single-board computer into a cheap CEC debugger. Together with 'cec-ctl --monitor-pin' you can do low

[PATCHv3 3/5] dt-bindings: document the CEC GPIO bindings

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document the bindings for the cec-gpio module for hardware where the CEC pin and optionally the HPD pin are connected to GPIO pins. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- .../devicetree/bindings/media/cec-gpio.txt

[PATCHv3 1/5] cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH. This is specifically meant for use with the upcoming cec-gpio driver and makes it possible to trace when the HPD pin changes. Some HDMI sinks do strange things with t

[PATCHv3 2/5] cec-ioc-dqevent.rst: document new CEC_EVENT_PIN_HPD_LOW/HIGH events

2017-08-30 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> Document these new CEC events. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/media/uapi

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Hans Verkuil
On 30/08/17 11:36, Brian Starkey wrote: > On Wed, Aug 30, 2017 at 10:10:01AM +0200, Hans Verkuil wrote: >> On 30/08/17 09:50, Daniel Vetter wrote: >>> On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: >>>> The fact is, adding special formats for each co

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Hans Verkuil
On 30/08/17 09:50, Daniel Vetter wrote: > On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: >> On Mon, Aug 28, 2017 at 10:49:07PM +0200, Daniel Vetter wrote: >>> On Mon, Aug 28, 2017 at 8:07 PM, Nicolas Dufresne >>> wrote: Le jeudi 24 ao??t 2017 ?? 13:26

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

2017-08-27 Thread Hans Verkuil
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 control a device

Re: DRM Format Modifiers in v4l2

2017-08-25 Thread Hans Verkuil
On 24/08/17 14:26, Brian Starkey wrote: > On Thu, Aug 24, 2017 at 01:37:35PM +0200, Hans Verkuil wrote: >> On 08/24/17 13:14, Brian Starkey wrote: >>> Hi Hans, >>> >>> On Mon, Aug 21, 2017 at 06:36:29PM +0200, Hans Verkuil wrote: >>>> On 08/21/2017

Re: DRM Format Modifiers in v4l2

2017-08-24 Thread Hans Verkuil
On 08/24/17 13:14, Brian Starkey wrote: > Hi Hans, > > On Mon, Aug 21, 2017 at 06:36:29PM +0200, Hans Verkuil wrote: >> On 08/21/2017 06:01 PM, Daniel Vetter wrote: >>> On Mon, Aug 21, 2017 at 5:52 PM, Brian Starkey <brian.star...@arm.com> >>> wrote:

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

2017-08-23 Thread Hans Verkuil
On 08/16/2017 01:55 PM, Andrzej Hajda wrote: > On 03.08.2017 10:28, 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,

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

2017-08-23 Thread Hans Verkuil
Maciej, I'm cross-posting this to linux-media and the rc maintainer Sean Young. Note that various RC defines have been renamed in the upcoming 4.14. It might be better to base your code on top of https://git.linuxtv.org/media_tree.git/ which has those patches merged. Regards, Hans On

Re: DRM Format Modifiers in v4l2

2017-08-21 Thread Hans Verkuil
On 08/21/2017 06:01 PM, Daniel Vetter wrote: > On Mon, Aug 21, 2017 at 5:52 PM, Brian Starkey wrote: >> Hi all, >> >> I couldn't find this topic talked about elsewhere, but apologies if >> it's a duplicate - I'll be glad to be steered in the direction of a >> thread. >> >>

Re: [PATCHv2 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-08-19 Thread Hans Verkuil
On 08/12/2017 11:01 AM, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > This patch series adds support for the DisplayPort CEC-Tunneling-over-AUX > feature. This patch series is based on 4.13-rc4 which has all the needed cec > and drm 4.13 patches me

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-08-18 Thread Hans Verkuil
er patch and get that in for 4.14 (and possible backported as well, I'll have to look at that). Regards, Hans Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> --- diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c index bf45977b2823..61dffe165565 100644 --

[PATCHv3 9/9] omapdrm: omapdss_hdmi_ops: add lost_hotplug op

2017-08-17 Thread Hans Verkuil
The CEC framework needs to know when the hotplug detect signal disappears, since that means the CEC physical address has to be invalidated (i.e. set to f.f.f.f). Add a lost_hotplug op that is called when the HPD signal goes away. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> ---

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-08-17 Thread Hans Verkuil
On 08/17/17 15:03, Tomi Valkeinen wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 11/08/17 13:57, Tomi Valkeinen wrote: >> Hi Hans, >> >> On 02/08/17 11:53, H

Re: [PATCH 4/4] drm: adv7511/33: add HDMI CEC support

2017-08-12 Thread Hans Verkuil
On 12/08/17 11:53, Hans Verkuil wrote: > On 10/08/17 10:49, Archit Taneja wrote: >> >> >> On 07/30/2017 06:37 PM, Hans Verkuil wrote: >>> From: Hans Verkuil <hans.verk...@cisco.com> >>> >>> Add support for HDMI CEC to the drm adv7511/adv7533

Re: [PATCH 4/4] drm: adv7511/33: add HDMI CEC support

2017-08-12 Thread Hans Verkuil
On 10/08/17 10:49, Archit Taneja wrote: > > > On 07/30/2017 06:37 PM, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> Add support for HDMI CEC to the drm adv7511/adv7533 drivers. >> >> The CEC registers that

[PATCHv2 1/3] drm: add support for DisplayPort CEC-Tunneling-over-AUX

2017-08-12 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This adds support for the DisplayPort CEC-Tunneling-over-AUX feature that is part of the DisplayPort 1.3 standard. Unfortunately, not all DisplayPort/USB-C to HDMI adapters with a chip that has this capability actually hook up the CEC pin, s

[PATCHv2 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2017-08-12 Thread Hans Verkuil
From: Hans Verkuil <hans.verk...@cisco.com> This patch series adds support for the DisplayPort CEC-Tunneling-over-AUX feature. This patch series is based on 4.13-rc4 which has all the needed cec and drm 4.13 patches merged. This patch series has been tested with my NUC7i5BNK and a Samsung

Re: [PATCH 0/4] drm/bridge/adv7511: add CEC support

2017-08-10 Thread Hans Verkuil
On 10/08/17 11:08, Archit Taneja wrote: > > > On 08/10/2017 02:26 PM, Hans Verkuil wrote: >> On 10/08/17 10:49, Archit Taneja wrote: >>> Hi Hans, >>> >>> On 07/30/2017 06:37 PM, Hans Verkuil wrote: >>>> From: Hans Verkuil <hans.verk..

Re: [PATCH 0/4] drm/bridge/adv7511: add CEC support

2017-08-10 Thread Hans Verkuil
On 10/08/17 10:49, Archit Taneja wrote: > Hi Hans, > > On 07/30/2017 06:37 PM, Hans Verkuil wrote: >> From: Hans Verkuil <hans.verk...@cisco.com> >> >> This patch series adds CEC support to the drm adv7511/adv7533 drivers. >> >> I have tested this with

<    1   2   3   4   5   6   7   8   9   10   >