[PATCH v3 2/3] iio: adc: Add ad7124 support

2018-10-29 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: - Added this commit. Changes in v3: - Removed channel, address, scan_index and shift fields

[PATCH v3 3/3] dt-bindings: iio: adc: Add docs for ad7124

2018-10-29 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 v4 1/2] staging: iio: ad7606: Move out of staging

2018-12-10 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 v4 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-12-10 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 3/3] iio:adxl372: Add filter bandwidth support

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

[PATCH 1/3] iio: adxl372: Provide validate_trigger and validate_device callbacks

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

[PATCH 2/3] iio:adxl372: Add sampling frequency support

2018-08-20 Thread Stefan Popa
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 v6 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

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

[PATCH v6 2/6] dt-bindings: iio: accel: Add docs for ADXL372

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

[PATCH v6 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-10 Thread Stefan Popa
. 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 db9ecd2

[PATCH v6 3/6] regmap: Add regmap_noinc_read API

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

[PATCH v6 6/6] iio:adxl372: Add filter bandwidth support

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

[PATCH v6 5/6] iio:adxl372: Add sampling frequency support

2018-08-10 Thread Stefan Popa
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 v6 0/6] iio: accel: Add adxl372 driver

2018-08-10 Thread Stefan Popa
: - 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 sampling frequency support

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

2018-10-18 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 | 34 +++ drivers/iio/adc/Makefile | 3 + drivers/iio/adc/ad7606.c | 565

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

2018-10-18 Thread Stefan Popa
Document support for AD7606 Analog to Digital Converter. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/adc/adi,ad7606.txt | 51 ++ MAINTAINERS| 1 + 2 files changed, 52 insertions(+) create mode 100644 Documentation

[PATCH 1/2] iio: adc: Add ad7124 support

2018-10-18 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 --- MAINTAINERS | 7 + drivers/iio/adc/Kconfig | 11 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc

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

2018-10-18 Thread Stefan Popa
Add support for Analog Devices AD7124 4-channels and 8-channels ADC. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/adc/adi,ad7124.txt | 96 ++ MAINTAINERS| 1 + 2 files changed, 97 insertions(+) create mode 100644

[PATCH v2 2/3] iio: adc: Add ad7124 support

2018-10-19 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. MAINTAINERS | 7 + drivers/iio/adc/Kconfig | 11 + drivers/iio

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

2018-10-19 Thread Stefan Popa
Signed-off-by: Stefan Popa --- Changes in v2: - Added this commit. 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 a/drivers/iio/adc/ad_sigma_delta.c b/drivers

[PATCH v2 3/3] dt-bindings: iio: adc: Add docs for ad7124

2018-10-19 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. .../devicetree/bindings/iio/adc/adi,ad7124.txt | 96 ++ MAINTAINERS| 1 + 2 files

[PATCH v2 2/6] dt-bindings: iio: accel: Add docs for ADXL372

2018-08-01 Thread Stefan Popa
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

