[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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 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 <stefan.p...@analog.

[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 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 <stefan.p...@analog.com> --- 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 cas

[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 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 <stefan.p...@analog.

[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 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 <stefan.p...@analog.com> --- 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(-)

[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 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 <stefan.p...@analog.com> --- 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 s

[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 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 <stefan.p...@analog.com> --- Changes

[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 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 <stefan.p...@analog.com> --- Changes in v3: - Split devicetree bindings into a separate patch. .../devicetree/bindings/power/supply/adp5061.txt| 17 + MAINT

[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 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 <stefan.p...@analog.com> --- Changes in v2: - Fixed typo in Kconfig file: build -> built. Changes in v3: - Described the commit message parameters with

[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 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 <stefa

[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 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 <stefan.p...@analog.com> --- 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 SP

[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 6/7] iio:dac:ad5686: Refactor the driver

2018-04-11 Thread Stefan Popa
instead of SPI). Signed-off-by: Stefan Popa <stefan.p...@analog.com> --- 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:

[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 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 <stefan.p...@analog.com> --- Changes in v2: - Refactored the patch to add support for new parts C

[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 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 <stefan.p...@analog.com> --- Changes

[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 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 <stefan.p...@analog.com> --- Changes in v3: - Created a new patch to use the SPDx identifier drivers/iio/dac/ad5686.c | 3 +-- 1 file changed, 1 insertion

[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 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 <stefan.p...@analog.com> --- Changes v2: - Nothing changed, just follow the patch set version. Changes v3: - Nothing changed, just follow the patch set v

[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 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 <stefan.p...@analog.com> --- Changes in v2: - Refactored the patch MAINTAINERS | 1 + drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ad5686.c | 28 + drive

[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 v2 5/6] iio:dac:ad5686: Refactor the driver

2018-04-10 Thread Stefan Popa
instead of SPI). Signed-off-by: Stefan Popa <stefan.p...@analog.com> --- 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

[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 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 <stefan.p...@analog.com> --- Changes in v2: - Refactored the patch to add support for new

[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 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 <stefan.p...@analog.com> --- Changes

[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 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 <stefa

[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 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 <stefan.p...@analog.com> --- drivers/iio/dac/ad5686.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/iio/dac/ad

[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/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 <stefan.p...@analog.com> --- Changes

[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/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 <stefan.p...@analog.com> --- Changes in v2: - Fixed typo in Kconfig file:

[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 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 <stefan.p...@analog.com> --- 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

[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 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 <stefan.p...@analog.com> --- .../ABI/testing/sysfs-class-power-adp5061 | 13 ++ drivers/power/supply/adp5061.c | 46 ++ 2 files changed, 59 insertions(+) diff

[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 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 <stefan.p...@analog.com> --- .../ABI/testing

[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 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 <stefan.p...@analog.com> --- .../devicetree/bindings/power/supply/adp50

[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 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 <stefan.p...@analog.com> --- MAINTAINERS

[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: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 <stefan.p...@analog.com> --- drivers/iio/dac/ad5686.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/iio/dac/ad

[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 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 <stefan.p...@analog.com> --- drivers/iio/dac/ad5686.

[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] 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 <stefan.p...@analog.com> --- drivers/staging/iio/adc/ad7192

[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

<    1   2   3   4   >