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

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

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

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

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

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

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

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