[PATCH v2] iio: health: max30100: add config for LED current

2015-12-29 Thread Matt Ranostay
Allow the current for both RED and IR LEDs to be set via an device tree property setting. This is an optional setting that is useful for applications that have a known glass attenuation factor. Signed-off-by: Matt Ranostay --- Changes from v2: * change to use microamp property name from LED

Re: [PATCH] iio: health: max30100: add config for LED current

2015-12-29 Thread Matt Ranostay
On Tue, Dec 29, 2015 at 10:34 AM, Rob Herring wrote: > On Sat, Dec 26, 2015 at 08:38:24PM -0800, Matt Ranostay wrote: >> Allow the current for both RED and IR LEDs to be set via an device tree >> property setting. >> >> This is an optional setting that is useful f

[PATCH] iio: health: max30100: add config for LED current

2015-12-26 Thread Matt Ranostay
Allow the current for both RED and IR LEDs to be set via an device tree property setting. This is an optional setting that is useful for applications that have a known glass attenuation factor. Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/health/max30100.txt | 7

[PATCH v5 1/4] iio: chemical: Add IIO_CONCENTRATION channel type

2015-09-13 Thread Matt Ranostay
use case. Modifiers for IIO_MOD_CO2 and IIO_MOD_VOC gas types are defined. Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 11 +++ drivers/iio/industrialio-core.c | 3 +++ include/uapi/linux/iio/types.h | 3 +++ 3 files changed, 17 insertions

[PATCH v5 2/4] iio: resistance: add IIO_RESISTANCE channel type

2015-09-13 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 8 drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/types.h | 1 + 3 files changed, 10 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI

[PATCH v5 0/4] iio: new chemical sensor framework and channel types

2015-09-13 Thread Matt Ranostay
Changes from v4: * Add IIO_MOD_CO2 and IIO_MOD_VOC modifiers * Updated IIO_RESISTANCE and IIO_CONCENTRATION documentation * Moved the decimal point shifting to the scale value versus the reading Matt Ranostay (4): iio: chemical: Add IIO_CONCENTRATION channel type iio: resistance: add

[PATCH v5 4/4] iio: chemical: add SGX VZ89x VOC sensor support

2015-09-13 Thread Matt Ranostay
Add support for VZ89X sensors VOC and CO2 reporting channels in percentage which can be converted to part per million. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-chemical-vz89x | 7 + .../devicetree/bindings/i2c/trivial-devices.txt| 1 + drivers/iio/Kconfig

[PATCH v5 3/4] devicetree: add SGX Sensortech vendor id

2015-09-13 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index ac5f0c3..281e8f0 100644 --- a

[RFC v3 4/4] iio: chemical: add SGX VZ89x VOC sensor support

2015-09-08 Thread Matt Ranostay
Add support for VZ89X sensors VOC and CO2 reporting channels in percentage which can be converted to part per million. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-chemical-vz89x | 30 +++ .../devicetree/bindings/i2c/trivial-devices.txt| 1 + drivers/iio/Kconfig

[RFC v3 3/4] devicetree: add SGX Sensortech vendor id

2015-09-08 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index ac5f0c3..281e8f0 100644 --- a

[RFC v3 0/4] iio: new chemical sensor framework and channel types

2015-09-08 Thread Matt Ranostay
Changes from RFC v2: * Proper usage of IIO_CHAN_INFO_OFFSET values for VOC and CO2 channels * Return CO2 offset that combines the 400 ppm offset and -13 value correction Matt Ranostay (4): iio: chemical: Add IIO_CONCENTRATION channel type iio: resistance: add IIO_RESISTANCE channel type

[RFC v3 2/4] iio: resistance: add IIO_RESISTANCE channel type

2015-09-08 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 7 +++ drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/types.h | 1 + 3 files changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing

[RFC v3 1/4] iio: chemical: Add IIO_CONCENTRATION channel type

2015-09-08 Thread Matt Ranostay
use case. Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 7 +++ drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/types.h | 1 + 3 files changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation

Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support

2015-09-06 Thread Matt Ranostay
Thinking this over do we needed a IIO_CHAN_INFO_PROCESSED_OFFSET to signal that it needs to be after the (value - offset) * scale calculation? Thanks, Matt On Sun, Sep 6, 2015 at 9:20 PM, Matt Ranostay wrote: > Also one thing to note here is calculation is ((value - 13) * scale)) > +

