All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Add tda998x (HDMI) support to atmel-hlcdc
@ 2018-04-17 13:10 ` Peter Rosin
  0 siblings, 0 replies; 48+ messages in thread
From: Peter Rosin @ 2018-04-17 13:10 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Rosin, David Airlie, Rob Herring, Mark Rutland,
	Nicolas Ferre, Alexandre Belloni, Boris Brezillon, Daniel Vetter,
	Gustavo Padovan, Sean Paul, Laurent Pinchart,
	Russell King - ARM Linux, dri-devel, devicetree,
	linux-arm-kernel

Hi!

I naively thought that since there was support for both nxp,tda19988 (in
the tda998x driver) and the atmel-hlcdc, things would be a smooth ride.
But it wasn't, so I started looking around, and found some missing
pieces in the tilcdc driver. I "stole" some things and made it work
for my use case.

In addition to the above, our PCB interface between the SAMA5D3 and the
HDMI encoder is only using 16 bits, and this has to be described
somewhere, or the atmel-hlcdc driver have no chance of selecting the
correct output mode. Since I had similar problems with ds90c185 lvds
encoder I added patches to override the atmel-hlcdc output format via
DT properties compatible with the media video-interface binding and
things start to play together.

Since this series superseeds the bridge series [1], I have included the
leftover bindings patch for the ti,ds90c185 here. I also noticed that
the driver date for atmel-hlcdc is bonkers, and added a patch for that.

However, I don't know if the tilcdc driver is interfacing with the
tda998x driver in a sane and modern way, and I don't know if I have
missed any subtle point when I "stole" the code and componentized the
atmel-hlcdc driver. I also have not tested how this behaves if I run
with the components as modules (not targeting that). Further, I'm
not sure if I interpret the media video-interface binding correctly.

Anyway, this series solves some real issues for my HW.

Cheers,
Peter

Changes since v1   https://lkml.org/lkml/2018/4/9/294
- added reviewed-by from Rob to patch 1/6
- patch 2/6 changed so that the bus format override is in the endpoint
  DT node, and follows the binding of media video-interfaces.
- patch 3/6 is new, it adds drm_of_media_bus_fmt which parses above
  media video-interface binding (partially).
- patch 4/6 now makes use of the above helper (and also fixes problems
  with the 3/5 patch from v1 when no override was specified).
- do not mention unrelated connector display_info details in the cover
  letter and commit messages.

[1]
"Bridge" series v2   https://lkml.org/lkml/2018/3/26/610
"Bridge" series v1   https://lkml.org/lkml/2018/3/17/221

Peter Rosin (6):
  dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185
  dt-bindings: display: atmel: optional video-interface of endpoints
  drm: of: introduce drm_of_media_bus_fmt
  drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes
  drm/atmel-hlcdc: add support for connecting to tda998x HDMI encoder
  drm/atmel-hlcdc: fix broken release date

 .../devicetree/bindings/display/atmel/hlcdc-dc.txt |   8 ++
 .../bindings/display/bridge/lvds-transmitter.txt   |   8 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c     |  85 ++++++++++----
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c       |  85 ++++++++++++--
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h       |  15 +++
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c   | 130 +++++++++++++++++++++
 drivers/gpu/drm/drm_of.c                           |  38 ++++++
 include/drm/drm_of.h                               |   7 ++
 8 files changed, 347 insertions(+), 29 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2018-04-19 16:40 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 13:10 [PATCH v2 0/6] Add tda998x (HDMI) support to atmel-hlcdc Peter Rosin
2018-04-17 13:10 ` Peter Rosin
2018-04-17 13:10 ` [PATCH v2 1/6] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185 Peter Rosin
2018-04-17 13:10   ` [PATCH v2 1/6] dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 Peter Rosin
2018-04-17 13:10 ` [PATCH v2 2/6] dt-bindings: display: atmel: optional video-interface of endpoints Peter Rosin
2018-04-17 13:10   ` Peter Rosin
2018-04-18  7:16   ` Boris Brezillon
2018-04-18  7:16     ` Boris Brezillon
2018-04-18  7:16     ` Boris Brezillon
2018-04-18  7:31     ` Peter Rosin
2018-04-18  7:31       ` Peter Rosin
2018-04-18  8:29       ` Boris Brezillon
2018-04-18  8:29         ` Boris Brezillon
2018-04-18  8:29         ` Boris Brezillon
2018-04-17 13:10 ` [PATCH v2 3/6] drm: of: introduce drm_of_media_bus_fmt Peter Rosin
2018-04-17 13:10   ` Peter Rosin
2018-04-19 16:22   ` Rob Herring
2018-04-19 16:22     ` Rob Herring
2018-04-19 16:22     ` Rob Herring
2018-04-19 16:40     ` Peter Rosin
2018-04-19 16:40       ` Peter Rosin
2018-04-17 13:10 ` [PATCH v2 4/6] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Peter Rosin
2018-04-17 13:10   ` Peter Rosin
2018-04-18  7:29   ` Boris Brezillon
2018-04-18  7:29     ` Boris Brezillon
2018-04-18  7:29     ` Boris Brezillon
2018-04-18  7:46     ` Peter Rosin
2018-04-18  7:46       ` Peter Rosin
2018-04-18  8:27       ` Boris Brezillon
2018-04-18  8:27         ` Boris Brezillon
2018-04-18  8:27         ` Boris Brezillon
2018-04-17 13:10 ` [PATCH v2 5/6] drm/atmel-hlcdc: add support for connecting to tda998x HDMI encoder Peter Rosin
2018-04-17 13:10   ` Peter Rosin
2018-04-18  7:36   ` Boris Brezillon
2018-04-18  7:36     ` Boris Brezillon
2018-04-18  7:36     ` Boris Brezillon
2018-04-18  8:02     ` Peter Rosin
2018-04-18  8:02       ` Peter Rosin
2018-04-18  8:41       ` Boris Brezillon
2018-04-18  8:41         ` Boris Brezillon
2018-04-18  8:41         ` Boris Brezillon
2018-04-17 13:10 ` [PATCH v2 6/6] drm/atmel-hlcdc: fix broken release date Peter Rosin
2018-04-17 13:10   ` Peter Rosin
2018-04-18  7:44   ` Boris Brezillon
2018-04-18  7:44     ` Boris Brezillon
2018-04-18  7:44     ` Boris Brezillon
2018-04-18  8:09     ` Peter Rosin
2018-04-18  8:09       ` Peter Rosin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.