mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
1dbae4c6cd
The AD5681R/AD5682R/AD5683/AD5683R are a family of one channel DACs with 12-bit, 14-bit and 16-bit precision respectively. The devices have either no built-in reference, or built-in 2.5V reference. These devices are similar to AD5691R/AD5692R/AD5693/AD5693R except with a few notable differences: * they use the SPI interface instead of I2C * in the write control register, DB18 and DB17 are used for setting the power mode, while DB16 is the REF bit. This is why a new regmap type was defined and checked accordingly. * the shift register is 24 bits wide, the first four bits are the command bits followed by the data bits. As the data comprises of 20-bit, 18-bit or 16-bit input code, this means that 4 LSB bits are don't care. This is why the data needs to be shifted on the left with four bits. Therefore, AD5683_REGMAP is checked inside a switch case 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.popa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> |
||
---|---|---|
.. | ||
ad5064.c | ||
ad5360.c | ||
ad5380.c | ||
ad5421.c | ||
ad5446.c | ||
ad5449.c | ||
ad5504.c | ||
ad5592r-base.c | ||
ad5592r-base.h | ||
ad5592r.c | ||
ad5593r.c | ||
ad5624r_spi.c | ||
ad5624r.h | ||
ad5686-spi.c | ||
ad5686.c | ||
ad5686.h | ||
ad5696-i2c.c | ||
ad5755.c | ||
ad5761.c | ||
ad5764.c | ||
ad5791.c | ||
ad7303.c | ||
ad8801.c | ||
cio-dac.c | ||
dpot-dac.c | ||
ds4424.c | ||
Kconfig | ||
lpc18xx_dac.c | ||
ltc2632.c | ||
m62332.c | ||
Makefile | ||
max517.c | ||
max5821.c | ||
mcp4725.c | ||
mcp4922.c | ||
stm32-dac-core.c | ||
stm32-dac-core.h | ||
stm32-dac.c | ||
ti-dac082s085.c | ||
ti-dac5571.c | ||
vf610_dac.c |