[PATCH v6 3/3] iio: dac: ad5766: add driver support for AD5766

2021-01-15 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Signed-off-by: Cristian Pop --- Changelog v6: - Include "asm/unaligned.h" drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Make

[PATCH v6 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2021-01-15 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changelog v6: - Use microvolt unit - Remove unrelevant to the binding comment .../bindings/iio/dac/adi,ad5766.yaml | 63 +++ 1 file changed, 63 insertions(+) create mode

[PATCH v6 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2021-01-15 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop --- Changelog v6

[PATCH v5 3/3] iio: dac: ad5766: add driver support for AD5766

2021-01-08 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Signed-off-by: Cristian Pop --- Changelog v5: - Remove explicit init in "ad5766_span_tbl" - Check the retur

[PATCH v5 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2021-01-08 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop --- Changelog v5

[PATCH v5 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2021-01-08 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changelog v5: -rename to property to "output-range-voltage" .../bindings/iio/dac/adi,ad5766.yaml | 64 +

[PATCH v4 3/3] iio: dac: ad5766: add driver support for AD5766

2020-12-18 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Signed-off-by: Cristian Pop --- Changelog v4: - Select output range - Set possible dither source to: 0 - N0 and 1 for N1

[PATCH v4 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2020-12-18 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop --- Changelog v4

[PATCH v4 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2020-12-18 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changelog v4: - Add range selection - Reset is GPIO_ACTIVE_LOW .../bindings/iio/dac/adi,ad5766.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode

[PATCH v3 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2020-12-08 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changes in v3: - Fix errors .../bindings/iio/dac/adi,ad5766.yaml | 58 +++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/adi

[PATCH v3 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2020-12-08 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop --- .../ABI/testing/sysfs-bus

[PATCH v3 3/3] iio: dac: ad5766: add driver support for AD5766

2020-12-08 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Link: https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf Signed-off-by: Cristian Pop --- Changelog in v3

[PATCH v2 2/2] iio: dac: ad5766: add driver support for AD5766

2020-12-04 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Link: https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf Signed-off-by: Cristian Pop --- Changes in v2

[PATCH v2 1/2] dt-bindings: iio: dac: AD5766 yaml documentation

2020-12-04 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changes in v2: - Add "additionalProperties: false" property - Remove blank line .../bindings/iio/dac/adi,ad5766.yaml | 53 +++ 1 file changed, 53 insertions(

[PATCH 1/2] dt-bindings: iio: dac: AD5766 yaml documentation

2020-11-23 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- .../bindings/iio/dac/adi,ad5766.yaml | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml diff --git a/Documentation

[PATCH 2/2] iio: dac: ad5766: add driver support for AD5766

2020-11-23 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Link: https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf Signed-off-by: Cristian Pop --- drivers/iio/dac/ad5766.c

[PATCH v7 4/5] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label

2020-11-02 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add "additionalProperties: false" for channel child nodes. - Fix "reg" spelling. .../bindings/iio/adc/adi,ad7768-1.yaml| 32 +++ 1 file ch

[PATCH v7 3/5] iio: adc: ad7768-1: Add channel labels.

2020-11-02 Thread Cristian Pop
For better identification of the channels. Signed-off-by: Cristian Pop --- drivers/iio/adc/ad7768-1.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 0e93b0766eb4..5c0cbee03230 100644 --- a

[PATCH v7 5/5] dt-bindings:iio:adc:adc.txt: Add documentation for channel label attribute

2020-11-02 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add this extra commit Documentation/devicetree/bindings/iio/adc/adc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.txt b

[PATCH v7 5/5] dt-bindings:iio:adc:adc.txt: Add documentation for channel label attribute

2020-11-02 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add this extra commit Documentation/devicetree/bindings/iio/adc/adc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.txt b

[PATCH v7 3/5] iio: adc: ad7768-1: Add channel labels.

2020-11-02 Thread Cristian Pop
For better identification of the channels. Signed-off-by: Cristian Pop --- drivers/iio/adc/ad7768-1.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 0e93b0766eb4..5c0cbee03230 100644 --- a

[PATCH v7 4/5] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label

2020-11-02 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add "additionalProperties: false" for channel child nodes. - Fix "reg" spelling. .../bindings/iio/adc/adi,ad7768-1.yaml| 32 +++ 1 file ch

[PATCH v7 1/5] iio: core: Add optional symbolic label to a device channel

2020-11-02 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- drivers/iio/industrialio-core.c | 40 + include/linux

[PATCH v7 2/5] iio:Documentation: Add documentation for label channel attribute

2020-11-02 Thread Cristian Pop
If a label is defined for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in v7: - Specify affected only channels which we are implementing in this patch set

[PATCH v7 2/5] iio:Documentation: Add documentation for label channel attribute

2020-11-02 Thread Cristian Pop
If a label is defined for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in v7: - Specify affected only channels which we are implementing in this patch set

[PATCH v7 1/5] iio: core: Add optional symbolic label to a device channel

2020-11-02 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- drivers/iio/industrialio-core.c | 40 + include/linux

[PATCH v7 5/5] dt-bindings:iio:adc:adc.txt: Add documentation for channel label attribute

2020-09-28 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add this extra commit Documentation/devicetree/bindings/iio/adc/adc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.txt b

[PATCH v7 4/5] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label

2020-09-28 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add "additionalProperties: false" for channel child nodes. - Fix "reg" spelling. .../bindings/iio/adc/adi,ad7768-1.yaml| 32 +++ 1 file ch

[PATCH v7 2/5] iio:Documentation: Add documentation for label channel attribute

2020-09-28 Thread Cristian Pop
If a label is defined for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in v7: - Specify affected only channels which we are implementing in this patch set

[PATCH v7 1/5] iio: core: Add optional symbolic label to a device channel

2020-09-28 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- drivers/iio/industrialio-core.c | 40 + include/linux

[PATCH v7 3/5] iio: adc: ad7768-1: Add channel labels.

2020-09-28 Thread Cristian Pop
For better identification of the channels. Signed-off-by: Cristian Pop --- drivers/iio/adc/ad7768-1.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 0e93b0766eb4..5c0cbee03230 100644 --- a

[PATCH v6 2/4] iio:Documentation: Add documentation for label channel attribute

2020-09-21 Thread Cristian Pop
If a label is defined for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in v6: - Fix documentation Documentation/ABI/testing/sysfs-bus-iio | 72

[PATCH v6 3/4] iio: adc: ad7768-1: Add channel labels.

2020-09-21 Thread Cristian Pop
For better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v6: - Use static variable for labels drivers/iio/adc/ad7768-1.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768

[PATCH v6 4/4] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label

2020-09-21 Thread Cristian Pop
Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- .../bindings/iio/adc/adi,ad7768-1.yaml| 31 +++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation

[PATCH v6 1/4] iio: core: Add optional symbolic label to a device channel

2020-09-21 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V6: - Fix indentation - Check for "read_label callback&qu

[PATCH v5] iio:Documentation: Add documentation for label channel attribute

2020-09-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V5: Create a separate patch file for this commit. Documentation/ABI

[PATCH v5] iio: adc: ad7768-1: Add channel label example

2020-09-18 Thread Cristian Pop
This is a demo usage of new "label" attribute for channel. Signed-off-by: Cristian Pop --- Changes in V5: Create a separate patch file for this commit drivers/iio/adc/ad7768-1.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/iio/ad

[PATCH v5] iio: core: Add optional symbolic label to a device channel

2020-09-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V5: Create patch for single commits. drivers/iio/industrialio

[PATCH v4 1/3] iio: core: Add optional symbolic label to a device channel

2020-09-16 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Change in V4: - Check for callback before generating file system for label

[RFC PATCH v3] iio: core: Add optional symbolic label to a device channel

2020-09-11 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V3: - Add "read_label" callback function d

[RFC PATCH v2] iio: core: Add optional symbolic label to a device channel

2020-08-24 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in v2: - Move label check before "read_raw" callback.

[RFC PATCH] iio: core: Add optional symbolic label to a device channel

2020-08-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- drivers/iio/industrialio-core.c | 10 -- include/linux/iio/iio.h | 2

[RFC PATCH] iio: core: Add optional symbolic label to a device channel

2020-08-12 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- drivers/iio/industrialio-core.c | 45 +++-- include/linux

[RFC PATCH] one-bit-adc-dac: Add initial version of one bit ADC, DAC

2020-07-16 Thread Cristian Pop
Implementation for 1-bit ADC (comparator) and a 1-bit DAC (switch) Signed-off-by: Cristian Pop --- drivers/iio/addac/one-bit-adc-dac.c | 229 1 file changed, 229 insertions(+) create mode 100644 drivers/iio/addac/one-bit-adc-dac.c diff --git a/drivers/iio/addac