[PATCH 10/43] imx-drm: ipu-v3: Add rotation mode conversion utilities

2014-06-07 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 12/43] imx-drm: ipu-v3: Move IDMAC channel names to imx-ipu-v3.h

2014-06-07 Thread Steve Longerbeam
Move the IDMAC channel names to imx-ipu-v3.h, to make the names available outside IPU. Add a couple new channels in the process (async display BG/FG, channels 24 and 29). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-prv.h | 25

[PATCH 05/43] imx-drm: ipu-v3: Map IOMUXC registers

2014-06-07 Thread Steve Longerbeam
Map the IOMUXC registers, which will be needed by ipu-csi for mux control. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c |8 drivers/staging/imx-drm/ipu-v3/ipu-prv.h|4 2 files changed, 12 insertions(+) diff

[PATCH 00/43] i.MX6 Video capture

2014-06-07 Thread Steve Longerbeam
and autodetected video standard changes. Usage notes are found in Documentation/video4linux/mx6_camera.txt for the above three reference platforms. The driver source is under drivers/staging/media/imx6/capture/. Steve Longerbeam (43): imx-drm: ipu-v3: Move imx-ipu-v3.h to include/linux

[PATCH 06/43] imx-drm: ipu-v3: Add functions to set CSI/IC source muxes

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-common.c | 51

[PATCH 09/43] imx-drm: ipu-v3: Add ipu_mbus_code_to_colorspace()

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-common.c | 13 + include/linux/platform_data/imx-ipu-v3.h|1 + 2 files changed

[PATCH 36/43] gpio: pca953x: Add reset-gpios property

2014-06-07 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 | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH 33/43] ARM: dts: imx6-sabresd: add video capture ports and endpoints

2014-06-07 Thread Steve Longerbeam
to the host MIPI CSI-2 endpoint on CSI1, over virtual channel 0. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 116 1 file changed, 116 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b

[PATCH 38/43] media: imx6: Add device tree binding documentation

2014-06-07 Thread Steve Longerbeam
Add device tree binding documentation for i.MX6 media devices. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- Documentation/devicetree/bindings/media/imx6.txt | 433 ++ 1 file changed, 433 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 42/43] media: imx6: Add support for ADV7180 Video Decoder

2014-06-07 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/imx6/capture/Kconfig |7 + drivers/staging/media

[PATCH 26/43] imx-drm: ipu-cpmem: Add second buffer support to ipu_cpmem_set_image()

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-cpmem.c | 32 ++-- include/linux/platform_data/imx-ipu-v3.h |3 ++- 2 files changed

[PATCH 14/43] imx-drm: ipu-v3: Add ipu_idmac_clear_buffer()

2014-06-07 Thread Steve Longerbeam
Add the reverse of ipu_idmac_select_buffer(), that is, clear a buffer ready status in a channel. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 28 +++ include/linux/platform_data/imx-ipu-v3.h|1 + 2

[PATCH 22/43] imx-drm: ipu-v3: Add ipu-cpmem unit

2014-06-07 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com Signed-off-by: Drew Moseley drew_mose...@mentor.com --- drivers/staging/imx-drm/ipu-v3/Makefile |2 +- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 457 +--- drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c | 595

[PATCH 30/43] ARM: dts: imx6: add pin groups for imx6q/dl for IPU1 CSI0

2014-06-07 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com Signed-off-by: Jiada Wang jiada_w...@mentor.com --- arch/arm/boot/dts/imx6qdl.dtsi | 52 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts

[PATCH 35/43] ARM: dts: imx6qdl: Add simple-bus to ipu compatibility

2014-06-07 Thread Steve Longerbeam
The IPU can have child devices now, so add simple-bus to compatible list to ensure creation of the children. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- .../bindings/staging/imx-drm/fsl-imx-drm.txt |6 -- arch/arm/boot/dts/imx6q.dtsi |2

[PATCH 43/43] ARM: imx_v6_v7_defconfig: Enable video4linux drivers

2014-06-07 Thread Steve Longerbeam
Enable imx6 staging v4l2 drivers as modules. 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 |4 1 file

[PATCH 24/43] imx-drm: ipu-cpmem: Add ipu_cpmem_set_axi_id()

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-cpmem.c |7 +++ include/linux/platform_data/imx-ipu-v3.h |1 + 2 files

