Re: [PATCH v2 00/21] Basic i.MX IPUv3 capture support

2016-12-30 Thread Steve Longerbeam
hese hardware paths, and my driver supports them. I leave it up to the maintainers. Steve -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 10/20] gpio: pca953x: Add optional reset gpio control

2016-12-30 Thread Steve Longerbeam
Hi Linus, Lothar, On 12/30/2016 05:17 AM, Linus Walleij wrote: On Thu, Dec 29, 2016 at 11:27 PM, Steve Longerbeam <slongerb...@gmail.com> wrote: 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:

[PATCH 02/20] ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections

2016-12-29 Thread Steve Longerbeam
via reg propert only, (register offset and bitmask), instead of specifying with "bit-mask" and "bit-shift" properties. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6dl.dtsi | 183 + arch/

[PATCH 04/20] ARM: dts: imx6-sabrelite: add OV5642 and OV5640 camera sensors

2016-12-29 Thread Steve Longerbeam
events (see 6261c4c8). So workaround 6261c4c8 is reverted here to support the OV5642, and the "fsl,err006687-workaround-present" boolean also must be removed. The result is that the CPUidle driver will no longer allow entering the deep idle states on the sabrelite. Signed-off-by: Steve

[PATCH 01/20] ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node

2016-12-29 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 13/20] media: imx: Add SMFC subdev driver

2016-12-29 Thread Steve Longerbeam
pdata->grp_id; + priv->smfc_id = (pdata->grp_id >> IMX_MEDIA_GRP_ID_SMFC_BIT) - 1; + strncpy(priv->sd.name, pdata->sd_name, sizeof(priv->sd.name)); + + return v4l2_async_register_subdev(>sd); +} + +static int imx_smfc_remove(struct platform_device *pdev

[PATCH 10/20] gpio: pca953x: Add optional reset gpio control

2016-12-29 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> Cc: Linus Walleij <linus.wall...@linaro.org> Cc: Alexandre Courbot <gnu...@gmail.c

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

2016-12-29 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 05/20] ARM: dts: imx6-sabresd: add OV5642 and OV5640 camera sensors

2016-12-29 Thread Steve Longerbeam
sensor module compatible with the SabreSD becomes 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/bo

[PATCH 03/20] ARM: dts: imx6qdl: add media device

2016-12-29 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/boot/dts/imx6q.dtsi | 4 arch/arm/boot/dts/imx6qdl.dtsi | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index 56a314f..2fbe0b3

[PATCH 06/20] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

2016-12-29 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 12/20] media: imx: Add CSI subdev driver

2016-12-29 Thread Steve Longerbeam
This is a media entity subdevice for the i.MX Camera Serial Interface module. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Kconfig | 13 + drivers/staging/media/imx/Makefile | 2 + drivers/staging/media/imx/imx-csi.c

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

2016-12-29 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 14/20] media: imx: Add IC subdev drivers

2016-12-29 Thread Steve Longerbeam
= imx_ic_probe, + .remove = imx_ic_remove, + .id_table = imx_ic_ids, + .driver = { + .name = "imx-ipuv3-ic", + .owner = THIS_MODULE, + }, +}; +module_platform_driver(imx_ic_driver); + +MODULE_DESCRIPTION("i.MX IC subdev driver");

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

2016-12-29 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. The Sabrelite requires PWM clocks for the OV5640. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- arch/arm/c

[PATCH 17/20] media: imx: Add video switch subdev driver

2016-12-29 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/20] media: imx: Add Camera Interface subdev driver

2016-12-29 Thread Steve Longerbeam
the IC post-process task. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile|2 +- drivers/staging/media/imx/imx-camif.c | 1011 + 2 files changed, 1012 insertions(+), 1 deletion(-) create mode

[PATCH 18/20] media: imx: Add MIPI CSI-2 OV5640 sensor subdev driver

2016-12-29 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/staging/media/imx/Kconfig |8 + drivers/staging

[PATCH 16/20] media: imx: Add MIPI CSI-2 Receiver subdev driver

2016-12-29 Thread Steve Longerbeam
Adds MIPI CSI-2 Receiver subdev driver. This subdev is required for sensors with a MIPI CSI2 interface. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/staging/media/imx/Makefile| 1 + drivers/staging/media/imx/imx-mipi-csi2.c

[PATCH 09/20] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2016-12-29 Thread Steve Longerbeam
. 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 | 56 1 file changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/ar

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

2016-12-29 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- Documentation/devicetree/bindings/media/imx.txt | 205 + Documentation/media/v4l-drivers/imx.rst | 429 ++ drivers/staging/media/Kconfig

[PATCH 00/20] i.MX Media Driver

2016-12-29 Thread Steve Longerbeam
are enumerated in the patch header. Philipp Zabel (2): ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections media: imx: Add video switch subdev driver Steve Longerbeam (18): ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node ARM: dts: imx6qdl

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

2016-11-14 Thread Steve Longerbeam
On 11/14/2016 11:19 AM, Steve Longerbeam wrote: On 11/14/2016 03:36 AM, Hans Verkuil wrote: On 08/03/2016 08:03 PM, 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

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

