linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] drm/bridge/adv7511: add CEC support
@ 2017-09-19  7:33 Hans Verkuil
  2017-09-19  7:33 ` [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock Hans Verkuil
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Hans Verkuil @ 2017-09-19  7:33 UTC (permalink / raw)
  To: linux-media
  Cc: dri-devel, linux-arm-msm, Archit Taneja, linux-renesas-soc,
	Lars-Peter Clausen

From: Hans Verkuil <hans.verkuil@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 Renesas R-Car Koelsch board (adv7511 based).

I only have the Koelsch board to test with, but it looks like other
R-Car boards use the same adv7511. It would be nice if someone can
add CEC support to the other R-Car boards as well. The main thing
to check is if they all use the same 12 MHz fixed CEC clock source.

Anyone who wants to test this will need the CEC utilities that
are part of the v4l-utils git repository:

git clone git://linuxtv.org/v4l-utils.git
cd v4l-utils
./bootstrap.sh
./configure
make
sudo make install

Now configure the CEC adapter as a Playback device:

cec-ctl --playback

Discover other CEC devices:

cec-ctl -S

Regards,

	Hans

Changes since v1:
- Incorporate Archit's comments:
	use defines for irq masks
	combine the adv7511/33 regmap_configs
	adv7511_cec_init now handles dt parsing & CEC registration
- Use the new (4.14) CEC_CAP_DEFAULTS define

Hans Verkuil (2):
  dt-bindings: adi,adv7511.txt: document cec clock
  drm: adv7511/33: add HDMI CEC support

 .../bindings/display/bridge/adi,adv7511.txt        |   4 +
 drivers/gpu/drm/bridge/adv7511/Kconfig             |   8 +
 drivers/gpu/drm/bridge/adv7511/Makefile            |   1 +
 drivers/gpu/drm/bridge/adv7511/adv7511.h           |  43 ++-
 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c       | 337 +++++++++++++++++++++
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c       | 116 ++++++-
 drivers/gpu/drm/bridge/adv7511/adv7533.c           |  38 +--
 7 files changed, 489 insertions(+), 58 deletions(-)
 create mode 100644 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c

-- 
2.14.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-10-06  8:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19  7:33 [PATCHv2 0/2] drm/bridge/adv7511: add CEC support Hans Verkuil
2017-09-19  7:33 ` [PATCHv2 1/2] dt-bindings: adi,adv7511.txt: document cec clock Hans Verkuil
2017-09-19  9:20   ` Sergei Shtylyov
2017-09-19  9:29     ` Hans Verkuil
2017-09-19  9:35       ` Sergei Shtylyov
2017-09-19 10:07         ` Hans Verkuil
2017-09-19 10:15           ` Sergei Shtylyov
2017-09-19 10:35             ` Hans Verkuil
2017-09-19 10:42               ` Sergei Shtylyov
2017-09-19 10:59                 ` Hans Verkuil
2017-09-19 12:27                   ` Sergei Shtylyov
2017-09-19  7:33 ` [PATCHv2 2/2] drm: adv7511/33: add HDMI CEC support Hans Verkuil
2017-10-06  4:26   ` Archit Taneja
2017-10-06  8:08     ` Hans Verkuil
2017-09-19 15:23 ` [PATCHv2 0/2] drm/bridge/adv7511: add " Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).