[PATCH 17/43] imx-drm: ipu-v3: Add ipu_stride_to_bytes()

2014-06-07 Thread Steve Longerbeam
Adds ipu_stride_to_bytes(), which converts a pixel stride to bytes, suitable for passing to cpmem. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 30 +++ include/linux/platform_data/imx-ipu-v3.h|1

[PATCH 20/43] imx-drm: ipu-v3: Add idmac channel linking support

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-common.c | 159 +++ drivers/staging/imx-drm/ipu-v3/ipu-prv.h| 58

[PATCH 29/43] imx-drm: ipu-v3: Add ipu_dump()

2014-06-07 Thread Steve Longerbeam
Adds ipu_dump() which dumps IPU register state to debug. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 41 +++ include/linux/platform_data/imx-ipu-v3.h|1 + 2 files changed, 42 insertions(+) diff

[PATCH 27/43] imx-drm: ipu-v3: Add more planar formats support

2014-06-07 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/staging/imx

[PATCH 34/43] ARM: dts: imx6-sabreauto: add video capture ports and endpoints

2014-06-07 Thread Steve Longerbeam
-in. This couldn't be avoided in any case, the board is not designed to allow concurrent i2c3 and SPI NOR functions (and the default device-tree does not enable SPI NOR anyway). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 149

[PATCH 21/43] imx-drm: ipu-v3: Add ipu_bits_per_pixel()

2014-06-07 Thread Steve Longerbeam
Add simple conversion from pixelformat to total bits-per-pixel. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 27 +++ include/linux/platform_data/imx-ipu-v3.h|1 + 2 files changed, 28 insertions

[PATCH 19/43] imx-drm: ipu-v3: Add ipu_idmac_lock_enable()

2014-06-07 Thread Steve Longerbeam
Adds ipu_idmac_lock_enable(), which enables or disables channel burst locking. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 69 +++ include/linux/platform_data/imx-ipu-v3.h|1 + 2 files changed, 70

[PATCH 31/43] ARM: dts: imx6qdl: Flesh out MIPI CSI2 receiver node

2014-06-07 Thread Steve Longerbeam
Add mode device info 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, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[PATCH 37/43] ARM: imx6q: clk: Add video 27m clock

2014-06-07 Thread Steve Longerbeam
Adds a 27MHz clock that is a fixed /20 from the pll3_pfd1_540m clock. The MIPI CSI2 receiver depends on this clock for its D-PHY operation. Based on ENGR00275483-1 from Freescale. Signed-off-by: Liu Ying ying@freescale.com Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com

[PATCH 32/43] ARM: dts: imx: sabrelite: add video capture ports and endpoints

2014-06-07 Thread Steve Longerbeam
__OV5642_CAPTURE__ macro. Ethernet will still work just not quite as well. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- .../devicetree/bindings/vendor-prefixes.txt|1 + arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 91 2 files changed, 92

[PATCH 25/43] imx-drm: ipu-cpmem: Add ipu_cpmem_set_rotation()

2014-06-07 Thread Steve Longerbeam
Adds ipu_cpmem_set_rotation(). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c |9 + include/linux/platform_data/imx-ipu-v3.h |2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu

[PATCH 23/43] imx-drm: ipu-cpmem: Add ipu_cpmem_set_block_mode()

2014-06-07 Thread Steve Longerbeam
Adds ipu_cpmem_set_block_mode(). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c |6 ++ include/linux/platform_data/imx-ipu-v3.h |1 + 2 files changed, 7 insertions(+) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu

[PATCH 15/43] imx-drm: ipu-v3: Add ipu_idmac_current_buffer()

2014-06-07 Thread Steve Longerbeam
Add ipu_idmac_current_buffer(), returns the currently active buffer number in the given channel. Checks for third buffer ready in case triple-buffer support is added later. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 27

[PATCH 16/43] imx-drm: ipu-v3: Add __ipu_idmac_reset_current_buffer()

2014-06-07 Thread Steve Longerbeam
will fail after the first streaming unless this function is called for each channel before re-enabling the channels. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 23 +++ 1 file changed, 23 insertions(+) diff

[PATCH 02/43] ARM: dts: imx6qdl: Add ipu aliases

