[PATCH v7 32/34] media: imx: capture: add frame sizes/interval enumeration

2017-05-24 Thread Steve Longerbeam
From: Russell King Add support for enumerating frame sizes and frame intervals from the first subdev via the V4L2 interfaces. Signed-off-by: Russell King Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c | 73 +++ 1 file changed, 73

[PATCH v7 28/34] media: imx: csi: increase burst size for YUV formats

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel The IDMAC supports burst sizes of up to 32 pixels for interleaved YUV formats and up to 64 pixels for planar YUV formats. Signed-off-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/driver

[PATCH v7 25/34] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-05-24 Thread Steve Longerbeam
Adds MIPI CSI-2 Receiver subdev driver. This subdev is required for sensors with a MIPI CSI2 interface. Signed-off-by: Steve Longerbeam - Add the function csi2ipu_gasket_init() to initialize the gasket at s_power(ON). The gasket needs to be programmed with the correct color component

[PATCH v7 24/34] media: imx: Add IC subdev drivers

2017-05-24 Thread Steve Longerbeam
either directly from the CSI or from the VDIC. Scaled output is limited to 1024x1024 resolution. Output frames are routed to the prpvf capture device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile |2 + drivers/staging/media/imx/imx-ic-common.c | 113

[PATCH v7 18/34] platform: video-mux: include temporary mmio-mux support

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel As long as the mux framework is not merged, add temporary mmio-mux support to the video-mux driver itself. This patch is to be reverted once the "mux: minimal mux subsystem" and "mux: mmio-based syscon mux controller" patches are merged. Signed-off-by: Philipp Zabel --- dri

[PATCH v7 19/34] media: Add userspace header file for i.MX

2017-05-24 Thread Steve Longerbeam
This adds a header file for use by userspace programs wanting to interact with the i.MX media driver. It defines custom events and v4l2 controls for the i.MX v4l2 subdevices. Signed-off-by: Steve Longerbeam --- include/linux/imx-media.h | 27 +++ 1 file changed, 27

[PATCH v7 23/34] media: imx: Add VDIC subdev driver

2017-05-24 Thread Steve Longerbeam
2_SUBDEV_FL_HAS_DEVNODE; + /* get our group id */ + priv->sd.grp_id = pdata->grp_id; + strncpy(priv->sd.name, pdata->sd_name, sizeof(priv->sd.name)); + + mutex_init(&priv->lock); + + ret = v4l2_async_register_subdev(&priv->sd); + if (ret) + goto free; + + return 0; +free: + mutex_destroy(&priv->lock); + return ret; +} + +static int imx_vdic_remove(struct platform_device *pdev) +{ + struct v4l2_subdev *sd = platform_get_drvdata(pdev); + struct vdic_priv *priv = v4l2_get_subdevdata(sd); + + v4l2_info(sd, "Removing\n"); + + v4l2_async_unregister_subdev(sd); + mutex_destroy(&priv->lock); + media_entity_cleanup(&sd->entity); + + return 0; +} + +static const struct platform_device_id imx_vdic_ids[] = { + { .name = "imx-ipuv3-vdic" }, + { }, +}; +MODULE_DEVICE_TABLE(platform, imx_vdic_ids); + +static struct platform_driver imx_vdic_driver = { + .probe = imx_vdic_probe, + .remove = imx_vdic_remove, + .id_table = imx_vdic_ids, + .driver = { + .name = "imx-ipuv3-vdic", + }, +}; +module_platform_driver(imx_vdic_driver); + +MODULE_DESCRIPTION("i.MX VDIC subdev driver"); +MODULE_AUTHOR("Steve Longerbeam "); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:imx-ipuv3-vdic"); -- 2.7.4

[PATCH v7 26/34] ARM: imx_v6_v7_defconfig: Enable staging video4linux drivers

2017-05-24 Thread Steve Longerbeam
max zoneorder to allow larger video buffer allocations. Signed-off-by: Steve Longerbeam --- arch/arm/configs/imx_v6_v7_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index bb6fa56..63caf25

[PATCH v7 17/34] platform: add video-multiplexer subdevice driver

2017-05-24 Thread Steve Longerbeam
side. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- drivers/media/platform/Kconfig | 7 + drivers/media/platform/Makefile| 2 + drivers/media/platform/video

[PATCH v7 22/34] media: imx: Add CSI subdev driver

