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

2017-06-07 Thread Steve Longerbeam
Add pinctrl groups for both GPT input capture channels. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/bo

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

2017-06-07 Thread Steve Longerbeam
) are thus moved into i2cmux. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/ar

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

2017-06-07 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 <steve_longerb...@mentor.com> - Use IRQ_TYPE_LEVEL_LOW instead of 0x8 for interrupt type for c

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

2017-06-07 Thread Steve Longerbeam
, that chip is needed by more functions (usb and adv7180). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/i

[PATCH v8 17/34] [media] add Omnivision OV5640 sensor driver

2017-06-07 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 <steve_longerb...@mentor.com> Acked-by: Hans Verkuil <hans.verk...@cisco.com> --- drivers/media

[PATCH v8 19/34] media: Add i.MX media core driver

2017-06-07 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Add the bayer formats to imx-media's list of supported pixel and

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

2017-06-07 Thread Steve Longerbeam
owner = THIS_MODULE; + priv->sd.flags = V4L2_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(>lock); + + ret = v4l2_async_register_subde

[PATCH v8 18/34] media: Add userspace header file for i.MX

2017-06-07 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 <steve_longerb...@mentor.com> --- include/linux/imx-media.

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

2017-06-07 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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

[PATCH v8 20/34] media: imx: Add a TODO file

2017-06-07 Thread Steve Longerbeam
Add a TODO file. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/TODO | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 drivers/staging/media/imx/TODO diff --git a/drivers/staging/media/imx/TODO b/drivers/staging

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

2017-06-07 Thread Steve Longerbeam
This is a media entity subdevice for the i.MX Camera Sensor Interface module. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> - Added support for negotiation of frame intervals. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> - Fixed cropping rectangle

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

2017-06-07 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 <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile |2 + drivers/staging/med

[PATCH v8 27/34] media: imx: csi: increase burst size for YUV formats

2017-06-07 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

[PATCH v8 26/34] media: imx: csi: add support for bayer formats

2017-06-07 Thread Steve Longerbeam
destination is IDMAC output pad when passthrough conditions exist: bayer formats and 16-bit parallel buses. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/imx-media-csi.c | 74 --- 1 file changed, 57 insertions(+), 17

[PATCH v8 31/34] media: imx: capture: add frame sizes/interval enumeration

2017-06-07 Thread Steve Longerbeam
From: Russell King <rmk+ker...@armlinux.org.uk> Add support for enumerating frame sizes and frame intervals from the first subdev via the V4L2 interfaces. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --

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

2017-06-07 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 <steve_longerb...@mentor.com> - Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel <p.za...@pengutronix.d

[PATCH v8 28/34] media: imx: csi: add frame skipping support

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> The CSI can skip any out of up to 6 input frames, allowing to reduce the frame rate at the output pads by small fractions. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.

[PATCH v8 32/34] media: imx: set and propagate default field, colorimetry

