1. 30 11月, 2012 4 次提交
  2. 28 8月, 2012 2 次提交
  3. 29 6月, 2011 1 次提交
    • M
      IIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC · 88bc3054
      Michael Hennerich 提交于
      New driver for AD7792/AD7793 3-Channel, Low Noise,
      Low Power, 16-/24-Bit Sigma-Delta ADC with On-Chip In-Amp
      and Reference.
      
      The AD7792/AD7793 features a dual use data out ready DOUT/RDY output.
      In order to avoid contentions on the SPI bus, it's necessary to use
      spi bus locking. The DOUT/RDY output must also be wired to an
      interrupt capable GPIO.
      
      In INDIO_RING_TRIGGERED mode, this driver may block its SPI bus segment
      for an extended period of time.
      
      Changes since V1:
      
      Use bool where applicable.
      Use data buffer that lives in their own cache line.
      Restructure ad7793_calibrate_all to use an array.
      Use msleep.
      Query REG_ID instead of doing a write/read This is a test.
      Add support for unipolar mode.
      Drop range attribute in favor of write scale.
      Add proper locking.
      Use new validate_trigger callbacks.
      Use IIO_IN_DIFF for differential channels.
      Change attribute naming.
      Use available_scan_masks.
      Some other miscellaneous cleanup (none functional changes).
      Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
      Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      88bc3054