[PATCH v3 2/2] iio: distance: add devantech us ranger srf04

2017-01-31 Thread Andreas Klinger
distance is calculated in the read function by using the ultrasonic speed at 20 degrees celsius which is about 343 m/s. Signed-off-by: Andreas Klinger --- MAINTAINERS| 6 + drivers/iio/proximity/Kconfig | 11 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio

[PATCH v4 0/3] iio: distance: srf08: add IIO driver for us ranger

2017-01-25 Thread Andreas Klinger
- alphabetic order in Makefile - use of u8 while accessing registers - avoid endianness problems with 16 bit values - missing return value checks - some explaining documentation added Andreas Klinger (3): iio: distance: srf08: add trivial DT binding iio: distance: srf08: add IIO driver for us

[PATCH v4 1/3] iio: distance: srf08: add trivial DT binding

2017-01-25 Thread Andreas Klinger
- Add DT binding for devantech,srf08 - Add vendor devantech to vendor list Signed-off-by: Andreas Klinger Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions

[PATCH v4 2/3] iio: distance: srf08: add IIO driver for us ranger

2017-01-25 Thread Andreas Klinger
ty and distance sensors" Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 13 +- drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/srf08.c | 398 + 3 files changed, 411 insertions(+), 1 deletion(-) create mode 100644 d

[PATCH v4 3/3] iio: distance: srf08: add driver ABI documentation

2017-01-25 Thread Andreas Klinger
Signed-off-by: Andreas Klinger --- .../ABI/testing/sysfs-bus-iio-distance-srf08 | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-distance-srf08 diff --git a/Documentation/ABI/testing/sysfs-bus-iio-distance-srf08 b

[PATCH 0/2] iio: distance: srf08: add IIO driver for us ranger

2017-01-10 Thread Andreas Klinger
sensor can be found here: http://www.robot-electronics.co.uk/htm/srf08tech.html Andreas Klinger (2): iio: distance: srf08: add trivial DT binding iio: distance: srf08: add IIO driver for srf08 .../devicetree/bindings/i2c/trivial-devices.txt| 1 + .../devicetree/bindings/vendor-prefixes.txt

[PATCH 2/2] iio: distance: srf08: add IIO driver for us ranger

2017-01-10 Thread Andreas Klinger
: - ranging mode in inches or in microseconds - ANN mode - change I2C address through this driver - light sensor The driver was added in the directory "proximity" of the iio subsystem in absence of another directory named "distance". There is also a new submenu "distance"

[PATCH 1/2] iio: distance: srf08: add trivial DT binding

2017-01-10 Thread Andreas Klinger
Add DT binding for devantech,srf08 Add vendor devantech to vendor list Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions(+) diff --git a

[PATCH v2 1/2] iio: distance: srf08: add trivial DT binding

2017-01-10 Thread Andreas Klinger
Add DT binding for devantech,srf08 Add vendor devantech to vendor list Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 2 insertions(+) diff --git a

[PATCH v2 0/2] iio: distance: srf08: add IIO driver for us ranger

2017-01-10 Thread Andreas Klinger
n Makefile - use of u8 while accessing registers - avoid endianness problems with 16 bit values - missing return value checks - some explaining documentation added Andreas Klinger (2): iio: distance: srf08: add trivial DT binding iio: distance: srf08: add IIO driver for us ranger .../

[PATCH v2 2/2] iio: distance: srf08: add IIO driver for us ranger

2017-01-10 Thread Andreas Klinger
: - ranging mode in inches or in microseconds - ANN mode - change I2C address through this driver - light sensor The driver was added in the directory "proximity" of the iio subsystem in absence of another directory named "distance". There is also a new submenu "distance"

Re: [PATCH v3 3/3] iio: distance: srf08: add driver ABI documentation

2017-01-22 Thread Andreas Klinger
Hi Jonathan, see question below. Andreas Jonathan Cameron schrieb am Sun, 22. Jan 13:41: > On 17/01/17 13:50, Andreas Klinger wrote: > > Add sysfs-bus-iio-distance-srf08 for individual attributes of the driver, > > especially: > > - sensitivity which the device documen

[PATCH 0/2] iio: distance: devantech srf04 us ranger

2017-01-28 Thread Andreas Klinger
ultrasonic speed of 343 m/s which is the correct value at 20 degrees celsius. For different temperatures one might want to compensate the temperature. Look at the source code for details. Documenation can be found at: http://www.robot-electronics.co.uk/htm/srf04tech.htm Andreas Klinger (2): iio

