linux/drivers/media/platform/davinci
Kevin Hilman 479f7a1181 [media] davinci: vpif: adaptions for DT support
The davinci VPIF is a single hardware block, but the existing driver
is broken up into a common library (vpif.c), output (vpif_display.c) and
intput (vpif_capture.c).

When migrating to DT, to better model the hardware, and because
registers, interrupts, etc. are all common,it was decided to
have a single VPIF hardware node[1].

Because davinci uses legacy, non-DT boot on several SoCs still, the
platform_drivers need to remain.  But they are also needed in DT boot.
Since there are no DT nodes for the display/capture parts in DT
boot (there is a single node for the parent/common device) we need to
create platform_devices somewhere to instantiate the platform_drivers.

When VPIF display/capture are needed for a DT boot, the VPIF node
will have endpoints defined for its subdevs.  Therefore, vpif_probe()
checks for the presence of endpoints, and if detected manually creates
the platform_devices for the display and capture platform_drivers.

[1] Documentation/devicetree/bindings/media/ti,da850-vpif.txt

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-20 09:05:37 -03:00
..
Kconfig [media] davinci: Switch from V4L2 OF to V4L2 fwnode 2017-06-08 12:34:16 -03:00
Makefile [media] media: davinci: kconfig: fix incorrect selects 2013-04-14 20:06:36 -03:00
ccdc_hw_device.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm355_ccdc.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm355_ccdc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm644x_ccdc.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm644x_ccdc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
isif.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
isif_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_display.c [media] vpbe_display: convert g/s_crop to g/s_selection 2016-08-24 09:52:53 -03:00
vpbe_osd.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_osd_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_venc.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_venc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpfe_capture.c [media] Staging: media: platform: davinci: - Fix for memory leak 2017-02-03 07:14:28 -02:00
vpif.c [media] davinci: vpif: adaptions for DT support 2017-06-20 09:05:37 -03:00
vpif.h [media] davinci: vpif: Fix module build for capture and display 2013-03-23 10:38:10 -03:00
vpif_capture.c [media] davinci: Switch from V4L2 OF to V4L2 fwnode 2017-06-08 12:34:16 -03:00
vpif_capture.h [media] davinci: vpif_capture: fix start/stop streaming locking 2017-01-31 08:01:07 -02:00
vpif_display.c [media] davinci: vpif_capture: get subdevs from DT when available 2017-06-07 12:17:12 -03:00
vpif_display.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:39:21 -03:00
vpss.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00