2017-06-07 Thread Steve Longerbeam
, fixed quantization and Y`CbCr encoding must be set. Colorimetry is also propagated from sink to source pads anywhere this has not already been done. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/stagi

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

2017-06-07 Thread Steve Longerbeam
max zoneorder to allow larger video buffer allocations. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/c

[PATCH v8 29/34] media: imx: csi: add sink selection rectangles

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel Move the crop rectangle to the sink pad and add a sink compose rectangle to configure scaling. Also propagate rectangles from sink pad to crop rectangle, to compose rectangle, and to the source pads both in ACTIVE and TRY variants of set_fmt/selection,

[PATCH v8 30/34] media: imx: csi: add frame size/interval enumeration

2017-06-07 Thread Steve Longerbeam
range of frame sizes. CSI can also drop frames, resulting in frame rate reduction, so enumerate the resulting possible output frame rates. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/im

[PATCH v8 33/34] media: imx: Drop warning upon multiple S_STREAM disable calls

2017-06-07 Thread Steve Longerbeam
From: Marek Vasut Calling S_STREAM OFF multiple times on a video device is valid, although dubious, practice. Instead of warning about it and setting stream count lower than zero, just ignore the subsequent S_STREAM calls and correct the stream count to zero. Signed-off-by: Marek

[PATCH v8 00/34] i.MX Media Driver

2017-06-07 Thread Steve Longerbeam
a: imx: csi: add support for bayer formats media: imx: csi: add frame size/interval enumeration media: imx: capture: add frame sizes/interval enumeration Steve Longerbeam (22): [media] dt-bindings: Add bindings for i.MX media driver [media] dt/bindings: Add bindings for OV5640 ARM: dts: imx

Re: [PATCH] [media] imx: switch from V4L2 OF to V4L2 fwnode API

2017-06-06 Thread Steve Longerbeam
Hi Philipp, v4l2_fwnode patch has been merged to mediatree, so I've applied this to my imx-media-staging-md-v16 branch, thanks for the patch! However before I can submit version 8 of the patchset, the video-mux driver also needs conversion. Can you submit a version 8 of your video-mux patchset

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

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-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

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 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-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-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 docs

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

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

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.

[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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl-sabresd.dts | 5 ++ arch/arm/boot/dts/imx6q-sabresd.dts| 5 ++ arch/arm/boot/dts/imx6qdl-sabresd.dtsi

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

2017-05-24 Thread Steve Longerbeam
) are thus moved into i2cmux. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/ar

[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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabreauto.dts

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

2017-05-24 Thread Steve Longerbeam
, that chip is needed by more functions (usb and adv7180). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/i

[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:

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

2017-05-24 Thread Steve Longerbeam
muxes for the connections from parallel sensors. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl.dtsi | 174 + arch/arm/boot/dts/imx6q.dtsi | 110 ++ arch/arm/boot/dts/imx6qdl.dtsi |

[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 <steve_longerb...@mentor.com> --- 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/bo

[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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b

[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 <steve_longerb...@mentor.com> --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile

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

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> - renamed MEDIA_ENT_F_MUX to MEDIA_ENT_F_VID_MUX Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/media/uapi/mediactl/me

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

2017-05-24 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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

[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 <steve_longerb...@mentor.com> Add the bayer formats to imx-media's list of supported pixel and bus formats. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- Documentation/media/v4l-dri

[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 <steve_longerb...@mentor.com> - Added support for negotiation of frame intervals. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> - Fixed cropping rectangle

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

2017-05-24 Thread Steve Longerbeam
active input to the output side. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> Acked-by: Pavel

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

2017-05-24 Thread Steve Longerbeam
owner = THIS_MODULE; + priv->sd.flags = V4L2_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(>lock); + + ret = v4l2_async_register_subde

[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 <steve_longerb...@mentor.com> --- include/linux/imx-media.

[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 <steve_longerb...@mentor.com> --- 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/c

[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.

[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 <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile |2 + drivers/staging/med

[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 <steve_longerb...@mentor.com> - Add the function csi2ipu_gasket_init() to initialize the gasket at s_power(ON). The gasket needs to be prog

[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

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

2017-05-24 Thread Steve Longerbeam
From: Russell King <rmk+ker...@armlinux.org.uk> Add support for enumerating frame sizes and frame intervals from the first subdev via the V4L2 interfaces. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --

[PATCH v7 31/34] media: imx: csi: add frame size/interval enumeration

2017-05-24 Thread Steve Longerbeam
range of frame sizes. CSI can also drop frames, resulting in frame rate reduction, so enumerate the resulting possible output frame rates. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/im

[PATCH v7 33/34] media: imx: set and propagate default field, colorimetry

2017-05-24 Thread Steve Longerbeam
, fixed quantization and Y`CbCr encoding must be set. Colorimetry is also propagated from sink to source pads anywhere this has not already been done. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/stagi

[PATCH v7 29/34] media: imx: csi: add frame skipping support

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> The CSI can skip any out of up to 6 input frames, allowing to reduce the frame rate at the output pads by small fractions. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.

[PATCH v7 30/34] media: imx: csi: add sink selection rectangles