2014-06-07 Thread Steve Longerbeam
Add ipu0 (and ipu1 for quad) aliases to ipu1/ipu2 nodes respectively. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- arch/arm/boot/dts/imx6q.dtsi |1 + arch/arm/boot/dts/imx6qdl.dtsi |1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6q.dtsi b

[PATCH 28/43] imx-drm: ipu-cpmem: Add ipu_cpmem_dump()

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-cpmem.c | 63 include/linux/platform_data/imx-ipu-v3.h |1 + 2 files changed, 64 insertions

[PATCH 01/43] imx-drm: ipu-v3: Move imx-ipu-v3.h to include/linux/platform_data/

2014-06-07 Thread Steve Longerbeam
In subsequent patches, the video capture units will be added (csi, smfc, ic, irt). So the IPU prototypes are no longer needed only by imx-drm, so we need to export them to a common include path. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/imx-hdmi.c

[PATCH 18/43] imx-drm: ipu-v3: Add ipu_idmac_enable_watermark()

2014-06-07 Thread Steve Longerbeam
Adds the function ipu_idmac_enable_watermark(), which enables or disables watermarking in the IDMAC channel. Enabling watermarking can increase a channel's AXI bus arbitration priority. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c

[PATCH 04/43] imx-drm: ipu-v3: Add solo/dual-lite IPU device type

2014-06-07 Thread Steve Longerbeam
Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 18 ++ include/linux/platform_data/imx-ipu-v3.h|1 + 2 files changed, 19 insertions(+) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-common.c

[PATCH 11/43] imx-drm: ipu-v3: Add helper function checking if pixfmt is planar

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-common.c | 12 include/linux/platform_data/imx-ipu-v3.h|1 + 2 files

[PATCH 03/43] imx-drm: ipu-v3: Add ipu_get_num()

2014-06-07 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/staging/imx-drm/ipu-v3/ipu-common.c |8 drivers/staging/imx-drm/ipu-v3/ipu-prv.h|1 + include/linux/platform_data/imx-ipu-v3.h|5

[PATCH 13/43] imx-drm: ipu-v3: Add ipu_idmac_buffer_is_ready()

2014-06-07 Thread Steve Longerbeam
-ready for third buffer in case this support is added later. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 26 +- drivers/staging/imx-drm/ipu-v3/ipu-prv.h|1 + include/linux/platform_data/imx-ipu-v3.h

[PATCH 07/43] imx-drm: ipu-v3: Rename and add IDMAC channels

2014-06-07 Thread Steve Longerbeam
Rename the ENC/VF/PP rotation channel names, to be more consistent with the convention that *_MEM is write-to-memory channels and MEM_* is read-from-memory channels. Also add the channels who's source and destination is the IC. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-09 Thread Steve Longerbeam
On 06/08/2014 01:36 AM, Hans Verkuil wrote: Hi Steve! On 06/07/2014 11:56 PM, Steve Longerbeam wrote: Hi all, This patch set adds video capture support for the Freescale i.MX6 SOC. It is a from-scratch standardized driver that works with community v4l2 utilities, such as v4l2-ctl, v4l2

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-10 Thread Steve Longerbeam
On 06/10/2014 08:11 AM, Hans Verkuil wrote: On 06/09/2014 06:42 PM, Steve Longerbeam wrote: On 06/08/2014 01:36 AM, Hans Verkuil wrote: Hi Steve! On 06/07/2014 11:56 PM, Steve Longerbeam wrote: Hi all, This patch set adds video capture support for the Freescale i.MX6 SOC. It is a from

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-11 Thread Steve Longerbeam
On 06/11/2014 04:21 AM, Philipp Zabel wrote: Hi Steve, Am Samstag, den 07.06.2014, 14:56 -0700 schrieb Steve Longerbeam: Hi all, This patch set adds video capture support for the Freescale i.MX6 SOC. It is a from-scratch standardized driver that works with community v4l2 utilities

Re: [PATCH 00/43] i.MX6 Video capture

2014-06-12 Thread Steve Longerbeam
On 06/12/2014 09:50 AM, Philipp Zabel wrote: Hi Steve, [Added Russell to Cc: because of the question how to send IPU core patches to drm-next] Am Mittwoch, den 11.06.2014, 18:04 -0700 schrieb Steve Longerbeam: Hi Philipp and Sascha, First of all, thanks for the detailed review. You

