Re: [PATCH v3] media: video-i2c: check if chip struct has set_power function

2018-11-26 Thread Matt Ranostay
On Mon, Nov 26, 2018 at 2:50 PM Hans Verkuil wrote: > > On 11/25/2018 05:55 PM, Sakari Ailus wrote: > > Hi Matt, > > > > On Sat, Nov 24, 2018 at 02:03:23PM -0800, Matt Ranostay wrote: > >> Not all future supported video chips will always have power management >

[PATCH v3] media: video-i2c: check if chip struct has set_power function

2018-11-24 Thread Matt Ranostay
Not all future supported video chips will always have power management support, and so it is important to check before calling set_power() is defined. Cc: Sakari Ailus Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: Akinobu Mita Signed-off-by: Matt Ranostay --- Changes from v2: - split out

Re: [PATCH v2 2/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-11-22 Thread Matt Ranostay
On Thu, Nov 22, 2018 at 12:57 AM Hans Verkuil wrote: > > On 11/22/2018 04:52 AM, Matt Ranostay wrote: > > Add initial support for MLX90640 thermal cameras which output an 32x24 > > greyscale pixel image along with 2 rows of coefficent data. > > > > Because of th

[PATCH v2 1/2] media: video-i2c: check if chip struct has set_power function

2018-11-21 Thread Matt Ranostay
Not all future supported video chips will always have power management support, and so it is important to check before calling set_power() is defined. Signed-off-by: Matt Ranostay --- drivers/media/i2c/video-i2c.c | 21 - 1 file changed, 16 insertions(+), 5 deletions

[PATCH v2 0/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-11-21 Thread Matt Ranostay
.txt documentation Matt Ranostay (2): media: video-i2c: check if chip struct has set_power function media: video-i2c: add Melexis MLX90640 thermal camera support .../bindings/media/i2c/melexis,mlx90640.txt | 20 +++ drivers/media/i2c/Kconfig | 1 + drivers/media/i2c

[PATCH v2 2/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-11-21 Thread Matt Ranostay
: devicet...@vger.kernel.org Signed-off-by: Matt Ranostay --- .../bindings/media/i2c/melexis,mlx90640.txt | 20 drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/video-i2c.c | 110 +- 3 files changed, 130 insertions(+), 1 deletion

Re: [PATCH 2/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-11-19 Thread Matt Ranostay
On Mon, Nov 19, 2018 at 6:26 AM Hans Verkuil wrote: > > On 11/01/2018 05:15 AM, Matt Ranostay wrote: > > Add initial support for MLX90640 thermal cameras which output an 32x24 > > greyscale pixel image along with 2 rows of coefficent data. > > > > Because of this the

[PATCH 0/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-10-31 Thread Matt Ranostay
Add initial support for Melexis line of thermal cameras. This is the first part of processing pipeline in which the real processing is done in userspace using the V4L2 camera data. Dependency patchset series: https://patchwork.kernel.org/cover/10650541/ Matt Ranostay (2): media: video-i2c

[PATCH 1/2] media: video-i2c: check if chip struct has set_power function

2018-10-31 Thread Matt Ranostay
Not all future supported video chips will always have power management support, and so it is important to check before calling set_power() is defined. Signed-off-by: Matt Ranostay --- drivers/media/i2c/video-i2c.c | 21 - 1 file changed, 16 insertions(+), 5 deletions

[PATCH 2/2] media: video-i2c: add Melexis MLX90640 thermal camera support

2018-10-31 Thread Matt Ranostay
. Signed-off-by: Matt Ranostay --- drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/video-i2c.c | 110 +- 2 files changed, 110 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 704af210e270..4bfb2c66d192

Re: [PATCH v4 3/6] media: v4l2-common: add V4L2_FRACT_COMPARE

2018-10-28 Thread Matt Ranostay
On Sun, Oct 28, 2018 at 9:25 AM Akinobu Mita wrote: > > 2018年10月28日(日) 12:49 Matt Ranostay : > > > > On Sat, Oct 20, 2018 at 7:26 AM Akinobu Mita wrote: > > > > > > Add macro to compare two v4l2_fract values in v4l2 common internal API. > > >

Re: [PATCH v4 3/6] media: v4l2-common: add V4L2_FRACT_COMPARE

2018-10-27 Thread Matt Ranostay
On Sat, Oct 20, 2018 at 7:26 AM Akinobu Mita wrote: > > Add macro to compare two v4l2_fract values in v4l2 common internal API. > The same macro FRACT_CMP() is used by vivid and bcm2835-camera. This just > renames it to V4L2_FRACT_COMPARE in order to avoid namespace collision.

Re: [PATCH v4 5/6] media: video-i2c: support changing frame interval

2018-10-27 Thread Matt Ranostay
On Sat, Oct 20, 2018 at 7:26 AM Akinobu Mita wrote: > > AMG88xx has a register for setting frame rate 1 or 10 FPS. > This adds support changing frame interval. > > Reference specifications: > https://docid81hrs3j1.cloudfront.net/medialibrary/2017/11/PANA-S-A0002141979-1.pdf >

Re: [PATCH v3 1/6] media: video-i2c: avoid accessing released memory area when removing driver

2018-10-13 Thread Matt Ranostay
> Fixes: 5cebaac60974 ("media: video-i2c: add video-i2c driver") > Cc: Matt Ranostay Reviewed-by: Matt Ranostay > Cc: Sakari Ailus > Cc: Hans Verkuil > Cc: Mauro Carvalho Chehab > Signed-off-by: Akinobu Mita > --- > * v3 > - Move the code causing use-afte

Re: [PATCH v2 2/6] media: video-i2c: use i2c regmap

2018-09-23 Thread Matt Ranostay
On Mon, Sep 24, 2018 at 12:35 AM Akinobu Mita wrote: > > Use regmap for i2c register access. This simplifies register accesses and > chooses suitable access commands based on the functionality that the > adapter supports. > > Cc: Matt Ranostay > Cc: Sakari Ailus > Cc: H

Re: [PATCH 4/5] media: video-i2c: support changing frame interval

2018-09-18 Thread Matt Ranostay
On Mon, Sep 17, 2018 at 6:03 PM Akinobu Mita wrote: > > AMG88xx has a register for setting frame rate 1 or 10 FPS. > This adds support changing frame interval. > > Reference specifications: > https://docid81hrs3j1.cloudfront.net/medialibrary/2017/11/PANA-S-A0002141979-1.pdf >

Re: [PATCH 5/5] media: video-i2c: support runtime PM

2018-09-18 Thread Matt Ranostay
t; https://docid81hrs3j1.cloudfront.net/medialibrary/2017/11/PANA-S-A0002141979-1.pdf > > Cc: Matt Ranostay > Cc: Sakari Ailus > Cc: Hans Verkuil > Cc: Mauro Carvalho Chehab > Signed-off-by: Akinobu Mita > --- > drivers/media/i2c/video-i2c.c | 140 > ++

Re: [PATCH 2/5] media: video-i2c: use i2c regmap

2018-09-17 Thread Matt Ranostay
On Mon, Sep 17, 2018 at 9:03 AM Akinobu Mita wrote: > > Use regmap for i2c register access. This simplifies register accesses and > chooses suitable access commands based on the functionality that the > adapter supports. > > Cc: Matt Ranostay > Cc: Sakari Ailus > Cc: H

Re: [PATCH 1/5] media: video-i2c: avoid accessing released memory area when removing driver

2018-09-17 Thread Matt Ranostay
on driver > detach. > > Fixes: 5cebaac60974 ("media: video-i2c: add video-i2c driver") > Cc: Matt Ranostay > Cc: Sakari Ailus > Cc: Hans Verkuil > Cc: Mauro Carvalho Chehab > Signed-off-by: Akinobu Mita Acked-by: Matt Ranostay > --- > drivers/media/i2

[PATCH] media: video-i2c: hwmon: fix return value from amg88xx_hwmon_init()

2018-07-26 Thread Matt Ranostay
PTR_ERR was making any pointer passed an error pointer, and should be replaced with PTR_ERR_OR_ZERO which checks if is an actual error condition. Signed-off-by: Matt Ranostay --- drivers/media/i2c/video-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c

Re: [RFC] media: thermal I2C cameras metadata

2018-07-25 Thread Matt Ranostay
On Wed, Jul 25, 2018 at 2:09 AM, Sakari Ailus wrote: > On Tue, Jul 24, 2018 at 11:05:47PM -0700, Matt Ranostay wrote: >> On Mon, Jul 23, 2018 at 4:35 AM, Sakari Ailus wrote: >> > Hi Matt, >> > >> > On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote

Re: [RFC] media: thermal I2C cameras metadata

2018-07-25 Thread Matt Ranostay
On Mon, Jul 23, 2018 at 4:35 AM, Sakari Ailus wrote: > Hi Matt, > > On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote: >> Hello et all, >> >> So currently working with some thermal sensors that have coefficients >> that needs to be passed back

[RFC] media: thermal I2C cameras metadata

2018-07-16 Thread Matt Ranostay
Hello et all, So currently working with some thermal sensors that have coefficients that needs to be passed back to userspace that aren't related to the pixel data but are required to normalize to remove scan patterns and temp gradients. Was wondering the best way to do this, and hope it isn't

Re: [PATCH v8 2/2] media: video-i2c: add video-i2c driver

2018-04-18 Thread Matt Ranostay
On Wed, Apr 18, 2018 at 1:03 AM, Sakari Ailus <sakari.ai...@iki.fi> wrote: > Hi Matt, > > Thanks for the update. > > On Fri, Apr 06, 2018 at 03:52:31PM -0700, Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v8 2/2] media: video-i2c: add video-i2c driver

2018-04-18 Thread Matt Ranostay
Slight poke on this since the merge window craziness should be over also I stupidly forgot to CC people who had comments in the last revision. *grin* - Matt On Fri, Apr 6, 2018 at 3:52 PM, Matt Ranostay <matt.ranos...@konsulko.com> wrote: > There are several thermal sensors that only h

[PATCH v8 0/2] media: video-i2c: add video-i2c driver support

2018-04-06 Thread Matt Ranostay
* corrected a few over 80 column lines * change DT check to generic dev_fwnode() call Matt Ranostay (2): media: dt-bindings: Add bindings for panasonic,amg88xx media: video-i2c: add video-i2c driver .../bindings/media/i2c/panasonic,amg88xx.txt | 19 + MAINTAINERS

[PATCH v8 1/2] media: dt-bindings: Add bindings for panasonic,amg88xx

2018-04-06 Thread Matt Ranostay
Define the device tree bindings for the panasonic,amg88xx i2c video driver. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- .../bindings/media/i2c/panasonic,amg88xx.txt | 19 ++

[PATCH v8 2/2] media: video-i2c: add video-i2c driver

2018-04-06 Thread Matt Ranostay
There are several thermal sensors that only have a low-speed bus interface but output valid video data. This patchset enables support for the AMG88xx "Grid-Eye" sensor family. Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- MAINTAINERS | 6 + d

[PATCH v7 1/2] media: dt-bindings: Add bindings for panasonic,amg88xx

2018-04-05 Thread Matt Ranostay
Define the device tree bindings for the panasonic,amg88xx i2c video driver. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- .../bindings/media/i2c/panasonic,amg88xx.txt | 19 ++

[PATCH v7 2/2] media: video-i2c: add video-i2c driver

2018-04-05 Thread Matt Ranostay
There are several thermal sensors that only have a low-speed bus interface but output valid video data. This patchset enables support for the AMG88xx "Grid-Eye" sensor family. Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- MAINTAINERS | 6 + d

[PATCH v7 0/2] media: video-i2c: add video-i2c driver support

2018-04-05 Thread Matt Ranostay
Kconfig documentation * destroy mutexes on error path and module removal * fixed MODULE_LICENSE from GPL to GPLv2 * changes some calls to list_last_entry() to avoid touching next pointer * moved common code to a function from start/stop_streaming() Matt Ranostay (2): media: dt-bindings: Add

Re: [PATCH v6 2/2] media: video-i2c: add video-i2c driver

2018-04-05 Thread Matt Ranostay
On Thu, Apr 5, 2018 at 12:39 AM, Sakari Ailus <sakari.ai...@iki.fi> wrote: > Hi Matt, > > Thanks for the patch. It's a very nicely written, small driver. :-) > > Please see more comments below. > > On Sat, Mar 31, 2018 at 05:59:26PM -0700, Matt Ranostay wrote: >>

Re: [PATCH v6 2/2] media: video-i2c: add video-i2c driver

2018-03-31 Thread Matt Ranostay
On Sat, Mar 31, 2018 at 5:59 PM, Matt Ranostay <matt.ranos...@konsulko.com> wrote: > There are several thermal sensors that only have a low-speed bus > interface but output valid video data. This patchset enables support > for the AMG88xx "Grid-Eye" sensor family. > &g

[PATCH v6 0/2] media: video-i2c: add video-i2c driver support

2018-03-31 Thread Matt Ranostay
: * convert pointer from of_device_get_match_data() to long instead of int to avoid compiler warning Changes from v5: * fix various issues with v4l2-compliance tool run Matt Ranostay (2): media: dt-bindings: Add bindings for panasonic,amg88xx media: video-i2c: add video-i2c driver .../bindings

[PATCH v6 2/2] media: video-i2c: add video-i2c driver

2018-03-31 Thread Matt Ranostay
There are several thermal sensors that only have a low-speed bus interface but output valid video data. This patchset enables support for the AMG88xx "Grid-Eye" sensor family. Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- MAINTAINERS | 6 + d

[PATCH v6 1/2] media: dt-bindings: Add bindings for panasonic,amg88xx

2018-03-31 Thread Matt Ranostay
Define the device tree bindings for the panasonic,amg88xx i2c video driver. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- .../bindings/media/i2c/panasonic,amg88xx.txt | 19 ++

Re: [PATCH v5 0/2] media: video-i2c: add video-i2c driver support

2018-03-22 Thread Matt Ranostay
On Thu, Mar 22, 2018 at 3:28 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 03/22/2018 06:46 AM, Matt Ranostay wrote: >> On Mon, Mar 19, 2018 at 5:31 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: >>> On 03/16/2018 03:47 AM, Matt Ranostay wrote: >>>> On F

Re: [PATCH v5 0/2] media: video-i2c: add video-i2c driver support

2018-03-21 Thread Matt Ranostay
On Mon, Mar 19, 2018 at 5:31 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 03/16/2018 03:47 AM, Matt Ranostay wrote: >> On Fri, Mar 9, 2018 at 10:26 AM, Matt Ranostay >> <matt.ranos...@konsulko.com> wrote: >>> On Fri, Mar 9, 2018 at 4:45 AM, Hans Verkuil

Re: [PATCH v5 0/2] media: video-i2c: add video-i2c driver support

2018-03-15 Thread Matt Ranostay
On Fri, Mar 9, 2018 at 10:26 AM, Matt Ranostay <matt.ranos...@konsulko.com> wrote: > On Fri, Mar 9, 2018 at 4:45 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: >> Hi Matt, >> >> This is looking good. One request before I merge: please run the >> 'v4l2-compli

Re: [PATCH v5 0/2] media: video-i2c: add video-i2c driver support

2018-03-09 Thread Matt Ranostay
: q.reqbufs(node, 3) Stride 0, Field Interlaced Bottom-Top: FAIL fail: v4l2-test-buffers.cpp(1472): fmt.g_sizeimage() <= size fail: v4l2-test-buffers.cpp(1268): q.reqbufs(node, 3) Stride 80, Field None: FAIL Total: 64, Succeeded: 44, Failed: 20, Warnings: 0 > > Thanks! > >

[PATCH v5 2/2] media: video-i2c: add video-i2c driver

2018-03-08 Thread Matt Ranostay
There are several thermal sensors that only have a low-speed bus interface but output valid video data. This patchset enables support for the AMG88xx "Grid-Eye" sensor family. Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- MAINTAINERS | 6 + d

[PATCH v5 1/2] media: dt-bindings: Add bindings for panasonic,amg88xx

2018-03-08 Thread Matt Ranostay
Define the device tree bindings for the panasonic,amg88xx i2c video driver. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- .../bindings/media/i2c/panasonic,amg88xx.txt | 19 ++

[PATCH v5 0/2] media: video-i2c: add video-i2c driver support

2018-03-08 Thread Matt Ranostay
: * convert pointer from of_device_get_match_data() to long instead of int to avoid compiler warning Matt Ranostay (2): media: dt-bindings: Add bindings for panasonic,amg88xx media: video-i2c: add video-i2c driver .../bindings/media/i2c/panasonic,amg88xx.txt | 19 + MAINTAINERS

Re: [PATCH v4 2/2] media: video-i2c: add video-i2c driver

2018-03-04 Thread Matt Ranostay
plied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Matt-Ranostay/media-video-i2c-add-video-i2c-driver-support/20180301-111038 > base: git://linuxtv.org/media_tree.git master > config: ia64-

[PATCH v4 1/2] media: dt-bindings: Add bindings for panasonic,amg88xx

2018-02-26 Thread Matt Ranostay
Define the device tree bindings for the panasonic,amg88xx i2c video driver. Cc: Rob Herring <r...@kernel.org> Cc: devicet...@vger.kernel.org Signed-off-by: Matt Ranostay <matt.ranos...@konsulko.com> --- .../bindings/media/i2c/panasonic,amg88xx.txt | 19 +++

[PATCH v4 2/2] media: video-i2c: add video-i2c driver

2018-02-26 Thread Matt Ranostay
video-i2c.c - Support for I2C transport video devices + * + * Copyright (C) 2018 Matt Ranostay <matt.ranos...@konsulko.com> + * + * Supported: + * - Panasonic AMG88xx Grid-Eye Sensors + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#incl

[PATCH v4 0/2] media: video-i2c: add video-i2c driver support

2018-02-26 Thread Matt Ranostay
build Changes from v3: * Add devicetree binding documents * snprintf check added * switched to per chip support based on devicetree or i2c client id * add VB2_DMABUF to io_modes * added entry to MAINTAINERS file switched to per chip support based on devicetree or i2c client id Matt Ranostay (2

[PATCH v3] media: video-i2c: add video-i2c driver

2018-02-24 Thread Matt Ranostay
ort for I2C transport video devices + * + * Copyright (C) 2018 Matt Ranostay <matt.ranos...@konsulko.com> + * + * Supported: + * - Panasonic AMG88xx Grid-Eye Sensors + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#

[PATCH v2] media: video-i2c: add video-i2c driver

2018-02-15 Thread Matt Ranostay
c.c b/drivers/media/i2c/video-i2c.c new file mode 100644 index ..936baaae2c7f --- /dev/null +++ b/drivers/media/i2c/video-i2c.c @@ -0,0 +1,546 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * video-i2c.c - Support for I2C transport video devices + * + * Copyright (C) 2018 Matt Ranostay <mat

Re: [PATCH RESEND] media: video-i2c: add video-i2c driver

2018-02-15 Thread Matt Ranostay
On Thu, Feb 15, 2018 at 7:49 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi Matt, > > Here is a quick review. Apologies for the delay, it has been very busy for > the last few weeks. > > On 13/01/18 04:57, Matt Ranostay wrote: >> There are several thermal sensors

[PATCH RESEND] media: video-i2c: add video-i2c driver

2018-01-12 Thread Matt Ranostay
ort for I2C transport video devices + * + * Copyright (C) 2018 Matt Ranostay <matt.ranos...@konsulko.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; eith

Re: [PATCH v5] media: video-i2c: add video-i2c driver

2017-01-13 Thread Matt Ranostay
On Fri, Jan 13, 2017 at 3:47 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Friday 23 Dec 2016 19:04:26 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v5] media: video-i2c: add video-i2c driver

2017-01-13 Thread Matt Ranostay
On Fri, Jan 13, 2017 at 2:22 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > On Thursday 12 Jan 2017 20:45:21 Matt Ranostay wrote: >> On Sun, Jan 8, 2017 at 9:33 PM, Marek Vasut <ma...@denx.de> wrote: >> > On 01/09/2017 06:17 A

Re: [PATCH v5] media: video-i2c: add video-i2c driver

2017-01-12 Thread Matt Ranostay
On Sun, Jan 8, 2017 at 9:33 PM, Marek Vasut <ma...@denx.de> wrote: > On 01/09/2017 06:17 AM, Matt Ranostay wrote: >> Gentle ping on this! :) > > Just some high-level feedback ... You should use regmap instead. Also, > calling a driver which is specific to a particular sens

Re: [PATCH v5] media: video-i2c: add video-i2c driver

2017-01-08 Thread Matt Ranostay
Gentle ping on this! :) Thanks, Matt > On Dec 23, 2016, at 19:04, Matt Ranostay <matt@ranostay.consulting> wrote: > > There are several thermal sensors that only have a low-speed bus > interface but output valid video data. This patchset enables support > for the AMG8

[PATCH v5] media: video-i2c: add video-i2c driver

2016-12-23 Thread Matt Ranostay
.@gentoo.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h Changes from v2: * fix buil

[PATCH v4] media: video-i2c: add video-i2c driver

2016-11-25 Thread Matt Ranostay
.@gentoo.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h Changes from v2: * fix buil

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-24 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 10:31 PM, Matt Ranostay <matt@ranostay.consulting> wrote: > On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart > <laurent.pinch...@ideasonboard.com> wrote: >> Hi Matt, >> >> Thank you for the patch. >> >> On

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

Re: [PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-23 Thread Matt Ranostay
On Wed, Nov 23, 2016 at 8:30 AM, Laurent Pinchart <laurent.pinch...@ideasonboard.com> wrote: > Hi Matt, > > Thank you for the patch. > > On Tuesday 22 Nov 2016 17:18:40 Matt Ranostay wrote: >> There are several thermal sensors that only have a low-speed bus >> inte

[PATCH v3] media: i2c-polling: add i2c-polling driver

2016-11-22 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h Changes from v2: * fix build error due to typo in include of slab.h drivers/media/i2c/Kc

Re: [PATCH v2] media: i2c-polling: add i2c-polling driver

2016-11-08 Thread Matt Ranostay
;>> +#include Gah wondering how it built for me. will fix in v3 > > > 2016-11-08 9:00 GMT+03:00 Matt Ranostay <matt@ranostay.consulting>: >> >> There are several thermal sensors that only have a low-speed bus >> interface but output valid video data.

[PATCH v2] media: i2c-polling: add i2c-polling driver

2016-11-07 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- Changes from v1: * correct i2c_polling_remove() operations * fixed delay calcuation in buffer_queue() * add include linux/slab.h drivers/media/i2c/Kconfig | 8 + drivers/media/i2c/Makefile | 1 + dri

Re: [PATCH] media: i2c-polling: add i2c-polling driver

2016-11-06 Thread Matt Ranostay
On Sun, Nov 6, 2016 at 5:21 PM, Matt Ranostay <mranos...@gmail.com> wrote: > There are several thermal sensors that only have a low-speed bus > interface but output valid video data. This patchset enables support > for the AMG88xx "Grid-Eye" sensor family. > > Cc:

[PATCH] media: i2c-polling: add i2c-polling driver

2016-11-06 Thread Matt Ranostay
..@gentoo.org> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> --- drivers/media/i2c/Kconfig | 8 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/i2c-polling.c | 466 3 files changed, 475 insertions(+) create mode 1006

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Matt Ranostay
On Thu, Nov 3, 2016 at 8:11 AM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 03/11/2016 14:21, Attila Kinali wrote: >> On Wed, 2 Nov 2016 23:10:41 -0700 >> Matt Ranostay <matt@ranostay.consulting> wrote: >> >>> >>> So does anyone know of any so

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 7:59 PM, Matt Ranostay <matt@ranostay.consulting> wrote: > On Fri, Oct 28, 2016 at 2:53 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: >> Hi Matt, >> >> On 28/10/16 22:14, Matt Ranostay wrote: >>> >>> So want to toss a few th

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 2:53 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi Matt, > > On 28/10/16 22:14, Matt Ranostay wrote: >> >> So want to toss a few thoughts on adding support for thermopile >> devices (could be used for FLIR Lepton as well) that output

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 1:30 PM, Devin Heitmueller wrote: > Hi Matt, > >> Need some input for the video pixel data types, which the device we >> are using (see datasheet links below) is outputting pixel data in >> little endian 16-bit of which a 12-bits signed value

Re: [RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
On Fri, Oct 28, 2016 at 1:40 PM, Marek Vasut wrote: > On 10/28/2016 10:30 PM, Devin Heitmueller wrote: >> Hi Matt, >> >>> Need some input for the video pixel data types, which the device we >>> are using (see datasheet links below) is outputting pixel data in >>> little endian

[RFC] v4l2 support for thermopile devices

2016-10-28 Thread Matt Ranostay
So want to toss a few thoughts on adding support for thermopile devices (could be used for FLIR Lepton as well) that output pixel data. These typically aren't DMA'able devices since they are low speed (partly to limiting the functionality to be in compliance with ITAR) and data is piped over