+
static const struct iio_info ad7195_info = {
.read_raw = ad7192_read_raw,
.write_raw = ad7192_write_raw,
@@ -1009,6 +1049,80 @@ static const struct iio_chan_spec ad7193_channels[] = {
IIO_CHAN_SOFT_TIMESTAMP(14),
};
+static struct iio_chan_spec ad7194_channels[] = {
+ AD7193_DIFF_CHANNEL(0, 1, 2, 0x001),
+ AD7193_DIFF_CHANNEL(1, 3, 4, 0x023),
+ AD7193_DIFF_CHANNEL(2, 5, 6, 0x045),
+ AD7193_DIFF_CHANNEL(3, 7, 8, 0x067),
+ AD7193_DIFF_CHANNEL(4, 9, 10, 0x089),
+ AD7193_DIFF_CHANNEL(5, 11, 12, 0x0AB),
+ AD7193_DIFF_CHANNEL(6, 13, 14, 0x0CD),
+ AD7193_DIFF_CHANNEL(7, 15, 16, 0x0EF),
+ AD719x_TEMP_CHANNEL(8, AD7194_CH_TEMP),
+ AD7193_CHANNEL(9, 1, AD7194_CH_AIN1),
+ AD7193_CHANNEL(10, 2, AD7194_CH_AIN2),
+ AD7193_CHANNEL(11, 3, AD7194_CH_AIN3),
+ AD7193_CHANNEL(12, 4, AD7194_CH_AIN4),
+ AD7193_CHANNEL(13, 5, AD7194_CH_AIN5),
+ AD7193_CHANNEL(14, 6, AD7194_CH_AIN6),
+ AD7193_CHANNEL(15, 7, AD7194_CH_AIN7),
+ AD7193_CHANNEL(16, 8, AD7194_CH_AIN8),
+ AD7193_CHANNEL(17, 9, AD7194_CH_AIN9),
+ AD7193_CHANNEL(18, 10, AD7194_CH_AIN10),
+ AD7193_CHANNEL(19, 11, AD7194_CH_AIN11),
+ AD7193_CHANNEL(20, 12, AD7194_CH_AIN12),
+ AD7193_CHANNEL(21, 13, AD7194_CH_AIN13),
+ AD7193_CHANNEL(22, 14, AD7194_CH_AIN14),
+ AD7193_CHANNEL(23, 15, AD7194_CH_AIN15),
+ AD7193_CHANNEL(24, 16, AD7194_CH_AIN16),
Shouldn't these be differential channels since they are
pseudo-differential inputs measuring the difference between AINx and
AINCOM?
+ IIO_CHAN_SOFT_TIMESTAMP(25),
+};
i.e. like this (where AINCOM is voltage0 AINx is voltagex)
static struct iio_chan_spec ad7194_channels[] = {
AD7193_DIFF_CHANNEL(0, 1, 0, AD7194_CH_AIN1),
AD7193_DIFF_CHANNEL(1, 2, 0, AD7194_CH_AIN2),
AD7193_DIFF_CHANNEL(2, 3, 0, AD7194_CH_AIN3),
AD7193_DIFF_CHANNEL(3, 4, 0, AD7194_CH_AIN4),
AD7193_DIFF_CHANNEL(4, 5, 0, AD7194_CH_AIN5),
AD7193_DIFF_CHANNEL(5, 6, 0, AD7194_CH_AIN6),
AD7193_DIFF_CHANNEL(6, 7, 0, AD7194_CH_AIN7),
AD7193_DIFF_CHANNEL(7, 8, 0, AD7194_CH_AIN8),
AD7193_DIFF_CHANNEL(8, 9, 0, AD7194_CH_AIN9),
AD7193_DIFF_CHANNEL(9, 10, 0, AD7194_CH_AIN10),
AD7193_DIFF_CHANNEL(10, 11, 0, AD7194_CH_AIN11),
AD7193_DIFF_CHANNEL(11, 12, 0, AD7194_CH_AIN12),
AD7193_DIFF_CHANNEL(12, 13, 0, AD7194_CH_AIN13),
AD7193_DIFF_CHANNEL(13, 14, 0, AD7194_CH_AIN14),
AD7193_DIFF_CHANNEL(14, 15, 0, AD7194_CH_AIN15),
AD7193_DIFF_CHANNEL(15, 16, 0, AD7194_CH_AIN16),
AD719x_TEMP_CHANNEL(16, AD7194_CH_TEMP),
IIO_CHAN_SOFT_TIMESTAMP(17),
};