2017-05-24 Thread Steve Longerbeam
From: Philipp Zabel Move the crop rectangle to the sink pad and add a sink compose rectangle to configure scaling. Also propagate rectangles from sink pad to crop rectangle, to compose rectangle, and to the source pads both in ACTIVE and TRY variants of set_fmt/selection,

[PATCH v7 34/34] media: imx: Drop warning upon multiple S_STREAM disable calls

2017-05-24 Thread Steve Longerbeam
From: Marek Vasut Calling S_STREAM OFF multiple times on a video device is valid, although dubious, practice. Instead of warning about it and setting stream count lower than zero, just ignore the subsequent S_STREAM calls and correct the stream count to zero. Signed-off-by: Marek

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

2017-05-24 Thread Steve Longerbeam
-2 receiver on mipi_csi. The OV5642 node is disabled temporarily while the subdev driver is cleaned up and submitted later. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl-sabrelite.dts | 5 ++ arch/arm/boot/dts/imx6q-sabrelite.dts| 5 ++

[PATCH v7 27/34] media: imx: csi: add support for bayer formats

2017-05-24 Thread Steve Longerbeam
destination is IDMAC output pad when passthrough conditions exist: bayer formats and 16-bit parallel buses. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/imx-media-csi.c | 74 --- 1 file changed, 57 insertions(+), 17

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

2017-05-24 Thread Steve Longerbeam
: capture: add frame sizes/interval enumeration Steve Longerbeam (21): [media] dt-bindings: Add bindings for i.MX media driver [media] dt/bindings: Add bindings for OV5640 ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node ARM: dts: imx6qdl: add capture-subsystem device ARM

[PATCH v7 03/34] [media] dt/bindings: Add bindings for OV5640

2017-05-24 Thread Steve Longerbeam
Add device tree binding documentation for the OV5640 camera sensor. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/media/i2c/ov5640.txt | 45 ++ 1 file changed, 45 insertion

[PATCH v7 07/34] ARM: dts: imx6qdl: add capture-subsystem device

2017-05-24 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl.dtsi | 5 + arch/arm/boot/dts/imx6q.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 4049af7..8475e6c

[PATCH v7 02/34] [media] dt-bindings: Add bindings for i.MX media driver

2017-05-24 Thread Steve Longerbeam
Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/devicetree/bindings/media/imx.txt | 74 + 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v7 05/34] ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node

2017-05-24 Thread Steve Longerbeam
Add to the MIPI CSI2 receiver node: compatible strings, interrupt sources, and clocks. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/bo

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-05-08 Thread Steve Longerbeam
On 05/08/2017 02:41 AM, Philipp Zabel wrote: Hi Steve, On Wed, 2017-04-12 at 17:45 -0700, Steve Longerbeam wrote: This patch adds a call to imx_media_fill_empty_mbus_fields() in the *_try_fmt() functions at the sink pads, to set empty field order and colorimetry parameters. If the field

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-04-13 Thread Steve Longerbeam
On 04/13/2017 03:09 AM, Philipp Zabel wrote: Hi Steve, thanks for cleaning this up. Apart from the comments below, this looks good to me. On Wed, 2017-04-12 at 17:45 -0700, Steve Longerbeam wrote: This patch adds a call to imx_media_fill_empty_mbus_fields() in the *_try_fmt() functions

[PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-04-12 Thread Steve Longerbeam
this has not already been done. The exception is ic-prpencvf at the source pad, since the Image Converter outputs fixed quantization and Y`CbCr encoding. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/imx-ic-prp.c | 5 ++- drivers/staging/med

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-12 Thread Steve Longerbeam
On 04/06/2017 08:25 AM, Philipp Zabel wrote: On Thu, 2017-04-06 at 16:10 +0100, Russell King - ARM Linux wrote: On Thu, Apr 06, 2017 at 05:01:52PM +0200, Philipp Zabel wrote: On Thu, 2017-04-06 at 15:05 +0100, Russell King - ARM Linux wrote: On Thu, Apr 06, 2017 at 03:55:29PM +0200, Philipp

Re: [PATCH v6 17/39] platform: add video-multiplexer subdevice driver

2017-04-11 Thread Steve Longerbeam
On 04/04/2017 05:47 AM, Sakari Ailus wrote: Hi Steve, Philipp and Pavel, On Mon, Mar 27, 2017 at 05:40:34PM -0700, Steve Longerbeam wrote: From: Philipp Zabel <p.za...@pengutronix.de> This driver can handle SoC internal and external video bus multiplexers, controlled either by regist

Re: [PATCH v6 19/39] media: Add i.MX media core driver

2017-04-06 Thread Steve Longerbeam
On 04/06/2017 02:43 AM, Philipp Zabel wrote: On Mon, 2017-03-27 at 17:40 -0700, Steve Longerbeam wrote: Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> [...] diff --git a/drivers/staging/media/imx/imx-media-of.c b/drivers/staging

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-04 Thread Steve Longerbeam
On 04/04/2017 05:40 PM, Steve Longerbeam wrote: On 04/04/2017 04:10 PM, Russell King - ARM Linux wrote: On Thu, Mar 30, 2017 at 07:25:49PM +0200, Philipp Zabel wrote: The TVP5150 DT bindings specify a single output port (port 0) that corresponds to the video output pad (pad 1

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-04 Thread Steve Longerbeam
On 04/04/2017 04:10 PM, Russell King - ARM Linux wrote: On Thu, Mar 30, 2017 at 07:25:49PM +0200, Philipp Zabel wrote: The TVP5150 DT bindings specify a single output port (port 0) that corresponds to the video output pad (pad 1, DEMOD_PAD_VID_OUT). Signed-off-by: Philipp Zabel

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-04 Thread Steve Longerbeam
On 03/30/2017 10:25 AM, Philipp Zabel wrote: The TVP5150 DT bindings specify a single output port (port 0) that corresponds to the video output pad (pad 1, DEMOD_PAD_VID_OUT). Signed-off-by: Philipp Zabel --- I'm trying to get this to work with a TVP5150 analog TV

Re: [PATCH v6 00/39] i.MX Media Driver

2017-03-30 Thread Steve Longerbeam
On 03/30/2017 04:02 AM, Russell King - ARM Linux wrote: This fails at step 1. The removal of the frame interval support now means my setup script fails when trying to set the frame interval on the camera: Enumerating pads and links Setting up format SRGGB8_1X8 816x616 on pad imx219 0-0010/0

Re: [PATCH v6 02/39] [media] dt-bindings: Add bindings for i.MX media driver

2017-03-28 Thread Steve Longerbeam
On 03/28/2017 05:21 PM, Rob Herring wrote: On Mon, Mar 27, 2017 at 7:40 PM, Steve Longerbeam <slongerb...@gmail.com> wrote: Add bindings documentation for the i.MX media driver. + +mipi_csi2 node +-- + +This is the device node for the MIPI CSI-2 Receiver, required for MIP

[PATCH v6 04/39] ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node

2017-03-27 Thread Steve Longerbeam
Add to the MIPI CSI2 receiver node: compatible strings, interrupt sources, and clocks. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/bo

[PATCH v6 01/39] [media] dt-bindings: Add bindings for video-multiplexer device

2017-03-27 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.c

[PATCH v6 02/39] [media] dt-bindings: Add bindings for i.MX media driver

2017-03-27 Thread Steve Longerbeam
Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/devicetree/bindings/media/imx.txt | 74 + 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v6 00/39] i.MX Media Driver

2017-03-27 Thread Steve Longerbeam
csi: add frame size/interval enumeration media: imx-media-capture: add frame sizes/interval enumeration Steve Longerbeam (26): [media] dt-bindings: Add bindings for i.MX media driver [media] dt/bindings: Add bindings for OV5640 ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 n

[PATCH v6 07/39] ARM: dts: imx6qdl-sabrelite: remove erratum ERR006687 workaround

2017-03-27 Thread Steve Longerbeam
oards that have the HW workaround for ERR006687") Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b

[PATCH v6 10/39] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

2017-03-27 Thread Steve Longerbeam
) are thus moved into i2cmux. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/ar

[PATCH v6 13/39] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-03-27 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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabreauto.dts

[PATCH v6 03/39] [media] dt/bindings: Add bindings for OV5640

2017-03-27 Thread Steve Longerbeam
Add device tree binding documentation for the OV5640 camera sensor. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- .../devicetree/bindings/media/i2c/ov5640.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devi

[PATCH v6 15/39] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-27 Thread Steve Longerbeam
v4l2_pipeline_inherit_controls() will add the v4l2 controls from all subdev entities in a pipeline to a given video device. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/v4l2-core/v4l2-mc.c | 50 +++ include/media/v4l

[PATCH v6 08/39] ARM: dts: imx6-sabrelite: add OV5642 and OV5640 camera sensors

2017-03-27 Thread Steve Longerbeam
-2 receiver on mipi_csi. The OV5642 node is disabled temporarily while the subdev driver is cleaned up and submitted later. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl-sabrelite.dts | 5 ++ arch/arm/boot/dts/imx6q-sabrelite.dts| 5 ++

[PATCH v6 06/39] ARM: dts: imx6qdl: add capture-subsystem device

2017-03-27 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl.dtsi | 5 + arch/arm/boot/dts/imx6q.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 8958c4a..a959c76

[PATCH v6 05/39] ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections

2017-03-27 Thread Steve Longerbeam
muxes for the connections from parallel sensors. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl.dtsi | 180 + arch/arm/boot/dts/imx6q.dtsi | 116 ++ arch/arm/boot/dts/imx6qd

[PATCH v6 14/39] add mux and video interface bridge entity functions

2017-03-27 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> - renamed MEDIA_ENT_F_MUX to MEDIA_ENT_F_VID_MUX Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/media/uapi/mediactl/me

[PATCH v6 09/39] ARM: dts: imx6-sabresd: add OV5642 and OV5640 camera sensors

2017-03-27 Thread Steve Longerbeam
available for testing, the ov5642 node is currently disabled. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl-sabresd.dts | 5 ++ arch/arm/boot/dts/imx6q-sabresd.dts| 5 ++ arch/arm/boot/dts/imx6qdl-sabresd.dtsi

[PATCH v6 28/39] media: imx: csi: fix crop rectangle changes in set_fmt

2017-03-27 Thread Steve Longerbeam
ed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/imx-media-csi.c | 35 --- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/imx/imx-medi

[PATCH v6 18/39] media: Add userspace header file for i.MX

2017-03-27 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 <steve_longerb...@mentor.com> --- include/linux/imx-media.

[PATCH v6 23/39] media: imx: Add IC subdev drivers

2017-03-27 Thread Steve Longerbeam
directly from the CSI or from the VDIC. Scaled output is limited to 1024x1024 resolution. Output frames are routed to the capture device. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile |2 + drivers/staging/media/imx/

[PATCH v6 30/39] media: imx: csi/fim: add support for frame intervals

2017-03-27 Thread Steve Longerbeam
From: Russell King <rmk+ker...@armlinux.org.uk> Add support to CSI for negotiation of frame intervals, and use this information to configure the frame interval monitor. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Signed-off-by: Steve Longerbeam <steve_longer

[PATCH v6 17/39] platform: add video-multiplexer subdevice driver

2017-03-27 Thread Steve Longerbeam
lows for it to be merged now, before adding the chaining support. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/platform/Kconfig | 8 + drivers/media/platform/Makefile| 2 + drivers/media/platform/video-multiplexer.c | 451 ++

[PATCH v6 24/39] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-03-27 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 <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile | 1 + drivers/staging/media/imx/imx6-mipi-csi2.c

[PATCH v6 19/39] media: Add i.MX media core driver

2017-03-27 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/media/v4l-drivers/imx.rst | 590 ++ drivers/staging/media/Kconfig | 2 + drivers/staging/media/Makefile

[PATCH v6 11/39] ARM: dts: imx6-sabreauto: add reset-gpios property for max7310_b

2017-03-27 Thread Steve Longerbeam
, that chip is needed by more functions (usb and adv7180). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/i

<    1   2   3   4   5   6   7   8   9   10   >