Re: [PATCH v2] [media] imx: csi: enable double write reduction

2017-07-19 Thread Steve Longerbeam
Acked-by: Steve Longerbeam <steve_longerb...@mentor.com> On 07/19/2017 09:34 AM, Philipp Zabel wrote: For 4:2:0 subsampled YUV formats, avoid chroma overdraw by only writing chroma for even lines. Reduces necessary write memory bandwidth by 25%. Signed-off-by: Philipp Zabel

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 v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 04:23 PM, Pavel Machek wrote: Hi! Steve, You need to remove the fim node now that you've moved this to V4L2 controls. Yep, I caught this just after sending the v8 patchset. I'll send a v9 of this patch. This needs ack from devicetree people, then it can be merged. Can you

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

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 06:15 AM, Philipp Zabel wrote: On Wed, 2017-06-07 at 11:33 -0700, Steve Longerbeam wrote: 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

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

2017-06-09 Thread Steve Longerbeam
On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Rub has provided an Ack for patch 2. Other than that everything is ready AFAICT. But as Pavel pointed out, in fact we are missing many Acks still, for all of the dts source

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

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 02:38 PM, Pavel Machek wrote: On Thu 2017-06-08 13:36:12, Steve Longerbeam wrote: On 06/08/2017 01:25 PM, Tim Harvey wrote: Steve, You need to remove the fim node now that you've moved this to V4L2 controls. Yep, I caught this just after sending the v8 patchset. I'll

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

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 04:16 PM, Steve Longerbeam wrote: On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Rub damn, I really need to proof-read before hitting send. "Rob" (sorry Rob!). Steve

[PATCH] MAINTAINERS: add entry for Freescale i.MX media driver

2017-06-12 Thread Steve Longerbeam
Add maintainer entry for the imx-media driver. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c7f663..11adc51 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

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

2017-06-12 Thread Steve Longerbeam
On 06/11/2017 01:05 PM, Vladimir Zapolskiy wrote: On 06/10/2017 02:26 AM, Hans Verkuil wrote: On 10/06/17 01:16, Steve Longerbeam wrote: On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Rub has provided an Ack for patch 2

Re: [PATCH] media: imx.rst: add it to v4l-drivers book

2017-06-24 Thread Steve Longerbeam
authors at just one line at the html/pdf output. Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com> Acked-by: Steve Longerbeam <steve_longerb...@mentor.com> Steve --- Documentation/media/v4l-drivers/imx.rst | 7 --- Documentation/media/v4l-drivers/index.rst | 1

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

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

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

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

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

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

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

[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 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 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 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 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 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 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 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 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 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 04/34] ARM: dts: imx6qdl: add multiplexer controls

2017-06-07 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 v8 02/34] [media] dt-bindings: Add bindings for i.MX media driver

2017-06-07 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 | 47 + 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings

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

2017-06-07 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 v8 08/34] ARM: dts: imx6qdl-sabrelite: remove erratum ERR006687 workaround

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

[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 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 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 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 15/34] add mux and video interface bridge entity functions

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> Add two new media entity function definitions for video multiplexers and video interface bridges. 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 &l

[PATCH v8 16/34] platform: add video-multiplexer subdevice driver

2017-06-07 Thread Steve Longerbeam
x controller" patches are merged. 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 v8 06/34] ARM: dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections

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

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

2017-06-07 Thread Steve Longerbeam
On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Yes still waiting for an ack for the imx-media bindings. Other than that everything is ready AFAICT. Agreed. Steve Regards, Hans On 07/06/17 20:33, Steve Longerbeam

[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 01/34] dt-bindings: Add bindings for video-multiplexer device

2017-06-07 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 v8 03/34] [media] dt/bindings: Add bindings for OV5640

2017-06-07 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 v8 07/34] ARM: dts: imx6qdl: add capture-subsystem device

2017-06-07 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 v8 09/34] ARM: dts: imx6-sabrelite: add OV5642 and OV5640 camera sensors

2017-06-07 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 v8 10/34] ARM: dts: imx6-sabresd: add OV5642 and OV5640 camera sensors

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

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

2017-06-08 Thread Steve Longerbeam
On 06/08/2017 09:45 AM, Steve Longerbeam wrote: Hi Rob, Mark, Are there any remaining technical issues with this binding doc? At this point an Ack from you is the only thing holding up merge of the imx-media driver. Note that the Synopsys core in the i.MX6 is a differently configured

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

2017-06-08 Thread Steve Longerbeam
Hi Rob, Mark, Are there any remaining technical issues with this binding doc? At this point an Ack from you is the only thing holding up merge of the imx-media driver. Thanks, Steve On 06/07/2017 11:33 AM, Steve Longerbeam wrote: Add bindings documentation for the i.MX media driver. Signed

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

2017-06-08 Thread Steve Longerbeam
On 06/08/2017 01:25 PM, Tim Harvey wrote: Steve, You need to remove the fim node now that you've moved this to V4L2 controls. Yep, I caught this just after sending the v8 patchset. I'll send a v9 of this patch. Steve

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] MAINTAINERS: add entry for OV5640 sensor driver

2017-06-11 Thread Steve Longerbeam
Add maintainer entry for the OV5640 V4L2 sensor driver. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 053c3bd..9c7f663 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

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

2017-06-10 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 v9 02/34] [media] dt-bindings: Add bindings for i.MX media driver

2017-06-10 Thread Steve Longerbeam
Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes since v8 [1]: - expand on description of the MIPI CSI-2 IP core in i.MX6, and drop "snps,dw-mipi-csi2"

Re: [GIT PULL FOR v4.13] Add video-mux, ov5640 and i.MX media staging driver

2017-06-13 Thread Steve Longerbeam
: add frame skipping support media: imx: csi: add sink selection rectangles Russell King (3): media: 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

Re: [PATCH v2 2/2] [media] imx: ask source subdevice for number of active data lanes

2017-09-22 Thread Steve Longerbeam
Zabel <p.za...@pengutronix.de> Acked-by: Steve Longerbeam <steve_longerb...@mentor.com> --- New in v2: - Use the active lanes reported via g_mbus_config(), if available, to configure the CSI2_N_LANES register correctly. --- drivers/staging/media/imx/imx6-mipi

Re: IMX6 ADV7180 no /dev/media

2017-09-15 Thread Steve Longerbeam
Hi Tim, On 09/15/2017 02:26 PM, Tim Harvey wrote: Greetings, I'm testing Linux master built with imx_v6_v7_defconfig on a GW51xx which has an ADV7180 analog video decoder and am not seeing the imx6 /dev/media node get created: [    0.00] OF: fdt: Machine model: Gateworks Ventana i.MX6

Re: IMX6 ADV7180 no /dev/media

2017-09-15 Thread Steve Longerbeam
On 09/15/2017 04:28 PM, Tim Harvey wrote: On Fri, Sep 15, 2017 at 3:26 PM, Steve Longerbeam <slongerb...@gmail.com> wrote: Hi Tim, On 09/15/2017 02:26 PM, Tim Harvey wrote: Greetings, I'm testing Linux master built with imx_v6_v7_defconfig on a GW51xx which has an ADV7180 analog

<    2   3   4   5   6   7   8   9   10   >