2016-11-14 Thread Steve Longerbeam
On 11/14/2016 03:36 AM, Hans Verkuil wrote: On 08/03/2016 08:03 PM, 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 v4 3/8] media: adv7180: add support for NEWAVMODE

2016-11-14 Thread Steve Longerbeam
On 11/14/2016 03:28 AM, Hans Verkuil wrote: On 08/03/2016 08:03 PM, 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. Signed-off-by: Steve

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

2016-10-17 Thread Steve Longerbeam
On 10/16/2016 05:18 AM, Laurent Pinchart wrote: Hi Steve, Thank you for the patch. On Wednesday 03 Aug 2016 11:03:45 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

RE: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-19 Thread Steve Preston
progress. We have two models of the StarTech in use: SVID2USB2 and SVID2USB23. The "23" version is the only version currently listed on StarTech's website. It is available via Amazon in the USA but I'm not sure about other countries. Thanks again, Steve -- To unsubscribe from this

Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-16 Thread Steve Preston
in linux who might be willing to provide other ideas?   Thanks in advance for any help you can provide, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[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

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

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

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

2016-08-03 Thread Steve Longerbeam
r adv7282_m which is the models which have the ADV7180_FLAG_I2P > flag. So I can't really test such a change. > > Steven do you want to update this patch and resend it? Hi Niklas, I can update this patch, but it sounds like the whole thing is "up in the air" at this point, a

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

Re: [PATCH 0947/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Steve Cotton
or people to review. Hi Baole, It may also be worth waiting for the first group to be reviewed before sending the other groups, in case the review comments change what you send later. > > -module_param(sg_mode, bool, 0644); > > +module_param(sg_mode, bool, S_IRUSR | S_IWUSR | S_IRGRP | S_IROT

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

[PATCH v3 5/9] media: adv7180: implement g_parm

2016-07-23 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> --- v3: no changes v2: no changes --- drivers/media/

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

2016-07-23 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> --- v3: - the newavmode endpoint property is now pr

[PATCH v3 4/9] media: adv7180: add power pin control

2016-07-23 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 v3 1/9] media: adv7180: Fix broken interrupt register access

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

[PATCH v3 6/9] media: adv7180: change mbus format to UYVY

2016-07-23 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 v3 7/9] v4l: Add signal lock status to source change events

2016-07-23 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> --- v3: n

[PATCH v3 9/9] media: adv7180: fix field type

2016-07-23 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> --- v3: no changes 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 v3 8/9] media: adv7180: enable lock/unlock interrupts

2016-07-23 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> --- v3: no changes v2: - last version of this patch was based on the old reverted autodetect

[PATCH v3 2/9] media: adv7180: define more registers

2016-07-23 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> v3: no changes --- drivers/media/i2c/adv7180.c | 73 ++--

[PATCH v3 0/9] adv7180 subdev fixes, v3

2016-07-23 Thread Steve Longerbeam
Steve Longerbeam (9): media: adv7180: Fix broken interrupt register access 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

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

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

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

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

2016-07-13 Thread Steve Longerbeam
; We also don't do image conversions inside the Kernel. Same applies > to other similar codes on this patch. Again, I don't follow you. Of course the kernel can do image conversion! Again this is all hardware based image conversion, using the i.MX6 IPU Image Converter unit. Steve -- To unsub

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

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-10 Thread Steve Longerbeam
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/10/2016 02:10 PM, Lars-Peter Clausen wrote: On 07/09/2016 11:36 PM, Steve Longerbeam wrote: On 07/09/2016 02:10 PM, Steve Longerbeam wrote: On 07/09/2016 11

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

2016-07-09 Thread Steve Longerbeam
On 07/09/2016 02:10 PM, Steve Longerbeam wrote: On 07/09/2016 11:59 AM, Steve Longerbeam wrote: On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: On 07/07/2016 12:59 AM, Steve Longerbeam wrote: Add a device tree boolean property "bt656-4" to allow setting the ITU-R BT.656-4

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

2016-07-09 Thread Steve Longerbeam
On 07/09/2016 11:59 AM, Steve Longerbeam wrote: On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: On 07/07/2016 12:59 AM, Steve Longerbeam wrote: Add a device tree boolean property "bt656-4" to allow setting the ITU-R BT.656-4 compatible bit. Signed-off-by: Steve Longerbeam <

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

2016-07-09 Thread Steve Longerbeam
On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: On 07/07/2016 12:59 AM, Steve Longerbeam wrote: 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> + /* selec

Re: [PATCH 02/11] Revert "[media] adv7180: fix broken standards handling"

2016-07-09 Thread Steve Longerbeam
On 07/07/2016 08:45 AM, Lars-Peter Clausen wrote: On 07/07/2016 12:59 AM, Steve Longerbeam wrote: 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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 20/28] media: imx: Add MIPI CSI-2 Receiver driver

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

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

<    3   4   5   6   7   8   9   10   11   >