[PATCH 25/28] ARM: dts: imx6qdl: Flesh out MIPI CSI2 receiver node

2016-07-06 Thread Steve Longerbeam
Add to the MIPI CSI2 receiver node: compatible string, interrupt sources, 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 26/28] ARM: dts: imx6qdl: Add mipi_ipu1/2 video muxes, mipi_csi, and their connections

2016-07-06 Thread Steve Longerbeam
t pads and the MIPI CSI-2 virtual 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 <p.za...@pengutronix.de> Signed-o

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

2016-07-06 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 <carsten.re...@de.bosch.com> Signed-off-by: Steve Longerbeam <steve_longerb...@m

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

2016-07-06 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 06/28] gpu: ipu-v3: Add ipu_set_vdi_src_mux()

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

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

2016-07-06 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 <steve_longerb...@mentor.com> --- include/video/imx-ipu-v3.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 17/28] gpio: pca953x: Add optional reset gpio control

2016-07-06 Thread Steve Longerbeam
Add optional reset-gpios pin control. If present, de-assert the specified reset gpio pin to bring the chip out of reset. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpio/gpio-pca953x.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/d

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

2016-07-06 Thread Steve Longerbeam
Rename the CSI client device in the client_reg[] table to "imx-ipuv3-csi". Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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

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

2016-07-06 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 <steve_long

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

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

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

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

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