[PATCH v2 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-08-01 Thread Stefan Popa
-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

[PATCH v2 3/6] regmap: Add regmap_pipe_read API

2018-08-01 Thread Stefan Popa
-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

[PATCH v2 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-01 Thread Stefan Popa
. 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. - used

[PATCH v2 6/6] iio:adxl372: Add filter bandwidth support

2018-08-01 Thread Stefan Popa
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

[PATCH v2 5/6] iio:adxl372: Add sampling frequency support

2018-08-01 Thread Stefan Popa
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

[PATCH v3 0/6] iio: accel: Add adxl372 driver

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

[PATCH v3 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

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

[PATCH v3 2/6] dt-bindings: iio: accel: Add docs for ADXL372

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

[PATCH v3 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-03 Thread Stefan Popa
. 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 7d5092d

[PATCH v3 3/6] regmap: Add regmap_noinc_read API

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

[PATCH v3 5/6] iio:adxl372: Add sampling frequency support

2018-08-03 Thread Stefan Popa
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 v3 6/6] iio:adxl372: Add filter bandwidth support

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

[PATCH] iio: dac: ad5758: Add support for hard reset

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

[PATCH v4 0/6] iio: accel: Add adxl372 driver

2018-08-06 Thread Stefan Popa
: - 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 sampling frequency

[PATCH v4 2/6] dt-bindings: iio: accel: Add docs for ADXL372

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

[PATCH v4 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

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

[PATCH v4 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-06 Thread Stefan Popa
. 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 db9ecd2

[PATCH v4 5/6] iio:adxl372: Add sampling frequency support

2018-08-06 Thread Stefan Popa
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 v4 3/6] regmap: Add regmap_noinc_read API

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

[PATCH v4 6/6] iio:adxl372: Add filter bandwidth support

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

[PATCH v5 0/6] iio: accel: Add adxl372 driver

2018-08-07 Thread Stefan Popa
: - 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 sampling frequency

[PATCH v5 2/6] dt-bindings: iio: accel: Add docs for ADXL372

2018-08-07 Thread Stefan Popa
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

[PATCH v5 3/6] regmap: Add regmap_noinc_read API

2018-08-07 Thread Stefan Popa
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

[PATCH v5 5/6] iio:adxl372: Add sampling frequency support

2018-08-07 Thread Stefan Popa
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 v5 4/6] iio:adxl372: Add FIFO and interrupts support

2018-08-07 Thread Stefan Popa
. 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 db9ecd2

[PATCH v5 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-08-07 Thread Stefan Popa
-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

[PATCH v5 6/6] iio:adxl372: Add filter bandwidth support

2018-08-07 Thread Stefan Popa
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

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

2019-05-15 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/frequency/adf4371.yaml | 54 ++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/frequency/adf4371.yaml

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

2019-05-15 Thread Stefan Popa
/adf4371.pdf Signed-off-by: Stefan Popa --- drivers/iio/frequency/Kconfig | 10 + drivers/iio/frequency/Makefile | 1 + drivers/iio/frequency/adf4371.c | 573 3 files changed, 584 insertions(+) create mode 100644 drivers/iio/frequency/adf4371.c diff

[PATCH] MAINTAINERS: Fix the link to ad7606 dt-bindings

2019-03-26 Thread Stefan Popa
The devicetree bindings documentation for ad7606 should also include the vendor prefix: ad7606.txt -> adi,ad7606.txt Signed-off-by: Stefan Popa --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index ff2c2f2..4f81cdc 100

[PATCH v2] MAINTAINERS: Fix the link to ad7606 dt-bindings

2019-03-26 Thread Stefan Popa
The devicetree bindings documentation for ad7606 should also include the vendor prefix: ad7606.txt -> adi,ad7606.txt Fixes: 6e33a125df66 ("dt-bindings: iio: adc: Add docs for AD7606 ADC") Signed-off-by: Stefan Popa --- Changes in v2: - Added Fixes tag MAINTAINERS | 2 +- 1

[PATCH v3 1/7] iio: imu: adis16480: Add support for configurable drdy indicator

2019-02-27 Thread Stefan Popa
devices might be expecting the interrupt on the wrong physical pin. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 97 - 1 file changed, 95 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c

[PATCH v3 0/7] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-27 Thread Stefan Popa
DIO1 pin as default data ready signal instead of DIO2. Patch 2: - nothing changed. Patch 3, 4: - give the scale directly in the adis16480_chip_info struct. Patch 5: - document the use of DIO1 pin as default data ready signal. Stefan Popa (7): iio: imu: adis16480: Add

[PATCH v3 2/7] iio: imu: adis16480: Add OF device ID table

2019-02-27 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 OF device ID table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/imu/adis16480.c

[PATCH v3 3/7] iio: imu: adis16480: Treat temperature scale in a generic way

2019-02-27 Thread Stefan Popa
the supported devices. However, devices that will make use of this feature will be added in the future. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu

[PATCH v3 4/7] iio: imu: adis16480: Calculate the sampling frequency in a generic way

2019-02-27 Thread Stefan Popa
. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c index 5a2864a..92abc95 100644 --- a/drivers/iio/imu/adis16480.c +++ b/drivers/iio/imu/adis16480.c

[PATCH v3 5/7] iio: imu: adis16480: Deal with filter freq in a generic way

2019-02-27 Thread Stefan Popa
When setting the filter frequency, the driver looks into the adis16480_def_filter_freqs table for the best match. Pass this table to the chip_info struct since future devices will need to use a different table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 13 + 1

[PATCH v3 6/7] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-27 Thread Stefan Popa
-documentation/data-sheets/adis16497.pdf Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 97 + 1 file changed, 97 insertions(+) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c index c90375d..28cece3 100644 --- a/drivers/iio

[PATCH v3 7/7] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-02-27 Thread Stefan Popa
Document support for ADIS16480 Inertial Measurement Unit. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 ++ MAINTAINERS| 1 + 2 files changed, 50 insertions(+) create

[PATCH] drivers: spi: core: Add optional stall delay between cs_change transfers

2019-02-19 Thread Stefan Popa
From: Michael Hennerich Some devices like the ADIS16460 IMU require a stall period between transfers. The default value of 10us are not enough. Introduce a per transfer configurable delay. Signed-off-by: Michael Hennerich Signed-off-by: Stefan Popa --- drivers/spi/spi.c | 3

[PATCH 0/6] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-19 Thread Stefan Popa
missing docs Stefan Popa (6): iio: imu: adis16480: Use the default data ready pin configuration iio: imu: adis16480: Add support for configurable drdy indicator iio: imu: adis16480: Add OF device ID table iio: imu: adis16480: Treat temperature scale in a generic way iio: imu: adis16480: Add

[PATCH 1/6] iio: imu: adis16480: Use the default data ready pin configuration

2019-02-19 Thread Stefan Popa
is called. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c index a27fe20..d222188 100644 --- a/drivers/iio/imu/adis16480.c +++ b/drivers/iio

[PATCH 2/6] iio: imu: adis16480: Add support for configurable drdy indicator

2019-02-19 Thread Stefan Popa
. The 'interrupt-names' property is optional, if it is not specified, then the factory default DIO2 data ready signal is used. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/iio

[PATCH 3/6] iio: imu: adis16480: Add OF device ID table

2019-02-19 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 OF device ID table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/imu/adis16480.c

[PATCH 5/6] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-19 Thread Stefan Popa
/technical-documentation/data-sheets/adis16495.pdf Link: https://www.analog.com/media/en/technical-documentation/data-sheets/adis16497.pdf Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 72 + 1 file changed, 72 insertions(+) diff --git

[PATCH 4/6] iio: imu: adis16480: Treat temperature scale in a generic way

2019-02-19 Thread Stefan Popa
the supported devices. However, devices that will make use of this feature will be added in the future. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu

[PATCH 6/6] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-02-19 Thread Stefan Popa
Document support for ADIS16480 Inertial Measurement Unit. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 ++ MAINTAINERS| 1 + 2 files changed, 50 insertions(+) create mode 100644 Documentation

[PATCH v2 0/5] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-21 Thread Stefan Popa
. Stefan Popa (5): iio: imu: adis16480: Add support for configurable drdy indicator iio: imu: adis16480: Add OF device ID table iio: imu: adis16480: Treat temperature scale in a generic way iio: imu: adis16480: Add support for ADIS1649x family of devices iio: imu: adis16480: Add docs

[PATCH v2 2/5] iio: imu: adis16480: Add OF device ID table

2019-02-21 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 OF device ID table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/imu/adis16480.c

[PATCH v2 4/5] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-21 Thread Stefan Popa
/technical-documentation/data-sheets/adis16495.pdf Link: https://www.analog.com/media/en/technical-documentation/data-sheets/adis16497.pdf Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 72 + 1 file changed, 72 insertions(+) diff --git

[PATCH v2 1/5] iio: imu: adis16480: Add support for configurable drdy indicator

2019-02-21 Thread Stefan Popa
devices might be expecting the interrupt on the wrong physical pin. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 97 - 1 file changed, 95 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c

[PATCH v2 3/5] iio: imu: adis16480: Treat temperature scale in a generic way

2019-02-21 Thread Stefan Popa
the supported devices. However, devices that will make use of this feature will be added in the future. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu

[PATCH v2 5/5] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-02-21 Thread Stefan Popa
Document support for ADIS16480 Inertial Measurement Unit. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 ++ MAINTAINERS| 1 + 2 files changed, 50 insertions(+) create mode 100644 Documentation

[PATCH v2 1/2] iio: imu: adis16480: Add support for external clock

2019-03-11 Thread Stefan Popa
one function at a time (data ready line selection or external clock input). Signed-off-by: Stefan Popa --- Changes in v2: - used ADIS16480_DRDY_SEL() macro when checking for external clock input pin. drivers/iio/imu/adis16480.c | 186 ++

[PATCH v2 2/2] dt-bindings: iio: imu: adis16480: Document external clock

2019-03-11 Thread Stefan Popa
pin which is used as external clock input is selected by using a custom optional property called "adi,ext-clk-pin". If this field is left empty, DIO2 is assigned as default external clock input pin. Signed-off-by: Stefan Popa --- Changes in v2: - Mentioned that both "clocks&

[PATCH 1/2] iio: imu: adis16480: Add support for external clock

2019-03-07 Thread Stefan Popa
one function at a time (data ready line selection or external clock input). Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 186 ++-- 1 file changed, 179 insertions(+), 7 deletions(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/ii

[PATCH 2/2] dt-bindings: iio: imu: adis16480: Document external clock

2019-03-07 Thread Stefan Popa
pin which is used as external clock input is selected by using a custom optional property called "adi,ext-clk-pin". If this field is left empty, DIO2 is assigned as default external clock input pin. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 34 +

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

2019-01-31 Thread Stefan Popa
Document support for AD7768-1 Analog to Digital Converter. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Added information regarding the simultaneous sampling of the SYNC-IN pin - Added the reset-gpios in the binding. Changes in v3: - Nothing

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

2019-01-31 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] drivers: iio: Fix wrong license for ADI drivers

2019-02-01 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 --- drivers/iio/accel/adxl372.c | 4 ++-- drivers/iio/accel/adxl372.h | 2 +- drivers/iio/accel/adxl372_i2c.c | 4 ++-- drivers/iio

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

2019-01-07 Thread Stefan Popa
/technical-documentation/data-sheets/ad7768-1.pdf Signed-off-by: Stefan Popa --- MAINTAINERS| 7 + drivers/iio/adc/Kconfig| 13 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7768-1.c | 474 + 4 files changed, 495

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

2019-01-07 Thread Stefan Popa
Document support for AD7768-1 Analog to Digital Converter. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/adc/adi,ad7768-1.txt | 34 ++ MAINTAINERS| 1 + 2 files changed, 35 insertions(+) create mode 100644

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

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

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

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

[PATCH 2/3] iio: adxl372: Add support for I2C communication

2018-09-04 Thread Stefan Popa
The adxl372 is designed to communicate in either SPI or I2C protocol. It autodetects the format being used, requiring no configuration control to select the format. Signed-off-by: Stefan Popa --- MAINTAINERS | 1 + drivers/iio/accel/Kconfig | 11 drivers/iio

[PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings

2018-09-04 Thread Stefan Popa
The adxl372 is designed to communicate in either SPI or I2C protocol. This patch adds the documentation of device tree bindings for adxl372 I2C. Signed-off-by: Stefan Popa --- Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +-- 1 file changed, 13 insertions(+), 2

[PATCH 1/3] iio: adxl372: Refactor the driver

2018-09-04 Thread Stefan Popa
instead of SPI). Signed-off-by: Stefan Popa --- MAINTAINERS | 1 + drivers/iio/accel/Kconfig | 11 +-- drivers/iio/accel/Makefile | 1 + drivers/iio/accel/adxl372.c | 73 ++--- drivers/iio/accel/adxl372.h | 15

[PATCH 2/5] dt-bindings: iio: accel: Add docs for ADXL372

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

[PATCH 4/5] iio:adxl372: Add sampling frequency support

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

[PATCH 5/5] iio:adxl372: Add filter bandwidth support

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

[PATCH 3/5] iio:adxl372: Add FIFO and interrupts support

2018-07-12 Thread Stefan Popa
with the 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/Documentation

[PATCH 1/5] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

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

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

2018-06-07 Thread Stefan Popa
/ad5758.pdf Signed-off-by: Stefan Popa --- Changes in v2: - removed unnecessary parenthesis in AD5758_REG_WRITE macro. - added missing documentation fields of ad5758_state struct. - changed the type of pwr_down attribute to bool. - changed ad5758_dc_dc_ilimt

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

2018-06-07 Thread Stefan Popa
Signed-off-by: Stefan Popa --- Changes in v2: - Nothing changed, just to follow the patch set version. .../devicetree/bindings/iio/dac/ad5758.txt | 84 ++ MAINTAINERS| 1 + 2 files changed, 85 insertions(+) create

[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

<    1   2   3   4   >