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
- 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
- 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
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
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
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
:
- 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"
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
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
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
.../
:
- 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"
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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):
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 --
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
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
- 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 ++
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
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
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
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
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
;> 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
> 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
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
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
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
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
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
.
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
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
.
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
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
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
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 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
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
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
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
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
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
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
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.
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/
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
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
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
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
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
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
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
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
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
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
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
101 - 170 of 170 matches
Mail list logo