2017-05-24 Thread Steve Longerbeam
This is a media entity subdevice for the i.MX Camera Sensor Interface module. Signed-off-by: Steve Longerbeam - Added support for negotiation of frame intervals. Signed-off-by: Russell King - Fixed cropping rectangle negotiation at input and output pads. - Added support for /2 downscaling

[PATCH v7 21/34] media: imx: Add Capture Device Interface

2017-05-24 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 1 + drivers/staging/media/imx/imx-media-capture.c | 702 ++ 2 files changed, 703 insertions(+) create mode 100644 drivers/staging/media/imx/imx-media-capture.c diff --git a/drivers

[PATCH v7 20/34] media: Add i.MX media core driver

2017-05-24 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam Add the bayer formats to imx-media's list of supported pixel and bus formats. Signed-off-by: Russell King --- Documentation/media/v4l-drivers/imx.rst | 590 +++ drivers/staging/media/Kc

[PATCH v7 08/34] ARM: dts: imx6qdl-sabrelite: remove erratum ERR006687 workaround

2017-05-24 Thread Steve Longerbeam
oards that have the HW workaround for ERR006687") Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelit

[PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-05-24 Thread Steve Longerbeam
This driver is based on ov5640_mipi.c from Freescale imx_3.10.17_1.0.0_beta branch, modified heavily to bring forward to latest interfaces and code cleanup. Signed-off-by: Steve Longerbeam --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/ov5640.c

[PATCH v7 15/34] add mux and video interface bridge entity functions

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel Signed-off-by: Philipp Zabel - renamed MEDIA_ENT_F_MUX to MEDIA_ENT_F_VID_MUX Signed-off-by: Steve Longerbeam --- Documentation/media/uapi/mediactl/media-types.rst | 22 ++ include/uapi/linux/media.h| 6 ++ 2 files changed

[PATCH v7 13/34] ARM: dts: imx6-sabreauto: add pinctrl for gpt input capture

2017-05-24 Thread Steve Longerbeam
Add pinctrl groups for both GPT input capture channels. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index

[PATCH v7 04/34] ARM: dts: imx6qdl: add multiplexer controls

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel The IOMUXC General Purpose Register space contains various bitfields that control video bus multiplexers. Describe them using a mmio-mux node. The placement of the IPU CSI video mux controls differs between i.MX6D/Q and i.MX6S/DL. Signed-off-by: Philipp Zabel --- arch/arm/b

[PATCH v7 06/34] ARM: dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections

2017-05-24 Thread Steve Longerbeam
Zabel - Removed some dangling/unused endpoints (ipu2_csi0_from_csi2ipu) - Renamed the mipi virtual channel endpoint labels, from "mipi_csiX_..." to "mipi_vcX...". - Added input endpoint anchors to the video muxes for the connections from parallel sensors. Signed-off-

[PATCH v7 12/34] ARM: dts: imx6-sabreauto: add reset-gpios property for max7310_b

2017-05-24 Thread Steve Longerbeam
max7310_b, that chip is needed by more functions (usb and adv7180). Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi ind

[PATCH v7 11/34] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

2017-05-24 Thread Steve Longerbeam
X7310) are thus moved into i2cmux. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 65 +--- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto

