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

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

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: 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-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-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: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 12:36 PM, Ian Arkver wrote: On 25/07/16 18:55, Steve Longerbeam wrote: On 07/25/2016 05:04 AM, Ian Arkver wrote: On 23/07/16 18:00, Steve Longerbeam wrote: +#define ADV7180_VSYNC_FIELD_CTL_1_NEWAVMODE 0x02 See below re this value. Hi Ian, I double-checked the ADV7180

Re: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 03:24 PM, Ian Arkver wrote: > On 25/07/16 23:04, Steve Longerbeam wrote: >> >> >> On 07/25/2016 12:36 PM, Ian Arkver wrote: >>> On 25/07/16 18:55, Steve Longerbeam wrote: >>>> On 07/25/2016 05:04 AM, Ian Arkver wrote: >&

Re: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 05:04 AM, Ian Arkver wrote: > On 23/07/16 18:00, Steve Longerbeam wrote: >> Parse the optional v4l2 endpoint DT node. If the bus type is >> V4L2_MBUS_BT656 and the endpoint node specifies "newavmode", >> configure the BT.656 bus in NEWAVMODE. >&g

Re: [PATCH 6/6] media: adv7180: fix field type

2016-07-29 Thread Steve Longerbeam
On 07/29/2016 12:10 PM, Sergei Shtylyov wrote: On 07/29/2016 08:40 PM, Niklas Söderlund wrote: From: Steve Longerbeam <slongerb...@gmail.com> The ADV7180 and ADV7182 transmit whole fields, bottom field followed by top (or vice-versa, depending on detected video standard). So for

Re: [PATCHv2 7/7] [PATCHv5] media: adv7180: fix field type

2016-08-03 Thread Steve Longerbeam
On 08/03/2016 09:58 AM, Lars-Peter Clausen wrote: > On 08/03/2016 06:55 PM, Steve Longerbeam wrote: >> On 08/03/2016 06:21 AM, Niklas Söderlund wrote: >>> On 2016-08-02 17:00:07 +0200, Lars-Peter Clausen wrote: >>>> [...] >>>>> diff --git a/drivers/medi

[PATCH v4 6/8] media: adv7180: change mbus format to UYVY

2016-08-03 Thread Steve Longerbeam
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ac

[PATCH v4 4/8] media: adv7180: add power pin control

2016-08-03 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add optional support for "powerdown" pin control. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ack

[PATCH v4 3/8] media: adv7180: add support for NEWAVMODE

2016-08-03 Thread Steve Longerbeam
Parse the optional v4l2 endpoint DT node. If the bus type is V4L2_MBUS_BT656 and the endpoint node specifies "newavmode", configure the BT.656 bus in NEWAVMODE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v4: no changes v3: - the newavmode endpoint propert

[PATCH v4 5/8] media: adv7180: implement g_parm

2016-08-03 Thread Steve Longerbeam
Implement g_parm to return the current standard's frame period. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> --- v4: no changes v3: no changes v2: no changes --- drivers

[PATCH v4 7/8] v4l: Add signal lock status to source change events

2016-08-03 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> Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> --- v4:

[PATCH v4 8/8] media: adv7180: enable lock/unlock interrupts

2016-08-03 Thread Steve Longerbeam
Enable the SD lock/unlock interrupts and send V4L2_EVENT_SRC_CH_LOCK_STATUS in the interrupt handler on a detected lock/unlock. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v4: no changes v3: no changes v2: - last version of this patch was based on the old re

[PATCH v4 1/8] media: adv7180: fix field type

2016-08-03 Thread Steve Longerbeam
From: Steve Longerbeam <slongerb...@gmail.com> The ADV7180 and ADV7182 transmit whole fields, bottom field followed by top (or vice-versa, depending on detected video standard). So for chips that do not have support for explicitly setting the field mode via I2P, set the fiel

Re: [PATCHv2 7/7] [PATCHv5] media: adv7180: fix field type

2016-08-03 Thread Steve Longerbeam
On 08/03/2016 06:21 AM, Niklas Söderlund wrote: > On 2016-08-02 17:00:07 +0200, Lars-Peter Clausen wrote: >> [...] >>> diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c >>> index a8b434b..c6fed71 100644 >>> --- a/drivers/media/i2c/adv7180.c >>> +++

[PATCH v4 0/8] adv7180 subdev fixes, v4

2016-08-03 Thread Steve Longerbeam
Steve Longerbeam (8): media: adv7180: fix field type media: adv7180: define more registers media: adv7180: add support for NEWAVMODE media: adv7180: add power pin control media: adv7180: implement g_parm media: adv7180: change mbus format to UYVY v4l: Add signal lock status to source

[PATCH v4 2/8] media: adv7180: define more registers