[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

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

2014-06-25 Thread Steve Longerbeam
Adds the function ipu_idmac_enable_watermark(), which enables or disables watermarking in the IDMAC channel. Enabling watermarking can increase a channel's AXI bus arbitration priority. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 25

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

2014-06-25 Thread Steve Longerbeam
Adds ipu_idmac_lock_enable(), which enables or disables channel burst locking. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 69 +++ include/video/imx-ipu-v3.h |1 + 2 files changed, 70 insertions

[PATCH 00/28] IPUv3 prep for video capture

2014-06-25 Thread Steve Longerbeam
. Steve Longerbeam (28): ARM: dts: imx6qdl: Add ipu aliases gpu: ipu-v3: Add ipu_get_num() gpu: ipu-v3: Add functions to set CSI/IC source muxes gpu: ipu-v3: Rename and add IDMAC channels gpu: ipu-v3: Add units required for video capture gpu: ipu-v3: smfc: Move enable/disable to ipu-smfc.c

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

2014-06-25 Thread Steve Longerbeam
will fail after the first streaming unless this function is called for each channel before re-enabling the channels. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers

[PATCH 12/28] gpu: ipu-v3: Move IDMAC channel names to imx-ipu-v3.h

2014-06-25 Thread Steve Longerbeam
Move the IDMAC channel names to imx-ipu-v3.h, to make the names available outside IPU. Add a couple new channels in the process (async display BG/FG, channels 24 and 29). Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-prv.h | 25

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

2014-06-25 Thread Steve Longerbeam
-ready for third buffer in case this support is added later. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 26 +- drivers/gpu/ipu-v3/ipu-prv.h|1 + include/video/imx-ipu-v3.h |1 + 3 files changed, 27

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

2014-06-25 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). ipu_get_num() is used to select inputs to CSI units in IOMUXC. It is also used to select an SMFC channel for video capture. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c |8

[PATCH 07/28] gpu: ipu-v3: smfc: Convert to per-channel

2014-06-25 Thread Steve Longerbeam
Convert the smfc object to be specific to a single smfc channel. Add ipu_smfc_{get|put} to retrieve and release a single smfc channel for exclusive use, and add use counter to ipu_smfc_{enable|disable}. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-smfc.c

[PATCH 01/28] ARM: dts: imx6qdl: Add ipu aliases

2014-06-25 Thread Steve Longerbeam
Add ipu0 (and ipu1 for quad) aliases to ipu1/ipu2 nodes respectively. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- arch/arm/boot/dts/imx6q.dtsi |1 + arch/arm/boot/dts/imx6qdl.dtsi |1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6q.dtsi b

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

2014-06-25 Thread Steve Longerbeam
Adds ipu_smfc_set_watermark() which programs a channel's SMFC FIFO levels at which the watermark signal is set and cleared. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-smfc.c | 20 include/video/imx-ipu-v3.h|1 + 2 files

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

2014-06-25 Thread Steve Longerbeam
Add the reverse of ipu_idmac_select_buffer(), that is, clear a buffer ready status in a channel. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 28 include/video/imx-ipu-v3.h |1 + 2 files changed, 29

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

2014-06-25 Thread Steve Longerbeam
Adds ipu_stride_to_bytes(), which converts a pixel stride to bytes, suitable for passing to cpmem. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-common.c | 30 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 31

[PATCH 04/28] gpu: ipu-v3: Rename and add IDMAC channels

2014-06-25 Thread Steve Longerbeam
Rename the ENC/VF/PP rotation channel names, to be more consistent with the convention that *_MEM is write-to-memory channels and MEM_* is read-from-memory channels. Also add the channels who's source and destination is the IC. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com

[PATCH 05/28] gpu: ipu-v3: Add units required for video capture

2014-06-25 Thread Steve Longerbeam
Adds the following new IPU units: - Camera Sensor Interface (csi) - Image Converter (ic) Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/Makefile |3 +- drivers/gpu/ipu-v3/ipu-common.c | 63 ++- drivers/gpu/ipu-v3/ipu-csi.c| 701

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

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

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

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

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

  1   2   3   4   5   6   7   8   9   10   >