[PATCH v7 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-05-24 Thread Steve Longerbeam
Enables the ADV7180 decoder sensor. The ADV7180 connects to the parallel-bus mux input on ipu1_csi0_mux. The ADV7180 power pin is via max7310_b port expander. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 58 1 file changed, 58

[PATCH v7 10/34] ARM: dts: imx6-sabresd: add OV5642 and OV5640 camera sensors

2017-05-24 Thread Steve Longerbeam
available for testing, the ov5642 node is currently disabled. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6dl-sabresd.dts | 5 ++ arch/arm/boot/dts/imx6q-sabresd.dts| 5 ++ arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 114 - 3 files changed, 123

[PATCH v7 01/34] dt-bindings: Add bindings for video-multiplexer device

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus Reviewed-by: Sebastian Reichel Acked-by: Rob Herring --- .../devicetree/bindings/media/video

Re: [PATCH v7 00/34] i.MX Media Driver

2017-05-29 Thread Steve Longerbeam
Hi Hans, thanks for the reply... On 05/29/2017 06:46 AM, Hans Verkuil wrote: Hi Steve, On 05/25/2017 02:29 AM, Steve Longerbeam wrote: In version 7: What is the status as of v7? From what I can tell patch 2/34 needs an Ack from Rob Herring, Yes still missing that Ack. I think the

Re: [PATCH v7 00/34] i.MX Media Driver

2017-05-29 Thread Steve Longerbeam
Hi Sakari, On 05/29/2017 08:36 AM, Sakari Ailus wrote: Hi Hans, On Mon, May 29, 2017 at 03:46:08PM +0200, Hans Verkuil wrote: Hi Steve, On 05/25/2017 02:29 AM, Steve Longerbeam wrote: In version 7: - video-mux: switched to Philipp's latest video-mux driver and updated bindings

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-05-29 Thread Steve Longerbeam
Hi Sakari, On 05/29/2017 08:55 AM, Sakari Ailus wrote: Hi Steve, A few comments below. On Wed, May 24, 2017 at 05:29:31PM -0700, Steve Longerbeam wrote: This driver is based on ov5640_mipi.c from Freescale imx_3.10.17_1.0.0_beta branch, modified heavily to bring forward to latest interfaces

Re: [PATCH v7 00/34] i.MX Media Driver

2017-06-01 Thread Steve Longerbeam
Hi Tim, On 06/01/2017 05:25 PM, Tim Harvey wrote: Hi Steve, I've applied adv7180 device-tree config for the Gateworks ventana boards on top of your imx-media-staging-md-v15 github branch but am not able to get it to work. Here's my device-tree patch that adds adv7180 to the GW54xx connected

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-03 Thread Steve Longerbeam
Hi Sakari, On 05/29/2017 11:56 PM, Sakari Ailus wrote: Hi Steve, On Mon, May 29, 2017 at 02:50:34PM -0700, Steve Longerbeam wrote: + +static int ov5640_s_ctrl(struct v4l2_ctrl *ctrl) +{ + struct v4l2_subdev *sd = ctrl_to_sd(ctrl); + struct ov5640_dev *sensor = to_ov5640_dev(sd

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-03 Thread Steve Longerbeam
On 06/01/2017 01:26 AM, Sakari Ailus wrote: Hi Pavel, On Wed, May 31, 2017 at 09:58:21PM +0200, Pavel Machek wrote: Hi! +/* min/typical/max system clock (xclk) frequencies */ +#define OV5640_XCLK_MIN 600 +#define OV5640_XCLK_MAX 2400 + +/* + * FIXME: there is no subdev API to set t

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-03 Thread Steve Longerbeam
On 06/03/2017 02:57 PM, Sakari Ailus wrote: On Sat, Jun 03, 2017 at 09:51:39PM +0200, Pavel Machek wrote: Hi! + /* Auto/manual exposure */ + ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, +V4L2_CID_EXPOSURE_AUTO, +

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-04 Thread Steve Longerbeam
On 06/03/2017 11:02 AM, Steve Longerbeam wrote: Hi Sakari, On 05/29/2017 11:56 PM, Sakari Ailus wrote: Hi Steve, On Mon, May 29, 2017 at 02:50:34PM -0700, Steve Longerbeam wrote: + +static int ov5640_s_ctrl(struct v4l2_ctrl *ctrl) +{ +struct v4l2_subdev *sd = ctrl_to_sd(ctrl

[PATCH 8/9] media: staging/imx: reorder function prototypes

2017-10-28 Thread Steve Longerbeam
Re-order some of the function prototypes in imx-media.h to group them correctly by source file. No functional changes. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media.h | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH 0/9] media: imx: Add better OF graph support

2017-10-28 Thread Steve Longerbeam
notify for unknown sources" "[PATCH RFC] media: staging/imx: fix complete handler" Tested by: Steve Longerbeam on SabreLite with the OV5640 Tested-by: Philipp Zabel on Nitrogen6X with the TC358743. Tested-by: Russell King with the IMX219 Steve Longerbeam (9): media: stag

[PATCH 9/9] media: staging/imx: update TODO

2017-10-28 Thread Steve Longerbeam
tions. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 63 ++ 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO index 0bee313..9eb7326 100644 --- a/drivers/staging/

[PATCH 2/9] media: staging/imx: remove static media link arrays

2017-10-28 Thread Steve Longerbeam
list: imx_media_add_of_subdevs() imx_media_add_internal_subdevs() and these functions, called at async completion, which create the media links: imx_media_create_of_links() imx_media_create_csi_of_links() imx_media_create_internal_links() Signed-off-by: Steve Longerbeam --- drivers/staging/media/im

[PATCH 7/9] media: staging/imx: convert static vdev lists to list_head

2017-10-28 Thread Steve Longerbeam
video device from the master list. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c | 2 + drivers/staging/media/imx/imx-media-dev.c | 77 +++ drivers/staging/media/imx/imx-media-utils.c | 16 +- drivers/staging/media/imx/imx-media

[PATCH 1/9] media: staging/imx: get CSI bus type from nearest upstream entity

2017-10-28 Thread Steve Longerbeam
p_frames op to determine if a delay was needed before enabling the CSI at stream on. If necessary this will have to be re-addressed at a later time. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 188 drivers/staging/media/imx/imx-medi

[PATCH 3/9] media: staging/imx: of: allow for recursing downstream

2017-10-28 Thread Steve Longerbeam
e, so 'num_{sink|src}_pads' is no longer used and is removed. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-internal-sd.c | 17 - drivers/staging/media/imx/imx-media-of.c | 78 ++- drivers/staging/media/imx/imx-media.h

[PATCH 4/9] media: staging/imx: remove devname string from imx_media_subdev

2017-10-28 Thread Steve Longerbeam
A separate string for the device name, for DEVNAME async match, was never needed. Just assign the asd device name to the passed platform device name pointer in imx_media_add_async_subdev(). Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev.c | 3 +-- drivers/staging

[PATCH 6/9] media: staging/imx: remove static subdev arrays

2017-10-28 Thread Steve Longerbeam
At async completion, allocate the asd pointer list and pull the asd's off asd_list for v4l2_async_notifier_register(). Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prp.c| 4 +- drivers/staging/media/imx/imx-media-csi.c | 9 +- drivers/stag

[PATCH 5/9] media: staging/imx: pass fwnode handle to find/add async subdev

2017-10-28 Thread Steve Longerbeam
Pass the subdev's fwnode_handle to imx_media_find_async_subdev() and imx_media_add_async_subdev(), instead of a device_node. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev.c | 20 ++-- drivers/staging/media/imx/imx-media-of.c | 7 +++ dr

Re: [PATCH v2] media: imx: Remove incorrect check for queue state in start/stop_streaming

2017-12-01 Thread Steve Longerbeam
called but vb2_is_streaming will already return true. Also removed the queue state check in stop_streaming since it's not valid there either. Reviewed-by: Steve Longerbeam Signed-off-by: Ian Jamison --- Since v1: Remove check in capture_stop_streaming as recommended by Hans. dr

Re: [PATCH 8/8] [media] staging: imx: use ktime_t for timestamps

2017-12-01 Thread Steve Longerbeam
Hi Arnd, This looks fine to me, except for a couple things... On 11/27/2017 05:20 AM, Arnd Bergmann wrote: The imx media driver passes around monotonic timestamps in the deprecated 'timespec' format. This is not a problem for the driver, as they won't overflow, but moving to either timespec64 o

Re: [PATCH v2 2/4] media: ov5640: check chip id

2017-12-03 Thread Steve Longerbeam
On 11/29/2017 09:11 AM, Hugues Fruchet wrote: Verify that chip identifier is correct before starting streaming Signed-off-by: Hugues Fruchet --- drivers/media/i2c/ov5640.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/o

Re: [PATCH v2 3/4] media: ov5640: add support of DVP parallel interface

2017-12-03 Thread Steve Longerbeam
On 11/29/2017 09:11 AM, Hugues Fruchet wrote: Add support of DVP parallel mode in addition of existing MIPI CSI mode. The choice between two modes and configuration is made through device tree. Signed-off-by: Hugues Fruchet --- drivers/media/i2c/ov5640.c | 101 ++

Re: [PATCH 0/9] media: imx: Add better OF graph support

2017-12-07 Thread Steve Longerbeam
Hi Hans, On 12/04/2017 05:44 AM, Hans Verkuil wrote: Hi Steve, On 10/28/2017 10:36 PM, Steve Longerbeam wrote: This is a set of patches that improve support for more complex OF graphs. Currently the imx-media driver only supports a single device with a single port connected directly to

Re: [PATCH 0/9] media: imx: Add better OF graph support

2017-12-07 Thread Steve Longerbeam
On 12/07/2017 03:23 PM, Steve Longerbeam wrote: Hi Hans, On 12/04/2017 05:44 AM, Hans Verkuil wrote: Of course, any such simplification can also be done after this series has been applied, but I don't know what your thoughts are on this. I do prefer the sub-notifier approa

Re: [GIT PULL FOR v4.16] media: imx: Add better OF graph support

2017-12-08 Thread Steve Longerbeam
up to 82737cbb02f269b8eb608c7bd906a79072f6adad: media: staging/imx: update TODO (2017-12-04 14:05:19 +0100) Steve Longerbeam (9): media: staging/imx: get CSI bus type from nearest upstream entity There are some non-trivial conflicts on

Re: [GIT PULL FOR v4.16] media: imx: Add better OF graph support

2017-12-14 Thread Steve Longerbeam
On 12/14/2017 04:13 AM, Hans Verkuil wrote: On 08/12/17 23:48, Steve Longerbeam wrote: On 12/08/2017 08:38 AM, Mauro Carvalho Chehab wrote: Em Fri, 8 Dec 2017 11:56:58 +0100 Hans Verkuil escreveu: Note: the new v4l2-async work makes it possible to simplify this. That will be done in

[PATCH v2 8/9] media: staging/imx: reorder function prototypes

2017-12-14 Thread Steve Longerbeam
Re-order some of the function prototypes in imx-media.h to group them correctly by source file. No functional changes. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media.h | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH v2 3/9] media: staging/imx: of: allow for recursing downstream

2017-12-14 Thread Steve Longerbeam
e, so 'num_{sink|src}_pads' is no longer used and is removed. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-internal-sd.c | 17 - drivers/staging/media/imx/imx-media-of.c | 78 ++- drivers/staging/media/imx/imx-media.h

[PATCH v2 7/9] media: staging/imx: convert static vdev lists to list_head

2017-12-14 Thread Steve Longerbeam
video device from the master list. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c | 2 + drivers/staging/media/imx/imx-media-dev.c | 77 +++ drivers/staging/media/imx/imx-media-utils.c | 16 +- drivers/staging/media/imx/imx-media

[PATCH v2 9/9] media: staging/imx: update TODO

2017-12-14 Thread Steve Longerbeam
tions. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 63 ++ 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO index 0bee313..9eb7326 100644 --- a/drivers/staging/

[PATCH v2 4/9] media: staging/imx: remove devname string from imx_media_subdev

2017-12-14 Thread Steve Longerbeam
A separate string for the device name, for DEVNAME async match, was never needed. Just assign the asd device name to the passed platform device name pointer in imx_media_add_async_subdev(). Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev.c | 3 +-- drivers/staging

[PATCH v2 2/9] media: staging/imx: remove static media link arrays

2017-12-14 Thread Steve Longerbeam
list: imx_media_add_of_subdevs() imx_media_add_internal_subdevs() and these functions, called at async completion, which create the media links: imx_media_create_of_links() imx_media_create_csi_of_links() imx_media_create_internal_links() Signed-off-by: Steve Longerbeam --- drivers/staging/media/im

[PATCH v2 0/9] media: imx: Add better OF graph support

2017-12-14 Thread Steve Longerbeam
notify for unknown sources" Tested by: Steve Longerbeam on SabreLite with the OV5640 Tested-by: Philipp Zabel on Nitrogen6X with the TC358743. Tested-by: Russell King with the IMX219 History: v2: - this version is to resolve merge conflicts only, no functional changes since v1. Stev

[PATCH v2 6/9] media: staging/imx: remove static subdev arrays

2017-12-14 Thread Steve Longerbeam
At async completion, allocate the asd pointer list and pull the asd's off asd_list for v4l2_async_notifier_register(). Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prp.c| 4 +- drivers/staging/media/imx/imx-media-csi.c | 9 +- drivers/stag

[PATCH v2 1/9] media: staging/imx: get CSI bus type from nearest upstream entity

2017-12-14 Thread Steve Longerbeam
p_frames op to determine if a delay was needed before enabling the CSI at stream on. If necessary this will have to be re-addressed at a later time. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 188 drivers/staging/media/imx/imx-medi

[PATCH v2 5/9] media: staging/imx: pass fwnode handle to find/add async subdev

2017-12-14 Thread Steve Longerbeam
Pass the subdev's fwnode_handle to imx_media_find_async_subdev() and imx_media_add_async_subdev(), instead of a device_node. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev.c | 20 ++-- drivers/staging/media/imx/imx-media-of.c | 7 +++ dr

Re: i.mx6 camera interface (CSI) and mainline kernel

2016-06-02 Thread Steve Longerbeam
On 06/02/2016 06:55 AM, Hans Verkuil wrote: > > On 06/02/2016 03:29 PM, Tim Harvey wrote: >> On Wed, Mar 9, 2016 at 4:12 PM, Steve Longerbeam >> wrote: >>> On 03/09/2016 02:44 PM, Tim Harvey wrote: >>>> On Tue, Mar 8, 2016 at 6:06 PM, Steve Longerbeam &g

Re: i.mx6 camera interface (CSI) and mainline kernel

2016-06-06 Thread Steve Longerbeam
On 06/02/2016 09:50 AM, Steve Longerbeam wrote: On 06/02/2016 06:55 AM, Hans Verkuil wrote: On 06/02/2016 03:29 PM, Tim Harvey wrote: On Wed, Mar 9, 2016 at 4:12 PM, Steve Longerbeam wrote: On 03/09/2016 02:44 PM, Tim Harvey wrote: On Tue, Mar 8, 2016 at 6:06 PM, Steve Longerbeam wrote

Re: i.mx6 camera interface (CSI) and mainline kernel

2016-06-10 Thread Steve Longerbeam
On 06/10/2016 08:58 AM, Jack Mitchell wrote: > > > >> >> Hi all, I need a few more days. I would like to bring in the video-switch >> subdev from Pengutronix, which will replace the platform data set_video_mux >> method. Also re-org the device-tree to better define all the possible >> hardware >>

[PATCH 02/38] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2016-06-14 Thread Steve Longerbeam
Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-cpmem.c | 7 +++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index

[PATCH 04/38] gpu: ipu-v3: Add ipu_get_num()

2016-06-14 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 8 drivers/gpu/ipu-v3/ipu-prv.h| 1 + include/video/imx-ipu-v3.h | 1 + 3 files changed, 10 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu

[PATCH 01/38] gpu: ipu-v3: Add Video Deinterlacer unit

2016-06-14 Thread Steve Longerbeam
Adds the Video Deinterlacer (VDIC) unit. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/Makefile | 2 +- drivers/gpu/ipu-v3/ipu-common.c | 11 ++ drivers/gpu/ipu-v3/ipu-prv.h| 6 + drivers/gpu/ipu-v3/ipu-vdi.c| 266 include/video

[PATCH 00/38] i.MX5/6 Video Capture

2016-06-14 Thread Steve Longerbeam
is in my queue. Philipp Zabel (2): ARM: dts: imx6qdl: Add mipi_ipu1/2 video muxes, mipi_csi, and their connections media: imx: Add video switch Steve Longerbeam (35): gpu: ipu-v3: Add Video Deinterlacer unit gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() gpu: ipu-cpmem: Add

[PATCH 08/38] gpu: ipu-v3: Add ipu_csi_set_src()

2016-06-14 Thread Steve Longerbeam
Adds ipu_csi_set_src() which is just a wrapper around ipu_set_csi_src_mux(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-csi.c | 8 include/video/imx-ipu-v3.h | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu

[PATCH 18/38] ARM: dts: imx6qdl: Add mipi_ipu1/2 video muxes, mipi_csi, and their connections

2016-06-14 Thread Steve Longerbeam
channels 0/3. On i.MX6DL/S two five-input multiplexers in front of IPU1 CSI0 and IPU1 CSI1 allow to select between CSI0/1 parallel input pads and any of the four MIPI CSI-2 virtual channels. Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6dl.dtsi | 183

[PATCH 31/38] media: imx: Add video switch

2016-06-14 Thread Steve Longerbeam
From: Philipp Zabel This driver can handle SoC internal and extern video bus multiplexers, controlled either by register bit fields or by GPIO. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/capture/Kconfig

[PATCH 15/38] gpu: ipu-ic: allow multiple handles to ic

2016-06-14 Thread Steve Longerbeam
handle to the IC at a time, so we should be ok there. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ipu-ic.c index f6a1125..51e34a1 100644

[PATCH 26/38] gpio: pca953x: Add reset-gpios property

2016-06-14 Thread Steve Longerbeam
Add optional reset-gpios property. If present, de-assert the specified reset gpio pin to bring the chip out of reset. Signed-off-by: Steve Longerbeam --- drivers/gpio/gpio-pca953x.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpio/gpio-pca953x.c b

[PATCH 27/38] clocksource/drivers/imx: add input capture support

2016-06-14 Thread Steve Longerbeam
. void mxc_free_input_capture(unsigned int chan, void *dev_id); This disables the given input capture channel in the GPT. Signed-off-by: Steve Longerbeam --- drivers/clocksource/timer-imx-gpt.c | 463 include/linux/mxc_icap.h| 20 ++ 2 files

[PATCH 23/38] ARM: dts: imx6-sabreauto: add pinctrl for gpt input capture

2016-06-14 Thread Steve Longerbeam
Add pinctrl groups for both GPT input capture channels. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index

[PATCH 32/38] media: imx: Add support for MIPI CSI-2 OV5640

2016-06-14 Thread Steve Longerbeam
This driver is based on ov5640_mipi.c from Freescale imx_3.10.17_1.0.0_beta branch, modified heavily for code cleanup and converted from int-device to subdev. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/capture/Kconfig |8 + drivers/staging/media/imx/capture/Makefile

[PATCH 25/38] ARM: dts: imx6qdl: add mem2mem device for sabre* boards

2016-06-14 Thread Steve Longerbeam
Enables ipu-mem2mem device on SabreAuto, SabreSD, and SabreLite (also on ipu2 for quad). Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6q-sabreauto.dts| 7 +++ arch/arm/boot/dts/imx6q-sabrelite.dts| 6 ++ arch/arm/boot/dts/imx6q-sabresd.dts | 6 ++ arch/arm

[PATCH 34/38] media: imx: Add support for ADV7180 Video Decoder

2016-06-14 Thread Steve Longerbeam
This driver is based on adv7180.c from Freescale imx_3.10.17_1.0.0_beta branch, modified heavily for code cleanup and converted from int-device to subdev. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/capture/Kconfig |7 + drivers/staging/media/imx/capture/Makefile |1

[PATCH 30/38] media: imx: Add MIPI CSI-2 Receiver driver

2016-06-14 Thread Steve Longerbeam
Adds MIPI CSI-2 Receiver subdev driver. This subdev is required for sensors with a MIPI CSI2 interface. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/capture/Kconfig | 8 + drivers/staging/media/imx/capture/Makefile| 1 + drivers/staging/media/imx/capture/mipi-csi2.c

[PATCH 28/38] v4l: Add signal lock status to source change events

2016-06-14 Thread Steve Longerbeam
Add a signal lock status change to the source changes bitmask. This indicates there was a signal lock or unlock event detected at the input of a video decoder. Signed-off-by: Steve Longerbeam --- Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 12 ++-- include/uapi/linux/videodev2

[PATCH 03/38] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()

2016-06-14 Thread Steve Longerbeam
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index a36c35e..fcb7dc8 100644 --- a

[PATCH 22/38] ARM: dts: imx6-sabreauto: add reset-gpios property for max7310

2016-06-14 Thread Steve Longerbeam
The reset pin to the port expander chip (MAX7310) is controlled by a gpio, so define a reset-gpios property to control it. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl

[PATCH 05/38] gpu: ipu-v3: Add IDMA channel linking support

2016-06-14 Thread Steve Longerbeam
_PP More links can be added to the idmac_link_info[] array. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 112 include/video/imx-ipu-v3.h | 3 ++ 2 files changed, 115 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-common.c

[PATCH 38/38] ARM: imx_v6_v7_defconfig: Enable staging video4linux drivers

2016-06-14 Thread Steve Longerbeam
Enable imx v4l2 staging drivers. For video capture on the SabreAuto, the ADV7180 video decoder also requires the i2c-mux-gpio and the max7310 port expander. Signed-off-by: Steve Longerbeam --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

[PATCH 21/38] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

2016-06-14 Thread Steve Longerbeam
X7310) are thus moved into i2cmux. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 65 +--- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto

[PATCH 17/38] ARM: dts: imx6qdl: Flesh out MIPI CSI2 receiver node

2016-06-14 Thread Steve Longerbeam
Add to the MIPI CSI2 receiver node: compatible string, interrupt sources, clocks. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index ed613eb..50499eb

[PATCH 14/38] gpu: ipu-ic: Add complete image conversion support with tiling

2016-06-14 Thread Steve Longerbeam
This patch implements complete image conversion support to ipu-ic, with tiling to support scaling to and from images up to 4096x4096. Image rotation is also supported. The internal API is subsystem agnostic (no V4L2 dependency except for the use of V4L2 fourcc pixel formats). Callers prepare for

[PATCH 24/38] ARM: dts: imx6-sabreauto: add video capture ports and connections

2016-06-14 Thread Steve Longerbeam
inputs are defined via inputs and input-names under the endpoint node ipu1_csi0_from_ipu1_csi0_mux. The ADV7180 power pin is via max7310_b port expander. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 68 1 file changed, 68 insertions

[PATCH 16/38] gpu: ipu-v3: rename CSI client device

2016-06-14 Thread Steve Longerbeam
Rename the CSI client device in the client_reg[] table to "imx-ipuv3-csi". Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c ind

[PATCH 35/38] media: adv7180: add power pin control

2016-06-14 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add support for "pwdn-gpio" device node and pin control. Signed-off-by: Steve Longerbeam --- drivers/media/i2c/adv7180.c | 51 + 1 file changed, 51 insertions(+) diff --git a/drivers

[PATCH 20/38] ARM: dts: imx6-sabresd: add video capture ports and connections

2016-06-14 Thread Steve Longerbeam
virtual channel 1 to ipu1_csi1 on imx6q, and indirectly via the ipu1_csi1_mux on imx6dl). Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6dl-sabresd.dts | 44 +++ arch/arm/boot/dts/imx6q-sabresd.dts| 16 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 139

[PATCH 37/38] media: Add i.MX5/6 mem2mem driver

2016-06-14 Thread Steve Longerbeam
Adds a V4L2 mem2mem driver for i.MX5/6 SoC. Uses the IPU IC image converter (post-processor task) to perform scaling, rotation, and color space conversion. Signed-off-by: Steve Longerbeam --- Documentation/devicetree/bindings/media/imx.txt | 25 +- drivers/staging/media/imx/Kconfig

[PATCH 36/38] media: adv7180: implement g_parm

2016-06-14 Thread Steve Longerbeam
Implement g_parm to return the current standard's frame period. Signed-off-by: Steve Longerbeam --- drivers/media/i2c/adv7180.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index b3bb19f..9e40632 1

[PATCH 19/38] ARM: dts: imx6-sabrelite: add video capture ports and connections

2016-06-14 Thread Steve Longerbeam
requires it to wake-up the ARM cores on normal RX and TX packet done events (see 6261c4c8). So by default, capture is disabled, enable by uncommenting __OV5642_CAPTURE__ macro. Ethernet will still work just not quite as well. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi

[PATCH 13/38] gpu: ipu-v3: Fix IRT usage

2016-06-14 Thread Steve Longerbeam
There can be multiple IC tasks using the IRT, so the IRT needs a separate use counter. Create a private ipu_irt_enable() to enable the IRT module when any IC task requires rotation, and ipu_irt_disable() when a task no longer needs the IRT. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3

[PATCH 06/38] gpu: ipu-v3: Add ipu_set_vdi_src_mux()

2016-06-14 Thread Steve Longerbeam
Adds ipu_set_vdi_src_mux() that selects the VDIC input (from CSI or memory). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 20 include/video/imx-ipu-v3.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b

[PATCH 07/38] gpu: ipu-v3: Add VDI input IDMAC channels

2016-06-14 Thread Steve Longerbeam
Adds the VDIC field input IDMAC channels. These channels transfer fields F(n-1), F(n), and F(N+1) from memory to the VDIC (channels 8, 9, 10 respectively). Signed-off-by: Steve Longerbeam --- include/video/imx-ipu-v3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/video/imx-ipu

[PATCH 11/38] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats

2016-06-14 Thread Steve Longerbeam
The CSI data format was being programmed incorrectly for the 1x16 media bus formats. The CSI data format for 16-bit must be bayer/generic (CSI_SENS_CONF_DATA_FMT_BAYER). Suggested-by: Carsten Resch Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-csi.c | 6 +- 1 file changed, 1

[PATCH 09/38] gpu: ipu-v3: Add ipu_ic_set_src()

2016-06-14 Thread Steve Longerbeam
Adds ipu_ic_set_src() which is just aa wrapper around ipu_set_ic_src_mux(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 10 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ipu

[PATCH 10/38] gpu: ipu-v3: set correct full sensor frame for PAL/NTSC

2016-06-14 Thread Steve Longerbeam
Set the sensor full frame based on whether the passed in mbus_fmt is 720x480 (NTSC) or 720x576 (PAL). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers

[PATCH 12/38] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-06-14 Thread Steve Longerbeam
From: Suresh Dhandapani This patch will change the register IPU_CSI0_CCIR_CODE_2 value from 0x40596 to 0x405A6. The change is related to the Start of field 1 first blanking line command bit[5-3] for NTSC format only. This change is dependent with ADV chip where the NEWAVMODE is set to 0 in regist

Re: [PATCH 35/38] media: adv7180: add power pin control

2016-06-15 Thread Steve Longerbeam
Hi Lars, On 06/15/2016 09:05 AM, Lars-Peter Clausen wrote: > On 06/15/2016 12:49 AM, Steve Longerbeam wrote: >> +usleep_range(5000, 5001); > That's kind of not how usleep_range() (the emphasis is on range) is supposed > to be used. You typically dont care too

<    5   6   7   8   9   10   11   12   >