2016-08-03 Thread Steve Longerbeam
Replace hard-coded addresses with new register macro defines. No functional changes. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Acked-by: Lars-Peter Clausen <l...@metafoo.de> --- v4: no changes v3: no changes --- drivers/media/i2c/ad

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

2016-07-13 Thread Steve Longerbeam
On 07/13/2016 11:58 AM, Mauro Carvalho Chehab wrote: > > We don't do image rotation in software inside the Kernel! This is > something that should be done either by some hardware block or > in userspace. Hi Mauro, I'm not sure I follow you. This is all hardware conversions. > > We also don't do

[PATCH v2 03/10] media: adv7180: define more registers

2016-07-19 Thread Steve Longerbeam
Replace hard-coded addresses with new register macro defines. No functional changes. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 73 ++--- 1 file changed, 49 insertions(+), 24 deletions(-) diff

[PATCH v2 04/10] media: adv7180: add support for NEWAVMODE

2016-07-19 Thread Steve Longerbeam
Parse the optional v4l2 endpoint DT node. If the V4L2_MBUS_NEWAVMODE parallel bus flag is set, configure the BT.656 bus in NEWAVMODE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 47 ++--- 1 file c

[PATCH v2 09/10] media: adv7180: enable lock/unlock interrupts

2016-07-19 Thread Steve Longerbeam
Enable the SD lock/unlock interrupts and send V4L2_EVENT_SRC_CH_LOCK_STATUS in the interrupt handler on a detected lock/unlock. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - last version of this patch was based on the old reverted autodetect code. This versi

[PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs

2016-07-19 Thread Steve Longerbeam
This patch adds a "newavmode" boolean property as part of the v4l2 endpoint properties. This indicates an Analog Devices decoder is generating EAV/SAV codes to suit Analog Devices encoders. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Cc: Mauro Carva

[PATCH v2 00/10] adv7180 subdev fixes, v2

2016-07-19 Thread Steve Longerbeam
DE is used in conjunction. The backend needs to be aware of NEWAVMODE so that it can make adjustments to the AV code detection. That's the biggest addition in this version, besides the requested feedback changes from last version. Steve Longerbeam (10): v4l: of: add "newavmode" property for A

[PATCH v2 10/10] media: adv7180: fix field type

2016-07-19 Thread Steve Longerbeam
info on field order of PAL vs NTSC, so follow what is in adv7183.c). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - the init of state->curr_norm in probe needs to be moved up, ahead of the init of state->field. --- drivers/media/i2c/ad

[PATCH v2 08/10] v4l: Add signal lock status to source change events

2016-07-19 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> Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> --- D

[PATCH v2 07/10] media: adv7180: change mbus format to UYVY

2016-07-19 Thread Steve Longerbeam
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ac

[PATCH v2 05/10] media: adv7180: add power pin control

2016-07-19 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add optional support for "powerdown" pin control. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com&g

[PATCH v2 06/10] media: adv7180: implement g_parm

2016-07-19 Thread Steve Longerbeam
Implement g_parm to return the current standard's frame period. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> --- drivers/media/i2c/adv7180.c | 22 ++

[PATCH v2 02/10] media: adv7180: Fix broken interrupt register access

2016-07-19 Thread Steve Longerbeam
Access to the interrupt page registers has been broken since at least commit 3999e5d01da7 ("[media] adv7180: Do implicit register paging"). That commit forgot to add the interrupt page number to the register defines. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com>

Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs

2016-07-20 Thread Steve Longerbeam
On 07/20/2016 12:37 AM, Hans Verkuil wrote: > On 07/20/2016 02:03 AM, Steve Longerbeam wrote: >> This patch adds a "newavmode" boolean property as part of the v4l2 endpoint >> properties. This indicates an Analog Devices decoder is generating EAV/SAV >> codes

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-11 Thread Steve Longerbeam
On 07/11/2016 12:06 AM, Ian Arkver wrote: > On 10/07/16 23:34, Steve Longerbeam wrote: >> >> >> On 07/10/2016 07:30 AM, Hans Verkuil wrote: >>> On 07/10/2016 04:17 PM, Ian Arkver wrote: >>>> On 10/07/16 13:55, Hans Verkuil wrote: >>>>> On 07

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-12 Thread Steve Longerbeam
Hi Ian, On 07/12/2016 03:25 AM, Ian Arkver wrote: > This conversation has drifted off topic, sorry. > It now relates to code in drivers/gpu/ipu-v3/ipu-csi.c, so adding Philipp > Zabel. > > On 11/07/16 23:03, Steve Longerbeam wrote: >> On 07/11/2016 12:06 AM, Ian Arkver wr

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

2016-07-06 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 18/28] clocksource/drivers/imx: add input capture support

2016-07-06 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/28] gpu: ipu-ic: allow multiple handles to ic

2016-07-06 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 27/28] ARM: dts: imx6qdl: add mem2mem devices

