Re: [PATCH] iio: dac: Add support for ltc2632 DACs

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

 



On Mon, Mar 06, 2017 at 11:24:58AM +0100, Lars-Peter Clausen wrote:
> On 03/02/2017 08:01 PM, Maxime Roussin-Belanger wrote:
> > +
> > +#define LTC2632_CMD_WRITE_INPUT_N               0x0
> > +#define LTC2632_CMD_UPDATE_DAC_N                0x1
> > +#define LTC2632_CMD_WRITE_INPUT_N_UPDATE_ALL    0x2
> > +#define LTC2632_CMD_WRITE_INPUT_N_UPDATE_N      0x3
> > +#define LTC2632_CMD_POWERDOWN_DAC_N             0x4
> > +#define LTC2632_CMD_POWERDOWN_CHIP              0x5
> > +#define LTC2632_CMD_INTERNAL_REFER              0x6
> > +#define LTC2632_CMD_EXTERNAL_REFER              0x7
> 
> Looks like the SPI versions of the  LTC I2C DACs already supported in
> ad5064.c. Since that driver has SPI support, we could support them there
> instead of a separate driver. Should be a lot less code.
> 

We considered it, but the ad5064 is complicated for the simple ltc2632. It
would complicated ad5064, I don't think it is worth it.

For example, we would need another spi_write, because the CMD shift and the
ADDR shift are not the same. The current support for LTC2632 doesn't support
midscale. It only has 2 channels.

We think this new ltc2632 driver could become the base for the rest of the
ltc2632 series as well as other similarly simple DACs.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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