blob: 712d86b4be09b86ad5b6e224054f9bc69e57659e [file] [log] [blame]
Michael Hennerich59c23ea2011-04-04 15:39:15 +02001/*
2 * AD5504, AD5501 High Voltage Digital to Analog Converter
3 *
4 * Copyright 2011 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2.
7 */
8
9#include <linux/interrupt.h>
Michael Hennerich59c23ea2011-04-04 15:39:15 +020010#include <linux/fs.h>
11#include <linux/device.h>
12#include <linux/kernel.h>
13#include <linux/spi/spi.h>
14#include <linux/slab.h>
15#include <linux/sysfs.h>
16#include <linux/regulator/consumer.h>
Paul Gortmaker99c97852011-07-03 15:49:50 -040017#include <linux/module.h>
Peter Meerwalda476bc02014-12-06 06:00:00 +000018#include <linux/bitops.h>
Michael Hennerich59c23ea2011-04-04 15:39:15 +020019
Jonathan Cameron06458e22012-04-25 15:54:58 +010020#include <linux/iio/iio.h>
21#include <linux/iio/sysfs.h>
22#include <linux/iio/events.h>
Lars-Peter Clausendbdc0252012-06-04 11:36:28 +020023#include <linux/iio/dac/ad5504.h>
Michael Hennerich59c23ea2011-04-04 15:39:15 +020024
Peter Meerwalda476bc02014-12-06 06:00:00 +000025#define AD5504_RES_MASK GENMASK(11, 0)
26#define AD5504_CMD_READ BIT(15)
27#define AD5504_CMD_WRITE 0
Lars-Peter Clausena98348b2012-06-04 11:36:26 +020028#define AD5504_ADDR(addr) ((addr) << 12)
29
30/* Registers */
31#define AD5504_ADDR_NOOP 0
32#define AD5504_ADDR_DAC(x) ((x) + 1)
33#define AD5504_ADDR_ALL_DAC 5
34#define AD5504_ADDR_CTRL 7
35
36/* Control Register */
37#define AD5504_DAC_PWR(ch) ((ch) << 2)
38#define AD5504_DAC_PWRDWN_MODE(mode) ((mode) << 6)
39#define AD5504_DAC_PWRDN_20K 0
40#define AD5504_DAC_PWRDN_3STATE 1
41
42/**
43 * struct ad5446_state - driver instance specific data
Peter Meerwalda476bc02014-12-06 06:00:00 +000044 * @spi: spi_device
Lars-Peter Clausena98348b2012-06-04 11:36:26 +020045 * @reg: supply regulator
46 * @vref_mv: actual reference voltage used
47 * @pwr_down_mask power down mask
48 * @pwr_down_mode current power down mode
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000049 * @data: transfer buffer
Lars-Peter Clausena98348b2012-06-04 11:36:26 +020050 */
Lars-Peter Clausena98348b2012-06-04 11:36:26 +020051struct ad5504_state {
52 struct spi_device *spi;
53 struct regulator *reg;
54 unsigned short vref_mv;
55 unsigned pwr_down_mask;
56 unsigned pwr_down_mode;
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000057
58 __be16 data[2] ____cacheline_aligned;
Lars-Peter Clausena98348b2012-06-04 11:36:26 +020059};
60
61/**
62 * ad5504_supported_device_ids:
63 */
64
65enum ad5504_supported_device_ids {
66 ID_AD5504,
67 ID_AD5501,
68};
69
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000070static int ad5504_spi_write(struct ad5504_state *st, u8 addr, u16 val)
Michael Hennerich59c23ea2011-04-04 15:39:15 +020071{
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000072 st->data[0] = cpu_to_be16(AD5504_CMD_WRITE | AD5504_ADDR(addr) |
Michael Hennerich59c23ea2011-04-04 15:39:15 +020073 (val & AD5504_RES_MASK));
74
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000075 return spi_write(st->spi, &st->data[0], 2);
Michael Hennerich59c23ea2011-04-04 15:39:15 +020076}
77
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000078static int ad5504_spi_read(struct ad5504_state *st, u8 addr)
Michael Hennerich59c23ea2011-04-04 15:39:15 +020079{
Michael Hennerich59c23ea2011-04-04 15:39:15 +020080 int ret;
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000081 struct spi_transfer t = {
82 .tx_buf = &st->data[0],
83 .rx_buf = &st->data[1],
84 .len = 2,
85 };
Michael Hennerich59c23ea2011-04-04 15:39:15 +020086
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000087 st->data[0] = cpu_to_be16(AD5504_CMD_READ | AD5504_ADDR(addr));
88 ret = spi_sync_transfer(st->spi, &t, 1);
Lars-Peter Clausena7b15282011-11-15 16:31:23 +010089 if (ret < 0)
Michael Hennerich59c23ea2011-04-04 15:39:15 +020090 return ret;
91
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +000092 return be16_to_cpu(st->data[1]) & AD5504_RES_MASK;
Michael Hennerich59c23ea2011-04-04 15:39:15 +020093}
94
Lars-Peter Clausena7b15282011-11-15 16:31:23 +010095static int ad5504_read_raw(struct iio_dev *indio_dev,
96 struct iio_chan_spec const *chan,
97 int *val,
98 int *val2,
99 long m)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200100{
Jonathan Camerona3684de2011-06-27 13:07:32 +0100101 struct ad5504_state *st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200102 int ret;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200103
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100104 switch (m) {
Jonathan Cameron09f4eb42012-04-15 17:41:19 +0100105 case IIO_CHAN_INFO_RAW:
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +0000106 ret = ad5504_spi_read(st, chan->address);
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100107 if (ret < 0)
108 return ret;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200109
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100110 *val = ret;
111
112 return IIO_VAL_INT;
113 case IIO_CHAN_INFO_SCALE:
Lars-Peter Clausen54ea1432013-09-28 10:31:00 +0100114 *val = st->vref_mv;
115 *val2 = chan->scan_type.realbits;
116 return IIO_VAL_FRACTIONAL_LOG2;
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100117 }
118 return -EINVAL;
119}
120
121static int ad5504_write_raw(struct iio_dev *indio_dev,
122 struct iio_chan_spec const *chan,
123 int val,
124 int val2,
125 long mask)
126{
127 struct ad5504_state *st = iio_priv(indio_dev);
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100128
129 switch (mask) {
Jonathan Cameron09f4eb42012-04-15 17:41:19 +0100130 case IIO_CHAN_INFO_RAW:
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100131 if (val >= (1 << chan->scan_type.realbits) || val < 0)
132 return -EINVAL;
133
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +0000134 return ad5504_spi_write(st, chan->address, val);
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100135 default:
Sachin Kamat0d3a9b22014-03-07 07:38:00 +0000136 return -EINVAL;
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100137 }
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200138}
139
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200140static const char * const ad5504_powerdown_modes[] = {
141 "20kohm_to_gnd",
142 "three_state",
143};
144
145static int ad5504_get_powerdown_mode(struct iio_dev *indio_dev,
146 const struct iio_chan_spec *chan)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200147{
Jonathan Camerona3684de2011-06-27 13:07:32 +0100148 struct ad5504_state *st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200149
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200150 return st->pwr_down_mode;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200151}
152
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200153static int ad5504_set_powerdown_mode(struct iio_dev *indio_dev,
154 const struct iio_chan_spec *chan, unsigned int mode)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200155{
Jonathan Camerona3684de2011-06-27 13:07:32 +0100156 struct ad5504_state *st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200157
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200158 st->pwr_down_mode = mode;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200159
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200160 return 0;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200161}
162
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200163static const struct iio_enum ad5504_powerdown_mode_enum = {
164 .items = ad5504_powerdown_modes,
165 .num_items = ARRAY_SIZE(ad5504_powerdown_modes),
166 .get = ad5504_get_powerdown_mode,
167 .set = ad5504_set_powerdown_mode,
168};
169
170static ssize_t ad5504_read_dac_powerdown(struct iio_dev *indio_dev,
171 uintptr_t private, const struct iio_chan_spec *chan, char *buf)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200172{
Jonathan Camerona3684de2011-06-27 13:07:32 +0100173 struct ad5504_state *st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200174
175 return sprintf(buf, "%d\n",
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200176 !(st->pwr_down_mask & (1 << chan->channel)));
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200177}
178
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200179static ssize_t ad5504_write_dac_powerdown(struct iio_dev *indio_dev,
180 uintptr_t private, const struct iio_chan_spec *chan, const char *buf,
181 size_t len)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200182{
Lars-Peter Clausen3bbbf152012-06-04 11:36:22 +0200183 bool pwr_down;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200184 int ret;
Jonathan Camerona3684de2011-06-27 13:07:32 +0100185 struct ad5504_state *st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200186
Lars-Peter Clausen3bbbf152012-06-04 11:36:22 +0200187 ret = strtobool(buf, &pwr_down);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200188 if (ret)
189 return ret;
190
Lars-Peter Clausen3bbbf152012-06-04 11:36:22 +0200191 if (pwr_down)
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200192 st->pwr_down_mask |= (1 << chan->channel);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200193 else
Lars-Peter Clausen3bbbf152012-06-04 11:36:22 +0200194 st->pwr_down_mask &= ~(1 << chan->channel);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200195
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +0000196 ret = ad5504_spi_write(st, AD5504_ADDR_CTRL,
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200197 AD5504_DAC_PWRDWN_MODE(st->pwr_down_mode) |
198 AD5504_DAC_PWR(st->pwr_down_mask));
199
200 /* writes to the CTRL register must be followed by a NOOP */
Lars-Peter Clausen0dbe59c2013-11-25 12:41:00 +0000201 ad5504_spi_write(st, AD5504_ADDR_NOOP, 0);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200202
203 return ret ? ret : len;
204}
205
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200206static IIO_CONST_ATTR(temp0_thresh_rising_value, "110000");
207static IIO_CONST_ATTR(temp0_thresh_rising_en, "1");
208
209static struct attribute *ad5504_ev_attributes[] = {
210 &iio_const_attr_temp0_thresh_rising_value.dev_attr.attr,
211 &iio_const_attr_temp0_thresh_rising_en.dev_attr.attr,
212 NULL,
213};
214
simran singhale36020f2017-03-29 01:51:48 +0530215static const struct attribute_group ad5504_ev_attribute_group = {
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200216 .attrs = ad5504_ev_attributes,
217};
218
Jonathan Cameronce298d42011-05-18 14:41:04 +0100219static irqreturn_t ad5504_event_handler(int irq, void *private)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200220{
Jonathan Cameron5aa96182011-08-30 12:41:06 +0100221 iio_push_event(private,
Jonathan Cameronc4b14d92011-08-12 17:56:04 +0100222 IIO_UNMOD_EVENT_CODE(IIO_TEMP,
Jonathan Cameronce298d42011-05-18 14:41:04 +0100223 0,
224 IIO_EV_TYPE_THRESH,
225 IIO_EV_DIR_RISING),
simran singhal4d925082017-04-01 19:41:53 +0530226 iio_get_time_ns(private));
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200227
Jonathan Cameronce298d42011-05-18 14:41:04 +0100228 return IRQ_HANDLED;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200229}
230
Jonathan Cameron6fe81352011-05-18 14:42:37 +0100231static const struct iio_info ad5504_info = {
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100232 .write_raw = ad5504_write_raw,
233 .read_raw = ad5504_read_raw,
Jonathan Cameron6fe81352011-05-18 14:42:37 +0100234 .event_attrs = &ad5504_ev_attribute_group,
235 .driver_module = THIS_MODULE,
236};
237
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200238static const struct iio_chan_spec_ext_info ad5504_ext_info[] = {
239 {
240 .name = "powerdown",
241 .read = ad5504_read_dac_powerdown,
242 .write = ad5504_write_dac_powerdown,
Jonathan Cameron37044322013-09-08 14:57:00 +0100243 .shared = IIO_SEPARATE,
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200244 },
Jonathan Cameron37044322013-09-08 14:57:00 +0100245 IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
246 &ad5504_powerdown_mode_enum),
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200247 IIO_ENUM_AVAILABLE("powerdown_mode", &ad5504_powerdown_mode_enum),
248 { },
249};
250
251#define AD5504_CHANNEL(_chan) { \
252 .type = IIO_VOLTAGE, \
253 .indexed = 1, \
254 .output = 1, \
255 .channel = (_chan), \
Jonathan Cameronf3ec5a22013-02-27 19:11:04 +0000256 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
257 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200258 .address = AD5504_ADDR_DAC(_chan), \
Jonathan Cameron73d3a772013-12-11 18:45:00 +0000259 .scan_type = { \
260 .sign = 'u', \
261 .realbits = 12, \
262 .storagebits = 16, \
263 }, \
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200264 .ext_info = ad5504_ext_info, \
265}
266
267static const struct iio_chan_spec ad5504_channels[] = {
268 AD5504_CHANNEL(0),
269 AD5504_CHANNEL(1),
270 AD5504_CHANNEL(2),
271 AD5504_CHANNEL(3),
Jonathan Cameron6fe81352011-05-18 14:42:37 +0100272};
273
Greg Kroah-Hartmanfc526922012-12-21 13:21:43 -0800274static int ad5504_probe(struct spi_device *spi)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200275{
276 struct ad5504_platform_data *pdata = spi->dev.platform_data;
Jonathan Camerona3684de2011-06-27 13:07:32 +0100277 struct iio_dev *indio_dev;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200278 struct ad5504_state *st;
Jonathan Camerona3684de2011-06-27 13:07:32 +0100279 struct regulator *reg;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200280 int ret, voltage_uv = 0;
281
Sachin Kamat8571ebf2013-08-19 12:38:00 +0100282 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
283 if (!indio_dev)
284 return -ENOMEM;
285 reg = devm_regulator_get(&spi->dev, "vcc");
Jonathan Camerona3684de2011-06-27 13:07:32 +0100286 if (!IS_ERR(reg)) {
287 ret = regulator_enable(reg);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200288 if (ret)
Sachin Kamat8571ebf2013-08-19 12:38:00 +0100289 return ret;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200290
Axel Lin0ce2fda2012-12-14 12:06:00 +0000291 ret = regulator_get_voltage(reg);
292 if (ret < 0)
293 goto error_disable_reg;
294
295 voltage_uv = ret;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200296 }
297
Jonathan Camerona3684de2011-06-27 13:07:32 +0100298 spi_set_drvdata(spi, indio_dev);
299 st = iio_priv(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200300 if (voltage_uv)
301 st->vref_mv = voltage_uv / 1000;
302 else if (pdata)
303 st->vref_mv = pdata->vref_mv;
304 else
305 dev_warn(&spi->dev, "reference voltage unspecified\n");
306
Jonathan Camerona3684de2011-06-27 13:07:32 +0100307 st->reg = reg;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200308 st->spi = spi;
Jonathan Camerona3684de2011-06-27 13:07:32 +0100309 indio_dev->dev.parent = &spi->dev;
310 indio_dev->name = spi_get_device_id(st->spi)->name;
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200311 indio_dev->info = &ad5504_info;
312 if (spi_get_device_id(st->spi)->driver_data == ID_AD5501)
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100313 indio_dev->num_channels = 1;
Lars-Peter Clausen8d05d772012-06-04 11:36:15 +0200314 else
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100315 indio_dev->num_channels = 4;
Lars-Peter Clausena7b15282011-11-15 16:31:23 +0100316 indio_dev->channels = ad5504_channels;
Jonathan Camerona3684de2011-06-27 13:07:32 +0100317 indio_dev->modes = INDIO_DIRECT_MODE;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200318
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200319 if (spi->irq) {
Sachin Kamat8571ebf2013-08-19 12:38:00 +0100320 ret = devm_request_threaded_irq(&spi->dev, spi->irq,
Jonathan Cameronce298d42011-05-18 14:41:04 +0100321 NULL,
322 &ad5504_event_handler,
323 IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
324 spi_get_device_id(st->spi)->name,
Jonathan Camerona3684de2011-06-27 13:07:32 +0100325 indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200326 if (ret)
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100327 goto error_disable_reg;
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200328 }
329
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100330 ret = iio_device_register(indio_dev);
331 if (ret)
Sachin Kamat8571ebf2013-08-19 12:38:00 +0100332 goto error_disable_reg;
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100333
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200334 return 0;
335
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200336error_disable_reg:
Jonathan Camerona3684de2011-06-27 13:07:32 +0100337 if (!IS_ERR(reg))
Jonathan Cameron0cbb2b52011-08-12 16:55:33 +0100338 regulator_disable(reg);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200339
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200340 return ret;
341}
342
Greg Kroah-Hartmanfc526922012-12-21 13:21:43 -0800343static int ad5504_remove(struct spi_device *spi)
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200344{
Jonathan Camerona3684de2011-06-27 13:07:32 +0100345 struct iio_dev *indio_dev = spi_get_drvdata(spi);
346 struct ad5504_state *st = iio_priv(indio_dev);
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100347
Jonathan Camerond2fffd62011-10-14 14:46:58 +0100348 iio_device_unregister(indio_dev);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200349
Sachin Kamat8571ebf2013-08-19 12:38:00 +0100350 if (!IS_ERR(st->reg))
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100351 regulator_disable(st->reg);
Jonathan Cameron26d25ae2011-09-02 17:14:40 +0100352
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200353 return 0;
354}
355
356static const struct spi_device_id ad5504_id[] = {
357 {"ad5504", ID_AD5504},
358 {"ad5501", ID_AD5501},
359 {}
360};
Lars-Peter Clausen55e43902011-11-16 08:53:31 +0100361MODULE_DEVICE_TABLE(spi, ad5504_id);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200362
363static struct spi_driver ad5504_driver = {
364 .driver = {
365 .name = "ad5504",
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200366 },
367 .probe = ad5504_probe,
Greg Kroah-Hartmanfc526922012-12-21 13:21:43 -0800368 .remove = ad5504_remove,
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200369 .id_table = ad5504_id,
370};
Lars-Peter Clausenae6ae6f2011-11-16 10:13:39 +0100371module_spi_driver(ad5504_driver);
Michael Hennerich59c23ea2011-04-04 15:39:15 +0200372
373MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
374MODULE_DESCRIPTION("Analog Devices AD5501/AD5501 DAC");
375MODULE_LICENSE("GPL v2");