[PATCH 1/2] iio: distance: add dt binding for devantech-srf04

2017-01-28 Thread Andreas Klinger
This patch adds dt binding for devantech ultrasonic ranger srf04. The vendor "devantech" was already added to the vendor list with "[PATCH v4 1/3] iio: distance: srf08: add trivial DT binding" Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity

[PATCH 2/2] iio: distance: add devantech us ranger srf04

2017-01-28 Thread Andreas Klinger
function by using the ultrasonic speed at 20 degrees celsius which is about 343 m/s. Signed-off-by: Andreas Klinger --- MAINTAINERS| 6 + drivers/iio/proximity/Kconfig | 11 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/srf04.c | 269

[PATCH v2 0/2] iio: distance: devantech srf04 us ranger

2017-01-30 Thread Andreas Klinger
ime accepted as valid ultrasonic response - removed dev_info(); it was there for debugging reasons and is no longer needed - usage of devm_request_irq() and iio_device_register() Andreas Klinger (2): iio: distance: add dt binding for devantech-srf04 iio: distance: add devantech

[PATCH v2 1/2] iio: distance: add dt binding for devantech-srf04

2017-01-30 Thread Andreas Klinger
This patch adds dt binding for devantech ultrasonic ranger srf04. The vendor "devantech" was already added to the vendor list with "[PATCH v4 1/3] iio: distance: srf08: add trivial DT binding" Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantec

[PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-30 Thread Andreas Klinger
distance is calculated in the read function by using the ultrasonic speed at 20 degrees celsius which is about 343 m/s. Signed-off-by: Andreas Klinger --- MAINTAINERS| 6 + drivers/iio/proximity/Kconfig | 11 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio

[PATCH] pinctrl: fix pincontrol definition for marvell

2016-07-16 Thread Andreas Klinger
19 as well as 35 to 44 are usable. Pin settings i used can be found here: http://www.marvell.com/embedded-processors/kirkwood/assets/HW_88F6180_OpenSource.pdf Signed-off-by: Andreas Klinger --- drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 85 1 file changed, 43 inser

Re: [PATCH v3 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-20 Thread Andreas Klinger
Hello Lars, thank you for the thorough review. I have some questions. See below. Thanks, Andreas Lars-Peter Clausen schrieb am Mon, 19. Dec 17:28: > On 12/14/2016 05:17 PM, Andreas Klinger wrote: > [...] > > +#include > > +#include > > Since you used the consumer

[PATCH v4 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-21 Thread Andreas Klinger
elp text in Kconfig - removed dead code - removed unused power management - reduced channel spec to what is actually used - added error handling in case reset of chip not possible Andreas Klinger (2): iio: adc: hx711: Add DT binding for avia,hx711 iio: adc: hx711: Add IIO driver for

[PATCH v4 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-21 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list [PATCH v3 1/2] of this patch was Acked-by: Rob Herring Sorry, but i had to add the regulator (avdd-supply) and therefore it needs to be acked once again. Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia

[PATCH v4 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-21 Thread Andreas Klinger
offset and scale it. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 19 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/hx711.c | 466 +++ 3 files changed, 486 insertions(+) create mode 100644 drivers/iio/adc/hx711.c diff --git a

[PATCH 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-13 Thread Andreas Klinger
implemented using GPIO's. Documentation of the chip can be found here: https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf Andreas Klinger (2): documented DT-binding avia,hx711 added avia,hx711 driver .../devicetree/bindings/iio/adc/avia-hx711.txt | 23 ++ .../devic

[PATCH 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-13 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia-hx711.txt | 23 ++ .../devicetree/bindings/vendor-prefixes.txt| 1 + 2 files changed, 24 insertions(+) create mode 100644

[PATCH 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-13 Thread Andreas Klinger
This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting cells. The protocol is quite simple and using GPIO's: One GPIO is used as clock (SCK) while another GPIO is read (DOUT) Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 13 +++ drivers/iio/adc/Mak

[PATCH] pinctrl: fix DT bindings for marvell,kirkwood-pinctrl

2016-12-13 Thread Andreas Klinger
On Marvell mv88f6180 mpp pins range from 0 to 19 as well as from 35 to 44. This is already fixed in commit: 9573e7923007961799beff38bc5c5a7635634eef This is the documentation change for above commit. Signed-off-by: Andreas Klinger --- .../bindings/pinctrl/marvell,kirkwood-pinctrl.txt| 20

[PATCH v2 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-14 Thread Andreas Klinger
tion * Patch 2: "iio: adc: hx711: Add IIO driver for AVIA HX711" - updated help text in Kconfig - removed dead code - removed unused power management - reduced channel spec to what is actually used - added error handling in case reset of chip not possible Andreas Klinger (2):

[PATCH v2 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-14 Thread Andreas Klinger
zero offset and scale it. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 18 drivers/iio/adc/Makefile | 1 + drivers/iio/adc/hx711.c | 231 +++ 3 files changed, 250 insertions(+) create mode 100644 drivers/iio/adc/hx711.c diff --

[PATCH v2 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia-hx711.txt | 21 + .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 22 insertions(+) create mode 100644

Re: [PATCH v2 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Andreas Klinger
Hi Lars-Peter, Lars-Peter Clausen schrieb am Wed, 14. Dec 11:11: > On 12/14/2016 10:59 AM, Andreas Klinger wrote: > > Add DT bindings for avia,hx711 > > Add vendor avia to vendor list > > > > Signed-off-by: Andreas Klinger > > --- > > .../devicetree/bi

[PATCH v3 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-14 Thread Andreas Klinger
- reduced channel spec to what is actually used - added error handling in case reset of chip not possible Andreas Klinger (2): iio: adc: hx711: Add DT binding for avia,hx711 iio: adc: hx711: Add IIO driver for AVIA HX711 .../devicetree/bindings/iio/adc/avia-hx711.txt | 16 ++

[PATCH v3 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 16 Documentation/devicetree/bindings/vendor-prefixes.txt| 1 + 2 files changed, 17 insertions(+) create mode 100644

[PATCH v3 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-14 Thread Andreas Klinger
offset and scale it. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 18 +++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/hx711.c | 292 +++ 3 files changed, 311 insertions(+) create mode 100644 drivers/iio/adc/hx711.c diff --git a

Re: [PATCH 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-19 Thread Andreas Klinger
Hello Matt, thank you for your suggestions. See below. Matt Ranostay schrieb am Sat, 17. Dec 00:53: > On Tue, Dec 13, 2016 at 10:02 AM, Andreas Klinger wrote: > > This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting > > cells. > > First off cool

[PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-03-27 Thread Andreas Klinger
While calculating the compensation of the humidity there are negative values interpreted as unsigned because of unsigned variables used. These values need to be casted to signed as indicated by the documentation of the sensor. Signed-off-by: Andreas Klinger --- drivers/iio/pressure/bmp280

[PATCH v3] iio: bmp280: fix compensation of humidity

2020-05-04 Thread Andreas Klinger
t the clamp. The writer of this patch was working with this type of sensor without noting this error. So it seems to be a rare event when this bug occures. Signed-off-by: Andreas Klinger --- Change to v2: Thanks to the review of Jonathan a more descriptive commit message is added. Change to v1: T

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-07 Thread Andreas Klinger
;> 15)) >> 7) * H1) >> 4; printf("without cast: var: %d\n", var>>12); return 0; } --- Output: with cast:-24544 without cast: 4169760 t_fine: 50623; humidity: 28275 H: 75; 360; 0; 324; 0; 30 with cast:var: 41671 without cast: var: 12

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-10 Thread Andreas Klinger
> On Fri, Apr 7, 2017 at 12:27 PM, Andreas Klinger wrote: > > Hi Matt, > > > > i've extracted the error condition in a small userspace application for > > demonstration. Just compile and see that in this case the variable H3 is > > zero > > but the wh

[PATCH v2] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-10 Thread Andreas Klinger
signed; otherwise calculation is not correct I removed the Acked-By of Linus Walleij because of another change in the calculation. Don't know how it should be treated. Signed-off-by: Andreas Klinger --- drivers/iio/pressure/bmp280-core.c | 11 ++- 1 file changed, 6 insertions(+), 5 dele

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-02 Thread Andreas Klinger
Linus Walleij schrieb am Sun, 02. Apr 16:56: > On Sun, Apr 2, 2017 at 11:32 AM, Jonathan Cameron wrote: > > On 27/03/17 11:06, Andreas Klinger wrote: > >> While calculating the compensation of the humidity there are negative > >> values interpreted as unsigned because

Re: [PATCH v2 2/2] iio: hx711: fix bug in reset functionality

2017-12-05 Thread Andreas Klinger
Hi Jonathan, see answer to your question below. Andreas Jonathan Cameron schrieb am Sat, 02. Dec 13:22: > On Thu, 30 Nov 2017 22:44:45 +0100 > Andreas Klinger wrote: > > > return value in hx711_reset() should indicate status of dout > > otherwise the calling function

[PATCH v3 0/2] iio: hx711: add buffered trigger support

2017-12-06 Thread Andreas Klinger
eries adds: - support for buffered triggers - fixes a bug in the reset functionality Andreas Klinger (2): iio: hx711: add triggered buffer support iio: hx711: fix bug in reset functionality drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/hx711.c

[PATCH v3 1/2] iio: hx711: add triggered buffer support

2017-12-06 Thread Andreas Klinger
dummy read. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/hx711.c | 104 +++- 2 files changed, 88 insertions(+), 18 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index af4fc1279409

[PATCH v3 2/2] iio: hx711: fix bug in reset functionality

2017-12-06 Thread Andreas Klinger
. When changing the channel on every trigger event the former 100 ms are not enough for waiting until the device indicates normal mode. Wait up to 1 second until the device turns into normal mode. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 13 ++--- 1 file changed, 6

[PATCH v4 0/2] iio: hx711: add buffered trigger support

2017-12-13 Thread Andreas Klinger
trigger handler changes in v2: - in Kconfig it's needed to select IIO_BUFFER and IIO_TRIGGERED_BUFFER to compile cleanly with buffered triggers This small patch series adds: - support for buffered triggers - fixes a bug in the reset functionality Andreas Klinger (2): iio: hx711

[PATCH v4 2/2] iio: hx711: fix bug in reset functionality

2017-12-13 Thread Andreas Klinger
. When changing the channel on every trigger event the former 100 ms are not enough for waiting until the device indicates normal mode. Wait up to 1 second until the device turns into normal mode. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 13 ++--- 1 file changed, 6

[PATCH v4 1/2] iio: hx711: add triggered buffer support

2017-12-13 Thread Andreas Klinger
dummy read. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/hx711.c | 121 +++- 2 files changed, 100 insertions(+), 23 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index af4fc1279409

[PATCH] iio: bmp280: properly initialize device for humidity reading

2017-07-25 Thread Andreas Klinger
datasheet of the BME280. Furthermore proper error detection is added in case a skipped value is read from the device. This is done also for pressure and temperature reading. Especially it don't make sense to compensate this value and treat it as regular value. Signed-off-by: Andreas Kl

[PATCH v2 1/5] iio: srf08: add device tree binding for srf02 and srf10

2017-08-14 Thread Andreas Klinger
add trivial device tree binding "devantech,srf02" and "devantech,srf10" Signed-off-by: Andreas Klinger Acked-by: Jonathan Cameron --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/

[PATCH v2 0/5] iio: srf08: add support for similar devices and triggered buffers

2017-08-14 Thread Andreas Klinger
[PATCH 6/7] iio: srf08: add buffered to device mode" - incorporated patch "[PATCH 7/7] iio: srf08: change text in Kconfig" where suitable - changed order of patches to improve logical flow of changes - improved distinction of sensor types Andreas Klinger (5): iio: srf08: add devi

[PATCH v2 2/5] iio: srf08: add device tree table

2017-08-14 Thread Andreas Klinger
Added MODULE_DEVICE_TABLE for device tree bindings. It used to work without it by using the i2c_device_id table, but adding the table makes everything clear and documented. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 8 1 file changed, 8 insertions(+) diff

[PATCH v2 3/5] iio: srf08: add triggered buffer support

2017-08-14 Thread Andreas Klinger
Add support for triggered buffers. Data format is quite simple: distance 16 Bit alignment48 Bit timestamp64 Bit Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 59 --- 1 file changed, 56 insertions(+), 3 deletions

[PATCH v2 4/5] iio: srf08: add sensor type srf10

2017-08-14 Thread Andreas Klinger
range and values of register gain (in the driver it's call sensitivity). Therefore the array of it is extended and dependent of the sensor type. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 4 +-- drivers/iio/proximity/srf08.c

[PATCH v2 5/5] iio: srf08: add support for srf02 in i2c mode

2017-08-14 Thread Andreas Klinger
srf02 added with support for i2c interface Attributes for setting max range or sensitivity are omitted for the case of srf02 type sensor, because they are not supported by the hardware. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 8 ++--- drivers/iio/proximity/srf08.c

Re: [PATCH v2 1/5] iio: srf08: add device tree binding for srf02 and srf10

2017-08-14 Thread Andreas Klinger
Wolfram Sang schrieb am Mon, 14. Aug 11:11: > On Mon, Aug 14, 2017 at 10:59:41AM +0200, Andreas Klinger wrote: > > add trivial device tree binding "devantech,srf02" and "devantech,srf10" > > > > Signed-off-by: Andreas Klinger > > Acked-by: Jonathan

[PATCH 0/7] iio: srf08: add support for similar devices and triggered buffers

2017-08-02 Thread Andreas Klinger
This patch series adds support for the ultrasonic devices srf02 and srf10. Triggered buffer support is added Andreas Klinger (7): iio: srf08: add device tree binding for srf02 and srf10 iio: srf08: add sensor type srf10 iio: srf08: add triggered buffer support iio: srf08: add device tree

[PATCH 1/7] iio: srf08: add device tree binding for srf02 and srf10

2017-08-02 Thread Andreas Klinger
add trivial device tree binding "devantech,srf02" and "devantech,srf10" Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.

[PATCH 2/7] iio: srf08: add sensor type srf10

2017-08-02 Thread Andreas Klinger
ff-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 59 +++ 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/iio/proximity/srf08.c b/drivers/iio/proximity/srf08.c index 49316cbf7c60..350b5b0eb64e 100644 --- a/drivers/iio/proximity/

[PATCH 3/7] iio: srf08: add triggered buffer support

2017-08-02 Thread Andreas Klinger
Add support for triggered buffers. Data format is quite simple: distance 16 Bit alignment48 Bit timestamp64 Bit Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 45 +-- 1 file changed, 43 insertions(+), 2 deletions

[PATCH 4/7] iio: srf08: add device tree table

2017-08-02 Thread Andreas Klinger
Added MODULE_DEVICE_TABLE for device tree bindings. It used to work without it by using the i2c_device_id table, but adding the table makes everything clear and documented. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH 5/7] iio: srf08: add support for srf02 in i2c mode

2017-08-02 Thread Andreas Klinger
srf02 added with support for i2c interface Attributes for setting max range or sensitivity are omitted for the case of srf02 type sensor, because they are not supported by the hardware. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 56

[PATCH 6/7] iio: srf08: add buffered to device mode

2017-08-02 Thread Andreas Klinger
Add INDIO_BUFFER_TRIGGERED and INDIO_BUFFER_SOFTWARE to device mode Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf08.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iio/proximity/srf08.c b/drivers/iio/proximity/srf08.c index a63c272c3b22

[PATCH 7/7] iio: srf08: change text in Kconfig

2017-08-02 Thread Andreas Klinger
Changed text in menu entry and help text to reflect recent changes Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index 5b81a8c9d438

[PATCH 0/2] iio: hx711: add buffered trigger support

2017-11-28 Thread Andreas Klinger
This small patch series adds: - support for buffered triggers - fixes a bug in the reset functionality Andreas Klinger (2): iio: hx711: add triggered buffer support iio: hx711: fix bug in hx711_reset drivers/iio/adc/hx711.c | 119 ++-- 1 file

[PATCH 1/2] iio: hx711: add triggered buffer support

2017-11-28 Thread Andreas Klinger
dummy read. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 106 1 file changed, 88 insertions(+), 18 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index d10b9f13d557..d773fd69a76d 100644 --- a/drivers

[PATCH 2/2] iio: hx711: fix bug in reset functionality

2017-11-28 Thread Andreas Klinger
waiting until the device is in normal mode Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index d773fd69a76d..eabd2e66aca3 100644 --- a/drivers/iio/adc/hx711

[PATCH v2 0/2] iio: hx711: add buffered trigger support

2017-11-30 Thread Andreas Klinger
changes in v2: - in Kconfig it's needed to select IIO_BUFFER and IIO_TRIGGERED_BUFFER to compile cleanly with buffered triggers This small patch series adds: - support for buffered triggers - fixes a bug in the reset functionality Andreas Klinger (2): iio: hx711: add triggered buffer su

[PATCH v2 1/2] iio: hx711: add triggered buffer support

2017-11-30 Thread Andreas Klinger
dummy read. Signed-off-by: Andreas Klinger --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/hx711.c | 106 2 files changed, 90 insertions(+), 18 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index af4fc1279409

[PATCH v2 2/2] iio: hx711: fix bug in reset functionality

2017-11-30 Thread Andreas Klinger
waiting until the device is in normal mode Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index d773fd69a76d..eabd2e66aca3 100644 --- a/drivers/iio/adc/hx711

<    1   2