Commit 817e5c65 authored by Graf Yang's avatar Graf Yang Committed by Greg Kroah-Hartman

staging: iio: resolver: new driver for AD2S1210 devices

Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Acked-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ffd7a62f
......@@ -17,3 +17,38 @@ config AD2S120X
Say yes here to build support for Analog Devices spi resolver
to digital converters, ad2s1200 and ad2s1205, provides direct access
via sysfs.
config AD2S1210
tristate "Analog Devices ad2s1210 driver"
depends on SPI
help
Say yes here to build support for Analog Devices spi resolver
to digital converters, ad2s1210, provides direct access via sysfs.
choice
prompt "Resolution Control"
depends on AD2S1210
default AD2S1210_GPIO_NONE
help
In normal mode, the resolution of the digital output is selected
using the RES0 and RES1 input pins. In configuration mode, the
resolution is selected by setting the RES0 and RES1 bits in the
control regsiter. When switching between normal mode and configuration
mode, there are some schemes to keep them matchs.
config AD2S1210_GPIO_INPUT
bool "read resolution from gpio pins"
help
GPIO pins are sampling RES0 and RES1 pins, read the resolution
settings from the GPIO pins.
config AD2S1210_GPIO_OUTPUT
bool "set gpio pins to set resolution"
help
RES0 and RES1 pins are controlled by GPIOs, setting GPIO pins to
set the resolution.
config AD2S1210_GPIO_NONE
bool "take the responsibility by user"
endchoice
......@@ -4,3 +4,4 @@
obj-$(CONFIG_AD2S90) += ad2s90.o
obj-$(CONFIG_AD2S120X) += ad2s120x.o
obj-$(CONFIG_AD2S1210) += ad2s1210.o
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment