Skip to content

RFC Lager HDMI support

Ulrich Hecht dri-devel linux-media linux-sh 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm: ADV7511 i2c HDMI encoder driverdrivers/gpu/drm/Kconfig drivers/gpu/drm/i2c/Makefile drivers/gpu/drm/i2c/adv7511.h +2 more+1749 -09 replies
2/10drm: Decouple edid parsing from i2c adapterdrivers/gpu/drm/drm_edid.c include/drm/drm_edid.h+13 -80 replies
3/10ASoC: Add SPDIF DAI formatinclude/sound/soc-dai.h+1 -00 replies
4/10i2c: rcar: modify I2C driverdrivers/i2c/busses/i2c-rcar.c include/linux/i2c/i2c-rcar.h+19 -24 replies
5/10ARM: shmobile: r8a7790: add I2C setuparch/arm/mach-shmobile/include/mach/r8a7790.h arch/arm/mach-shmobile/setup-r8a7790.c+31 -00 replies
6/10ARM: shmobile: r8a7790: add I2C clockarch/arm/mach-shmobile/clock-r8a7790.c+11 -03 replies
7/10ARM: shmobile: r8a7790: i2c pinmuxdrivers/pinctrl/sh-pfc/pfc-r8a7790.c+90 -02 replies
8/10ARM: shmobile: r8a7790: lager: i2c supportarch/arm/mach-shmobile/board-lager.c+32 -01 reply
9/10drm: rcar-du: support for i2c HDMI encodersdrivers/gpu/drm/rcar-du/Makefile drivers/gpu/drm/rcar-du/rcar_du_drv.c drivers/gpu/drm/rcar-du/rcar_du_drv.h +5 more+266 -30 replies
10/10ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511arch/arm/mach-shmobile/board-lager.c+24 -02 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/10
2/10
3/10
4/10
5/10
6/10
7/10A-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 00/10] Lager HDMI support

Hi!

This is an attempt to enable the HDMI output on the Lager board. It is not likely to work as is because I do not have physical access to such a board yet, but it builds and runs, and the devices involved (i2c controller, DU, HDMI encoder) respond as expected.

This work depends on two unmerged drivers (r8a7790 i2c controller and ADV7511 HDMI encoder) that I have included in this patch set.

It appears that the DRM i2c slave code assumes that video encoders are always connected to a local dedicated i2c controller that is instantiated by the GPU driver. This is not so on the Lager board which has the HDMI encoder on a general-purpose i2c bus together with other devices. This makes it difficult for the DU driver to get an i2c_client handle to the encoder. I have solved this by forwarding the handle from the adv7511 driver to the DU driver via their platform_data structures. I'd like to hear if there is a more elegant/correct way to deal with this. (There is for DT, but this is the best C version I could come up with.)

The other question I have is what would be a viable strategy to get this whole mess upstream, particularly the adv7511 driver which requires changes to common DRM code...

CU
Uli

Lars-Peter Clausen (1):
ASoC: Add SPDIF DAI format

Nguyen Viet Dung (3):
i2c: rcar: modify I2C driver
ARM: shmobile: r8a7790: add I2C setup
ARM: shmobile: r8a7790: add I2C clock

Ulrich Hecht (6):
drm: ADV7511 i2c HDMI encoder driver
drm: Decouple edid parsing from i2c adapter
ARM: shmobile: r8a7790: i2c pinmux
ARM: shmobile: r8a7790: lager: i2c support
drm: rcar-du: support for i2c HDMI encoders
ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511

 arch/arm/mach-shmobile/board-lager.c          |  56 ++
 arch/arm/mach-shmobile/clock-r8a7790.c        |  11 +
 arch/arm/mach-shmobile/include/mach/r8a7790.h |   3 +
 arch/arm/mach-shmobile/setup-r8a7790.c        |  28 +
 drivers/gpu/drm/Kconfig                       |   6 +
 drivers/gpu/drm/drm_edid.c                    |  18 +-
 drivers/gpu/drm/i2c/Makefile                  |   3 +
 drivers/gpu/drm/i2c/adv7511.h                 | 455 ++++++++++++
 drivers/gpu/drm/i2c/adv7511_audio.c           | 304 ++++++++
 drivers/gpu/drm/i2c/adv7511_core.c            | 981 ++++++++++++++++++++++++++
 drivers/gpu/drm/rcar-du/Makefile              |   1 +
 drivers/gpu/drm/rcar-du/rcar_du_drv.c         |   7 +
 drivers/gpu/drm/rcar-du/rcar_du_drv.h         |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_encoder.c     |  56 +-
 drivers/gpu/drm/rcar-du/rcar_du_encoder.h     |   6 +-
 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.c     | 165 +++++
 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.h     |  28 +
 drivers/i2c/busses/i2c-rcar.c                 |  17 +-
 drivers/pinctrl/sh-pfc/pfc-r8a7790.c          |  90 +++
 include/drm/drm_edid.h                        |   3 +
 include/linux/i2c/i2c-rcar.h                  |   4 +
 include/linux/platform_data/rcar-du.h         |   4 +
 include/sound/soc-dai.h                       |   1 +
 23 files changed, 2236 insertions(+), 13 deletions(-)
 create mode 100644 drivers/gpu/drm/i2c/adv7511.h
 create mode 100644 drivers/gpu/drm/i2c/adv7511_audio.c
 create mode 100644 drivers/gpu/drm/i2c/adv7511_core.c
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.c
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.h
Signature · 1 line
1.8.1.4