Re: [RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support

2015-09-06 Thread Matt Ranostay
PM, Matt Ranostay wrote: >> >> Add support for VZ89X sensors VOC and CO2 reporting channels in >> percentage which can be converted to part per million. >> >> Signed-off-by: Matt Ranostay >> --- >> .../ABI/testing/sysfs-bus-iio-chemical-vz89x

[RFC v2 2/4] iio: resistance: add IIO_RESISTANCE channel type

2015-09-06 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 7 +++ drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/types.h | 1 + 3 files changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing

[RFC v2 1/4] iio: chemical: Add IIO_CONCENTRATION channel type

2015-09-06 Thread Matt Ranostay
use case. Signed-off-by: Matt Ranostay --- Documentation/ABI/testing/sysfs-bus-iio | 7 +++ drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/types.h | 1 + 3 files changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation

[RFC v2 4/4] iio: chemical: add SGX VZ89x VOC sensor support

2015-09-06 Thread Matt Ranostay
Add support for VZ89X sensors VOC and CO2 reporting channels in percentage which can be converted to part per million. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-chemical-vz89x | 30 +++ .../devicetree/bindings/i2c/trivial-devices.txt| 1 + drivers/iio/Kconfig

[RFC v2 3/4] devicetree: add SGX Sensortech vendor id

2015-09-06 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index ac5f0c3..281e8f0 100644 --- a

[RFC v2 0/4] iio: new chemical sensor framework and channel types

2015-09-06 Thread Matt Ranostay
-vz89x documentation Matt Ranostay (4): iio: chemical: Add IIO_CONCENTRATION channel type iio: resistance: add IIO_RESISTANCE channel type devicetree: add SGX Sensortech vendor id iio: chemical: add SGX VZ89x VOC sensor support Documentation/ABI/testing/sysfs-bus-iio| 14

Re: [PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-17 Thread Matt Ranostay
On Sun, Aug 16, 2015 at 1:24 AM, Jonathan Cameron wrote: > On 12/08/15 07:01, Matt Ranostay wrote: >> Add support for the PulsedLight LIDAR rangefinder sensor which allows >> high speed (over 300Hz) distance measurements using Barker Coding within >> 40 meter range. >>

[PATCH v5 0/2] iio: proximity: add PulsedLight LIDAR sensor support

2015-08-11 Thread Matt Ranostay
pulsedlight-lidar-lite-v2 to resolve confusion that v1 will likely not work with this driver Matt Ranostay (2): devicetree: add PulsedLight vendor + device docs iio: proximity: add support for PulsedLight LIDAR .../devicetree/bindings/i2c/trivial-devices.txt| 1 + .../devicetree

[PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-11 Thread Matt Ranostay
lidar-lite-v2.c b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c new file mode 100644 index 000..ff0681b --- /dev/null +++ b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c @@ -0,0 +1,292 @@ +/* + * pulsedlight-lidar-lite-v2.c - Support for PulsedLight LIDAR sensor + * + * Copyright (C) 2015 Mat

[PATCH 1/2] devicetree: add PulsedLight vendor + device docs

2015-08-11 Thread Matt Ranostay
Add pulsedlight vendor to vendor-prefixes.txt, and LIDAR device documentation to trivial-devices.txt Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions

Re: [PATCH v4 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-11 Thread Matt Ranostay
On Sat, Aug 8, 2015 at 8:05 AM, Jonathan Cameron wrote: > On 05/08/15 05:41, Matt Ranostay wrote: >> Add support for the PulsedLight LIDAR rangefinder sensor which allows >> high speed (over 300Hz) distance measurements using Barker Coding within >> 40 meter range. >>

[PATCH v6 1/2] iio: light: DT binding docs for APDS9960 driver

2015-08-09 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Reviewed-by: Marek Vasut Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation

[PATCH v6 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-08-09 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 |7 + drivers/iio/light/Kconfig

[PATCH v6 0/2] iio: light: add support for APDS9960 sensor

2015-08-09 Thread Matt Ranostay
is un-needed * Using KFIFO buffers to send gesture data Matt Ranostay (2): iio: light: DT binding docs for APDS9960 driver iio: light: add APDS9960 ALS + promixity driver .../ABI/testing/sysfs-bus-iio-light-apds9960 |7 + .../devicetree/bindings/iio/light/apds9960.txt | 22

[PATCH v5 1/2] iio: light: DT binding docs for APDS9960 driver

2015-08-08 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Reviewed-by: Marek Vasut Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation

[PATCH v5 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-08-08 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 |7 + drivers/iio/light/Kconfig

[PATCH v5 0/2] iio: light: add support for APDS9960 sensor

2015-08-08 Thread Matt Ranostay
interupt handler for the triggered buffer * Push data directly to buffers avoiding needing use a irq_work queue * Switch to apds9960_buffer_*disable in buffer setup ops * Minor comment changes Matt Ranostay (2): iio: light: DT binding docs for APDS9960 driver iio: light: add APDS9960 ALS

Re: [PATCH v4 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-08-06 Thread Matt Ranostay
On Sun, Aug 2, 2015 at 9:15 AM, Jonathan Cameron wrote: > On 20/07/15 05:00, Matt Ranostay wrote: >> APDS9960 is a combination of ALS, proximity, and gesture sensors. >> >> This patch adds support for these functions along with gain control, >> integration time, and eve

[PATCH v4 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-04 Thread Matt Ranostay
null +++ b/drivers/iio/proximity/lidar.c @@ -0,0 +1,294 @@ +/* + * lidar.c - Support for PulsedLight LIDAR range finding sensor + * + * Copyright (C) 2015 Matt Ranostay + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public Licen

[PATCH v4 0/2] iio: proximity: add PulsedLight LIDAR sensor support

2015-08-04 Thread Matt Ranostay
This patchset adds support for this range finding LIDAR module, and reports distance back in meters to centimeter resolution with +/- 2.5 CM of accuracy at ~40 meters. Changes from v3: * removed rogue stray newline * made buffer parameter 16 bytes to fit alignment Matt Ranostay (2): devicetree

[PATCH v4 1/2] devicetree: add PulsedLight vendor + device docs

2015-08-04 Thread Matt Ranostay
Add pulsedlight vendor to vendor-prefixes.txt, and LIDAR device documentation to trivial-devices.txt Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions

[PATCH RESEND 1/2] dt: add cap11xx LED documentation

2015-08-04 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/input/cap11xx.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap11xx.txt b/Documentation/devicetree/bindings/input/cap11xx.txt index 7d0a300..8c67a0b 100644

[PATCH RESEND 0/2] cap11xx: add LED support

2015-08-04 Thread Matt Ranostay
Several cap11xx variants have LEDs that be can be controlled, and this patchset implements this functionality Matt Ranostay (2): dt: add cap11xx LED documentation cap11xx: add LED support .../devicetree/bindings/input/cap11xx.txt | 19 +++ drivers/input/keyboard/cap11xx.c

[PATCH RESEND 2/2] cap11xx: add LED support

2015-08-04 Thread Matt Ranostay
Several cap11xx variants have LEDs that be can be controlled, this patchset implements this functionality. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap11xx.c | 140 ++- 1 file changed, 137 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [PATCH v3 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-04 Thread Matt Ranostay
nly tested on the "blue label" rev 2, but may work using low >> sample frequencies on the original version. >> >> Signed-off-by: Matt Ranostay >> --- >> drivers/iio/proximity/Kconfig | 12 ++ >> drivers/iio/proximity/Makefile | 1 + >> driver

[PATCH v3 1/2] devicetree: add PulsedLight vendor + device docs

2015-08-03 Thread Matt Ranostay
Add pulsedlight vendor to vendor-prefixes.txt, and LIDAR device documentation to trivial-devices.txt Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions

[PATCH v3 0/2] iio: proximity: add PulsedLight LIDAR sensor support

2015-08-03 Thread Matt Ranostay
acy at ~40 meters. Changes from v2: * Add of_match_table for dt lookup * Return error if timeout happens in reading measurement * Document why i2c_smbus_read_byte_data can't be used * Add pulsedlight,lidar to trivial-devices.txt Matt Ranostay (2): devicetree: add PulsedLight vendor + de

[PATCH v3 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-03 Thread Matt Ranostay
null +++ b/drivers/iio/proximity/lidar.c @@ -0,0 +1,295 @@ +/* + * lidar.c - Support for PulsedLight LIDAR range finding sensor + * + * Copyright (C) 2015 Matt Ranostay + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public Licen

Re: [PATCH 2/3] iio: temperature: add max6675 thermocouple converter driver

2015-08-03 Thread Matt Ranostay
On Mon, Aug 3, 2015 at 1:56 PM, Matt Porter wrote: > Add a driver for the MAX6675 thermocouple converter. This > device interfaces with K-type thermocouples and provides > cold-junction compensated temperature readings via a > SPI interface. > > Signed-off-by: Matt Porter > --- > drivers/iio/tem

Re: [PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-03 Thread Matt Ranostay
On Mon, Aug 3, 2015 at 1:00 AM, Lars-Peter Clausen wrote: > On 08/02/2015 11:28 PM, Matt Ranostay wrote: >> On Sun, Aug 2, 2015 at 2:42 AM, Lars-Peter Clausen wrote: >>> On 08/01/2015 05:58 AM, Matt Ranostay wrote: >>> [...] >>>> + >>>>

[PATCH v2 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-02 Thread Matt Ranostay
null +++ b/drivers/iio/proximity/lidar.c @@ -0,0 +1,284 @@ +/* + * lidar.c - Support for PulsedLight LIDAR range finding sensor + * + * Copyright (C) 2015 Matt Ranostay + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public Licen

[PATCH v2 0/2] iio: proximity: add PulsedLight LIDAR sensor support

2015-08-02 Thread Matt Ranostay
acy at ~40 meters. Changesfrom v1: * Add check for invalid signal return * Removed un-nedded IIO_CHAN_INFO_CALIBBIAS software biasing * Mark i2c buffer cacheline aligned * Added IIO_CHAN_INFO_SCALE for centimeter scale * Minor tab alignment changes Matt Ranostay (2): devicetree: add PulsedLi

[PATCH v2 1/2] devicetree: add PulsedLight vendor prefix

2015-08-02 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 6284568..0f318c3 100644 --- a

Re: [PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-02 Thread Matt Ranostay
On Sun, Aug 2, 2015 at 2:42 AM, Lars-Peter Clausen wrote: > On 08/01/2015 05:58 AM, Matt Ranostay wrote: > [...] >> + >> +struct lidar_data { >> + struct mutex lock; >> + struct iio_dev *indio_dev; >> + struct i2c_client *client; >> + >

Re: [PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-08-01 Thread Matt Ranostay
On Sat, Aug 1, 2015 at 2:17 PM, Jonathan Cameron wrote: > > > > On 1 August 2015 09:39:11 BST, Vladimir Barinov > wrote: >>Hi Matt, >> >>Find minor comments. >> >>On 01.08.2015 06:58, Matt Ranostay wrote: >>> Add support for the PulsedLigh

[PATCH 0/2] iio: proximity: add PulsedLight LIDAR sensor support

2015-07-31 Thread Matt Ranostay
2.5 CM of accuracy at ~40 meters. Matt Ranostay (2): devicetree: add PulsedLight vendor prefix iio: proximity: add support for PulsedLight LIDAR .../devicetree/bindings/vendor-prefixes.txt| 1 + drivers/iio/proximity/Kconfig | 13 + drivers/iio/proximit

[PATCH 2/2] iio: proximity: add support for PulsedLight LIDAR

2015-07-31 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- drivers/iio/proximity/Kconfig | 13 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/lidar.c | 309 + 3 files changed, 323 insertions(+) create mode 100644 drivers/iio/proximity/lidar.c diff --git a/d

[PATCH 1/2] devicetree: add PulsedLight vendor prefix

2015-07-31 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 181b53e..e466902 100644 --- a

Re: [PATCH v4 0/2] iio: light: add support for APDS9660 sensor

2015-07-28 Thread Matt Ranostay
Jonathan, Does this solve the issues in v3 minus the apds9960_regfield_init() cleanup? Thanks, Matt On Sun, Jul 19, 2015 at 8:57 PM, Matt Ranostay wrote: > This patchset adds support for the APDS9960 ALS + proximity + gesture > sensor. > > Included support for the various adjusta

[PATCH v4 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-19 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 |7 + drivers/iio/light/Kconfig

[PATCH 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-19 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 |7 + drivers/iio/light/Kconfig

[PATCH v4 1/2] iio: light: DT binding docs for APDS9960 driver

2015-07-19 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light

[PATCH v4 0/2] iio: light: add support for APDS9660 sensor

2015-07-19 Thread Matt Ranostay
efine, and prevent values less than 0 * Avoid needlessly checking the APDS9960_REG_GFLVL value until we read all the FIFO from the count value. Note this can save up to 32 superfluous i2c reads per gesture engine entry Matt Ranostay (2): iio: light: DT binding docs for APDS9960 driver

Re: [PATCH v3 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-19 Thread Matt Ranostay
On Sun, Jul 19, 2015 at 3:45 AM, Jonathan Cameron wrote: > On 13/07/15 03:20, Matt Ranostay wrote: >> APDS9960 is a combination of ALS, proximity, and gesture sensors. >> >> This patch adds support for these functions along with gain control, >> integration

Re: [PATCH v3 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-19 Thread Matt Ranostay
On Sun, Jul 19, 2015 at 3:45 AM, Jonathan Cameron wrote: > On 13/07/15 03:20, Matt Ranostay wrote: >> APDS9960 is a combination of ALS, proximity, and gesture sensors. >> >> This patch adds support for these functions along with gain control, >> integration

[PATCH 0/2] iio: temperature: add mcp98xx driver support

2015-07-18 Thread Matt Ranostay
This changeset adds driver support for the Microchip mcp98xx series of temperature sensors. This includes temperature reading, and rising/falling threshold events. Matt Ranostay (2): iio: temperature: DT binding doc for mcp98xx iio: temperature: add support for mcp98xx sensors .../bindings

[PATCH 1/2] iio: temperature: DT binding doc for mcp98xx

2015-07-18 Thread Matt Ranostay
Document compatible string, and required DT properties for mcp98xx chipset driver Signed-off-by: Matt Ranostay --- .../bindings/iio/temperature/mcp98xx.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio

[PATCH 2/2] iio: temperature: add support for mcp98xx sensors

2015-07-18 Thread Matt Ranostay
Add mcp98xx driver to allow temperature reading, and setting of upper and lower alert thresholds. Signed-off-by: Matt Ranostay --- drivers/iio/temperature/Kconfig | 10 + drivers/iio/temperature/Makefile | 1 + drivers/iio/temperature/mcp98xx.c | 588

Re: [PATCH v3 1/2] iio: light: DT binding docs for APDS9960 driver

2015-07-16 Thread Matt Ranostay
Ok will fix in v4. Please review the 2/2 patch when you get a chance :) On Mon, Jul 13, 2015 at 2:42 AM, Jonathan Cameron wrote: > > > On 13 July 2015 03:20:42 BST, Matt Ranostay wrote: >>Document compatible string, and required DT properties for APDS9960 >>chipset dri

[PATCH v3 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-12 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 | 128 +++ drivers/iio/light

[PATCH v3 0/2] iio: light: add support for APDS9660 sensor

2015-07-12 Thread Matt Ranostay
* Typo correction in pm_runtime* initialization Matt Ranostay (2): iio: light: DT binding docs for APDS9960 driver iio: light: add APDS9960 ALS + promixity driver .../ABI/testing/sysfs-bus-iio-light-apds9960 | 128 +++ .../devicetree/bindings/iio/light/apds9960.txt | 19

[PATCH v3 1/2] iio: light: DT binding docs for APDS9960 driver

2015-07-12 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Reviewed-by: Marek Vasut Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt| 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation

Re: [PATCH v2 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-08 Thread Matt Ranostay
On Tue, Jul 7, 2015 at 10:16 PM, Matt Ranostay wrote: > APDS9960 is a combination of ALS, proximity, and gesture sensors. > > This patch adds support for these functions along with gain control, > integration time, and event thresholds. > > Signed-off-by: Matt Ranostay > -

[PATCH v2 0/2] iio: light: add support for APDS9660 sensor

2015-07-07 Thread Matt Ranostay
be more clear about gesture features * Changed gain setting from IIO_CHAN_INFO_CALIBSCALE to IIO_CHAN_INFO_SCALE * Removed superfluous information in iio_chan_spec channels * Fixed likely buffer overrun issue * Make mutex and gain + it setting logic more clear * Fixed typos in comments Matt

[PATCH v2 1/2] iio: light: DT binding docs for APDS9960 driver

2015-07-07 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Reviewed-by: Marek Vasut Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt| 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation

[PATCH v2 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-07 Thread Matt Ranostay
APDS9960 is a combination of ALS, proximity, and gesture sensors. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 | 128 +++ drivers/iio/light

[PATCH 0/2] iio: light: add support for APDS9660 sensor

2015-07-06 Thread Matt Ranostay
This patchset adds support for the APDS9960 ALS + proximity + gesture sensor. Included support for the various adjustable settings and controls: * Falling and rising ALS + proximity thresholds events * Gain controls * ALS time integration Matt Ranostay (2): iio: light: DT binding docs for

[PATCH 2/2] iio: light: add APDS9960 ALS + promixity driver

2015-07-06 Thread Matt Ranostay
APDS9960 is a combination ALS, proximity, and gesture sensor. This patch adds support for these functions along with gain control, integration time, and event thresholds. Signed-off-by: Matt Ranostay --- .../ABI/testing/sysfs-bus-iio-light-apds9960 | 125 ++ drivers/iio/light/Kconfig

[PATCH 1/2] iio: light: DT binding docs for APDS9960 driver

2015-07-06 Thread Matt Ranostay
Document compatible string, and required DT properties for APDS9960 chipset driver. Reviewed-by: Marek Vasut Signed-off-by: Matt Ranostay --- .../devicetree/bindings/iio/light/apds9960.txt| 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation

Re: [PATCH v6 0/2] cap11xx: add LED support

2015-07-05 Thread Matt Ranostay
Was there any more input or changes needed for this patchset? Thanks, Matt On Tue, Jun 23, 2015 at 11:50 PM, Matt Ranostay wrote: > changes from v5: > * Dropped linux,led-brightness DT property > * Removed several ifdefs to LED CLASS > * Added cap11xx_init_leds stub > >

[PATCH v6 2/2] cap11xx: add LED support

2015-06-23 Thread Matt Ranostay
Several cap11xx variants have LEDs that be can be controlled, this patchset implements this functionality. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap11xx.c | 140 ++- 1 file changed, 137 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v6 1/2] dt: add cap11xx LED documentation

2015-06-23 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/input/cap11xx.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap11xx.txt b/Documentation/devicetree/bindings/input/cap11xx.txt index 7d0a300..8c67a0b 100644

[PATCH v6 0/2] cap11xx: add LED support

2015-06-23 Thread Matt Ranostay
changes from v5: * Dropped linux,led-brightness DT property * Removed several ifdefs to LED CLASS * Added cap11xx_init_leds stub Matt Ranostay (2): dt: add cap11xx LED documentation cap11xx: add LED support .../devicetree/bindings/input/cap11xx.txt | 19 +++ drivers/input/keyboard

Re: [PATCH v5 1/2] dt: add cap11xx LED documentation

2015-06-23 Thread Matt Ranostay
On Tue, Jun 23, 2015 at 11:07 AM, Dmitry Torokhov wrote: > On Tue, Jun 23, 2015 at 10:23:57AM -0700, Matt Ranostay wrote: >> On Tue, Jun 23, 2015 at 1:36 AM, Jacek Anaszewski >> wrote: >> > On 06/22/2015 07:59 PM, Dmitry Torokhov wrote: >> >> >> >>

Re: [PATCH v5 1/2] dt: add cap11xx LED documentation

2015-06-23 Thread Matt Ranostay
On Tue, Jun 23, 2015 at 1:36 AM, Jacek Anaszewski wrote: > On 06/22/2015 07:59 PM, Dmitry Torokhov wrote: >> >> On Wed, Jun 17, 2015 at 08:58:16PM -0700, Matt Ranostay wrote: >>> >>> Signed-off-by: Matt Ranostay >>> --- >>> .../

Re: [PATCH v5 2/2] cap11xx: add LED support

2015-06-19 Thread Matt Ranostay
On Wed, Jun 17, 2015 at 11:51 PM, Jacek Anaszewski wrote: > Hi Matt, > > > On 06/18/2015 05:58 AM, Matt Ranostay wrote: >> >> Several cap11xx variants have LEDs that be can be controlled, this >> patchset implements this functionality. >> >> Signed-off-by

[PATCH v5 1/2] dt: add cap11xx LED documentation

2015-06-17 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- .../devicetree/bindings/input/cap11xx.txt | 25 ++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap11xx.txt b/Documentation/devicetree/bindings/input/cap11xx.txt index 7d0a300..09cdc43 100644

[PATCH v5 0/2] cap11xx: add LED support

2015-06-17 Thread Matt Ranostay
detect if LEDs are in use and calculate which power state it should be in. Matt Ranostay (2): dt: add cap11xx LED documentation cap11xx: add LED support .../devicetree/bindings/input/cap11xx.txt | 25 drivers/input/keyboard/cap11xx.c | 140

[PATCH v5 2/2] cap11xx: add LED support

2015-06-17 Thread Matt Ranostay
Several cap11xx variants have LEDs that be can be controlled, this patchset implements this functionality. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap11xx.c | 141 ++- 1 file changed, 138 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-17 Thread Matt Ranostay
On Wed, Jun 17, 2015 at 3:38 PM, Dmitry Torokhov wrote: > On Wed, Jun 17, 2015 at 02:53:26PM -0700, Matt Ranostay wrote: >> On Wed, Jun 17, 2015 at 1:59 AM, Daniel Mack wrote: >> > On 06/17/2015 08:49 AM, Matt Ranostay wrote: >> >> Actually after further reading of

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-17 Thread Matt Ranostay
On Wed, Jun 17, 2015 at 1:59 AM, Daniel Mack wrote: > On 06/17/2015 08:49 AM, Matt Ranostay wrote: >> Actually after further reading of the datasheet and testing with >> i2ctools it seems cap11xx_input_close() isn't putting the device in >> DEEP SLEEP mode. >> &g

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-16 Thread Matt Ranostay
Actually after further reading of the datasheet and testing with i2ctools it seems cap11xx_input_close() isn't putting the device in DEEP SLEEP mode. Any thoughts why? On Tue, Jun 16, 2015 at 11:34 PM, Matt Ranostay wrote: > On Tue, Jun 16, 2015 at 2:55 PM, Matt Ranostay wrote: >&g

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-16 Thread Matt Ranostay
On Tue, Jun 16, 2015 at 2:55 PM, Matt Ranostay wrote: > On Tue, Jun 16, 2015 at 2:26 PM, Daniel Mack wrote: >> On 06/16/2015 04:39 PM, Matt Ranostay wrote: >>> On Tue, Jun 16, 2015 at 12:54 AM, Jacek Anaszewski >>> wrote: >>>> On 0

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-16 Thread Matt Ranostay
On Tue, Jun 16, 2015 at 2:26 PM, Daniel Mack wrote: > On 06/16/2015 04:39 PM, Matt Ranostay wrote: >> On Tue, Jun 16, 2015 at 12:54 AM, Jacek Anaszewski >> wrote: >>> On 06/16/2015 04:46 AM, Matt Ranostay wrote: > >>>> + for_each_child_of_node(

Re: [PATCH v4 2/2] cap11xx: add LED support

2015-06-16 Thread Matt Ranostay
On Tue, Jun 16, 2015 at 12:54 AM, Jacek Anaszewski wrote: > On 06/16/2015 04:46 AM, Matt Ranostay wrote: >> >> Several cap11xx variants have LEDs that be can be controlled, this >> patchset implements this functionality. >> >> Signed-off-by: Matt Ranostay &

Re: [PATCH v4 1/2] dt: add cap11xx LED documentation

2015-06-16 Thread Matt Ranostay
On Tue, Jun 16, 2015 at 12:57 AM, Jacek Anaszewski wrote: > On 06/16/2015 04:46 AM, Matt Ranostay wrote: >> >> Signed-off-by: Matt Ranostay >> --- >> .../devicetree/bindings/input/cap11xx.txt | 23 >> ++ >> 1 file chang

[PATCH v4 1/2] dt: add cap11xx LED documentation

2015-06-15 Thread Matt Ranostay
Signed-off-by: Matt Ranostay --- .../devicetree/bindings/input/cap11xx.txt | 23 ++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap11xx.txt b/Documentation/devicetree/bindings/input/cap11xx.txt index 7d0a300..01bb5b8 100644

[PATCH v4 2/2] cap11xx: add LED support

2015-06-15 Thread Matt Ranostay
Several cap11xx variants have LEDs that be can be controlled, this patchset implements this functionality. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap11xx.c | 128 ++- 1 file changed, 125 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v4 0/2] cap118x: add LED support

2015-06-15 Thread Matt Ranostay
Changes from v3: * Fix race condition in work_queue * Make 0 value (0% duty cycle) an invalid brightness option * Document why LED brightness is only set global but ON/OFF state isn't Matt Ranostay (2): dt: add cap11xx LED documentation cap11xx: add LED support .../devicetree/bin

Re: [PATCH v3 2/2] cap11xx: add LED support

2015-06-15 Thread Matt Ranostay
On Mon, Jun 15, 2015 at 3:11 AM, Jacek Anaszewski wrote: > On 06/15/2015 10:56 AM, Matt Ranostay wrote: >> >> On Mon, Jun 15, 2015 at 1:15 AM, Jacek Anaszewski >> wrote: >>> >>> Hi Matt, >>> >>> >>> On 06/13/2015 06:17 AM, Matt

Re: [PATCH v3 2/2] cap11xx: add LED support

2015-06-15 Thread Matt Ranostay
On Mon, Jun 15, 2015 at 2:03 AM, Daniel Mack wrote: > On 06/15/2015 10:56 AM, Matt Ranostay wrote: >> On Mon, Jun 15, 2015 at 1:15 AM, Jacek Anaszewski >> wrote: > >>>> + error = devm_led_classdev_register(dev, &led->cdev

Re: [PATCH v3 1/2] dt: add cap11xx LED documentation

2015-06-15 Thread Matt Ranostay
On Mon, Jun 15, 2015 at 3:10 AM, Jacek Anaszewski wrote: > On 06/15/2015 10:48 AM, Matt Ranostay wrote: >> >> On Mon, Jun 15, 2015 at 1:15 AM, Jacek Anaszewski >> wrote: >>> >>> Hi Matt, >>> >>> On 06/13/2015 06:17 AM, Matt Ranostay wrot

Re: [PATCH v3 2/2] cap11xx: add LED support

2015-06-15 Thread Matt Ranostay
On Mon, Jun 15, 2015 at 1:15 AM, Jacek Anaszewski wrote: > Hi Matt, > > > On 06/13/2015 06:17 AM, Matt Ranostay wrote: >> >> Several cap11xx variants have LEDs that be can be controlled, this >> patchset implements this functionality. >> >> Signed-off-by

Re: [PATCH v3 1/2] dt: add cap11xx LED documentation

2015-06-15 Thread Matt Ranostay
On Mon, Jun 15, 2015 at 1:15 AM, Jacek Anaszewski wrote: > Hi Matt, > > On 06/13/2015 06:17 AM, Matt Ranostay wrote: >> >> Some cap11xx devices have LEDs that can be controlled from userpace >> and via triggers. Document their use and functionality here. >>

[PATCH v3 1/2] dt: add cap11xx LED documentation

2015-06-12 Thread Matt Ranostay
Some cap11xx devices have LEDs that can be controlled from userpace and via triggers. Document their use and functionality here. Signed-off-by: Matt Ranostay --- .../devicetree/bindings/input/cap11xx.txt | 23 ++ 1 file changed, 23 insertions(+) diff --git a

[PATCH v3 0/2] cap11xx: Add LED support to driver

2015-06-12 Thread Matt Ranostay
Changes from v2: * Use LED subsystem correctly, and dynamically allot used LEDs * Add LED trigger support (e.g. heartbeat, mmc trigger, etc) * Add DT properties for configuring LED usage, labels, and brightness Matt Ranostay (2): dt: add cap11xx LED documentation cap11xx: add LED support

  1   2   >