[PATCH v5 1/4] iio: ad_sigma_delta: Allow to provide custom data register address

2018-11-13 Thread Stefan Popa
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

[PATCH v5 3/4] iio: adc: Add ad7124 support

2018-11-13 Thread Stefan Popa
/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

[PATCH v4 1/4] iio: ad_sigma_delta: Allow to provide custom data register address

2018-11-09 Thread Stefan Popa
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

[PATCH v4 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file

2018-11-09 Thread Stefan Popa
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

[PATCH v4 3/4] iio: adc: Add ad7124 support

2018-11-09 Thread Stefan Popa
/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

[PATCH v4 4/4] dt-bindings: iio: adc: Add docs for ad7124

2018-11-09 Thread Stefan Popa
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

[PATCH v3 1/2] staging: iio: ad7606: Move out of staging

2018-11-29 Thread Stefan Popa
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

[PATCH v3 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-11-29 Thread Stefan Popa
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

[PATCH v2 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-11-20 Thread Stefan Popa
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

[PATCH v2 1/2] staging: iio: ad7606: Move out of staging

2018-11-20 Thread Stefan Popa
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

[PATCH 2/3] iio:dac:ad5686: Add AD5672R/AD5676/AD5676R/AD5684R/AD5685R/AD5686R support

2018-03-30 Thread Stefan Popa
://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 --- drivers/iio/dac/ad5686.c | 97 1 file changed

[PATCH 1/2] iio:dac:ad5686: Add AD5691R/AD5692R/AD5693/AD5693R support

2018-05-18 Thread Stefan Popa
/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

[PATCH 2/2] iio:dac:ad5686: Add AD5681R/AD5682R/AD5683/AD5683R support

2018-05-18 Thread Stefan Popa
in 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 --- drivers/iio/dac

[PATCH v2 1/2] iio:dac:ad5686: Add AD5691R/AD5692R/AD5693/AD5693R support

2018-05-18 Thread Stefan Popa
/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

[PATCH v2 2/2] iio:dac:ad5686: Add AD5681R/AD5682R/AD5683/AD5683R support

2018-05-18 Thread Stefan Popa
in 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 --- Changes in v2

[PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Stefan Popa
SPI host drivers can use DMA to transfer data, so the buffer should be properly allocated. Keeping it on the stack could cause an undefined behavior. The dedicated reset function solves this issue. Signed-off-by: Stefan Popa --- drivers/staging/iio/adc/ad7192.c | 4 +--- 1 file changed, 1

[PATCH 1/3] adp5061: New driver for ADP5061 I2C battery charger

2018-04-04 Thread Stefan Popa
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 --- .../devicetree/bindings/power/supply/adp5061.txt | 17 + MAINTAINERS

[PATCH 2/3] adp5061: Add support for battery charging enable

2018-04-04 Thread Stefan Popa
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 --- .../ABI/testing/sysfs-class-power-adp5061

[PATCH 3/3] adp5061: Add support for charging voltage limit enable

2018-04-04 Thread Stefan Popa
to examine and modify this attribute on the fly. Signed-off-by: Stefan Popa --- .../ABI/testing/sysfs-class-power-adp5061 | 13 ++ drivers/power/supply/adp5061.c | 46 ++ 2 files changed, 59 insertions(+) diff --git a/Documentation/ABI/testing/sysfs

[PATCH v2 3/3] adp5061: Add support for charging voltage limit enable

2018-04-10 Thread Stefan Popa
to 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

[PATCH v2 1/3] adp5061: New driver for ADP5061 I2C battery charger

2018-04-10 Thread Stefan Popa
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

[PATCH v2 2/3] adp5061: Add support for battery charging enable

2018-04-10 Thread Stefan Popa
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

[PATCH v2 1/6] iio:dac:ad5686: Style fixes no functional changes

2018-04-10 Thread Stefan Popa
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

[PATCH v2 2/6] iio:dac:ad5686: Add support for various number of channels

2018-04-10 Thread Stefan Popa
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

[PATCH v2 3/6] iio:dac:ad5686: Add support for AD5685R

2018-04-10 Thread Stefan Popa
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

[PATCH v2 4/6] iio:dac:ad5686: Add AD5672R/76/76R/84R/86R support

2018-04-10 Thread Stefan Popa
://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

[PATCH v2 5/6] iio:dac:ad5686: Refactor the driver

2018-04-10 Thread Stefan Popa
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

[PATCH v2 6/6] iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support

2018-04-10 Thread Stefan Popa
/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

[PATCH v3 1/7] iio:dac:ad5686: Style fixes no functional changes

2018-04-11 Thread Stefan Popa
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

[PATCH v3 2/7] iio:dac:ad5686: Change license description

2018-04-11 Thread Stefan Popa
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

[PATCH v3 4/7] iio:dac:ad5686: Add support for AD5685R

2018-04-11 Thread Stefan Popa
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

[PATCH v3 5/7] iio:dac:ad5686: Add AD5672R/76/76R/84R/86R support

2018-04-11 Thread Stefan Popa
://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

[PATCH v3 6/7] iio:dac:ad5686: Refactor the driver

2018-04-11 Thread Stefan Popa
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

[PATCH v3 7/7] iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support

2018-04-11 Thread Stefan Popa
/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

[PATCH v3 3/7] iio:dac:ad5686: Add support for various number of channels

2018-04-11 Thread Stefan Popa
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

[PATCH v3 1/4] adp5061: New driver for ADP5061 I2C battery charger

2018-04-11 Thread Stefan Popa
: 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

[PATCH v3 2/4] dt-bindings:power:supply: Add docs for ADP5061 battery charger

2018-04-11 Thread Stefan Popa
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

[PATCH v3 3/4] adp5061: Add support for battery charging enable

2018-04-11 Thread Stefan Popa
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

[PATCH v3 4/4] adp5061: Add support for charging voltage limit enable

2018-04-11 Thread Stefan Popa
to 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

[PATCH 1/3] iio:dac:ad5686: Style fixes no functional changes

2018-03-30 Thread Stefan Popa
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

[PATCH 3/3] iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support

2018-03-30 Thread Stefan Popa
and one for I2C. Datasheets: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5671R_5675R.pdf http://www.analog.com/media/en/technical-documentation/data-sheets/AD5696R_5695R_5694R.pdf Signed-off-by: Stefan Popa --- MAINTAINERS | 8 ++ drivers/iio/dac/Kconfig

[PATCH 1/3] iio: accel: adxl372: Fix/remove limitation for FIFO samples

2019-09-03 Thread Stefan Popa
-by: Stefan Popa --- drivers/iio/accel/adxl372.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c index 055227cb..adec37b 100644 --- a/drivers/iio/accel/adxl372.c +++ b/drivers/iio/accel/adxl372.c @@ -805,15 +805,6 @@ static int

[PATCH 2/3] iio: accel: adxl372: Fix push to buffers lost samples

2019-09-03 Thread Stefan Popa
One in two sample sets was lost by multiplying fifo_set_size with sizeof(u16). Also, the double number of available samples were pushed to the iio buffers. Signed-off-by: Stefan Popa --- drivers/iio/accel/adxl372.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 3/3] iio: accel: adxl372: Make sure interrupts are disabled

2019-09-03 Thread Stefan Popa
This patch disables the adxl372 interrupts at setup. The interrupts should be enabled together with the iio buffer. Not doing this, might cause an unwanted interrupt to trigger without being able to properly clear it. Signed-off-by: Stefan Popa --- drivers/iio/accel/adxl372.c | 4 1 file

[PATCH v2 2/3] iio: accel: adxl372: Fix push to buffers lost samples

2019-09-10 Thread Stefan Popa
One in two sample sets was lost by multiplying fifo_set_size with sizeof(u16). Also, the double number of available samples were pushed to the iio buffers. Signed-off-by: Stefan Popa --- Changes in v2: - Nothing changed. drivers/iio/accel/adxl372.c | 3 +-- 1 file changed, 1 insertion

[PATCH v2 1/3] iio: accel: adxl372: Fix/remove limitation for FIFO samples

2019-09-10 Thread Stefan Popa
-by: Stefan Popa --- Changes in v2: - st->watermark needs to store the number of sample sets, the total number of samples is computed in adxl372_configure_fifo() func. drivers/iio/accel/adxl372.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --

[PATCH v2 3/3] iio: accel: adxl372: Perform a reset at start up

2019-09-10 Thread Stefan Popa
We need to perform a reset a start up to make sure that the chip is in a consistent state. This reset also disables all the interrupts which should only be enabled together with the iio buffer. Not doing this, was sometimes causing unwanted interrupts to trigger. Signed-off-by: Stefan Popa

[PATCH v2 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-05-24 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added a new sysfs-bus-iio-frequency-adf4371 file which documents the ABI changes. - Modified the ADF4371_REG() macro to take the reg values in hex as params - ADF4371_MAX_MODULUS2 macro is now defined as BIT

[PATCH v2 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-05-24 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Nothing changed .../devicetree/bindings/iio/frequency/adf4371.yaml | 54 ++ 1 file changed, 54 insertions(+) create mode

[PATCH 3/4] dt-bindings: iio: frequency: Add ADF4372 PLL documentation

2019-06-24 Thread Stefan Popa
Document support for ADF4372 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa --- Documentation/devicetree/bindings/iio/frequency/adf4371.yaml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/frequency/adf4371.yaml b

[PATCH 4/4] iio: frequency: adf4371: Add support for output stage mute

2019-06-24 Thread Stefan Popa
Another feature of the ADF4371/ADF4372 is that the supply current to the RF8P and RF8N output stage can shut down until the ADF4371 achieves lock as measured by the digital lock detect circuitry. The mute to lock detect bit (MUTE_LD) in REG25 enables this function. Signed-off-by: Stefan Popa

[PATCH 2/4] iio: frequency: adf4371: Add support for ADF4372 PLL

2019-06-24 Thread Stefan Popa
/technical-documentation/data-sheets/adf4372.pdf Signed-off-by: Stefan Popa --- drivers/iio/frequency/Kconfig | 6 +++--- drivers/iio/frequency/adf4371.c | 31 --- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/drivers/iio/frequency/Kconfig b/drivers/iio

[PATCH 1/4] dt-bindings: iio: frequency: Use dt-schema for clock-names

2019-06-24 Thread Stefan Popa
Dt-schema can be used for clock-names property. Signed-off-by: Stefan Popa --- Documentation/devicetree/bindings/iio/frequency/adf4371.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/frequency/adf4371.yaml b/Documentation

[PATCH v4 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-05-29 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Nothing changed. Changes in v3: - Nothing changed. Changes in v4: - Nothing changed. .../devicetree/bindings/iio/frequency

[PATCH v4 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-05-29 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added a new sysfs-bus-iio-frequency-adf4371 file which documents the ABI changes. - Modified the ADF4371_REG() macro to take the reg values in hex as params - ADF4371_MAX_MODULUS2 macro is now defined as BIT

[PATCH v3 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-05-28 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added a new sysfs-bus-iio-frequency-adf4371 file which documents the ABI changes. - Modified the ADF4371_REG() macro to take the reg values in hex as params - ADF4371_MAX_MODULUS2 macro is now defined as BIT

[PATCH v3 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-05-28 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Nothing changed. Changes in v3: - Nothing changed. .../devicetree/bindings/iio/frequency/adf4371.yaml | 54 ++ 1

[PATCH v5 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-06-04 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added a new sysfs-bus-iio-frequency-adf4371 file which documents the ABI changes. - Modified the ADF4371_REG() macro to take the reg values in hex as params - ADF4371_MAX_MODULUS2 macro is now defined as BIT

[PATCH v5 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-06-04 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa --- Changes in v2: - Nothing changed. Changes in v3: - Nothing changed. Changes in v4: - Nothing changed. Changes in v5: - Nothing changed. .../devicetree/bindings

[PATCH v6 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-06-04 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Nothing changed. Changes in v3: - Nothing changed. Changes in v4: - Nothing changed. Changes in v5: - Nothing changed

[PATCH v6 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-06-04 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added a new sysfs-bus-iio-frequency-adf4371 file which documents the ABI changes. - Modified the ADF4371_REG() macro to take the reg values in hex as params - ADF4371_MAX_MODULUS2 macro is now defined as BIT

[PATCH v2 1/2] iio: adc: Add AD7768-1 ADC basic support

2019-01-15 Thread Stefan Popa
/technical-documentation/data-sheets/ad7768-1.pdf Signed-off-by: Stefan Popa --- Changes in v2: - Added values to all the elements of ad7768_pwrmode enum. - Removed the ad7768_ids enum, as the driver supports only one device. - Added a new data union which is part

[PATCH v2 2/2] dt-bindings: iio: adc: Add docs for AD7768-1

2019-01-15 Thread Stefan Popa
Document support for AD7768-1 Analog to Digital Converter. Signed-off-by: Stefan Popa --- Changes in v2: - Added information regarding the simultaneous sampling of the SYNC-IN pin - Added the reset-gpios in the binding. .../devicetree/bindings/iio/adc/adi,ad7768-1.txt | 41

[PATCH v2] drivers: iio: dac: Fix wrong license for ADI drivers

2019-02-04 Thread Stefan Popa
Analog Devices drivers are typically GPL v2 only. This patch fixes the inconsistencies between the module license and SPDX. Signed-off-by: Stefan Popa --- Changes in v2: - Modified only the drivers with inconsistencies. drivers/iio/dac/ad5686-spi.c | 2 +- drivers/iio/dac/ad5686.c

[PATCH] iio: adc: ad7768-1: Add support for setting the sampling frequency

2019-02-04 Thread Stefan Popa
ned-off-by: Stefan Popa --- drivers/iio/adc/ad7768-1.c | 202 - 1 file changed, 199 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 78449e9..0d13270 100644 --- a/drivers/iio/adc/ad7768-1.c ++

[PATCH v3 1/2] iio: dac: Add AD5758 support

2018-06-28 Thread Stefan Popa
/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

[PATCH v3 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-06-28 Thread Stefan Popa
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

[PATCH v4 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-06-29 Thread Stefan Popa
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

[PATCH v4 1/2] iio: dac: Add AD5758 support

2018-06-29 Thread Stefan Popa
/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

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

2018-06-04 Thread Stefan Popa
/media/en/technical-documentation/data-sheets/AD5310R_5311R.pdf Signed-off-by: Stefan Popa --- drivers/iio/dac/ad5686.c | 7 +++ drivers/iio/dac/ad5686.h | 1 + drivers/iio/dac/ad5696-i2c.c | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac

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

2018-06-05 Thread Stefan Popa
Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/dac/ad5758.txt | 84 ++ MAINTAINERS| 1 + 2 files changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ad5758.txt diff --git

[PATCH 1/2] iio: dac: Add AD5758 support

2018-06-05 Thread Stefan Popa
/ad5758.pdf Signed-off-by: Stefan Popa --- MAINTAINERS | 7 + drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ad5758.c | 826 +++ 4 files changed, 844 insertions(+) create mode 100644 drivers/iio/dac

[PATCH v2 1/2] staging: iio: ad7606: Move out of staging

2018-11-20 Thread Stefan Popa
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

[PATCH v2 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-11-20 Thread Stefan Popa
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

[PATCH v2 1/6] staging: iio: adc: ad7606: Simplify the Kconfing menu

2018-12-17 Thread Stefan Popa
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

[PATCH v2 2/6] staging: iio: adc: ad7606: Use SPDX identifier

2018-12-17 Thread Stefan Popa
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

[PATCH v2 4/6] staging: iio: adc: ad7606: Misc style fixes (no functional change)

2018-12-17 Thread Stefan Popa
* 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

[PATCH v2 3/6] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-17 Thread Stefan Popa
of the 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 | 111 +-- drivers

[PATCH v2 6/6] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-12-17 Thread Stefan Popa
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

[PATCH v2 0/6] staging: iio: ad7606: Move out of staging

2018-12-17 Thread Stefan Popa
: - Nothing changed. Stefan Popa (6): staging: iio: adc: ad7606: Simplify the Kconfing menu staging: iio: adc: ad7606: Use SPDX identifier staging: iio: adc: ad7606: Add support for threaded irq staging: iio: adc: ad7606: Misc style fixes (no functional change) staging: iio: adc: ad7606: Move

[PATCH v2 5/6] staging: iio: adc: ad7606: Move out of staging

2018-12-17 Thread Stefan Popa
Move ad7606 ADC driver out of staging and into the mainline. Signed-off-by: Stefan Popa --- MAINTAINERS | 7 + drivers/iio/adc/Kconfig | 27 ++ drivers/iio/adc/Makefile | 3 + drivers/iio/adc/ad7606.c | 583

[PATCH v3 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-11-29 Thread Stefan Popa
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

[PATCH v3 1/2] staging: iio: ad7606: Move out of staging

2018-11-29 Thread Stefan Popa
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

[PATCH v5 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file

2018-11-13 Thread Stefan Popa
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

[PATCH v5 1/4] iio: ad_sigma_delta: Allow to provide custom data register address

2018-11-13 Thread Stefan Popa
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

[PATCH v5 4/4] dt-bindings: iio: adc: Add docs for ad7124

2018-11-13 Thread Stefan Popa
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

[PATCH v5 3/4] iio: adc: Add ad7124 support

2018-11-13 Thread Stefan Popa
/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

[PATCH 01/11] staging: iio: adc: ad7606: Simplify the Kconfing menu

2018-12-13 Thread Stefan Popa
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

[PATCH 05/11] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-13 Thread Stefan Popa
of the 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

[PATCH 06/11] staging: iio: adc: ad7606: Use find_closest() macro

2018-12-13 Thread Stefan Popa
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

[PATCH 03/11] staging: iio: adc: ad7606: Use wait-for-completion handler

2018-12-13 Thread Stefan Popa
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

[PATCH 08/11] staging: iio: adc: ad7606: Add OF device ID table

2018-12-13 Thread Stefan Popa
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

[PATCH 09/11] staging: iio: adc: ad7606: Misc style fixes (no functional change)

2018-12-13 Thread Stefan Popa
* 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

[PATCH 07/11] staging: iio: adc: ad7606: Use vendor prefix for DT properties

2018-12-13 Thread Stefan Popa
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/ad7606.c b

[PATCH 04/11] staging: iio: adc: ad7606: Use devm functions in probe

2018-12-13 Thread Stefan Popa
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

[PATCH 00/11] staging: iio: ad7606: Move out of staging

2018-12-13 Thread Stefan Popa
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

[PATCH 11/11] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-12-13 Thread Stefan Popa
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

[PATCH 10/11] staging: iio: adc: ad7606: Move out of staging

2018-12-13 Thread Stefan Popa
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

[PATCH 02/11] staging: iio: adc: ad7606: Use SPDX identifier

2018-12-13 Thread Stefan Popa
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

[PATCH v3 1/3] iio: ad_sigma_delta: Allow to provide custom data register address

2018-10-29 Thread Stefan Popa
Signed-off-by: Stefan Popa --- Changes in v2: - Added this commit. Changes in v3: - Nothing changed. drivers/iio/adc/ad_sigma_delta.c | 22 +- include/linux/iio/adc/ad_sigma_delta.h | 3 +++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git

<    1   2   3   4   >