]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iio: dac: mcp4725: Add basic support for MCP4726
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 26 Dec 2015 12:17:22 +0000 (21:17 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Jan 2016 17:42:59 +0000 (17:42 +0000)
commit35f739679a18d7a9680960c9cfc472ef012682dd
tree00d9976ea2b8559ad04c5bb825fa28b0d4659386
parent505abf99c7315f2229b873cca7a0514481a118e6
iio: dac: mcp4725: Add basic support for MCP4726

MCP4726 is a single channel 12-bit DAC.  We can support MCP4726 with
a little changes to mcp4725 driver.  In power-down mode, they have
different selection of VOUT pull-down registers.

MCP4726 also has features:
 - Output gain options: 1x, 2x
 - Voltage reference selection: VDD, VREF (Unbuffered or Buffered)

But these are not supported in this change. (1x gain, VDD is selected)

datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/22272C.pdf

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/dac/Kconfig
drivers/iio/dac/mcp4725.c