2016-07-06 Thread Steve Longerbeam
Adds ipu_csi_set_src() which is just a wrapper around ipu_set_csi_src_mux(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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-

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

2016-07-06 Thread Steve Longerbeam
Adds ipu_ic_set_src() which is just aa wrapper around ipu_set_ic_src_mux(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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-

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

2016-07-06 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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

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

2016-07-06 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 <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/d

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

2016-07-06 Thread Steve Longerbeam
Adds the Video Deinterlacer (VDIC) unit. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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

[PATCH 00/28] i.MX5/6 Video Capture, v2

2016-07-06 Thread Steve Longerbeam
Philipp Zabel (2): media: imx: Add video switch ARM: dts: imx6qdl: Add mipi_ipu1/2 video muxes, mipi_csi, and their connections Steve Longerbeam (25): gpu: ipu-v3: Add Video Deinterlacer unit gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize

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

2016-07-01 Thread Steve Longerbeam
On 07/01/2016 12:24 AM, Hans Verkuil wrote: On 06/15/2016 12:49 AM, Steve Longerbeam wrote: 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

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

2016-07-01 Thread Steve Longerbeam
Hi Tim, Pardon late reply, I'm on vacation. See below... On 06/28/2016 11:54 AM, Tim Harvey wrote: On Tue, Jun 14, 2016 at 3:48 PM, Steve Longerbeam <slongerb...@gmail.com> wrote: Tested on imx6q SabreAuto with ADV7180, and imx6q SabreSD with mipi-csi2 OV5640. There is device-tree s

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

2016-06-21 Thread Steve Longerbeam
On 06/20/2016 03:44 AM, Jack Mitchell wrote: > > > On 20/06/16 11:16, Gary Bisson wrote: >> Jack, All, >> >> On Mon, Jun 20, 2016 at 10:44:44AM +0100, Jack Mitchell wrote: >>> I've tried that patch have a some comments: - When applied, no capture shows up any more, instead I have two

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

2016-06-17 Thread Steve Longerbeam
On 06/16/2016 04:33 AM, Lars-Peter Clausen wrote: On 06/15/2016 12:49 AM, Steve Longerbeam wrote: 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. We already have a driver

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

2016-06-17 Thread Steve Longerbeam
On 06/16/2016 09:13 AM, Ian Arkver wrote: For me this fails when I try to enable both video muxes (mx6dl, though mx6q should be the same). I get a sysfs duplicate name failure for 34.videomux. I realise passing the GPR13 register offset and a bitfield mask as a tuple in the reg value of the

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

2016-06-17 Thread Steve Longerbeam
On 06/17/2016 08:18 AM, Gary Bisson wrote: Steve, All, On Thu, Jun 16, 2016 at 10:32:31AM +0200, Gary Bisson wrote: Steve, All, On Tue, Jun 14, 2016 at 03:49:15PM -0700, Steve Longerbeam wrote: Defines the host video capture device node and an OV5642 camera sensor node on i2c2. The host

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

2016-06-17 Thread Steve Longerbeam
On 06/17/2016 08:18 AM, Gary Bisson wrote: Steve, All, On Thu, Jun 16, 2016 at 10:32:31AM +0200, Gary Bisson wrote: Steve, All, On Tue, Jun 14, 2016 at 03:49:15PM -0700, Steve Longerbeam wrote: Defines the host video capture device node and an OV5642 camera sensor node on i2c2. The host

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

2016-06-17 Thread Steve Longerbeam
On 06/17/2016 12:10 AM, Hans Verkuil wrote: On 06/16/2016 07:02 PM, Steve Longerbeam wrote: On 06/16/2016 02:49 AM, Jack Mitchell wrote: On 16/06/16 02:37, Steve Longerbeam wrote: Hi Jack, On 06/15/2016 03:43 AM, Jack Mitchell wrote: Trying to use a user pointer rather than mmap also

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

2016-06-16 Thread Steve Longerbeam
On 06/16/2016 02:49 AM, Jack Mitchell wrote: > > On 16/06/16 02:37, Steve Longerbeam wrote: >> Hi Jack, >> >> On 06/15/2016 03:43 AM, Jack Mitchell wrote: >>> >>> Trying to use a user pointer rather than mmap also fails and causes a >>&g

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

2016-06-15 Thread Steve Longerbeam
Hi Jack, On 06/15/2016 03:43 AM, Jack Mitchell wrote: > > Trying to use a user pointer rather than mmap also fails and causes a kernel > splat. > Hmm, I've tested userptr with the mem2mem driver, but maybe never with video capture. I tried "v4l2-ctl -d/dev/video0 --stream-user=8" but that

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 much

[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

[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 <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 20 include/video/imx-ipu-v3.h | 1 + 2 files changed, 21 insertions(+) diff

[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 <steve_longerb...@mentor.com> --- include/video/imx-ipu-v3.h | 3 +++ 1 file changed, 3 insertions(+)

[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 <carsten.re...@de.bosch.com> Signed-off-by: Steve Longerbeam <steve_longerb...@m

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

[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 <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/d

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

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

2016-06-14 Thread Steve Longerbeam
on virtual channel 1 to ipu1_csi1 on imx6q, and indirectly via the ipu1_csi1_mux on imx6dl). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl-sabresd.dts | 44 +++ arch/arm/boot/dts/imx6q-sabresd.dts| 16 arch/arm/boot/dts/i

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

[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 <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 51 + 1 file change

[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 <steve_longerb...@mentor.com> --- Documentation/devicetree/bindings/media/imx.txt | 25 +- drivers/s

[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 <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv

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

[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 <steve_longerb...@mentor.com> --- Documentation/DocBook/media/v4l/vidioc-dqevent.xm

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

[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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff

[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 <steve_longerb...@mentor.com> --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 inse

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

2016-06-14 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 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 <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 68 +

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

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

[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 <steve_longerb...@mentor.com> --- drivers/staging/media/imx/capture/Kconfig | 8 + drivers/staging/media/imx/capture/Makefile| 1 + drivers/s

[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 <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 112 include/video/imx-ipu-v3.h | 3 ++ 2 files changed, 115 insertions(+) diff --gi

[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 <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 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 <steve_longerb...@mentor.com> --- drivers/staging/media/imx/capture/Kconfig |8 + d

[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 <steve_longerb...@mentor.com> --- drivers/gpio/gpio-pca953x.c | 28 1 file changed, 28 insertions(+) diff

[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 <steve_longerb...@mentor.com> --- drivers/clocksource/timer-imx-gpt.c | 463 include/linux/mxc_

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

2016-06-14 Thread Steve Longerbeam
a handle to the IC at a time, so we should be ok there. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- 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/ip

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

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

2016-06-14 Thread Steve Longerbeam
t pads and the MIPI CSI-2 virtual 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 <p.za...@pengutronix.de> Signed-o

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

2016-06-14 Thread Steve Longerbeam
From: Philipp Zabel <p.za...@pengutronix.de> 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 <s.ha...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Si

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

2016-06-14 Thread Steve Longerbeam
, but that 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 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 <steve_longerb...@mentor.com> --- 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

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

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

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

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 <steve_longerb...@mentor.com> wrote: On 03/09/2016 02:44 PM, Tim Harvey wrote: On Tue, Mar 8, 2016 a

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 >> <steve_longerb...@mentor.com> wrote: >>> On 03/09/2016 02:44 PM, Tim Harvey wrote: >>>> On

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

2016-03-09 Thread Steve Longerbeam
On 03/09/2016 02:44 PM, Tim Harvey wrote: > On Tue, Mar 8, 2016 at 6:06 PM, Steve Longerbeam > <steve_longerb...@mentor.com> wrote: >> On 03/07/2016 08:19 AM, Tim Harvey wrote: > >> >> Hi Tim, good to hear it works for you on the Ventana boards. >> >>

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

2016-03-08 Thread Steve Longerbeam
On 03/07/2016 08:19 AM, Tim Harvey wrote: > On Thu, Mar 3, 2016 at 9:45 AM, Steve Longerbeam > <steve_longerb...@mentor.com> wrote: >> Hi Philippe, >> >> On 03/03/2016 12:36 AM, Philippe De Muyter wrote: >>> Just to be sure : do you mean https

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

2016-03-03 Thread Steve Longerbeam
Hi Philippe, On 03/03/2016 12:36 AM, Philippe De Muyter wrote: > > Just to be sure : do you mean https://github.com/slongerbeam/mediatree.git > or something else ? Sorry, yes I meant https://github.com/slongerbeam/mediatree.git. > >>> So far I have retested video capture with the

Re: i.MX6 Video combiner

2015-02-25 Thread Steve Longerbeam
On 02/25/2015 02:57 AM, Jean-Michel Hautbois wrote: Hi all, I read in the i.MX6 TRM that it can do combining or deinterlacing with VDIC. Has it been tested by anyone ? Could it be a driver, which would allow to do some simple compositing of souces ? Thanks, JM I've added VDIC support

Re: i.MX6 Video combiner

2015-02-25 Thread Steve Longerbeam
On 02/25/2015 09:37 AM, Steve Longerbeam wrote: On 02/25/2015 02:57 AM, Jean-Michel Hautbois wrote: Hi all, I read in the i.MX6 TRM that it can do combining or deinterlacing with VDIC. Has it been tested by anyone ? Could it be a driver, which would allow to do some simple compositing

Re: i.MX6 Video combiner

2015-02-25 Thread Steve Longerbeam
On 02/25/2015 11:40 AM, Jean-Michel Hautbois wrote: Hi Steve, 2015-02-25 18:54 GMT+01:00 Steve Longerbeam slongerb...@gmail.com: On 02/25/2015 09:37 AM, Steve Longerbeam wrote: On 02/25/2015 02:57 AM, Jean-Michel Hautbois wrote: Hi all, I read in the i.MX6 TRM that it can do combining

Re: i.MX6 status for IPU/VPU/GPU

2014-10-05 Thread Steve Longerbeam
On 10/02/2014 07:50 AM, Jean-Michel Hautbois wrote: Hi Steve, 2014-09-09 18:28 GMT+02:00 Steve Longerbeam slongerb...@gmail.com: On 09/09/2014 12:49 AM, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com: The complete driver I posted

Re: i.MX6 status for IPU/VPU/GPU

2014-09-10 Thread Steve Longerbeam
On 09/10/2014 09:08 AM, Jean-Michel Hautbois wrote: 2014-09-09 18:28 GMT+02:00 Steve Longerbeam slongerb...@gmail.com: On 09/09/2014 12:49 AM, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com: The complete driver I posted to the list does

Re: i.MX6 status for IPU/VPU/GPU

2014-09-10 Thread Steve Longerbeam
On 09/10/2014 09:25 AM, Steve Longerbeam wrote: On 09/10/2014 09:08 AM, Jean-Michel Hautbois wrote: 2014-09-09 18:28 GMT+02:00 Steve Longerbeam slongerb...@gmail.com: On 09/09/2014 12:49 AM, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com

Re: i.MX6 status for IPU/VPU/GPU

2014-09-10 Thread Steve Longerbeam
Hi Phillip, On 09/09/2014 10:40 AM, Philipp Zabel wrote: I've also worked out what I think is a workable video pipeline graph for i.MX, suitable for defining the entities, pads, and links. Unfortunately I haven't been able to spend as much time as I'd like on it. This is very

Re: i.MX6 status for IPU/VPU/GPU

2014-09-09 Thread Steve Longerbeam
On 09/09/2014 12:52 AM, Hans Verkuil wrote: On 09/09/14 09:49, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com: Hi Jean-Michel, Phillip, Hi Steve, I've done some work on Philipp's June 12 patchset, converting the CSI driver to a CSI

Re: i.MX6 status for IPU/VPU/GPU

2014-09-09 Thread Steve Longerbeam
Hi Jean-Michel, On 09/09/2014 12:49 AM, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com: Hi Jean-Michel, Phillip, Hi Steve, I've done some work on Philipp's June 12 patchset, converting the CSI driver to a CSI subdev entity, and fixing

Re: i.MX6 status for IPU/VPU/GPU

2014-09-09 Thread Steve Longerbeam
On 09/09/2014 12:49 AM, Jean-Michel Hautbois wrote: 2014-08-27 16:23 GMT+02:00 Steve Longerbeam steve_longerb...@mentor.com: The complete driver I posted to the list does have some minor issues mostly suggested by Hans Verkuil (switch to new selection API instead of cropping API for example

Re: i.MX6 status for IPU/VPU/GPU

2014-08-27 Thread Steve Longerbeam
On 08/27/2014 12:13 AM, Jean-Michel Hautbois wrote: Hi Phillip, 2014-08-04 13:54 GMT+02:00 Philipp Zabel p.za...@pengutronix.de: We should take this step by step. First I'd like to get Steve's ipu-v3 series in, those don't have any major issues and are a prerequisite for the media patches

Re: i.MX6 status for IPU/VPU/GPU

2014-07-28 Thread Steve Longerbeam
On 07/28/2014 11:59 AM, Robert Schwebel wrote: Hi, On Mon, Jul 28, 2014 at 06:24:45PM +0200, Jean-Michel Hautbois wrote: We have a custom board, based on i.MX6 SoC. We are currently using Freescale's release of Linux, but this is a 3.10.17 kernel, and several drivers are lacking (adv7611 for

Re: [PATCH 00/28] IPUv3 prep for video capture

2014-07-25 Thread Steve Longerbeam
On 07/23/2014 06:17 AM, Laurent Pinchart wrote: Hi Steve, On Thursday 17 July 2014 13:44:12 Steve Longerbeam wrote: On 07/17/2014 04:10 AM, Hans Verkuil wrote: Hi Steve, I don't know what your plan is, but when you want to mainline this it is the gpu subsystem that needs to review it. I

Re: [PATCH 00/28] IPUv3 prep for video capture

2014-07-17 Thread Steve Longerbeam
AM, Steve Longerbeam wrote: Hi Philip, Sascha, Here is a rebased set of IPU patches that prepares for video capture support. Video capture is not included in this set. I've addressed all your IPU-specific concerns from the previous patch set, the major ones being: - the IOMUXC control

[PATCH 28/28] gpu: ipu-v3: Add ipu_dump()

2014-06-25 Thread Steve Longerbeam
Adds ipu_dump() which dumps IPU register state to debug. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 38 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 39 insertions(+) diff --git

[PATCH 19/28] gpu: ipu-v3: Add idmac channel linking support

2014-06-25 Thread Steve Longerbeam
to IPUV3_CHANNEL_MEM_ROT_VF. - ipu_link_pp_rot_pp(): Links IPUV3_CHANNEL_IC_PP_MEM to IPUV3_CHANNEL_MEM_ROT_PP. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 159 +++ drivers/gpu/ipu-v3/ipu-prv.h| 58

[PATCH 26/28] gpu: ipu-v3: Add more planar formats support

2014-06-25 Thread Steve Longerbeam
Adds support for the following planar and partial-planar formats: YUV422 NV12 NV21 NV16 NV61 Signed-off-by: Dmitry Eremin-Solenikov dmitry_ere...@mentor.com Signed-off-by: Mohsin Kazmi mohsin_ka...@mentor.com Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu

[PATCH 22/28] gpu: ipu-cpmem: Add ipu_cpmem_set_block_mode()

2014-06-25 Thread Steve Longerbeam
Adds ipu_cpmem_set_block_mode(). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- 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

[PATCH 27/28] gpu: ipu-cpmem: Add ipu_cpmem_dump()

2014-06-25 Thread Steve Longerbeam
Adds ipu_cpmem_dump() which dumps a channel's cpmem to debug. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-cpmem.c | 63 include/video/imx-ipu-v3.h |1 + 2 files changed, 64 insertions(+) diff --git

[PATCH 06/28] gpu: ipu-v3: smfc: Move enable/disable to ipu-smfc.c

2014-06-25 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 12 drivers/gpu/ipu-v3/ipu-smfc.c | 12 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu

[PATCH 09/28] gpu: ipu-v3: Add ipu_mbus_code_to_colorspace()

2014-06-25 Thread Steve Longerbeam
Add ipu_mbus_code_to_colorspace() to find ipu_color_space from a media bus pixel format code. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 13 + include/video/imx-ipu-v3.h |1 + 2 files changed, 14 insertions(+) diff

[PATCH 11/28] gpu: ipu-v3: Add helper function checking if pixfmt is planar

2014-06-25 Thread Steve Longerbeam
Add simple helper function returning true if passed pixel format is one of supported planar ones. Signed-off-by: Dmitry Eremin-Solenikov dmitry_ere...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 12 include/video/imx-ipu-v3.h |1 + 2 files changed, 13 insertions(+)

[PATCH 03/28] gpu: ipu-v3: Add functions to set CSI/IC source muxes

2014-06-25 Thread Steve Longerbeam
Adds two new functions, ipu_set_csi_src_mux() and ipu_set_ic_src_mux(), that select the inputs to the CSI and IC respectively. Both muxes are programmed in the IPU_CONF register. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 51

[PATCH 10/28] gpu: ipu-v3: Add rotation mode conversion utilities

2014-06-25 Thread Steve Longerbeam
Add two functions: - ipu_degrees_to_rot_mode(): converts a degrees, hflip, and vflip setting to an IPU rotation mode. - ipu_rot_mode_to_degrees(): converts an IPU rotation mode with given hflip and vflip settings to degrees. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com

[PATCH 24/28] gpu: ipu-cpmem: Add ipu_cpmem_set_rotation()

2014-06-25 Thread Steve Longerbeam
Adds ipu_cpmem_set_rotation(). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-cpmem.c | 10 ++ include/video/imx-ipu-v3.h |2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu

[PATCH 20/28] gpu: ipu-v3: Add ipu-cpmem unit

2014-06-25 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/Makefile |4 +- drivers/gpu/ipu-v3/ipu-common.c | 457 +- drivers/gpu/ipu-v3/ipu-cpmem.c | 597 +++ drivers/gpu/ipu-v3/ipu-prv.h| 14

[PATCH 25/28] gpu: ipu-cpmem: Add second buffer support to ipu_cpmem_set_image()

2014-06-25 Thread Steve Longerbeam
Add a second buffer physaddr to struct ipu_image, for double-buffering support. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-cpmem.c | 32 include/video/imx-ipu-v3.h |3 ++- 2 files changed, 18 insertions(+), 17

[PATCH 23/28] gpu: ipu-cpmem: Add ipu_cpmem_set_axi_id()

2014-06-25 Thread Steve Longerbeam
Adds ipu_cpmem_set_axi_id() to set which AXI bus master the channel will use to transfer data onto AXI bus. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-cpmem.c |7 +++ include/video/imx-ipu-v3.h |1 + 2 files changed, 8 insertions

[PATCH 21/28] staging: imx-drm: Convert to new ipu_cpmem API

2014-06-25 Thread Steve Longerbeam
The ipu_cpmem_*() calls now take a channel pointer instead of a pointer into cpmem for that channel. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipuv3-plane.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git

<    4   5   6   7   8   9   10   >