[PATCH V3] iio: adc: ad7476: Add LTC2314-14 support

2020-12-16 Thread Mircea Caprioru
From: Dragos Bogdan The LTC2314-14 is a 14-bit, 4.5Msps, serial sampling A/D converter that draws only 6.2mA from a wide range analog supply adjustable from 2.7V to 5.25V. Signed-off-by: Dragos Bogdan Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7476.c | 6 ++ 1 file changed, 6

[PATCH V2] iio: adc: ad7476: Add LTC2314-14 support

2020-12-16 Thread Mircea Caprioru
From: Dragos Bogdan The LTC2314-14 is a 14-bit, 4.5Msps, serial sampling A/D converter that draws only 6.2mA from a wide range analog supply adjustable from 2.7V to 5.25V. Signed-off-by: Dragos Bogdan Signed-off-by: Mircea Caprioru --- Changelog v2 - fix conflict with ADS7868 device

[PATCH] iio: adc: ad7476: Add LTC2314-14 support

2020-12-16 Thread Mircea Caprioru
From: Dragos Bogdan The LTC2314-14 is a 14-bit, 4.5Msps, serial sampling A/D converter that draws only 6.2mA from a wide range analog supply adjustable from 2.7V to 5.25V. Signed-off-by: Dragos Bogdan Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7476.c | 4 1 file changed, 4

[PATCH 5/5] iio: adc: rockchip_saradc: Replace indio_dev->mlock with own device lock

2020-09-28 Thread Mircea Caprioru
com/ Signed-off-by: Sergiu Cuciurean Signed-off-by: Mircea Caprioru --- drivers/iio/adc/rockchip_saradc.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c index 1f3d7d639d37..80084c526

[PATCH 2/5] iio: adc: palmas_gpadc: Replace indio_dev->mlock with own device lock

2020-09-28 Thread Mircea Caprioru
com/ Signed-off-by: Sergiu Cuciurean Signed-off-by: Mircea Caprioru --- drivers/iio/adc/palmas_gpadc.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index 889b88768b63..14874f11614d 100

[PATCH 3/5] iio: adc: npcm_adc: Replace indio_dev->mlock with own device lock

2020-09-28 Thread Mircea Caprioru
com/ Signed-off-by: Sergiu Cuciurean Signed-off-by: Mircea Caprioru --- drivers/iio/adc/npcm_adc.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/npcm_adc.c b/drivers/iio/adc/npcm_adc.c index d9d105920001..f7bc0bb7f112 100644 --- a/drivers/iio/

[PATCH 4/5] iio: adc: vf610_adc: Replace indio_dev->mlock with own device lock

2020-09-28 Thread Mircea Caprioru
com/ Signed-off-by: Sergiu Cuciurean Signed-off-by: Mircea Caprioru --- drivers/iio/adc/vf610_adc.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c index 1d794cf3e3f1..b7d583993f0b 100

[PATCH 1/5] iio: adc: spear_adc: Replace indio_dev->mlock with own device lock

2020-09-28 Thread Mircea Caprioru
com/ Signed-off-by: Sergiu Cuciurean Signed-off-by: Mircea Caprioru --- drivers/iio/adc/spear_adc.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c index 1bc986a7009d..d93e580b3dc5 100644 --- a/driv

[PATCH] iio: adc: ad7124: Fix typo in device name

2020-09-02 Thread Mircea Caprioru
This patch fixes the device name typo. Fixes: 951ad4700313 ("iio: adc: ad7124: move chip ID & name on the chip_info table") Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7124.c

