AD 5766 driver software reset during runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello to all,

For those who are receiving this email for the second time, it seems that linux-iio@xxxxxxxxxxxxxxx, doesn't accept HTML format emails, so this is a plain text version.

I have been developing a linux kernel drive for a DAC converter, ad5766 and it supports changing the output span range, from eight available output ranges during runtime. This is done setting scale and offset attributes trough a `write_raw` call. When changing the range during runtime for this chip, a software reset is necessary, before writing to the span register. Do you think this is acceptable upstream? Should we make the span ranges selectable at runtime? From what I heard, it's not always a good idea to do reset of a device at runtime.

AD5722 software reset in driver before setting a new offset / range:
https://github.com/analogdevicesinc/linux/blob/4c7d019397e696dcaf735c52169a92fcbe5b5b8b/drivers/iio/dac/ad5766.c#L309

AD5722 software reset in driver, before setting a new scale / range:
https://github.com/analogdevicesinc/linux/blob/4c7d019397e696dcaf735c52169a92fcbe5b5b8b/drivers/iio/dac/ad5766.c#L357

AD5722 datasheet:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD5722_5732_5752.pdf

Thanks and best regards,
Cristian Pop




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux