2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-07 13:13:57 +08:00
linux-next/drivers/iio
Sanchayan Maity 5e9972cd6f iio: adc: vf610: Determine sampling frequencies by using minimum sample time
The driver currently does not take into account the minimum sample time
as per the Figure 6-8 Chapter 9.1.1 12-bit ADC electrical characteristics.
We set a static amount of cycles instead of considering the sample time
as a given value, which depends on hardware characteristics.

Determine sampling frequencies by first reading the device tree property
node and then calculating the required Long Sample Time Adder (LSTAdder)
value, based on the ADC clock frequency and sample time value obtained
from the device tree. This LSTAdder value is then used for calculating
the sampling frequencies possible.

In case the sample time property is not specified through the device
tree, a safe default value of 1000ns is assumed.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-07-20 18:41:16 +01:00
..
accel iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
adc iio: adc: vf610: Determine sampling frequencies by using minimum sample time 2015-07-20 18:41:16 +01:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common iio: ssp_sensors: Remove redundant spi driver bus initialization 2015-07-05 14:06:33 +01:00
dac iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
frequency iio: frequency: adf4350: Delete blank line 2015-07-11 18:28:04 +01:00
gyro iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
humidity iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
imu iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
light iio:light:acpi-als: add missing prefixes 2015-07-19 10:50:05 +01:00
magnetometer iio:magnetometer:bmc150_magn: replace magic value 2015-07-19 11:04:15 +01:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
pressure iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
proximity iio:prox:sx9500 trivial simplification of return path in init function. 2015-05-07 10:42:31 +01:00
temperature iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c iio: Specify supported modes for buffers 2015-06-01 11:31:12 +01:00
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: allow userspace to flush the hwfifo with non-blocking reads 2015-06-21 14:51:13 +01:00
industrialio-core.c iio: Add missing modifier names to core 2015-06-21 10:45:39 +01:00
industrialio-event.c iio: core: add high pass filter attributes 2015-05-17 10:32:35 +01:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio: Fix parameters in iio_triggered_buffer_setup 2015-07-05 15:19:50 +01:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c Third round of new IIO drivers, cleanups and functionality for the 4.2 cycle. 2015-06-10 20:48:34 -07:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00