[PATCH] at91: add Atmel ISI and ov2640 support on m10/g45 board.

2011-09-02 Thread Josh Wu
AT91: m10/g45: add Atmel ISI device and OV2640 on board. Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/mach-at91/at91sam9g45_devices.c | 66 arch/arm/mach-at91/board-sam9m10g45ek.c | 97 ++ arch/arm/mach-at91/include/mach/board.h

[PATCH] [media] at91: add code to initialize and manage the ISI_MCK for Atmel ISI driver.

2011-09-05 Thread Josh Wu
This patch enable the configuration for ISI_MCK, which is provided by programmable clock. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/video/atmel-isi.c | 56 ++- include/media/atmel-isi.h |4 +++ 2 files changed, 59 insertions(+), 1

[PATCH v2] [media] at91: add code to initialize and manage the ISI_MCK for Atmel ISI driver.

2011-09-05 Thread Josh Wu
This patch enable the configuration for ISI_MCK, which is provided by programmable clock. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/video/atmel-isi.c | 60 ++- include/media/atmel-isi.h |4 ++ 2 files changed, 63 insertions(+), 1

[PATCH v3 1/2][media] Add code to enable/disable ISI_MCK clock.

2011-09-21 Thread Josh Wu
This patch add code to enable/disable ISI_MCK clock when add/remove soc camera device.it also set ISI_MCK frequence before using it. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/video/atmel-isi.c | 30 -- include/media/atmel-isi.h |2 ++ 2

[PATCH v3 2/2] at91: add Atmel ISI and ov2640 support on sam9m10/sam9g45 board.

2011-09-21 Thread Josh Wu
This patch 1. add ISI_MCK parent setting code when add ISI device. 2. add ov2640 support on board file. 3. define isi_mck clock in sam9g45 chip file. Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/mach-at91/at91sam9g45.c |3 + arch/arm/mach-at91/at91sam9g45_devices.c | 105

[PATCH v4 1/3] [media] at91: add code to enable/disable ISI_MCK clock

2011-10-11 Thread Josh Wu
This patch - add ISI_MCK clock enable/disable code. - change field name in isi_platform_data structure Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/video/atmel-isi.c | 34 +++--- include/media/atmel-isi.h |4 +++- 2 files changed, 34

[PATCH v4 0/3] add Atmel ISI, ov2640 support for sam9m10/sam9g45

2011-10-11 Thread Josh Wu
to at91_add_device_isi, so that the SoC programmable clock can be used or not. To summary, programmable clock is managed in SoC level. The user can decide to use or not to use SoC clock as the sensor MCK at board level. In later case, user has to provide a clock source named isi_mck Best Regards, Josh

[PATCH v4 2/3] at91: add parameters for at91_add_device_isi function

2011-10-11 Thread Josh Wu
This patch add parameters for at91_add_device_isi function Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/mach-at91/at91sam9263_devices.c | 13 ++--- arch/arm/mach-at91/include/mach/board.h |4 +++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH v4 3/3] at91: add Atmel ISI and ov2640 support on sam9m10/sam9g45 board

2011-10-11 Thread Josh Wu
This patch add: - ov2640 sensor in sam9m10/sam9g45 board. - support to use PCK as ISI_MCK. PCK's parent is managed in SoC level, e.g. at91sam9g45_devices.c Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/mach-at91/at91sam9g45_devices.c | 98 +- arch/arm/mach

[RESEND][PATCH v4 2/3] at91: add parameters for at91_add_device_isi function

2011-10-22 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- fix codeing style using bool instead of int for boolean type arch/arm/mach-at91/at91sam9263_devices.c | 13 ++--- arch/arm/mach-at91/include/mach/board.h |4 +++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm

[RESEND][PATCH v4 3/3] at91: add Atmel ISI and ov2640 support on sam9m10/sam9g45 board

2011-10-22 Thread Josh Wu
This patch adds: - ov2640 sensor in sam9m10/sam9g45 board - support to use PCK as ISI_MCK. PCK's parent is managed in SoC level, e.g. at91sam9g45_devices.c Signed-off-by: Josh Wu josh...@atmel.com --- fix the coding style using simpler code arch/arm/mach-at91/at91sam9g45_devices.c | 94

[PATCH] [media] at91: add Atmel Image Sensor Interface (ISI) support