2016-07-06 Thread Steve Longerbeam
Enables ipu-mem2mem devices on imx6qdl. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6q.dtsi | 7 +++ arch/arm/boot/dts/imx6qdl.dtsi | 6 ++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/bo

[PATCH 04/11] media: adv7180: implement g_parm

2016-07-06 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 01/11] media: adv7180: Fix broken interrupt register access

2016-07-06 Thread Steve Longerbeam
Access to the interrupt page registers has been broken since at least 3999e5d01da74f1a22afbb0b61b3992fea301478. That commit forgot to add the inerrupt page number to the register defines. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.

[PATCH 6/6] ARM: dts: imx6-sabreauto: add video capture devices and connections

2016-07-06 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 5/6] ARM: dts: imx6-sabreauto: add pinctrl for gpt input capture

2016-07-06 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 0/6] ARM: dts: imx6-sabre*: add video capture nodes

2016-07-06 Thread Steve Longerbeam
Steve Longerbeam (6): ARM: dts: imx6-sabrelite: add video capture devices and connections ARM: dts: imx6-sabresd: add video capture devices and connections ARM: dts: imx6-sabreauto: create i2cmux for i2c3 ARM: dts: imx6-sabreauto: add reset-gpios property for max7310_b ARM: dts: imx6

[PATCH 2/6] ARM: dts: imx6-sabresd: add video capture devices and connections

2016-07-06 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 | 42 +++ arch/arm/boot/dts/imx6q-sabresd.dts| 14 arch/arm/boot/dts/i

[PATCH 4/6] ARM: dts: imx6-sabreauto: add reset-gpios property for max7310_b

2016-07-06 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 1/6] ARM: dts: imx6-sabrelite: add video capture devices and connections

2016-07-06 Thread Steve Longerbeam
it to wake-up the ARM cores on normal RX and TX packet done events (see 6261c4c8). So by default, capture from the OV5642 is disabled, enable by uncommenting __ENABLE_OV5642__ macro. Ethernet will still work just not quite as well. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- ar

[PATCH 3/6] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

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

[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 02/11] Revert "[media] adv7180: fix broken standards handling"

2016-07-06 Thread Steve Longerbeam
Autodetect was likely broken only because access to the interrupt registers were broken, so there were no standard change interrupts. After fixing that, and reverting this, autodetect seems to work just fine on an i.mx6q SabreAuto. This reverts commit 937feeed3f0ae8a0389d5732f6db63dd912acd99. ---

[PATCH 08/11] adv7180: send V4L2_EVENT_SOURCE_CHANGE on std change

2016-07-06 Thread Steve Longerbeam
Subscribe to the V4L2_EVENT_SOURCE_CHANGE event and send V4L2_EVENT_SRC_CH_RESOLUTION in the interrupt handler on a detected standard change. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 33 ++--- 1 file chang

[PATCH 11/11] media: adv7180: fix field type

2016-07-06 Thread Steve Longerbeam
info on field order of PAL vs NTSC, so follow what is in adv7183.c). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/med

[PATCH 07/11] media: adv7180: change mbus format to UYVY

2016-07-06 Thread Steve Longerbeam
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. The other option is to set the SWPC bit in register 0x27 to swap the Cr and Cb output samples. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers

[PATCH 00/11] adv7180 subdev fixes

2016-07-06 Thread Steve Longerbeam
Steve Longerbeam (11): media: adv7180: Fix broken interrupt register access Revert "[media] adv7180: fix broken standards handling" media: adv7180: add power pin control media: adv7180: implement g_parm media: adv7180: init chip with AD recommended register settings media: ad

[PATCH 05/11] media: adv7180: init chip with AD recommended register settings

2016-07-06 Thread Steve Longerbeam
removed in this patch, but it will be brought back in a subsequent patch. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 168 ++-- 1 file changed, 130 insertions(+), 38 deletions(-) diff --git a/drivers/med

[PATCH 10/11] media: adv7180: enable lock/unlock interrupts

2016-07-06 Thread Steve Longerbeam
Enable the SD lock/unlock interrupts and send V4L2_EVENT_SRC_CH_LOCK_STATUS in the interrupt handler on a detected lock/unlock. Keep track of current input lock status with state->curr_status. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv71

[PATCH 09/11] v4l: Add signal lock status to source change events

2016-07-06 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/11] media: adv7180: add power pin control

2016-07-06 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add support for "pwdn-gpio" pin control. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/Kconfig | 2 +- drivers/media/i2c/adv7180.c | 37 + 2 f

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

2016-07-06 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 06/11] media: adv7180: add bt.656-4 OF property

2016-07-06 Thread Steve Longerbeam
Add a device tree boolean property "bt656-4" to allow setting the ITU-R BT.656-4 compatible bit. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/d

[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(+)

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