from the active_scan_mask.
- made IRQ optional.
Patch 5 and 6:
- nothing changed
Crestez Dan Leonard (1):
regmap: Add regmap_noinc_read API
Stefan Popa (5):
iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer
dt-bindings: iio: accel: Add docs for ADXL372
iio:adxl372: Add
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
MAINTAINERS | 6 +
drivers/iio/accel/Kconfig | 11 +
drivers/iio/accel/Makefile | 1 +
drivers/iio/accel/adxl372.c | 530
4 files changed, 548 insertions
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
---
.../devicetree/bindings/iio/accel/adxl372.txt | 24 ++
MAINTAINERS| 1 +
2 files changed, 25 insertions
. The FIFO data is pushed to the
IIO device's buffer.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 346 +++-
1 file changed, 345 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index 7d
and
reg+1 happens to be a cacheable register.
Without regmap support refactoring a driver to enable regmap caching
requires separate I2C and SPI paths. This is exactly what regmap is
supposed to help avoid.
Suggested-by: Jonathan Cameron
Signed-off-by: Crestez Dan Leonard
Signed-off-by: Stefan
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 74 -
1 file
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index 80b1838..3a9d55a 100644
--- a/drivers
5 and 6:
- nothing changed
Crestez Dan Leonard (1):
regmap: Add regmap_noinc_read API
Stefan Popa (5):
iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer
dt-bindings: iio: accel: Add docs for ADXL372
iio:adxl372: Add FIFO and interrupts support
iio:adxl372: Add
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
---
.../devicetree/bindings/iio/accel/adxl372.txt | 22 ++
MAINTAINERS| 1 +
2 files changed, 23 insertions
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
MAINTAINERS | 6 +
drivers/iio/accel/Kconfig | 11 +
drivers/iio/accel/Makefile | 1 +
drivers/iio/accel/adxl372.c | 525
4 files changed, 543 insertions
. The FIFO data is pushed to the
IIO device's buffer.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 348 +++-
1 file changed, 347 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index db
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 74 -
1 file
and
reg+1 happens to be a cacheable register.
Without regmap support refactoring a driver to enable regmap caching
requires separate I2C and SPI paths. This is exactly what regmap is
supposed to help avoid.
Suggested-by: Jonathan Cameron
Signed-off-by: Crestez Dan Leonard
Signed-off-by: Stefan
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index d991d1c..58e2f61 100644
--- a/drivers
5 and 6:
- nothing changed
Crestez Dan Leonard (1):
regmap: Add regmap_noinc_read API
Stefan Popa (5):
iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer
dt-bindings: iio: accel: Add docs for ADXL372
iio:adxl372: Add FIFO and interrupts support
iio:adxl372: Add
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
---
.../devicetree/bindings/iio/accel/adxl372.txt | 22 ++
MAINTAINERS| 1 +
2 files changed, 23 insertions
and
reg+1 happens to be a cacheable register.
Without regmap support refactoring a driver to enable regmap caching
requires separate I2C and SPI paths. This is exactly what regmap is
supposed to help avoid.
Suggested-by: Jonathan Cameron
Signed-off-by: Crestez Dan Leonard
Signed-off-by: Stefan
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 74 -
1 file
. The FIFO data is pushed to the
IIO device's buffer.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 354 +++-
1 file changed, 353 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index db
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
MAINTAINERS | 6 +
drivers/iio/accel/Kconfig | 11 +
drivers/iio/accel/Makefile | 1 +
drivers/iio/accel/adxl372.c | 525
4 files changed, 543 insertions
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index 76c4a1d..c6f4b95 100644
--- a/drivers
the reset function is called, if the gpio_reset var is set, then
the
GPIO will be toggled, otherwise a software reset is performed.
Signed-off-by: Stefan Popa
---
.../devicetree/bindings/iio/dac/ad5758.txt | 5
drivers/iio/dac/ad5758.c | 27
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
MAINTAINERS | 6 +
drivers/iio/accel/Kconfig | 11 +
drivers/iio/accel/Makefile | 1 +
drivers/iio/accel/adxl372.c | 525
4 files changed, 543 insertions
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
Reviewed-by: Rob Herring
---
.../devicetree/bindings/iio/accel/adxl372.txt | 22 ++
MAINTAINERS| 1 +
2 files
. The FIFO data is pushed to the
IIO device's buffer.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 357 +++-
1 file changed, 356 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index db
and
reg+1 happens to be a cacheable register.
Without regmap support refactoring a driver to enable regmap caching
requires separate I2C and SPI paths. This is exactly what regmap is
supposed to help avoid.
Suggested-by: Jonathan Cameron
Signed-off-by: Crestez Dan Leonard
Signed-off-by: Stefan
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index fedb623..7097775 100644
--- a/drivers
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 74 -
1 file
Patch 5 and 6:
- nothing changed
Crestez Dan Leonard (1):
regmap: Add regmap_noinc_read API
Stefan Popa (5):
iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer
dt-bindings: iio: accel: Add docs for ADXL372
iio:adxl372: Add FIFO and interrupts support
iio:adxl372: Add sampl
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
---
Changes in v2:
- introduced all the DT bindings in a single patch.
.../devicetree/bindings/iio/accel/adxl372.txt | 24 ++
MAINTAINERS
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- removed ADXL372_RD_FLAG_MSK and ADXL372_WR_FLAG_MSK macros.
- handled regmap read/write by setting reg_bits and pad_bits
fields in regmap_config struct.
- removed the buffer
-by: Stefan Popa
---
Changes in v2:
Included as part of this patch series as the regmap_pipe_read()
API will be used to read the data from the FIFO.
drivers/base/regmap/regmap.c | 64 +++-
include/linux/regmap.h | 9 +++
2 files
. Moreover, the FIFO can also
be configured in the XYZ peak mode.
The FIFO data is pushed to the IIO device's buffer.
Signed-off-by: Stefan Popa
---
Changes in v2:
- removed DT bindings changes from this patch.
- removed the linux/gpio/consumer.h header.
-
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
Changes in v2:
- nothing changed.
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
Changes in v2:
- nothing changed.
drivers/iio/accel/adxl372.c | 74
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.
Signed-off-by: Stefan Popa
---
Documentation/devicetree/bindings/iio/accel/adxl372.txt | 16
MAINTAINERS | 1 +
2 files changed, 17 insertions
and ensured
that it is constrained to at most half of the sampling frequency.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 60 -
1 file changed, 59 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index 498c740..a73482e 100644
--- a/drivers
timestamp is pushed to the
IIO device's buffer.
Signed-off-by: Stefan Popa
---
.../devicetree/bindings/iio/accel/adxl372.txt | 7 +
drivers/iio/accel/adxl372.c| 346 -
2 files changed, 352 insertions(+), 1 deletion(-)
diff --git a/Document
-documentation/data-sheets/ADXL372.pdf
Signed-off-by: Stefan Popa
---
MAINTAINERS | 6 +
drivers/iio/accel/Kconfig | 11 +
drivers/iio/accel/Makefile | 1 +
drivers/iio/accel/adxl372.c | 483
4 files changed, 501 insertions
This patch fixes some indentation issues and does not modify the
functionality of the driver.
Signed-off-by: Stefan Popa
---
Changes v2:
- Nothing changed, just follow the patch set version.
Changes v3:
- Nothing changed, just follow the patch set version.
drivers/iio/dac
Add GPLv2+ SPDX identifier and remove license notice to keep the whole
purpose of using an SPDx id.
Signed-off-by: Stefan Popa
---
Changes in v3:
- Created a new patch to use the SPDx identifier
drivers/iio/dac/ad5686.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff
This driver acctually supports the AD5685R device and NOT the AD5685, which
does not exist.
More information can be found in the datasheet:
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5686_5684.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the
://www.analog.com/media/en/technical-documentation/data-sheets/AD5672R_5676R.pdf
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5686R_5685R_5684R.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch to add support for new parts
Changes in v3
instead of SPI).
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch
- Use st->write directly instead of the ad5686_write() wrapper
- Use st->read directly instead of the ad5686_read() wrapper
Changes in v3:
- Indented the the help text from the
/AD5696R_5695R_5694R.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch
Changes in v3:
- Indented the the help text from the Konfig file with 2
additional spaces.
- Changed the license description to use an SPDX tag.
MAINTAINERS
This patch adds a new num_channels attribute as part of the
ad5686_chip_info struct which replaces the AD5686_DAC_CHANNELS define. This
is a necessary step, since this driver should support similar devices which
differ only in the number of channels.
Signed-off-by: Stefan Popa
---
Changes in v2
:
http://www.analog.com/media/en/technical-documentation/data-sheets/ADP5061.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed typo in Kconfig file: build -> built.
Changes in v3:
- Described the commit message parameters with bindings to
power-supply propert
Document adi,adp5061 properties.
Signed-off-by: Stefan Popa
---
Changes in v3:
- Split devicetree bindings into a separate patch.
.../devicetree/bindings/power/supply/adp5061.txt| 17 +
MAINTAINERS | 1 +
2 files
This patch adds the option to enable/disable battery charging. This
option is not configurable via the power_supply properties, therefore,
access via sysfs was provided to examine and modify this attribute on the
fly.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed kbuild test
examine and modify this
attribute on the fly.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed the kbuild test error by changing the type of the
charging_vlim_enabled_show() and charging_vlim_enabled_store()
functions from int to ssize_t.
Changes in v3
examine and modify this
attribute on the fly.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed the kbuild test error by changing the type of the
charging_vlim_enabled_show() and charging_vlim_enabled_store()
functions from int to ssize_t.
.../ABI/testing/sysfs-class-power-adp5061
limit
* battery full
* input current limit
* charger status
* battery status
* termination current
Datasheet:
http://www.analog.com/media/en/technical-documentation/data-sheets/ADP5061.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed typo in Kconfig file: build -> built
.../devicet
This patch adds the option to enable/disable battery charging. This
option is not configurable via the power_supply properties, therefore,
access via sysfs was provided to examine and modify this attribute on the
fly.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Fixed kbuild test error by
This patch fixes some indentation issues and does not modify the
functionality of the driver.
Signed-off-by: Stefan Popa
---
drivers/iio/dac/ad5686.c | 25 ++---
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686
This patch adds a new num_channels attribute as part of the
ad5686_chip_info struct which replaces the AD5686_DAC_CHANNELS define. This
is a necessary step, since this driver should support similar devices which
differ only in the number of channels.
Signed-off-by: Stefan Popa
---
Changes in v2
This driver acctually supports the AD5685R device and NOT the AD5685, which
does not exist.
More information can be found in the datasheet:
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5686_5684.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the
://www.analog.com/media/en/technical-documentation/data-sheets/AD5672R_5676R.pdf
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5686R_5685R_5684R.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch to add support for new parts
drivers/iio/dac/ad5686.c | 46
instead of SPI).
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch
- Use st->write directly instead of the ad5686_write() wrapper
- Use st->read directly instead of the ad5686_read() wrapper
MAINTAINERS | 7 ++
drivers/iio/dac/K
/AD5696R_5695R_5694R.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Refactored the patch
MAINTAINERS | 1 +
drivers/iio/dac/Kconfig | 10 +
drivers/iio/dac/Makefile | 1 +
drivers/iio/dac/ad5686.c | 28 +
drivers/iio/dac/ad5686.h | 7
Move ad7606 ADC driver out of staging and into the mainline.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Simplified the Kconfig menu.
- Added SPDX-License-Identifier.
- Ordered the includes alphabetically.
- Used a threaded interrupt.
- Replaced
Document support for AD7606 Analog to Digital Converter.
Signed-off-by: Stefan Popa
---
Changes in v2:
- fixed indentation issues.
- used gpios instead of gpio.
- added vendor prefix for conversion-start-gpios, first-data-gpios,
and range-gpios.
.../devicetree
Document support for AD7606 Analog to Digital Converter.
Signed-off-by: Stefan Popa
---
Changes in v2:
- fixed indentation issues.
- used gpios instead of gpio.
- added vendor prefix for conversion-start-gpios, first-data-gpios,
and range-gpios.
Changes in v3
Move ad7606 ADC driver out of staging and into the mainline.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Simplified the Kconfig menu.
- Added SPDX-License-Identifier.
- Ordered the includes alphabetically.
- Used a threaded interrupt.
- Replaced
There are several ADC drivers that depend on the same device tree
bindings. Rather than continue to duplicate the properties, this patch
adds a common adc binding document that can be referenced. For beginning,
only two properties are documented.
Signed-off-by: Stefan Popa
---
Changes in v2, v3
Signed-off-by: Stefan Popa
---
Changes in v2:
- Added this commit.
Changes in v3:
- Nothing changed.
Changes in v4:
- Nothing changed.
Changes in v5:
- Nothing changed.
drivers/iio/adc/ad_sigma_delta.c | 22 +-
include/linux/iio/adc
Add support for Analog Devices AD7124 4-channels and 8-channels ADC.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Nothing changed.
Changes in v3:
- Removed the "adi,channels" property.
- Used the "reg" property to get the channel number and
/media/en/technical-documentation/data-sheets/AD7124-4.pdf
Link:
http://www.analog.com/media/en/technical-documentation/data-sheets/ad7124-8.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Nothing changed.
Changes in v3:
- Removed channel, address, scan_index and shift fields
Signed-off-by: Stefan Popa
---
Changes in v2:
- Added this commit.
Changes in v3:
- Nothing changed.
Changes in v4:
- Nothing changed.
drivers/iio/adc/ad_sigma_delta.c | 22 +-
include/linux/iio/adc/ad_sigma_delta.h | 3 +++
2 files changed, 20
There are several ADC drivers that depend on the same device tree
bindings. Rather than continue to duplicate the properties, this patch
adds a common adc binding document that can be referenced. For beginning,
only two properties are documented.
Signed-off-by: Stefan Popa
---
Changes in v2, v3
/media/en/technical-documentation/data-sheets/AD7124-4.pdf
Link:
http://www.analog.com/media/en/technical-documentation/data-sheets/ad7124-8.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Nothing changed.
Changes in v3:
- Removed channel, address, scan_index and shift fields
Add support for Analog Devices AD7124 4-channels and 8-channels ADC.
Signed-off-by: Stefan Popa
---
Changes in v2:
- Nothing changed.
Changes in v3:
- Removed the "adi,channels" property.
- Used the "reg" property to get the channel number and
/ad5758.pdf
Signed-off-by: Stefan Popa
---
Changes in v3:
- AD5758 can be both a current and voltage output DAC. The
decision is made based on the DT and the channel type is set
during probe.
- dc-dc-mode, range-microvolt and range-microamp are required
Signed-off-by: Stefan Popa
---
Changes in v3:
- AD5758 can be both a current and voltage output DAC. The
decision is made based on the DT and the channel type is set
during probe.
- range was replaced by range-microvolt and range-microamp
- dc-dc-mode
Signed-off-by: Stefan Popa
---
Changes in v4:
- Nothing changed, just to follow the patch set version.
Changes in v3:
- AD5758 can be both a current and voltage output DAC. The
decision is made based on the DT and the channel type is set
during probe
/ad5758.pdf
Signed-off-by: Stefan Popa
---
Changes in v4:
- fixed kbuild test robot warnings.
Changes in v3:
- AD5758 can be both a current and voltage output DAC. The
decision is made based on the DT and the channel type is set
during probe.
- dc-dc-mode
/ad5758.pdf
Signed-off-by: Stefan Popa
---
Changes in v5:
- changed the handling choice of voltage vs current by picking
between two constant structs.
- returned ad5758_wait_for_task_complete() directly where possible.
- fixed double spaces and removed unnecessary
Signed-off-by: Stefan Popa
---
Changes in v5:
- used a dac@0 as a more generic node name instead of ad5758@0.
Changes in v4:
- Nothing changed, just to follow the patch set version.
Changes in v3:
- AD5758 can be both a current and voltage output DAC. The
/AD5693R_5692R_5691R_5693.pdf
Signed-off-by: Stefan Popa
---
drivers/iio/dac/ad5686.c | 88 +---
drivers/iio/dac/ad5686.h | 16
drivers/iio/dac/ad5696-i2c.c | 7 +++-
3 files changed, 104 insertions(+), 7 deletions(-)
diff --git a/drivers/iio/dac
n the ad5686_spi_write()
function. On the other hand, similar devices such as AD5693R family,
have the 4 MSB command bits followed by 4 don't care bits.
Datasheet:
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5683R_5682R_5681R_5683.pdf
Signed-off-by: Stefan Popa
---
drive
/AD5693R_5692R_5691R_5693.pdf
Signed-off-by: Stefan Popa
---
Changes in v2:
- Removed the initialization for ref_bit_msk and shift variables
from ad5686_write_dac_powerdown() and ad5686_probe().
- Added the the missing default case from
ad5686_write_dac_powerdown() and
n the ad5686_spi_write()
function. On the other hand, similar devices such as AD5693R family,
have the 4 MSB command bits followed by 4 don't care bits.
Datasheet:
http://www.analog.com/media/en/technical-documentation/data-sheets/AD5683R_5682R_5681R_5683.pdf
Signed-off-by: Stefan Popa
---
Cha
sets a
new bandwidth value.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 38 --
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c
index 6281e4a..fdaaa58 100644
--- a/drivers
This patch provides a validate_device callback for the trigger which makes
sure that other devices are rejected.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372
and ensured
that it is constrained to at most half of the sampling frequency. Also, the
activity and inactivity timers have to be updated because they depend on
the selected ODR.
Signed-off-by: Stefan Popa
---
drivers/iio/accel/adxl372.c | 74 -
1 file
There is no point in having three menu entries that can be selected
individually. Instead, the SPI and parallel interfaces should select
AD7606.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/Kconfig | 24 +---
1 file changed, 9 insertions(+), 15 deletions(-)
diff
BUSY
signal triggers the interrupt.
ad7606_trigger_handler() is used as bottom half of the poll function.
It reads data from the device and stores it in the internal buffer.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 116 +--
drivers
When looking for the available scale or oversampling ratio, it is better
to use the find_closest() macro. This simplifies the code and also does
not require an exact value to be entered from the user space.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 58
This patch replaces the use of wait_event_interruptible() with
wait_for_completion_timeout() when reading the result of a single
conversion. In this way, if the interrupt never occurs, the program will
not remain blocked.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 14
The driver does not have a struct of_device_id table, but supported
devices are registered via Device Trees. This patch adds and OF device
ID table.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606_par.c | 10 ++
drivers/staging/iio/adc/ad7606_spi.c | 10 ++
2 files
* Placed includes in alphabetical order
* Added brackets around num and mask through out for AD760X_CHANNEL
* Used single line comments where needed
* Removed extra lines and spaces
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 27 ---
drivers
The 'adi' vendor prefix needs to be added to conversion-start, range,
first-data and oversampling-ratio properties.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/iio/adc/
Switch to devm version of request_irq, iio_triggered_buffer_setup,
iio_device_register. To avoid potential ordering issues in probe,
devm_add_action_or_reset() is used for the regulator_disable(). This
simplifies the code and decreases the chance of bugs.
Signed-off-by: Stefan Popa
---
drivers
This series attempts to clean up the driver according to the feedback
received during review and finally moves it out of staging.
Stefan Popa (11):
staging: iio: adc: ad7606: Simplify the Kconfing menu
staging: iio: adc: ad7606: Use SPDX identifier
staging: iio: adc: ad7606: Use wait-for
Document support for AD7606 Analog to Digital Converter.
Signed-off-by: Stefan Popa
Reviewed-by: Rob Herring
---
.../devicetree/bindings/iio/adc/adi,ad7606.txt | 65 ++
MAINTAINERS| 1 +
2 files changed, 66 insertions(+)
create
Move ad7606 ADC driver out of staging and into the mainline.
Signed-off-by: Stefan Popa
---
MAINTAINERS | 7 +
drivers/iio/adc/Kconfig | 28 ++
drivers/iio/adc/Makefile | 3 +
drivers/iio/adc/ad7606.c | 588
This patch replaces the license text at the top of ad7606 driver files
and instead adds SPDX GPL-2.0+ license identifier.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 5 ++---
drivers/staging/iio/adc/ad7606.h | 3 +--
drivers/staging/iio/adc/ad7606_par.c | 5
There is no point in having three menu entries that can be selected
individually. Instead, the SPI and parallel interfaces should select
AD7606.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/Kconfig | 27 ++-
1 file changed, 10 insertions(+), 17 deletions
This patch replaces the license text at the top of ad7606 driver files
and instead adds SPDX GPL-2.0 license identifier.
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 5 ++---
drivers/staging/iio/adc/ad7606.h | 3 +--
drivers/staging/iio/adc/ad7606_par.c | 5
* Placed includes in alphabetical order
* Added brackets around num and mask through out for AD760X_CHANNEL
* Used single line comments where needed
* Removed extra lines and spaces
Signed-off-by: Stefan Popa
---
drivers/staging/iio/adc/ad7606.c | 27 ---
drivers
1 - 100 of 190 matches
Mail list logo