2011-05-12 Thread Josh Wu
This patch is to enable Atmel Image Sensor Interface (ISI) driver support. - Using soc-camera framework with videobuf2 dma-contig allocator - Supporting video streaming of YUV packed format - Tested on AT91SAM9M10G45-EK with OV2640 Signed-off-by: Josh Wu josh...@atmel.com --- base on branch

[PATCH v3] [media] at91: add Atmel Image Sensor Interface (ISI) support

2011-06-03 Thread Josh Wu
This patch is to enable Atmel Image Sensor Interface (ISI) driver support. - Using soc-camera framework with videobuf2 dma-contig allocator - Supporting video streaming of YUV packed format - Tested on AT91SAM9M10G45-EK with OV2640 Signed-off-by: Josh Wu josh...@atmel.com --- base on branch

[PATCH v4] [media] at91: add Atmel Image Sensor Interface (ISI) support

2011-06-07 Thread Josh Wu
This patch is to enable Atmel Image Sensor Interface (ISI) driver support. - Using soc-camera framework with videobuf2 dma-contig allocator - Supporting video streaming of YUV packed format - Tested on AT91SAM9M10G45-EK with OV2640 Signed-off-by: Josh Wu josh...@atmel.com --- base on branch

[PATCH RESEND v3 2/2] [media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

2012-01-10 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- Hi, Mauro The first patch of this serie, [PATCH 1/2 v3] V4L: atmel-isi: add code to enable/disable ISI_MCK clock, is already queued in media tree. But this patch (the second one of this serie

[PATCH v4 2/2] [media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

2012-01-10 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- v2: made the label name to be consistent. v4: add goto for handling pclk prepare error. drivers/media/video/atmel-isi.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff

[PATCH 1/2] [media] V4L: atmel-isi: add code to enable/disable ISI_MCK clock

2011-11-30 Thread Josh Wu
This patch - add ISI_MCK clock enable/disable code. - change field name in isi_platform_data structure Signed-off-by: Josh Wu josh...@atmel.com [g.liakhovet...@gmx.de: fix label names] Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v2 1/2] [media] V4L: atmel-isi: add code to enable/disable ISI_MCK clock

2011-12-06 Thread Josh Wu
This patch - add ISI_MCK clock enable/disable code. - change field name in isi_platform_data structure Signed-off-by: Josh Wu josh...@atmel.com [g.liakhovet...@gmx.de: fix label names] Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v2 2/2] [media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

2011-12-06 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- in v2 version, made the label name to be consistent drivers/media/video/atmel-isi.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/atmel-isi.c b/drivers/media/video/atmel-isi.c index

[PATCH v3 1/2] [media] V4L: atmel-isi: add code to enable/disable ISI_MCK clock

2011-12-08 Thread Josh Wu
This patch - add ISI_MCK clock enable/disable code. - change field name in isi_platform_data structure Signed-off-by: Josh Wu josh...@atmel.com [g.liakhovet...@gmx.de: fix label names] Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v3 2/2] [media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

2011-12-08 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- in v2 version, made the label name to be consistent drivers/media/video/atmel-isi.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/atmel-isi.c b/drivers/media/video/atmel-isi.c index

[PATCH] [media] atmel_isi: allocate memory to store the isi platform data.

2012-08-29 Thread Josh Wu
data is invalid. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/platform/soc_camera/atmel-isi.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index

Re: [PATCH] [media] atmel_isi: allocate memory to store the isi platform data.

2012-08-30 Thread Josh Wu
into atmel_isi. Thank you all for the replies. That helps a lot even in this small patch. :) On 8/30/2012 12:02 AM, Guennadi Liakhovetski wrote: On Wed, 29 Aug 2012, Sylwester Nawrocki wrote: Hi, On 08/29/2012 12:11 PM, Josh Wu wrote: This patch fix the bug: ISI driver's platform data became

[PATCH] [media] ov2640: add support for async device registration

2014-03-14 Thread Josh Wu
Move the clock detection code to the beginning of the probe(). If we meet any error in the clock detecting, then defer the probe. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/i2c/soc_camera/ov2640.c | 43 + 1 file changed, 28 insertions(+), 15

re: [v2] media: soc-camera: OF cameras

2014-03-14 Thread Josh Wu
register a mclk v4l2 clock. This clock is needed when the soc-camera i2c sensor driver is probed. Otherwise the sensor will always defer the probe and can not probe. Best Regards, Josh Wu + + ret = v4l2_async_notifier_register(ici-v4l2_dev, sasc-notifier

[PATCH 1/3] [media] atmel-isi: add v4l2 async probe support

2014-03-18 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/platform/soc_camera/atmel-isi.c |5 + include/media/atmel-isi.h |4 2 files changed, 9 insertions(+) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera

[PATCH 2/3] [media] atmel-isi: convert the pdata from pointer to structure

2014-03-18 Thread Josh Wu
Now the platform data is initialized by allocation of isi structure. In the future, we use pdata to store the dt parameters. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/platform/soc_camera/atmel-isi.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions

[PATCH 0/3] [media] atmel-isi: Add DT support for Atmel ISI driver

2014-03-18 Thread Josh Wu
This patch series add DT support for atmel ISI driver. It can support the common v4l2 DT interfaces. Josh Wu (3): [media] atmel-isi: add v4l2 async probe support [media] atmel-isi: convert the pdata from pointer to structure [media] atmel-isi: add primary DT support .../devicetree

[PATCH 3/3] [media] atmel-isi: add primary DT support

2014-03-18 Thread Josh Wu
This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu josh...@atmel.com Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/media/atmel-isi.txt| 51 drivers/media

Re: [PATCH 3/3] [media] atmel-isi: add primary DT support

2014-03-19 Thread Josh Wu
Hi, Laurent On 3/18/2014 9:36 PM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. Thanks for your review. On Tuesday 18 March 2014 19:19:54 Josh Wu wrote: This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt

Re: [PATCH] [media] ov2640: add support for async device registration

2014-03-19 Thread Josh Wu
Hi, Sylwester Thanks for your review. On 3/15/2014 5:17 AM, Sylwester Nawrocki wrote: Hi Josh, On 03/14/2014 11:12 AM, Josh Wu wrote: +clk = v4l2_clk_get(client-dev, mclk); +if (IS_ERR(clk)) +return -EPROBE_DEFER; You should instead make it: return PTR_ERR(clk

[PATCH v2] [media] ov2640: add support for async device registration

2014-03-20 Thread Josh Wu
Since the the v4l2_clk_get() may return a EPROBE_DEFER during async probing. So move the v4l2_clk_get() to the beginning of the probe(). Only when we get mclk successfully we continue the probe. Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: just return PTR_ERR(clk) as it can

[PATCH v2 0/3] [media] atmel-isi: Add DT support for Atmel ISI driver

2014-03-25 Thread Josh Wu
This patch series add DT support for atmel ISI driver. It can support the common v4l2 DT interfaces. v1 -- v2: modified the device tree binding document to remove the a optional property. Josh Wu (3): [media] atmel-isi: add v4l2 async probe support [media] atmel-isi: convert the pdata from

[PATCH v2 1/3] [media] atmel-isi: add v4l2 async probe support

2014-03-25 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- v1 -- v2: no change. drivers/media/platform/soc_camera/atmel-isi.c |5 + include/media/atmel-isi.h |4 2 files changed, 9 insertions(+) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media

[PATCH v2 2/3] [media] atmel-isi: convert the pdata from pointer to structure

2014-03-25 Thread Josh Wu
Now the platform data is initialized by allocation of isi structure. In the future, we use pdata to store the dt parameters. Signed-off-by: Josh Wu josh...@atmel.com --- v1 -- v2: no change. drivers/media/platform/soc_camera/atmel-isi.c | 22 +++--- 1 file changed, 11

[PATCH v2 3/3] [media] atmel-isi: add primary DT support

2014-03-25 Thread Josh Wu
This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu josh...@atmel.com Cc: devicet...@vger.kernel.org --- v1 -- v2: refine the binding document. add port node description. removed the optional

Re: [PATCH] [media] ov2640: add support for async device registration

2014-03-26 Thread Josh Wu
Hi, Sylwester On 3/20/2014 10:44 PM, Sylwester Nawrocki wrote: Hi Josh, On 19/03/14 10:17, Josh Wu wrote: On 3/15/2014 5:17 AM, Sylwester Nawrocki wrote: On 03/14/2014 11:12 AM, Josh Wu wrote: +clk = v4l2_clk_get(client-dev, mclk); +if (IS_ERR(clk)) +return -EPROBE_DEFER

Re: [PATCH v2] [media] ov2640: add support for async device registration

2014-03-26 Thread Josh Wu
Hi, all since v4l2_clk_get() WON'T return EPROBE_DEFER. So this version of patch is invalid. Please drop this version of the patch. Sorry for the noise. Best Regards, Josh Wu On 3/20/2014 5:01 PM, Josh Wu wrote: Since the the v4l2_clk_get() may return a EPROBE_DEFER during async probing. So

Re: [PATCH v2 3/3] [media] atmel-isi: add primary DT support

2014-03-31 Thread Josh Wu
for the mainline. BTW: I will test Ben's patch with atmel-isi. thanks and best regards, Josh Wu Thanks Guennadi On Tue, 25 Mar 2014, Josh Wu wrote: This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu

Re: [RFCv3,3/3] soc_camera: initial of code

2014-03-31 Thread Josh Wu
i2c adaptor ID and addr. So the i2c sensor can not find this registered mclk as the name is not match. Best Regards, Josh Wu + + icd-clk = v4l2_clk_register(soc_camera_clk_ops, clk_name, mclk, icd); + if (IS_ERR(icd-clk)) { + ret = PTR_ERR(icd-clk); + goto

Re: [RFCv3,3/3] soc_camera: initial of code

2014-04-01 Thread Josh Wu
Hi, Ben On 3/31/2014 6:10 PM, Ben Dooks wrote: On 31/03/14 10:28, Josh Wu wrote: Hi, Ben Thanks for the patch, I just test atmel-isi with the your patch, I find the mclk registered in soc-camera driver cannot be find by the soc-camera sensors. See comment in below: Ok, I guess

Re: [v2] media: soc-camera: OF cameras

2014-04-10 Thread Josh Wu
. Freelance Open-Source Software Developer http://www.open-technology.de/ Best Regards, Josh Wu -- 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 v2 3/3] [media] atmel-isi: add primary DT support

2014-05-22 Thread Josh Wu
Hi, Guennadi On 5/19/2014 5:51 AM, Guennadi Liakhovetski wrote: On Tue, 25 Mar 2014, Josh Wu wrote: This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu josh...@atmel.com Cc: devicet

Re: [PATCH v2 2/3] [media] atmel-isi: convert the pdata from pointer to structure

2014-05-22 Thread Josh Wu
2014, Josh Wu wrote: Now the platform data is initialized by allocation of isi structure. In the future, we use pdata to store the dt parameters. Signed-off-by: Josh Wu josh...@atmel.com --- v1 -- v2: no change. drivers/media/platform/soc_camera/atmel-isi.c | 22 +++--- 1

Re: [PATCH v2 3/3] [media] atmel-isi: add primary DT support

2014-07-17 Thread Josh Wu
Regards, Josh Wu On Monday 31 March 2014 17:05:13 Josh Wu wrote: Dear Guennadi On 3/31/2014 5:20 AM, Guennadi Liakhovetski wrote: Hi Josh, Please correct me if I'm wrong, but I don't see how this is going to work without the central part - building asynchronous V4L2 data structures from the DT

Re: [PATCH v6 4/6] soc_camera: add support for dt binding soc_camera drivers

2014-07-24 Thread Josh Wu
add check for multiple subdevices] Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de I tested in sama5d3xek board with Atmel-isi dt and ov2640 dt. It works fine. Tested-by: Josh Wu josh...@atmel.com Best Regards, Josh Wu --- Hi Ben, How about this version? Could you review and test

[PATCH v3 0/3] media: atmel-isi: Add DT support for Atmel ISI driver

2014-07-25 Thread Josh Wu
This patch series add DT support for atmel ISI driver. It can support the common v4l2 DT interfaces. v2 - v3: support bus-width property for atmel-isi endpoint. v1 - v2: modified the device tree binding document to remove an optonal property. Josh Wu (3): atmel-isi: add v4l2 async probe

[PATCH v3 1/3] media: atmel-isi: add v4l2 async probe support

2014-07-25 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: no change. drivers/media/platform/soc_camera/atmel-isi.c | 5 + include/media/atmel-isi.h | 4 2 files changed, 9 insertions(+) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media

[PATCH v3 2/3] media: atmel-isi: convert the pdata from pointer to structure

2014-07-25 Thread Josh Wu
Now the platform data is initialized by allocation of isi structure. In the future, we use pdata to store the dt parameters. Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: use sizeof(isi-pdata) instead of using sizeof(struct). drivers/media/platform/soc_camera/atmel-isi.c | 22

[PATCH v3 3/3] media: atmel-isi: add primary DT support

2014-07-25 Thread Josh Wu
This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu josh...@atmel.com Cc: devicet...@vger.kernel.org Reviewed-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v2 - v3: add bus-width property

[PATCH v4 0/3] media: atmel-isi: Add DT support for Atmel ISI driver

2014-07-28 Thread Josh Wu
the device tree binding document to remove an optonal property. Josh Wu (3): atmel-isi: add v4l2 async probe support atmel-isi: convert the pdata from pointer to structure atmel-isi: add primary DT support .../devicetree/bindings/media/atmel-isi.txt| 51 drivers/media

[PATCH v4 1/3] media: atmel-isi: add v4l2 async probe support

2014-07-28 Thread Josh Wu
Signed-off-by: Josh Wu josh...@atmel.com --- v3 - v4: no change. drivers/media/platform/soc_camera/atmel-isi.c | 5 + include/media/atmel-isi.h | 4 2 files changed, 9 insertions(+) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media

[PATCH v4 2/3] media: atmel-isi: convert the pdata from pointer to structure

2014-07-28 Thread Josh Wu
Now the platform data is initialized by allocation of isi structure. In the future, we use pdata to store the dt parameters. Signed-off-by: Josh Wu josh...@atmel.com --- v3 - v4: no change. v2 - v3: use sizeof(isi-pdata) instead of using sizeof(struct). drivers/media/platform/soc_camera

[PATCH v4 3/3] media: atmel-isi: add primary DT support

2014-07-28 Thread Josh Wu
This patch add the DT support for Atmel ISI driver. It use the same v4l2 DT interface that defined in video-interfaces.txt. Signed-off-by: Josh Wu josh...@atmel.com Cc: devicet...@vger.kernel.org Reviewed-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v3 - v4: When bus width is 10

[PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-25 Thread Josh Wu
Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu josh...@atmel.com --- include/media/v4l2-image-sizes.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/media/v4l2-image-sizes.h b/include/media

[PATCH 2/2] media: ov2640: use the v4l2 size definitions

2014-11-25 Thread Josh Wu
Reuse the v4l2 size definitions from v4l2-image-sizes.h. So we can remove the rudundent definitions from ov2640.c. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/i2c/soc_camera/ov2640.c | 82 +-- 1 file changed, 30 insertions(+), 52 deletions(-) diff

[PATCH] media: atmel-isi: increase the burst length to improve the performance

2014-11-25 Thread Josh Wu
The burst length could be BEATS_4/8/16. Before this patch, isi use default value BEATS_4. To imporve the performance we could set it to BEATS_16. Otherwise sometime it would cause the ISI overflow error. Reported-by: Bo Shen voice.s...@atmel.com Signed-off-by: Josh Wu josh...@atmel.com

Re: [PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-25 Thread Josh Wu
Hi, Sylwester and Mauro On 11/25/2014 6:34 PM, Sylwester Nawrocki wrote: Hi Josh, On 25/11/14 09:54, Josh Wu wrote: Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu josh...@atmel.com --- include/media/v4l2

Re: [PATCH] media: atmel-isi: increase the burst length to improve the performance

2014-11-25 Thread Josh Wu
Hi, Gunenadi On 11/26/2014 6:21 AM, Guennadi Liakhovetski wrote: Hi Josh, On Tue, 25 Nov 2014, Josh Wu wrote: The burst length could be BEATS_4/8/16. Before this patch, isi use default value BEATS_4. To imporve the performance we could set it to BEATS_16. Otherwise sometime it would cause

[PATCH] media: v4l2-image-sizes.h: correct the SVGA height definition

2014-11-26 Thread Josh Wu
SVGA height should be 600 not 680. Reported-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Josh Wu josh...@atmel.com --- Hi, Mauro There a typo in my previous patch, so this patch is the fix for that. Sorry for the incovenience. Best Regards, Josh Wu include/media/v4l2-image

Re: [PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-26 Thread Josh Wu
Hi, Guennadi On 11/26/2014 6:23 AM, Guennadi Liakhovetski wrote: Hi Josh, On Tue, 25 Nov 2014, Josh Wu wrote: Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu josh...@atmel.com Thanks for your patches. I'm

[PATCH 0/4] media: ov2640: add device tree support

2014-11-28 Thread Josh Wu
This patch series add device tree support for ov2640. And also add the document for the devicetree properties. Josh Wu (4): media: ov2640: add async probe function media: ov2640: add primary dt support media: ov2640: add a master clock for sensor media: ov2640: dt: add the device tree

[PATCH 0/4] media: ov2640: add device tree support

2014-11-28 Thread Josh Wu
This patch series add device tree support for ov2640. And also add the document for the devicetree properties. Josh Wu (4): media: ov2640: add async probe function media: ov2640: add primary dt support media: ov2640: add a master clock for sensor media: ov2640: dt: add the device tree

[PATCH 1/4] media: ov2640: add async probe function

2014-11-28 Thread Josh Wu
() function. That make ov2640 survive, as we can pass a NULL (priv-clk) to soc_camera_set_power() function. And if soc_camera host is probed, the when ov2640_s_power() is called, then we can get the 'mclk' and that make us enable/disable soc_camera host's clock as well. Signed-off-by: Josh Wu josh

[PATCH 3/4] media: ov2640: add a master clock for sensor

2014-11-28 Thread Josh Wu
The master clock can be optional. It's a common clock framework clock. It can make sensor output a pixel clock to the camera interface. If you just use a external oscillator clock as the master clock, then, just don't need set 'mck' in dt node. Signed-off-by: Josh Wu josh...@atmel.com

[PATCH 4/4] media: ov2640: dt: add the device tree binding document

2014-11-28 Thread Josh Wu
Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- .../devicetree/bindings/media/i2c/ov2640.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2640.txt

[PATCH 2/4] media: ov2640: add primary dt support

2014-11-28 Thread Josh Wu
Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/i2c/soc_camera/ov2640.c | 95 --- 1 file changed, 89 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/soc_camera/ov2640.c b

Re: [PATCH 4/4] media: ov2640: dt: add the device tree binding document

2014-12-03 Thread Josh Wu
Hi, Laurent On 12/2/2014 6:14 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Friday 28 November 2014 18:28:27 Josh Wu wrote: Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- .../devicetree/bindings/media/i2c

Re: [PATCH 3/4] media: ov2640: add a master clock for sensor

2014-12-03 Thread Josh Wu
Hi, Laurent On 12/2/2014 6:26 AM, Laurent Pinchart wrote: Hi Josh, (CC'ing the devicet...@vger.kernel.org mailing list) Thank you for the patch. On Friday 28 November 2014 18:28:26 Josh Wu wrote: The master clock can be optional. It's a common clock framework clock. It can make sensor

Re: [PATCH 2/4] media: ov2640: add primary dt support

2014-12-05 Thread Josh Wu
Hi, Laurent On 12/2/2014 6:33 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Friday 28 November 2014 18:28:25 Josh Wu wrote: Add device tree support for ov2640. Cc:devicet...@vger.kernel.org Signed-off-by: Josh Wujosh...@atmel.com --- drivers/media/i2c/soc_camera/ov2640

[PATCH 2/5] media: ov2640: add async probe function

2014-12-08 Thread Josh Wu
() function. That make ov2640 survive, as we can pass a NULL (priv-clk) to soc_camera_set_power() function. And if soc_camera host is probed, the when ov2640_s_power() is called, then we can get the 'mclk' and that make us enable/disable soc_camera host's clock as well. Signed-off-by: Josh Wu josh

[PATCH 0/5] media: ov2640: add device tree support

2014-12-08 Thread Josh Wu
This patch series add device tree support for ov2640. And also add the document for the devicetree properties. v1 - v2: 1. modified the dt bindings according to Laurent's suggestion. 2. add a fix patch for soc_camera. Otherwise the .reset() function won't work. Josh Wu (5): media: soc

[PATCH 3/5] media: ov2640: add primary dt support

2014-12-08 Thread Josh Wu
Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: 1. use gpiod APIs. 2. change the gpio pin's name according to datasheet. 3. reduce the delay for .reset() function. drivers/media/i2c/soc_camera/ov2640.c | 86

[PATCH 4/5] media: ov2640: add a master clock for sensor

2014-12-08 Thread Josh Wu
The master clock (xvclk) is mandatory. It's a common clock framework clock. It can make sensor output a pixel clock to the camera interface. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: 1. change the clock's name. 2. Make the clock is mandatory

[PATCH 1/5] media: soc-camera: use icd-control instead of icd-pdev for reset()

2014-12-08 Thread Josh Wu
icd-control is the sub device dev, i.e. i2c device. icd-pdev is the soc camera device's device. To be consitent with power() function, we will call reset() with icd-control as well. Signed-off-by: Josh Wu josh...@atmel.com --- drivers/media/platform/soc_camera/soc_camera.c | 10 ++ 1

[PATCH 5/5] media: ov2640: dt: add the device tree binding document

2014-12-08 Thread Josh Wu
Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: 1. change the compatible string to be consistent with verdor file. 2. change the clock and pins' name. 3. add missed pinctrl in example. .../devicetree/bindings/media/i2c

Re: [PATCH 4/5] media: ov2640: add a master clock for sensor

2014-12-08 Thread Josh Wu
Hi, Fabio On 12/8/2014 11:10 PM, Fabio Estevam wrote: On Mon, Dec 8, 2014 at 9:29 AM, Josh Wu josh...@atmel.com wrote: + priv-master_clk = devm_clk_get(client-dev, xvclk); + if (IS_ERR(priv-master_clk)) + return -EINVAL; You should return PTR_ERR(priv-master_clk

Re: [PATCH 3/5] media: ov2640: add primary dt support

2014-12-08 Thread Josh Wu
Hi, Laurent On 12/9/2014 2:39 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Monday 08 December 2014 19:29:05 Josh Wu wrote: Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: 1. use gpiod APIs. 2

Re: [PATCH 5/5] media: ov2640: dt: add the device tree binding document

2014-12-08 Thread Josh Wu
Hi, Laurent On 12/9/2014 2:59 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Monday 08 December 2014 19:29:07 Josh Wu wrote: Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v1 - v2: 1. change the compatible

[v3][PATCH 0/5] media: ov2640: add device tree support

2014-12-10 Thread Josh Wu
suggestion. 2. add a fix patch for soc_camera. Otherwise the .reset() function won't work. Josh Wu (5): media: soc-camera: use icd-control instead of icd-pdev for reset() media: ov2640: add async probe function media: ov2640: add primary dt support media: ov2640: add a master clock

[v3][PATCH 1/5] media: soc-camera: use icd-control instead of icd-pdev for reset()

2014-12-10 Thread Josh Wu
icd-control is the sub device dev, i.e. i2c device. icd-pdev is the soc camera device's device. To be consitent with power() function, we will call reset() with icd-control as well. Signed-off-by: Josh Wu josh...@atmel.com --- v2-v3: 1. check whether icd-control is NULL or not. drivers/media

[v3][PATCH 2/5] media: ov2640: add async probe function

2014-12-10 Thread Josh Wu
() function. That make ov2640 survive, as we can pass a NULL (priv-clk) to soc_camera_set_power() function. And if soc_camera host is probed, the when ov2640_s_power() is called, then we can get the 'mclk' and that make us enable/disable soc_camera host's clock as well. Signed-off-by: Josh Wu josh

[v3][PATCH 3/5] media: ov2640: add primary dt support

2014-12-10 Thread Josh Wu
Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: 1. fix gpiod usage. 2. refine the ov2640_probe() function. v1 - v2: 1. use gpiod APIs. 2. change the gpio pin's name according to datasheet. 3. reduce the delay

[v3][PATCH 4/5] media: ov2640: add a master clock for sensor

2014-12-10 Thread Josh Wu
The master clock (xvclk) is mandatory. It's a common clock framework clock. It can make sensor output a pixel clock to the camera interface. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: 1. should return PTR_ERR(). v1 - v2: 1. change the clock's name

[v3][PATCH 5/5] media: ov2640: dt: add the device tree binding document

2014-12-10 Thread Josh Wu
Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: 1. fix incorrect description. 2. Add assigned-clocks assigned-clock-rates. 3. resetb pin should be ACTIVE_LOW. v1 - v2: 1. change the compatible string to be consistent

Re: [v3][PATCH 3/5] media: ov2640: add primary dt support

2014-12-15 Thread Josh Wu
Hi, Laurent On 12/11/2014 4:10 PM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. I only have three minor comments. After fixing them, Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Thanks for the review. On Thursday 11 December 2014 15:35:37 Josh Wu wrote: Add

Re: [v3][PATCH 5/5] media: ov2640: dt: add the device tree binding document

2014-12-15 Thread Josh Wu
Hi, Laurent On 12/12/2014 10:17 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Thursday 11 December 2014 15:35:39 Josh Wu wrote: Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v2 - v3: 1. fix incorrect

[PATCH v4 0/5] media: ov2640: add device tree support

2014-12-17 Thread Josh Wu
. v1 - v2: 1. modified the dt bindings according to Laurent's suggestion. 2. add a fix patch for soc_camera. Otherwise the .reset() function won't work. Josh Wu (5): media: soc-camera: use icd-control instead of icd-pdev for reset() media: ov2640: add async probe function media: ov2640

[PATCH v4 1/5] media: soc-camera: use icd-control instead of icd-pdev for reset()

2014-12-17 Thread Josh Wu
icd-control is the sub device dev, i.e. i2c device. icd-pdev is the soc camera device's device. To be consitent with power() function, we will call reset() with icd-control as well. Signed-off-by: Josh Wu josh...@atmel.com --- v3-v4: none v2-v3: 1. check whether icd-control is NULL

[PATCH v4 2/5] media: ov2640: add async probe function

2014-12-17 Thread Josh Wu
() function. That make ov2640 survive, as we can pass a NULL (priv-clk) to soc_camera_set_power() function. And if soc_camera host is probed, the when ov2640_s_power() is called, then we can get the 'mclk' and that make us enable/disable soc_camera host's clock as well. Signed-off-by: Josh Wu josh

[PATCH v4 3/5] media: ov2640: add primary dt support

2014-12-17 Thread Josh Wu
Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v3 - v4: 1.modify the code comment. 2. Add Laurent's acked by. v2 - v3: 1. fix gpiod usage. 2. refine

[PATCH v4 4/5] media: ov2640: add a master clock for sensor

2014-12-17 Thread Josh Wu
The master clock (xvclk) is mandatory. It's a common clock framework clock. It can make sensor output a pixel clock to the camera interface. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v3 - v4: 1. Add

[PATCH v4 5/5] media: ov2640: dt: add the device tree binding document

2014-12-17 Thread Josh Wu
Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v3 - v4: 1. remove aggsigned-clocks as it's general. 2. refine the explation. v2 - v3: 1. fix incorrect description. 2. Add assigned-clocks assigned-clock-rates. 3. resetb pin

[PATCH 0/7] ARM: at91: dts: sama5d3: add dt support for atmel isi and ov2640 sensor

2014-12-18 Thread Josh Wu
: sama5d3: add missing pins of isi ARM: at91: dts: sama5d3: move the isi mck pin to mb Josh Wu (4): ARM: at91: dts: sama5d3: add isi clock ARM: at91: dts: sama5d3: change name of pinctrl_isi_{power,reset} ARM: at91: dts: sama5d3: add ov2640 camera sensor support ARM: at91: sama5: enable atmel

[PATCH 2/7] ARM: at91: dts: sama5d3: split isi pinctrl

2014-12-18 Thread Josh Wu
nicolas.fe...@atmel.com Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi| 11 --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index 61746ef

[PATCH 3/7] ARM: at91: dts: sama5d3: add missing pins of isi

2014-12-18 Thread Josh Wu
From: Bo Shen voice.s...@atmel.com The ISI has 12 data lines, add the missing two data lines. Signed-off-by: Bo Shen voice.s...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 1/7] ARM: at91: dts: sama5d3: add isi clock

2014-12-18 Thread Josh Wu
Add ISI peripheral clock in sama5d3.dtsi. Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index 5f4144d..61746ef 100644 --- a/arch/arm/boot/dts

[PATCH 5/7] ARM: at91: dts: sama5d3: change name of pinctrl_isi_{power,reset}

2014-12-18 Thread Josh Wu
For sama5d3xmb board, the pins: pinctrl_isi_{power,reset} is used to power-down or reset camera sensor. So we should let camera sensor instead of ISI to configure the pins. This patch will change pinctrl name from pinctrl_isi_{power,reset} to pinctrl_sensor_{power,reset}. Signed-off-by: Josh Wu

[PATCH 4/7] ARM: at91: dts: sama5d3: move the isi mck pin to mb

2014-12-18 Thread Josh Wu
From: Bo Shen voice.s...@atmel.com The mck is decided by the board design, move it to mb related dtsi file. Signed-off-by: Bo Shen voice.s...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi| 5 - arch

[PATCH 6/7] ARM: at91: dts: sama5d3: add ov2640 camera sensor support

2014-12-18 Thread Josh Wu
According to v4l2 dt document, we add: a camera host: ISI port. a i2c camera sensor: ov2640 port. to sama5d3xmb.dtsi. In the ov2640 node, it defines the pinctrls, clocks and isi port. In the ISI node, it also reference to a ov2640 port. Signed-off-by: Josh Wu josh...@atmel.com --- arch/arm

  1   2   3   >