[PATCH V4 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-09-02 Thread Mircea Caprioru
This patch add device tree binding documentation for AD7192 adc in YAML format. Signed-off-by: Mircea Caprioru --- Changelog V2: - no changes here Changelog V3: - no changes here Changelog V4: - remove the const value from avdd and dvdd supply .../bindings/iio/adc/adi,ad7192.yaml

[PATCH V4 1/4] iio: adc: ad7192: Add sysfs ABI documentation

2019-09-02 Thread Mircea Caprioru
Add initial ABI documentation for ad7192 adc sysfs interfaces. Signed-off-by: Mircea Caprioru --- Changelog V2: - no changes here Changelog V3: - no changes here Changelog V4: - added sysfs ABI documentation .../ABI/testing/sysfs-bus-iio-adc-ad7192 | 15 +++ 1 file

[PATCH V4 3/4] staging: iio: adc: ad7192: Add system calibration support

2019-09-02 Thread Mircea Caprioru
This patch will add a system calibration attribute for each channel. Using this option the user will have the ability to calibrate each channel for zero scale and full scale. It uses the iio_chan_spec_ext_info and IIO_ENUM to implement the functionality. Signed-off-by: Mircea Caprioru

[PATCH V4 2/4] iio: adc: ad_sigma_delta: Export ad_sd_calibrate

2019-09-02 Thread Mircea Caprioru
This patch exports the ad_sd_calibrate function in order to be able to call it from outside ad_sigma_delta. There are cases where the option to calibrate one channel at a time is necessary (ex. system calibration for zero scale and full scale). Signed-off-by: Mircea Caprioru --- Changelog V2

[PATCH V3 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-08-14 Thread Mircea Caprioru
This patch add device tree binding documentation for AD7192 adc in YAML format. Signed-off-by: Mircea Caprioru --- Changelog V2: - remove description from spi and interrupt properties - changed the name of the device from ad7192 to adc in the example Changelog V3: - added semicolon at the end

[PATCH V3 3/4] staging: iio: adc: ad7192: Add system calibration support

2019-08-14 Thread Mircea Caprioru
This patch will add a system calibration attribute for each channel. Using this option the user will have the ability to calibrate each channel for zero scale and full scale. It uses the iio_chan_spec_ext_info and IIO_ENUM to implement the functionality. Signed-off-by: Mircea Caprioru

[PATCH V3 1/4] staging: iio: adc: ad7192: Add low_pass_3db_filter_frequency

2019-08-14 Thread Mircea Caprioru
By adding this option we are able to remove the sync3 field and dt binding. When setting the required cutoff frequency we also determine the ADC configuration for chop and sync filter. Signed-off-by: Mircea Caprioru --- Changelog V2: - no changes here Changelog V3: - no changes here drivers

[PATCH V3 2/4] iio: adc: ad_sigma_delta: Export ad_sd_calibrate

2019-08-14 Thread Mircea Caprioru
This patch exports the ad_sd_calibrate function in order to be able to call it from outside ad_sigma_delta. There are cases where the option to calibrate one channel at a time is necessary (ex. system calibration for zero scale and full scale). Signed-off-by: Mircea Caprioru --- Changelog V2

[PATCH V2 3/4] staging: iio: adc: ad7192: Add system calibration support

2019-08-13 Thread Mircea Caprioru
This patch will add a system calibration attribute for each channel. Using this option the user will have the ability to calibrate each channel for zero scale and full scale. It uses the iio_chan_spec_ext_info and IIO_ENUM to implement the functionality. Signed-off-by: Mircea Caprioru

[PATCH V2 2/4] iio: adc: ad_sigma_delta: Export ad_sd_calibrate

2019-08-13 Thread Mircea Caprioru
This patch exports the ad_sd_calibrate function in order to be able to call it from outside ad_sigma_delta. There are cases where the option to calibrate one channel at a time is necessary (ex. system calibration for zero scale and full scale). Signed-off-by: Mircea Caprioru --- Changelog V2

[PATCH V2 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-08-13 Thread Mircea Caprioru
This patch add device tree binding documentation for AD7192 adc in YAML format. Signed-off-by: Mircea Caprioru --- Changelog V2: - remove description from spi and interrupt properties - changed the name of the device from ad7192 to adc in the example .../bindings/iio/adc/adi,ad7192.yaml

[PATCH V2 1/4] staging: iio: adc: ad7192: Add low_pass_3db_filter_frequency

2019-08-13 Thread Mircea Caprioru
By adding this option we are able to remove the sync3 field and dt binding. When setting the required cutoff frequency we also determine the ADC configuration for chop and sync filter. Signed-off-by: Mircea Caprioru --- Changelog V2: - no changes here drivers/staging/iio/adc/ad7192.c | 148

[PATCH 3/4] staging: iio: adc: ad7192: Add system calibration support

2019-08-12 Thread Mircea Caprioru
This patch will add a system calibration attribute for each channel. Using this option the user will have the ability to calibrate each channel for zero scale and full scale. It uses the iio_chan_spec_ext_info and IIO_ENUM to implement the functionality. Signed-off-by: Mircea Caprioru

[PATCH 2/4] iio: adc: ad_sigma_delta: Export ad_sd_calibrate

2019-08-12 Thread Mircea Caprioru
This patch exports the ad_sd_calibrate function in order to be able to call it from outside ad_sigma_delta. There are cases where the option to calibrate one channel at a time is necessary (ex. system calibration for zero scale and full scale). Signed-off-by: Mircea Caprioru --- drivers/iio

[PATCH 1/4] staging: iio: adc: ad7192: Add low_pass_3db_filter_frequency

2019-08-12 Thread Mircea Caprioru
By adding this option we are able to remove the sync3 field and dt binding. When setting the required cutoff frequency we also determine the ADC configuration for chop and sync filter. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 148 +++ 1

[PATCH 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-08-12 Thread Mircea Caprioru
This patch add device tree binding documentation for AD7192 adc in YAML format. Signed-off-by: Mircea Caprioru --- .../bindings/iio/adc/adi,ad7192.yaml | 123 ++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7192

[PATCH] staging: iio: adc: ad7192: Remove platform data

2019-08-12 Thread Mircea Caprioru
a problem with the device tree. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 14 ++-- drivers/staging/iio/adc/ad7192.h | 37 2 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 drivers/staging/iio/adc/ad7192.h diff

[PATCH V4 4/5] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-25 Thread Mircea Caprioru
Convert AD7124 bindings documentation to YAML format. Signed-off-by: Mircea Caprioru --- Changelog v2: - modified SPDX license to GPL-2.0 OR BSD-2-Clause - added regex for a range from 0 to 15 - added minimum and maximum constraints for reg property - set type and range of values for adi

[PATCH V4 3/5] iio: adc: ad7124: Shift to dynamic allocation for channel configuration

2019-06-25 Thread Mircea Caprioru
differential or 8 pseudo-differential channels ad7124-8 - can have 8 differential or 16 pseudo-differential channels Also the device can suspport any other combination of differential and pseudo-differential channels base on the physical number of inputs available. Signed-off-by: Mircea Caprioru

[PATCHi V4 2/5] iio: adc: ad7124: Add buffered input support

2019-06-25 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here Changelog v3: - nothing changed here Changelog v4: - nothing changed here drivers/iio/adc/ad7124.c | 17

[PATCH V4 5/5] dt-bindings: iio: adc: Add buffered input property

2019-06-25 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- Changelog v3: - added this separate commit for adi,buffered-positive and negative properties Changelog v4: - nothing changed here .../devicetree/bindings

[PATCH V4 1/5] iio: adc: ad7124: Remove input number limitation

2019-06-25 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here Changelog v3: - nothing changed here Changelog v4: - nothing changed here drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b

[PATCH V3 5/5] dt-bindings: iio: adc: Add buffered input property

2019-06-24 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- Changelog v3: - added this separate commit for adi,buffered-positive and negative properties .../devicetree/bindings/iio/adc/adi,ad7124.yaml | 11

[PATCH V3 4/5] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-24 Thread Mircea Caprioru
Convert AD7124 bindings documentation to YAML format. Signed-off-by: Mircea Caprioru --- Changelog v2: - modified SPDX license to GPL-2.0 OR BSD-2-Clause - added regex for a range from 0 to 15 - added minimum and maximum constraints for reg property - set type and range of values for adi

[PATCH V3 3/5] iio: adc: ad7124: Shift to dynamic allocation for channel configuration

2019-06-24 Thread Mircea Caprioru
differential or 8 pseudo-differential channels ad7124-8 - can have 8 differential or 16 pseudo-differential channels Also the device can suspport any other combination of differential and pseudo-differential channels base on the physical number of inputs available. Signed-off-by: Mircea Caprioru

[PATCH V3 2/5] iio: adc: ad7124: Add buffered input support

2019-06-24 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here Changelog v3: - nothing changed here drivers/iio/adc/ad7124.c | 17 +++-- 1 file changed, 15 insertions

[PATCH V3 1/5] iio: adc: ad7124: Remove input number limitation

2019-06-24 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here Changelog v3: - nothing changed here drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index

[PATCH V2 4/4] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-21 Thread Mircea Caprioru
Convert AD7124 bindings documentation to YAML format. Signed-off-by: Mircea Caprioru --- Changelog v2: - modified SPDX license to GPL-2.0 OR BSD-2-Clause - added regex for a range from 0 to 15 - added minimum and maximum constraints for reg property - set type and range of values for adi

[PATCH V2 1/4] iio: adc: ad7124: Remove input number limitation

2019-06-21 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 659ef37d5fe8..810234db9c0d 100644

[PATCH V2 3/4] iio: adc: ad7124: Shift to dynamic allocation for channel configuration

2019-06-21 Thread Mircea Caprioru
differential or 8 pseudo-differential channels ad7124-8 - can have 8 differential or 16 pseudo-differential channels Also the device can suspport any other combination of differential and pseudo-differential channels base on the physical number of inputs available. Signed-off-by: Mircea Caprioru

[PATCH V2 2/4] iio: adc: ad7124: Add buffered input support

2019-06-21 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- Changelog v2: - nothing changed here drivers/iio/adc/ad7124.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers

[RESEND PATCH 3/4] iio: adc: ad7124: Shift to dynamic allocation for channel configuration

2019-06-20 Thread Mircea Caprioru
differential or 8 pseudo-differential channels ad7124-8 - can have 8 differential or 16 pseudo-differential channels Also the device can suspport any other combination of differential and pseudo-differential channels base on the physical number of inputs available. Signed-off-by: Mircea Caprioru

[RESEND PATCH 4/4] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-20 Thread Mircea Caprioru
Convert AD7124 bindings documentation to YAML format. Signed-off-by: Mircea Caprioru --- .../bindings/iio/adc/adi,ad7124.yaml | 146 ++ 1 file changed, 146 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml diff --git

[RESEND PATCH 1/4] iio: adc: ad7124: Remove input number limitation

2019-06-20 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 659ef37d5fe8..810234db9c0d 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio

[RESEND PATCH 2/4] iio: adc: ad7124: Add buffered input support

2019-06-20 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc

[RESEND PATCH 1/4] iio: adc: ad7124: Remove input number limitation

2019-06-20 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 659ef37d5fe8..810234db9c0d 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio

[PATCH 4/4] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-20 Thread Mircea Caprioru
Convert AD7124 bindings documentation to YAML format. Signed-off-by: Mircea Caprioru --- .../bindings/iio/adc/adi,ad7124.yaml | 146 ++ 1 file changed, 146 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml diff --git

[PATCH 2/4] iio: adc: ad7124: Add buffered input support

2019-06-20 Thread Mircea Caprioru
and is tailored for direct connection to external resistive type sensors such as strain gages or RTDs. Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc

[PATCH 3/4] iio: adc: ad7124: Shift to dynamic allocation for channel configuration

2019-06-20 Thread Mircea Caprioru
differential or 8 pseudo-differential channels ad7124-8 - can have 8 differential or 16 pseudo-differential channels Also the device can suspport any other combination of differential and pseudo-differential channels base on the physical number of inputs available. Signed-off-by: Mircea Caprioru

[PATCH 1/4] iio: adc: ad7124: Remove input number limitation

2019-06-20 Thread Mircea Caprioru
channel nodes and num_inputs value. Signed-off-by: Mircea Caprioru --- drivers/iio/adc/ad7124.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 659ef37d5fe8..810234db9c0d 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio

[PATCH] iio: dac: ad5758: Modifications for new revision

2019-04-09 Thread Mircea Caprioru
. Signed-off-by: Mircea Caprioru --- drivers/iio/dac/ad5758.c | 55 +--- 1 file changed, 18 insertions(+), 37 deletions(-) diff --git a/drivers/iio/dac/ad5758.c b/drivers/iio/dac/ad5758.c index 2bdf1b0aee06..a513c70faefa 100644 --- a/drivers/iio/dac/ad5758.c

[PATCH] staging: iio: adc: ad7192: Use read_avail for available attributes

2019-03-19 Thread Mircea Caprioru
the checkpatch warning related to in_voltage-voltage_scale_available naming. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 99 1 file changed, 61 insertions(+), 38 deletions(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc

[PATCH 2/2] staging: iio: adc: ad7192: Convert platform data to DT properties

2019-03-15 Thread Mircea Caprioru
This patch will remove platform data members and replace them with device tree properties. These properties will be subject to further modifications and probably replaced with other functionalities at some point in time. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 33

[PATCH 1/2] staging: iio: adc: ad7192: Use DT clock binding

2019-03-15 Thread Mircea Caprioru
as the clock source. When an external crystal is used it is connected to MCLK1 and MCLK2 pins. If the external clock is used only MCLK2 pin will be connected. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 84 ++-- drivers/staging/iio/adc/ad7192.h

[PATCH 1/2] staging: iio: adc: ad7192: Fix identation

2019-03-15 Thread Mircea Caprioru
This patch fixes the odd indentation inside function ad7192_calibrate_all. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index

[PATCH 2/2] staging: iio: adc: ad7192: Report error directly in ad7192_setup

2019-03-15 Thread Mircea Caprioru
This patch removes the goto out statement thus ensuring that an error is report as soon as it occurs. This gives more information and improves readability. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 13 + 1 file changed, 5 insertions(+), 8 deletions

[PATCH] staging: iio: ad7192: Fix ad7193 channel address

2019-02-20 Thread Mircea Caprioru
This patch fixes the differential channels addresses for the ad7193. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index

[PATCH] iio: dac: ad5686: Add support for AD5674R/AD5679R

2019-01-09 Thread Mircea Caprioru
The AD5674R/AD5679R are low power, 16-channel, 12-/16-bit buffered voltage output digital-to-analog converters (DACs). They include a 2.5 V internal reference (enabled by default). These devices are very similar to AD5684R/AD5686R, except that they have 16 channels. Signed-off-by: Mircea

[PATCH] iio: dac: ad5686: fix bit shift read register

2018-12-06 Thread Mircea Caprioru
the value relative to the actual bit size. Fixes: 0357e488b8 ("iio:dac:ad5686: Refactor the driver") Signed-off-by: Mircea Caprioru --- drivers/iio/dac/ad5686.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad56

[PATCH] iio: dac: ad5686: fix bit shift read register

2018-12-06 Thread Mircea Caprioru
the value relative to the actual bit size. Fixes: 0357e488b8 ("iio:dac:ad5686: Refactor the driver") Signed-off-by: Mircea Caprioru --- drivers/iio/dac/ad5686.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad56

[PATCH] iio:dac:ad5686: Add AD5310R support

2018-12-06 Thread Mircea Caprioru
accordingly. Because AD5310R does not have a readback register, the read_raw operation will return "Operation is not supported". Datasheet: Link: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5310R_5311R.pdf Signed-off-by: Stefan Popa Signed-off-by: Mircea Caprioru --

[PATCH] iio:dac:ad5686: Add AD5310R support

2018-12-06 Thread Mircea Caprioru
accordingly. Because AD5310R does not have a readback register, the read_raw operation will return "Operation is not supported". Datasheet: Link: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5310R_5311R.pdf Signed-off-by: Stefan Popa Signed-off-by: Mircea Caprioru --

[PATCH 2/2] staging: iio: adc: ad7192: Add clock output option

2018-12-06 Thread Mircea Caprioru
When using the internal clock the device has an option in which the clock output is available on MCLK2 pin. This patch adds a dt binding for enabling this property. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[PATCH 2/2] staging: iio: adc: ad7192: Add clock output option

2018-12-06 Thread Mircea Caprioru
When using the internal clock the device has an option in which the clock output is available on MCLK2 pin. This patch adds a dt binding for enabling this property. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[PATCH 1/2] staging: iio: adc: ad7192: Add clock for external clock reference

2018-12-06 Thread Mircea Caprioru
This patch adds a clock to the state structure of ad7192 for getting the external clock frequency. This modifications is in accordance with clock framework dt bindings documentation. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 74

[PATCH 1/2] staging: iio: adc: ad7192: Add clock for external clock reference

2018-12-06 Thread Mircea Caprioru
This patch adds a clock to the state structure of ad7192 for getting the external clock frequency. This modifications is in accordance with clock framework dt bindings documentation. Signed-off-by: Mircea Caprioru --- drivers/staging/iio/adc/ad7192.c | 74

[PATCH 2/2] iio: dac: ad5770r: Add AD5770R support

2018-07-30 Thread Mircea Caprioru
-by: Mircea Caprioru --- MAINTAINERS | 1 + drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ad5770r.c | 548 ++ 4 files changed, 560 insertions(+) create mode 100644 drivers/iio/dac/ad5770r.c diff --git

[PATCH 2/2] iio: dac: ad5770r: Add AD5770R support

2018-07-30 Thread Mircea Caprioru
-by: Mircea Caprioru --- MAINTAINERS | 1 + drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ad5770r.c | 548 ++ 4 files changed, 560 insertions(+) create mode 100644 drivers/iio/dac/ad5770r.c diff --git

[PATCH 1/2] dt-bindings: iio: dac: Add docs for AD5770R DAC

2018-07-30 Thread Mircea Caprioru
Adding dt-bindings documentation for AD5770R DAC. The bindings follow the standard SPI and fixed regulator bindings. Signed-off-by: Mircea Caprioru --- .../devicetree/bindings/iio/dac/ad5770r.txt | 86 +++ MAINTAINERS | 7 ++ 2 files changed

[PATCH 1/2] dt-bindings: iio: dac: Add docs for AD5770R DAC

2018-07-30 Thread Mircea Caprioru
Adding dt-bindings documentation for AD5770R DAC. The bindings follow the standard SPI and fixed regulator bindings. Signed-off-by: Mircea Caprioru --- .../devicetree/bindings/iio/dac/ad5770r.txt | 86 +++ MAINTAINERS | 7 ++ 2 files changed

[PATCH V5 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V4 -> V5 - defined idle_state as s32 and used (u32 *) cast - repla

[PATCH V5 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V4 -> V5 - defined idle_state as s32 and used (u32 *) cast - repla

[PATCH V4 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V3 -> V4 - named enum to adgs1408_chip_id - added .data with id enum val

[PATCH V4 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V3 -> V4 - named enum to adgs1408_chip_id - added .data with id enum val

[PATCH V3 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-19 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V2 -> V3 - removed Kconfig line - changed to GPL-2.0-or-later - fixed t

[PATCH V3 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-19 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V2 -> V3 - removed Kconfig line - changed to GPL-2.0-or-later - fixed t

[PATCH V2 1/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-17 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V1 -> V2 - removed adgs140x wildcard - removed cells verification since onl

[PATCH V2 1/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-17 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V1 -> V2 - removed adgs140x wildcard - removed cells verification since onl

[PATCH 1/2] mux:adgs1408/1409: New driver for Analog Devices ADGS1408/1409 mux …

2018-07-13 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- MAINTAINERS| 7 +++ drivers/mux/Kconfig| 12 drivers/mux

[PATCH 1/2] mux:adgs1408/1409: New driver for Analog Devices ADGS1408/1409 mux …

2018-07-13 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- MAINTAINERS| 7 +++ drivers/mux/Kconfig| 12 drivers/mux