staging: iio: ADI drivers for staging-next
Subsystems (4)
v2 cover staging: iio: ADI drivers for staging-next
Changes since previous patchset:
- dropped drives duplicated with hwmon
- AD7414
- AD7416
- ADT7408
- addressed a bunch of random feedback across most drivers
- renamed ad774x.c to ad7745.c
- renamed adis16261* to adis16251*
- improve Kconfig text to help out grep
- fix up abi in a few places
- add some error checking
- disable ring buffer support when missing
- drop i2c irq_flags for now
- added Jonathan's Acked-by tag
- added ADI e-mail info to TODO
Hopefully there shouldn't be any roadblocks now before pushing to GregKH. I'll do so in a day or two if there aren't any issues.
Barry Song (16):
staging: iio: new adis16201 driver
staging: iio: new adis16203 driver
staging: iio: new adis16204 driver
staging: iio: adc: new driver for AD7150/1/6 devices
staging: iio: adc: new driver for AD7152/3 devices
staging: iio: adc: new driver for AD7745/6/7 devices
staging: iio: gyro: new driver for ADIS16251 devices
staging: iio: gyro: new driver for ADIS16060 digital output gyros
staging: iio: gyro: new driver for ADIS16080 digital output gyros
staging: iio: gyro: new driver for ADIS16130 digital output gyros
staging: iio: dac: new driver for AD5624R devices
staging: iio: meter: new driver for ADE7753/6 devices
staging: iio: meter: new driver for ADE7754 devices
staging: iio: meter: new driver for ADE7758 devices
staging: iio: meter: new driver for ADE7759 devices
staging: iio: meter: new driver for ADE7854/58/68/78 devices
Cliff Cai (6):
staging: iio: dds: new driver for AD5930/2 devices
staging: iio: dds: new driver for AD9832/3/4/5 devices
staging: iio: dds: new driver for AD9850/1 devices
staging: iio: dds: new driver for AD9852/4 devices
staging: iio: dds: new driver for AD9910 devices
staging: iio: dds: new driver for AD9951 devices
Graf Yang (3):
staging: iio: resolver: new driver for AD2S90 devices
staging: iio: resolver: new driver for AD2S1200/1205 devices
staging: iio: resolver: new driver for AD2S1210 devices
Michael Hennerich (1):
staging: iio: gyro: make sure grep can find the ADIS16265 support
Mike Frysinger (2):
staging: iio: adis16350: add missing reference to temp offset
staging: iio: add ADI info to TODO
Sonic Zhang (8):
staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver
staging: iio: adc: new driver for AD7291 devices
staging: iio: adc: new driver for AD7298 devices
staging: iio: adc: new driver for AD7314 devices
staging: iio: adc: new driver for AD7816 devices
staging: iio: adc: new driver for ADT75 temperature sensors
staging: iio: adc: new driver for ADT7310 temperature sensors
staging: iio: adc: new driver for ADT7410 temperature sensors
drivers/staging/iio/Kconfig | 6 +- drivers/staging/iio/Makefile | 7 +- drivers/staging/iio/TODO | 4 + drivers/staging/iio/accel/Kconfig | 27 + drivers/staging/iio/accel/Makefile | 12 + drivers/staging/iio/accel/accel.h | 20 + drivers/staging/iio/accel/adis16201.h | 150 ++ drivers/staging/iio/accel/adis16201_core.c | 659 +++++++ drivers/staging/iio/accel/adis16201_ring.c | 218 +++ drivers/staging/iio/accel/adis16201_trigger.c | 122 ++ drivers/staging/iio/accel/adis16203.h | 143 ++ drivers/staging/iio/accel/adis16203_core.c | 568 ++++++ drivers/staging/iio/accel/adis16203_ring.c | 211 +++ drivers/staging/iio/accel/adis16203_trigger.c | 122 ++ drivers/staging/iio/accel/adis16204.h | 151 ++ drivers/staging/iio/accel/adis16204_core.c | 613 +++++++ drivers/staging/iio/accel/adis16204_ring.c | 206 +++ drivers/staging/iio/accel/adis16204_trigger.c | 122 ++ drivers/staging/iio/adc/Kconfig | 77 +- drivers/staging/iio/adc/Makefile | 11 + drivers/staging/iio/adc/ad7150.c | 877 +++++++++ drivers/staging/iio/adc/ad7152.c | 610 +++++++ drivers/staging/iio/adc/ad7291.c | 1039 +++++++++++ drivers/staging/iio/adc/ad7298.c | 501 +++++ drivers/staging/iio/adc/ad7314.c | 308 ++++ drivers/staging/iio/adc/ad7745.c | 734 ++++++++ drivers/staging/iio/adc/ad7816.c | 535 ++++++ drivers/staging/iio/adc/adt7310.c | 952 ++++++++++ drivers/staging/iio/adc/adt7410.c | 915 ++++++++++ drivers/staging/iio/adc/adt75.c | 732 ++++++++ drivers/staging/iio/addac/Kconfig | 25 + drivers/staging/iio/addac/Makefile | 7 + drivers/staging/iio/addac/adt7316-i2c.c | 170 ++ drivers/staging/iio/addac/adt7316-spi.c | 180 ++ drivers/staging/iio/addac/adt7316.c | 2402 +++++++++++++++++++++++++ drivers/staging/iio/addac/adt7316.h | 33 + drivers/staging/iio/dac/Kconfig | 11 + drivers/staging/iio/dac/Makefile | 5 + drivers/staging/iio/dac/ad5624r.h | 21 + drivers/staging/iio/dac/ad5624r_spi.c | 313 ++++ drivers/staging/iio/dac/dac.h | 6 + drivers/staging/iio/dds/Kconfig | 46 + drivers/staging/iio/dds/Makefile | 10 + drivers/staging/iio/dds/ad5930.c | 170 ++ drivers/staging/iio/dds/ad9832.c | 266 +++ drivers/staging/iio/dds/ad9850.c | 156 ++ drivers/staging/iio/dds/ad9852.c | 314 ++++ drivers/staging/iio/dds/ad9910.c | 454 +++++ drivers/staging/iio/dds/ad9951.c | 254 +++ drivers/staging/iio/gyro/Kconfig | 38 +- drivers/staging/iio/gyro/Makefile | 12 + drivers/staging/iio/gyro/adis16060.h | 101 + drivers/staging/iio/gyro/adis16060_core.c | 319 ++++ drivers/staging/iio/gyro/adis16080.h | 102 ++ drivers/staging/iio/gyro/adis16080_core.c | 271 +++ drivers/staging/iio/gyro/adis16130.h | 108 ++ drivers/staging/iio/gyro/adis16130_core.c | 313 ++++ drivers/staging/iio/gyro/adis16251.h | 185 ++ drivers/staging/iio/gyro/adis16251_core.c | 777 ++++++++ drivers/staging/iio/gyro/adis16260_core.c | 2 +- drivers/staging/iio/imu/adis16350_core.c | 1 + drivers/staging/iio/meter/Kconfig | 61 + drivers/staging/iio/meter/Makefile | 15 + drivers/staging/iio/meter/ade7753.c | 730 ++++++++ drivers/staging/iio/meter/ade7753.h | 140 ++ drivers/staging/iio/meter/ade7754.c | 756 ++++++++ drivers/staging/iio/meter/ade7754.h | 161 ++ drivers/staging/iio/meter/ade7758.h | 171 ++ drivers/staging/iio/meter/ade7758_core.c | 866 +++++++++ drivers/staging/iio/meter/ade7758_ring.c | 212 +++ drivers/staging/iio/meter/ade7758_trigger.c | 125 ++ drivers/staging/iio/meter/ade7759.c | 670 +++++++ drivers/staging/iio/meter/ade7759.h | 122 ++ drivers/staging/iio/meter/ade7854-i2c.c | 272 +++ drivers/staging/iio/meter/ade7854-spi.c | 360 ++++ drivers/staging/iio/meter/ade7854.c | 680 +++++++ drivers/staging/iio/meter/ade7854.h | 245 +++ drivers/staging/iio/meter/meter.h | 396 ++++ drivers/staging/iio/resolver/Kconfig | 54 + drivers/staging/iio/resolver/Makefile | 7 + drivers/staging/iio/resolver/ad2s120x.c | 310 ++++ drivers/staging/iio/resolver/ad2s1210.c | 872 +++++++++ drivers/staging/iio/resolver/ad2s90.c | 159 ++ drivers/staging/iio/sysfs.h | 6 + 84 files changed, 25107 insertions(+), 7 deletions(-) create mode 100644 drivers/staging/iio/accel/adis16201.h create mode 100644 drivers/staging/iio/accel/adis16201_core.c create mode 100644 drivers/staging/iio/accel/adis16201_ring.c create mode 100644 drivers/staging/iio/accel/adis16201_trigger.c create mode 100644 drivers/staging/iio/accel/adis16203.h create mode 100644 drivers/staging/iio/accel/adis16203_core.c create mode 100644 drivers/staging/iio/accel/adis16203_ring.c create mode 100644 drivers/staging/iio/accel/adis16203_trigger.c create mode 100644 drivers/staging/iio/accel/adis16204.h create mode 100644 drivers/staging/iio/accel/adis16204_core.c create mode 100644 drivers/staging/iio/accel/adis16204_ring.c create mode 100644 drivers/staging/iio/accel/adis16204_trigger.c create mode 100644 drivers/staging/iio/adc/ad7150.c create mode 100644 drivers/staging/iio/adc/ad7152.c create mode 100644 drivers/staging/iio/adc/ad7291.c create mode 100644 drivers/staging/iio/adc/ad7298.c create mode 100644 drivers/staging/iio/adc/ad7314.c create mode 100644 drivers/staging/iio/adc/ad7745.c create mode 100644 drivers/staging/iio/adc/ad7816.c create mode 100644 drivers/staging/iio/adc/adt7310.c create mode 100644 drivers/staging/iio/adc/adt7410.c create mode 100644 drivers/staging/iio/adc/adt75.c create mode 100644 drivers/staging/iio/addac/Kconfig create mode 100644 drivers/staging/iio/addac/Makefile create mode 100644 drivers/staging/iio/addac/adt7316-i2c.c create mode 100644 drivers/staging/iio/addac/adt7316-spi.c create mode 100644 drivers/staging/iio/addac/adt7316.c create mode 100644 drivers/staging/iio/addac/adt7316.h create mode 100644 drivers/staging/iio/dac/Kconfig create mode 100644 drivers/staging/iio/dac/Makefile create mode 100644 drivers/staging/iio/dac/ad5624r.h create mode 100644 drivers/staging/iio/dac/ad5624r_spi.c create mode 100644 drivers/staging/iio/dac/dac.h create mode 100644 drivers/staging/iio/dds/Kconfig create mode 100644 drivers/staging/iio/dds/Makefile create mode 100644 drivers/staging/iio/dds/ad5930.c create mode 100644 drivers/staging/iio/dds/ad9832.c create mode 100644 drivers/staging/iio/dds/ad9850.c create mode 100644 drivers/staging/iio/dds/ad9852.c create mode 100644 drivers/staging/iio/dds/ad9910.c create mode 100644 drivers/staging/iio/dds/ad9951.c create mode 100644 drivers/staging/iio/gyro/adis16060.h create mode 100644 drivers/staging/iio/gyro/adis16060_core.c create mode 100644 drivers/staging/iio/gyro/adis16080.h create mode 100644 drivers/staging/iio/gyro/adis16080_core.c create mode 100644 drivers/staging/iio/gyro/adis16130.h create mode 100644 drivers/staging/iio/gyro/adis16130_core.c create mode 100644 drivers/staging/iio/gyro/adis16251.h create mode 100644 drivers/staging/iio/gyro/adis16251_core.c create mode 100644 drivers/staging/iio/meter/Kconfig create mode 100644 drivers/staging/iio/meter/Makefile create mode 100644 drivers/staging/iio/meter/ade7753.c create mode 100644 drivers/staging/iio/meter/ade7753.h create mode 100644 drivers/staging/iio/meter/ade7754.c create mode 100644 drivers/staging/iio/meter/ade7754.h create mode 100644 drivers/staging/iio/meter/ade7758.h create mode 100644 drivers/staging/iio/meter/ade7758_core.c create mode 100644 drivers/staging/iio/meter/ade7758_ring.c create mode 100644 drivers/staging/iio/meter/ade7758_trigger.c create mode 100644 drivers/staging/iio/meter/ade7759.c create mode 100644 drivers/staging/iio/meter/ade7759.h create mode 100644 drivers/staging/iio/meter/ade7854-i2c.c create mode 100644 drivers/staging/iio/meter/ade7854-spi.c create mode 100644 drivers/staging/iio/meter/ade7854.c create mode 100644 drivers/staging/iio/meter/ade7854.h create mode 100644 drivers/staging/iio/meter/meter.h create mode 100644 drivers/staging/iio/resolver/Kconfig create mode 100644 drivers/staging/iio/resolver/Makefile create mode 100644 drivers/staging/iio/resolver/ad2s120x.c create mode 100644 drivers/staging/iio/resolver/ad2s1210.c create mode 100644 drivers/staging/iio/resolver/ad2s90.c
Signature · 1 line
1.7.3.2
PATCH v2 1/36 staging: iio: adis16350: add missing reference to temp offset
We declare this attr but never link it in to the attr list.
--- drivers/staging/iio/imu/adis16350_core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/imu/adis16350_core.c +1 -0
@@ -570,6 +570,7 @@ static struct attribute *adis16350_attributes[] = { &iio_dev_attr_temp_y_raw.dev_attr.attr, &iio_dev_attr_temp_z_raw.dev_attr.attr, &iio_const_attr_temp_scale.dev_attr.attr, + &iio_const_attr_temp_offset.dev_attr.attr, &iio_dev_attr_in1_raw.dev_attr.attr, &iio_const_attr_in1_scale.dev_attr.attr, &iio_dev_attr_sampling_frequency.dev_attr.attr,
Signature · 1 line
1.7.3.2
PATCH v2 2/36 staging: iio: gyro: make sure grep can find the ADIS16265 support
In reply to Mike FrysingerFrom: Michael Hennerich <[email protected]>
--- drivers/staging/iio/gyro/Kconfig | 7 +++++-- drivers/staging/iio/gyro/adis16260_core.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-)
drivers/staging/iio/gyro/Kconfig +5 -2
@@ -4,10 +4,13 @@ comment "Digital gyroscope sensors" config ADIS16260 - tristate "Analog Devices ADIS16260/5 Digital Gyroscope Sensor SPI driver" + tristate "Analog Devices ADIS16260 ADIS16265 Digital Gyroscope Sensor SPI driver" depends on SPI select IIO_TRIGGER if IIO_RING_BUFFER select IIO_SW_RING if IIO_RING_BUFFER help - Say yes here to build support for Analog Devices adis16260/5 + Say yes here to build support for Analog Devices ADIS16260 ADIS16265 programmable digital gyroscope sensor. + + This driver can also be built as a module. If so, the module + will be called adis16260.
drivers/staging/iio/gyro/adis16260_core.c +1 -1
@@ -1,5 +1,5 @@/* -* ADIS16260 Programmable Digital Gyroscope Sensor Driver +* ADIS16260/ADIS16265 Programmable Digital Gyroscope Sensor Driver * * Copyright 2010 Analog Devices Inc. *
Signature · 1 line
1.7.3.2
PATCH v2 3/36 staging: iio: add ADI info to TODO
In reply to Mike Frysinger--- drivers/staging/iio/TODO | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/iio/TODO +4 -0
@@ -61,6 +61,10 @@ necessitate a header that is also visible from arch board files. (avoided at the moment to keep the driver set contained in staging). +ADI Drivers: +CC the [email protected] mailing list when +e-mailing the normal IIO list (see below). + Documentation 1) Lots of cleanup and expansion. 2) Some device require indvidual docs.
Signature · 1 line
1.7.3.2
PATCH v2 4/36 staging: iio: new adis16201 driver
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
IIO driver for dual Axis Accelerometer/inclinometer adis16201 parts.
--- drivers/staging/iio/accel/Kconfig | 9 + drivers/staging/iio/accel/Makefile | 4 + drivers/staging/iio/accel/adis16201.h | 150 ++++++ drivers/staging/iio/accel/adis16201_core.c | 659 +++++++++++++++++++++++++ drivers/staging/iio/accel/adis16201_ring.c | 218 ++++++++ drivers/staging/iio/accel/adis16201_trigger.c | 122 +++++ 6 files changed, 1162 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/accel/adis16201.h create mode 100644 drivers/staging/iio/accel/adis16201_core.c create mode 100644 drivers/staging/iio/accel/adis16201_ring.c create mode 100644 drivers/staging/iio/accel/adis16201_trigger.c
drivers/staging/iio/accel/Kconfig +9 -0
@@ -3,6 +3,15 @@ # comment "Accelerometers" +config ADIS16201 + tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer" + depends on SPI + select IIO_TRIGGER if IIO_RING_BUFFER + select IIO_SW_RING if IIO_RING_BUFFER + help + Say yes here to build support for Analog Devices adis16201 dual-axis + digital inclinometer and accelerometer. + config ADIS16209 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" depends on SPI
drivers/staging/iio/accel/Makefile +4 -0
@@ -2,6 +2,10 @@ # Makefile for industrial I/O accelerometer drivers # +adis16201-y := adis16201_core.o +adis16201-$(CONFIG_IIO_RING_BUFFER) += adis16201_ring.o adis16201_trigger.o +obj-$(CONFIG_ADIS16201) += adis16201.o + adis16209-y := adis16209_core.o adis16209-$(CONFIG_IIO_RING_BUFFER) += adis16209_ring.o adis16209_trigger.o obj-$(CONFIG_ADIS16209) += adis16209.o
drivers/staging/iio/accel/adis16201.h new file +150 -0
150 lines not on this page · raw message
drivers/staging/iio/accel/adis16201_core.c new file +659 -0
659 lines not on this page · raw message
drivers/staging/iio/accel/adis16201_ring.c new file +218 -0
218 lines not on this page · raw message
drivers/staging/iio/accel/adis16201_trigger.c new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 5/36 staging: iio: new adis16203 driver
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
IIO driver for Programmable 360 Degrees Inclinometer adis16203 parts.
--- drivers/staging/iio/accel/Kconfig | 9 + drivers/staging/iio/accel/Makefile | 4 + drivers/staging/iio/accel/adis16203.h | 143 +++++++ drivers/staging/iio/accel/adis16203_core.c | 568 +++++++++++++++++++++++++ drivers/staging/iio/accel/adis16203_ring.c | 211 +++++++++ drivers/staging/iio/accel/adis16203_trigger.c | 122 ++++++ 6 files changed, 1057 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/accel/adis16203.h create mode 100644 drivers/staging/iio/accel/adis16203_core.c create mode 100644 drivers/staging/iio/accel/adis16203_ring.c create mode 100644 drivers/staging/iio/accel/adis16203_trigger.c
drivers/staging/iio/accel/Kconfig +9 -0
@@ -12,6 +12,15 @@ config ADIS16201 Say yes here to build support for Analog Devices adis16201 dual-axis digital inclinometer and accelerometer. +config ADIS16203 + tristate "Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer" + depends on SPI + select IIO_TRIGGER if IIO_RING_BUFFER + select IIO_SW_RING if IIO_RING_BUFFER + help + Say yes here to build support for Analog Devices adis16203 Programmable + 360 Degrees Inclinometer. + config ADIS16209 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" depends on SPI
drivers/staging/iio/accel/Makefile +4 -0
@@ -6,6 +6,10 @@ adis16201-y := adis16201_core.o adis16201-$(CONFIG_IIO_RING_BUFFER) += adis16201_ring.o adis16201_trigger.o obj-$(CONFIG_ADIS16201) += adis16201.o +adis16203-y := adis16203_core.o +adis16203-$(CONFIG_IIO_RING_BUFFER) += adis16203_ring.o adis16203_trigger.o +obj-$(CONFIG_ADIS16203) += adis16203.o + adis16209-y := adis16209_core.o adis16209-$(CONFIG_IIO_RING_BUFFER) += adis16209_ring.o adis16209_trigger.o obj-$(CONFIG_ADIS16209) += adis16209.o
drivers/staging/iio/accel/adis16203.h new file +143 -0
143 lines not on this page · raw message
drivers/staging/iio/accel/adis16203_core.c new file +568 -0
568 lines not on this page · raw message
drivers/staging/iio/accel/adis16203_ring.c new file +211 -0
211 lines not on this page · raw message
drivers/staging/iio/accel/adis16203_trigger.c new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 6/36 staging: iio: new adis16204 driver
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
IIO driver for Programmable High-g Digital Impact Sensor and Recorder.
--- drivers/staging/iio/accel/Kconfig | 9 + drivers/staging/iio/accel/Makefile | 4 + drivers/staging/iio/accel/accel.h | 20 + drivers/staging/iio/accel/adis16204.h | 151 ++++++ drivers/staging/iio/accel/adis16204_core.c | 613 +++++++++++++++++++++++++ drivers/staging/iio/accel/adis16204_ring.c | 206 +++++++++ drivers/staging/iio/accel/adis16204_trigger.c | 122 +++++ 7 files changed, 1125 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/accel/adis16204.h create mode 100644 drivers/staging/iio/accel/adis16204_core.c create mode 100644 drivers/staging/iio/accel/adis16204_ring.c create mode 100644 drivers/staging/iio/accel/adis16204_trigger.c
drivers/staging/iio/accel/Kconfig +9 -0
@@ -21,6 +21,15 @@ config ADIS16203 Say yes here to build support for Analog Devices adis16203 Programmable 360 Degrees Inclinometer. +config ADIS16204 + tristate "Analog Devices ADIS16204 Programmable High-g Digital Impact Sensor and Recorder" + depends on SPI + select IIO_TRIGGER if IIO_RING_BUFFER + select IIO_SW_RING if IIO_RING_BUFFER + help + Say yes here to build support for Analog Devices adis16204 Programmable + High-g Digital Impact Sensor and Recorder. + config ADIS16209 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" depends on SPI
drivers/staging/iio/accel/Makefile +4 -0
@@ -10,6 +10,10 @@ adis16203-y := adis16203_core.o adis16203-$(CONFIG_IIO_RING_BUFFER) += adis16203_ring.o adis16203_trigger.o obj-$(CONFIG_ADIS16203) += adis16203.o +adis16204-y := adis16204_core.o +adis16204-$(CONFIG_IIO_RING_BUFFER) += adis16204_ring.o adis16204_trigger.o +obj-$(CONFIG_ADIS16204) += adis16204.o + adis16209-y := adis16209_core.o adis16209-$(CONFIG_IIO_RING_BUFFER) += adis16209_ring.o adis16209_trigger.o obj-$(CONFIG_ADIS16209) += adis16209.o
drivers/staging/iio/accel/accel.h +20 -0
@@ -65,3 +65,23 @@#define IIO_DEV_ATTR_ACCEL_Z (_show, _addr) \ IIO_DEVICE_ATTR(accel_z_raw, S_IRUGO, _show, NULL, _addr) +#define IIO_DEV_ATTR_ACCEL_XY (_show, _addr) \ + IIO_DEVICE_ATTR(accel_xy, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_PEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_peak, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_XPEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_xpeak, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_YPEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_ypeak, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_ZPEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_zpeak, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_XYPEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_xypeak, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ACCEL_XYZPEAK (_show, _addr) \ + IIO_DEVICE_ATTR(accel_xyzpeak, S_IRUGO, _show, NULL, _addr)
drivers/staging/iio/accel/adis16204.h new file +151 -0
151 lines not on this page · raw message
drivers/staging/iio/accel/adis16204_core.c new file +613 -0
613 lines not on this page · raw message
drivers/staging/iio/accel/adis16204_ring.c new file +206 -0
206 lines not on this page · raw message
drivers/staging/iio/accel/adis16204_trigger.c new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 7/36 staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
IIO driver for temperature sensor, ADC and DAC devices over SPI and I2C.
--- drivers/staging/iio/Kconfig | 1 + drivers/staging/iio/Makefile | 1 + drivers/staging/iio/addac/Kconfig | 25 + drivers/staging/iio/addac/Makefile | 7 + drivers/staging/iio/addac/adt7316-i2c.c | 170 +++ drivers/staging/iio/addac/adt7316-spi.c | 180 +++ drivers/staging/iio/addac/adt7316.c | 2402 +++++++++++++++++++++++++++++++ drivers/staging/iio/addac/adt7316.h | 33 + 8 files changed, 2819 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/addac/Kconfig create mode 100644 drivers/staging/iio/addac/Makefile create mode 100644 drivers/staging/iio/addac/adt7316-i2c.c create mode 100644 drivers/staging/iio/addac/adt7316-spi.c create mode 100644 drivers/staging/iio/addac/adt7316.c create mode 100644 drivers/staging/iio/addac/adt7316.h
drivers/staging/iio/Kconfig +1 -0
@@ -42,6 +42,7 @@ config IIO_TRIGGER source "drivers/staging/iio/accel/Kconfig" source "drivers/staging/iio/adc/Kconfig" +source "drivers/staging/iio/addac/Kconfig" source "drivers/staging/iio/gyro/Kconfig" source "drivers/staging/iio/imu/Kconfig" source "drivers/staging/iio/light/Kconfig"
drivers/staging/iio/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_IIO_SW_RING) += ring_sw.o obj-y += accel/ obj-y += adc/ +obj-y += addac/ obj-y += gyro/ obj-y += imu/ obj-y += light/
drivers/staging/iio/addac/Kconfig new file +25 -0
@@ -0,0 +1,25 @@ +# +# ADDAC drivers +# +comment "Analog digital bi-direction convertors" + +config ADT7316 + tristate "Analog Devices ADT7316/7/8 ADT7516/7/9 temperature sensor, ADC and DAC driver" + help + Say yes here to build support for Analog Devices ADT7316, ADT7317, ADT7318 + and ADT7516, ADT7517, ADT7519 temperature sensors, ADC and DAC. + +config ADT7316_SPI + tristate "support SPI bus connection" + depends on SPI && ADT7316 + default y + help + Say yes here to build SPI bus support for Analog Devices ADT7316/7/8 + and ADT7516/7/9. + +config ADT7316_I2C + tristate "support I2C bus connection" + depends on I2C && ADT7316 + help + Say yes here to build I2C bus support for Analog Devices ADT7316/7/8 + and ADT7516/7/9.
drivers/staging/iio/addac/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# +# Makefile for industrial I/O ADDAC drivers +# + +obj-$(CONFIG_ADT7316) += adt7316.o +obj-$(CONFIG_ADT7316_SPI) += adt7316-spi.o +obj-$(CONFIG_ADT7316_I2C) += adt7316-i2c.o
drivers/staging/iio/addac/adt7316-i2c.c new file +170 -0
170 lines not on this page · raw message
drivers/staging/iio/addac/adt7316-spi.c new file +180 -0
180 lines not on this page · raw message
drivers/staging/iio/addac/adt7316.c new file +2402 -0
2,402 lines not on this page · raw message
drivers/staging/iio/addac/adt7316.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* ADT7316 digital temperature sensor driver supporting ADT7316/7/8 ADT7516/7/9 +* +* Copyright 2010 Analog Devices Inc. +* +* Licensed under the GPL-2 or later. +*/ + +#ifndef _ADT7316_H_ +#define _ADT7316_H_ + +#include <linux/types.h> + +#define ADT7316_REG_MAX_ADDR 0x3F + +struct adt7316_bus { +void *client; +int irq; +int irq_flags; +int (*read) (void *client,u8 reg,u8 *data); +int (*write) (void *client,u8 reg,u8 val); +int (*multi_read) (void *client,u8 first_reg,u8 count,u8 *data); +int (*multi_write) (void *client,u8 first_reg,u8 count,u8 *data); +}; + +#ifdef CONFIG_PM +int adt7316_disable (struct device *dev); +int adt7316_enable (struct device *dev); +#endif +int adt7316_probe (struct device *dev,struct adt7316_bus *bus,const char *name); +int adt7316_remove (struct device *dev); + +#endif
Signature · 1 line
1.7.3.2
PATCH v2 8/36 staging: iio: adc: new driver for AD7150/1/6 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 2 + drivers/staging/iio/adc/ad7150.c | 877 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 886 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7150.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -27,6 +27,13 @@ config MAX1363_RING_BUFFER Say yes here to include ring buffer support in the MAX1363 ADC driver. +config AD7150 + tristate "Analog Devices ad7150/1/6 capacitive sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices capacitive sensors. + (ad7150, ad7151, ad7156) Provides direct access via sysfs. + config AD799X tristate "Analog Devices AD799x ADC driver" depends on I2C
drivers/staging/iio/adc/Makefile +2 -0
@@ -14,3 +14,5 @@ obj-$(CONFIG_AD799X) += ad799x.o ad7476-y := ad7476_core.o ad7476-$(CONFIG_IIO_RING_BUFFER) += ad7476_ring.o obj-$(CONFIG_AD7476) += ad7476.o + +obj-$(CONFIG_AD7150) += ad7150.o
drivers/staging/iio/adc/ad7150.c new file +877 -0
877 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 9/36 staging: iio: adc: new driver for AD7152/3 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7152.c | 610 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 618 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7152.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -34,6 +34,13 @@ config AD7150 Say yes here to build support for Analog Devices capacitive sensors. (ad7150, ad7151, ad7156) Provides direct access via sysfs. +config AD7152 + tristate "Analog Devices ad7152/3 capacitive sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices capacitive sensors. + (ad7152, ad7153) Provides direct access via sysfs. + config AD799X tristate "Analog Devices AD799x ADC driver" depends on I2C
drivers/staging/iio/adc/Makefile +1 -0
@@ -16,3 +16,4 @@ ad7476-$(CONFIG_IIO_RING_BUFFER) += ad7476_ring.o obj-$(CONFIG_AD7476) += ad7476.o obj-$(CONFIG_AD7150) += ad7150.o +obj-$(CONFIG_AD7152) += ad7152.o
drivers/staging/iio/adc/ad7152.c new file +610 -0
610 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 10/36 staging: iio: adc: new driver for AD7291 devices
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7291.c | 1039 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 1047 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7291.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -41,6 +41,13 @@ config AD7152 Say yes here to build support for Analog Devices capacitive sensors. (ad7152, ad7153) Provides direct access via sysfs. +config AD7291 + tristate "Analog Devices AD7291 temperature sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices AD7291 + temperature sensors. + config AD799X tristate "Analog Devices AD799x ADC driver" depends on I2C
drivers/staging/iio/adc/Makefile +1 -0
@@ -17,3 +17,4 @@ obj-$(CONFIG_AD7476) += ad7476.o obj-$(CONFIG_AD7150) += ad7150.o obj-$(CONFIG_AD7152) += ad7152.o +obj-$(CONFIG_AD7291) += ad7291.o
drivers/staging/iio/adc/ad7291.c new file +1039 -0
1,039 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 11/36 staging: iio: adc: new driver for AD7298 devices
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7298.c | 501 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 509 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7298.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -48,6 +48,13 @@ config AD7291 Say yes here to build support for Analog Devices AD7291 temperature sensors. +config AD7298 + tristate "Analog Devices AD7298 temperature sensor and ADC driver" + depends on SPI + help + Say yes here to build support for Analog Devices AD7298 + temperature sensors and ADC. + config AD799X tristate "Analog Devices AD799x ADC driver" depends on I2C
drivers/staging/iio/adc/Makefile +1 -0
@@ -18,3 +18,4 @@ obj-$(CONFIG_AD7476) += ad7476.o obj-$(CONFIG_AD7150) += ad7150.o obj-$(CONFIG_AD7152) += ad7152.o obj-$(CONFIG_AD7291) += ad7291.o +obj-$(CONFIG_AD7298) += ad7298.o
drivers/staging/iio/adc/ad7298.c new file +501 -0
501 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 12/36 staging: iio: adc: new driver for AD7314 devices
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7314.c | 308 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7314.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -55,6 +55,13 @@ config AD7298 Say yes here to build support for Analog Devices AD7298 temperature sensors and ADC. +config AD7314 + tristate "Analog Devices AD7314 temperature sensor driver" + depends on SPI + help + Say yes here to build support for Analog Devices AD7314 + temperature sensors. + config AD799X tristate "Analog Devices AD799x ADC driver" depends on I2C
drivers/staging/iio/adc/Makefile +1 -0
@@ -19,3 +19,4 @@ obj-$(CONFIG_AD7150) += ad7150.o obj-$(CONFIG_AD7152) += ad7152.o obj-$(CONFIG_AD7291) += ad7291.o obj-$(CONFIG_AD7298) += ad7298.o +obj-$(CONFIG_AD7314) += ad7314.o
drivers/staging/iio/adc/ad7314.c new file +308 -0
308 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 13/36 staging: iio: adc: new driver for AD7745/6/7 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 14 +- drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7745.c | 734 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 747 insertions(+), 2 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7745.c
drivers/staging/iio/adc/Kconfig +12 -2
@@ -85,9 +85,9 @@ config AD799X_RING_BUFFER config AD7476 tristate "Analog Devices AD7475/6/7/8 AD7466/7/8 and AD7495 ADC driver" depends on SPI - select IIO_RING_BUFFER + select IIO_RING_BUFFER select IIO_SW_RING - select IIO_TRIGGER + select IIO_TRIGGER help Say yes here to build support for Analog Devices AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7495
@@ -96,3 +96,13 @@ config AD7476 To compile this driver as a module, choose M here: the module will be called ad7476. + +config AD7745 + tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices capacitive sensors. + (AD7745, AD7746, AD7747) Provides direct access via sysfs. + + To compile this driver as a module, choose M here: the + module will be called ad7745.
drivers/staging/iio/adc/Makefile +1 -0
@@ -20,3 +20,4 @@ obj-$(CONFIG_AD7152) += ad7152.o obj-$(CONFIG_AD7291) += ad7291.o obj-$(CONFIG_AD7298) += ad7298.o obj-$(CONFIG_AD7314) += ad7314.o +obj-$(CONFIG_AD7745) += ad7745.o
drivers/staging/iio/adc/ad7745.c new file +734 -0
734 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 14/36 staging: iio: adc: new driver for AD7816 devices
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/ad7816.c | 535 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 543 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/ad7816.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -106,3 +106,10 @@ config AD7745 To compile this driver as a module, choose M here: the module will be called ad7745. + +config AD7816 + tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver" + depends on SPI + help + Say yes here to build support for Analog Devices AD7816/7/8 + temperature sensors and ADC.
drivers/staging/iio/adc/Makefile +1 -0
@@ -21,3 +21,4 @@ obj-$(CONFIG_AD7291) += ad7291.o obj-$(CONFIG_AD7298) += ad7298.o obj-$(CONFIG_AD7314) += ad7314.o obj-$(CONFIG_AD7745) += ad7745.o +obj-$(CONFIG_AD7816) += ad7816.o
drivers/staging/iio/adc/ad7816.c new file +535 -0
535 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 15/36 staging: iio: adc: new driver for ADT75 temperature sensors
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/adt75.c | 732 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 740 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/adt75.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -113,3 +113,10 @@ config AD7816 help Say yes here to build support for Analog Devices AD7816/7/8 temperature sensors and ADC. + +config ADT75 + tristate "Analog Devices ADT75 temperature sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices ADT75 + temperature sensors.
drivers/staging/iio/adc/Makefile +1 -0
@@ -22,3 +22,4 @@ obj-$(CONFIG_AD7298) += ad7298.o obj-$(CONFIG_AD7314) += ad7314.o obj-$(CONFIG_AD7745) += ad7745.o obj-$(CONFIG_AD7816) += ad7816.o +obj-$(CONFIG_ADT75) += adt75.o
drivers/staging/iio/adc/adt75.c new file +732 -0
732 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 16/36 staging: iio: adc: new driver for ADT7310 temperature sensors
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/adt7310.c | 952 +++++++++++++++++++++++++++++++++++++ 3 files changed, 960 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/adt7310.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -120,3 +120,10 @@ config ADT75 help Say yes here to build support for Analog Devices ADT75 temperature sensors. + +config ADT7310 + tristate "Analog Devices ADT7310 temperature sensor driver" + depends on SPI + help + Say yes here to build support for Analog Devices ADT7310 + temperature sensors.
drivers/staging/iio/adc/Makefile +1 -0
@@ -23,3 +23,4 @@ obj-$(CONFIG_AD7314) += ad7314.o obj-$(CONFIG_AD7745) += ad7745.o obj-$(CONFIG_AD7816) += ad7816.o obj-$(CONFIG_ADT75) += adt75.o +obj-$(CONFIG_ADT7310) += adt7310.o
drivers/staging/iio/adc/adt7310.c new file +952 -0
952 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 17/36 staging: iio: adc: new driver for ADT7410 temperature sensors
In reply to Mike FrysingerFrom: Sonic Zhang <[email protected]>
--- drivers/staging/iio/adc/Kconfig | 7 + drivers/staging/iio/adc/Makefile | 1 + drivers/staging/iio/adc/adt7410.c | 915 +++++++++++++++++++++++++++++++++++++ 3 files changed, 923 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/adc/adt7410.c
drivers/staging/iio/adc/Kconfig +7 -0
@@ -127,3 +127,10 @@ config ADT7310 help Say yes here to build support for Analog Devices ADT7310 temperature sensors. + +config ADT7410 + tristate "Analog Devices ADT7410 temperature sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices ADT7410 + temperature sensors.
drivers/staging/iio/adc/Makefile +1 -0
@@ -24,3 +24,4 @@ obj-$(CONFIG_AD7745) += ad7745.o obj-$(CONFIG_AD7816) += ad7816.o obj-$(CONFIG_ADT75) += adt75.o obj-$(CONFIG_ADT7310) += adt7310.o +obj-$(CONFIG_ADT7410) += adt7410.o
drivers/staging/iio/adc/adt7410.c new file +915 -0
915 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 18/36 staging: iio: gyro: new driver for ADIS16251 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/gyro/Kconfig | 10 + drivers/staging/iio/gyro/Makefile | 3 + drivers/staging/iio/gyro/adis16251.h | 185 +++++++ drivers/staging/iio/gyro/adis16251_core.c | 777 +++++++++++++++++++++++++++++ drivers/staging/iio/sysfs.h | 6 + 5 files changed, 981 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/gyro/adis16251.h create mode 100644 drivers/staging/iio/gyro/adis16251_core.c
drivers/staging/iio/gyro/Kconfig +10 -0
@@ -14,3 +14,13 @@ config ADIS16260 This driver can also be built as a module. If so, the module will be called adis16260. + +config ADIS16251 + tristate "Analog Devices ADIS16251 Digital Gyroscope Sensor SPI driver" + depends on SPI + help + Say yes here to build support for Analog Devices adis16261 programmable + digital gyroscope sensor. + + This driver can also be built as a module. If so, the module + will be called adis16251.
drivers/staging/iio/gyro/Makefile +3 -0
@@ -5,3 +5,6 @@ adis16260-y := adis16260_core.o adis16260-$(CONFIG_IIO_RING_BUFFER) += adis16260_ring.o adis16260_trigger.o obj-$(CONFIG_ADIS16260) += adis16260.o + +adis16251-y := adis16251_core.o +obj-$(CONFIG_ADIS16251) += adis16251.o
drivers/staging/iio/gyro/adis16251.h new file +185 -0
185 lines not on this page · raw message
drivers/staging/iio/gyro/adis16251_core.c new file +777 -0
777 lines not on this page · raw message
drivers/staging/iio/sysfs.h +6 -0
@@ -108,6 +108,12 @@ struct iio_const_attr {IIO_DEVICE_ATTR (name,S_IRUGO , _show,NULL ,0 )/** +* IIO_DEV_ATTR_RESET: resets the device + **/ +#define IIO_DEV_ATTR_RESET (_store) \ + IIO_DEVICE_ATTR(reset, S_IWUGO, NULL, _store, 0) + +/** * IIO_CONST_ATTR_NAME - constant identifier * @_string: the name **/
Signature · 1 line
1.7.3.2
PATCH v2 19/36 staging: iio: gyro: new driver for ADIS16060 digital output gyros
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/gyro/Kconfig | 7 + drivers/staging/iio/gyro/Makefile | 3 + drivers/staging/iio/gyro/adis16060.h | 101 +++++++++ drivers/staging/iio/gyro/adis16060_core.c | 319 +++++++++++++++++++++++++++++ 4 files changed, 430 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/gyro/adis16060.h create mode 100644 drivers/staging/iio/gyro/adis16060_core.c
drivers/staging/iio/gyro/Kconfig +7 -0
@@ -3,6 +3,13 @@ # comment "Digital gyroscope sensors" +config ADIS16060 + tristate "Analog Devices ADIS16060 Yaw Rate Gyroscope with SPI driver" + depends on SPI + help + Say yes here to build support for Analog Devices adis16060 wide bandwidth + yaw rate gyroscope with SPI. + config ADIS16260 tristate "Analog Devices ADIS16260 ADIS16265 Digital Gyroscope Sensor SPI driver" depends on SPI
drivers/staging/iio/gyro/Makefile +3 -0
@@ -2,6 +2,9 @@ # Makefile for digital gyroscope sensor drivers # +adis16060-y := adis16060_core.o +obj-$(CONFIG_ADIS16060) += adis16060.o + adis16260-y := adis16260_core.o adis16260-$(CONFIG_IIO_RING_BUFFER) += adis16260_ring.o adis16260_trigger.o obj-$(CONFIG_ADIS16260) += adis16260.o
drivers/staging/iio/gyro/adis16060.h new file +101 -0
101 lines not on this page · raw message
drivers/staging/iio/gyro/adis16060_core.c new file +319 -0
319 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 20/36 staging: iio: gyro: new driver for ADIS16080 digital output gyros
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/gyro/Kconfig | 7 + drivers/staging/iio/gyro/Makefile | 3 + drivers/staging/iio/gyro/adis16080.h | 102 +++++++++++ drivers/staging/iio/gyro/adis16080_core.c | 271 +++++++++++++++++++++++++++++ 4 files changed, 383 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/gyro/adis16080.h create mode 100644 drivers/staging/iio/gyro/adis16080_core.c
drivers/staging/iio/gyro/Kconfig +7 -0
@@ -10,6 +10,13 @@ config ADIS16060 Say yes here to build support for Analog Devices adis16060 wide bandwidth yaw rate gyroscope with SPI. +config ADIS16080 + tristate "Analog Devices ADIS16080/100 Yaw Rate Gyroscope with SPI driver" + depends on SPI + help + Say yes here to build support for Analog Devices adis16080/100 Yaw Rate + Gyroscope with SPI. + config ADIS16260 tristate "Analog Devices ADIS16260 ADIS16265 Digital Gyroscope Sensor SPI driver" depends on SPI
drivers/staging/iio/gyro/Makefile +3 -0
@@ -5,6 +5,9 @@ adis16060-y := adis16060_core.o obj-$(CONFIG_ADIS16060) += adis16060.o +adis16080-y := adis16080_core.o +obj-$(CONFIG_ADIS16080) += adis16080.o + adis16260-y := adis16260_core.o adis16260-$(CONFIG_IIO_RING_BUFFER) += adis16260_ring.o adis16260_trigger.o obj-$(CONFIG_ADIS16260) += adis16260.o
drivers/staging/iio/gyro/adis16080.h new file +102 -0
102 lines not on this page · raw message
drivers/staging/iio/gyro/adis16080_core.c new file +271 -0
271 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 21/36 staging: iio: gyro: new driver for ADIS16130 digital output gyros
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/gyro/Kconfig | 7 + drivers/staging/iio/gyro/Makefile | 3 + drivers/staging/iio/gyro/adis16130.h | 108 ++++++++++ drivers/staging/iio/gyro/adis16130_core.c | 313 +++++++++++++++++++++++++++++ 4 files changed, 431 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/gyro/adis16130.h create mode 100644 drivers/staging/iio/gyro/adis16130_core.c
drivers/staging/iio/gyro/Kconfig +7 -0
@@ -17,6 +17,13 @@ config ADIS16080 Say yes here to build support for Analog Devices adis16080/100 Yaw Rate Gyroscope with SPI. +config ADIS16130 + tristate "Analog Devices ADIS16130 High Precision Angular Rate Sensor driver" + depends on SPI + help + Say yes here to build support for Analog Devices ADIS16130 High Precision + Angular Rate Sensor driver. + config ADIS16260 tristate "Analog Devices ADIS16260 ADIS16265 Digital Gyroscope Sensor SPI driver" depends on SPI
drivers/staging/iio/gyro/Makefile +3 -0
@@ -8,6 +8,9 @@ obj-$(CONFIG_ADIS16060) += adis16060.o adis16080-y := adis16080_core.o obj-$(CONFIG_ADIS16080) += adis16080.o +adis16130-y := adis16130_core.o +obj-$(CONFIG_ADIS16130) += adis16130.o + adis16260-y := adis16260_core.o adis16260-$(CONFIG_IIO_RING_BUFFER) += adis16260_ring.o adis16260_trigger.o obj-$(CONFIG_ADIS16260) += adis16260.o
drivers/staging/iio/gyro/adis16130.h new file +108 -0
108 lines not on this page · raw message
drivers/staging/iio/gyro/adis16130_core.c new file +313 -0
313 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 22/36 staging: iio: dac: new driver for AD5624R devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
This is used to convert digital streams into voltages.
--- drivers/staging/iio/Kconfig | 1 + drivers/staging/iio/Makefile | 1 + drivers/staging/iio/dac/Kconfig | 11 ++ drivers/staging/iio/dac/Makefile | 5 + drivers/staging/iio/dac/ad5624r.h | 21 +++ drivers/staging/iio/dac/ad5624r_spi.c | 313 +++++++++++++++++++++++++++++++++ drivers/staging/iio/dac/dac.h | 6 + 7 files changed, 358 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dac/Kconfig create mode 100644 drivers/staging/iio/dac/Makefile create mode 100644 drivers/staging/iio/dac/ad5624r.h create mode 100644 drivers/staging/iio/dac/ad5624r_spi.c create mode 100644 drivers/staging/iio/dac/dac.h
drivers/staging/iio/Kconfig +1 -0
@@ -43,6 +43,7 @@ config IIO_TRIGGER source "drivers/staging/iio/accel/Kconfig" source "drivers/staging/iio/adc/Kconfig" source "drivers/staging/iio/addac/Kconfig" +source "drivers/staging/iio/dac/Kconfig" source "drivers/staging/iio/gyro/Kconfig" source "drivers/staging/iio/imu/Kconfig" source "drivers/staging/iio/light/Kconfig"
drivers/staging/iio/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_IIO_SW_RING) += ring_sw.o obj-y += accel/ obj-y += adc/ obj-y += addac/ +obj-y += dac/ obj-y += gyro/ obj-y += imu/ obj-y += light/
drivers/staging/iio/dac/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +# +# DAC drivers +# +comment "Digital to analog convertors" + +config AD5624R_SPI + tristate "Analog Devices AD5624/44/64R DAC spi driver" + depends on SPI + help + Say yes here to build support for Analog Devices AD5624R, AD5644R and + AD5664R convertors (DAC). This driver uses the common SPI interface.
drivers/staging/iio/dac/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for industrial I/O DAC drivers +# + +obj-$(CONFIG_AD5624R_SPI) += ad5624r_spi.o
drivers/staging/iio/dac/ad5624r.h new file +21 -0
@@ -0,0 +1,21 @@ +#ifndef SPI_AD5624R_H_ +#define SPI_AD5624R_H_ + +#define AD5624R_DAC_CHANNELS 4 + +#define AD5624R_ADDR_DAC0 0x0 +#define AD5624R_ADDR_DAC1 0x1 +#define AD5624R_ADDR_DAC2 0x2 +#define AD5624R_ADDR_DAC3 0x3 +#define AD5624R_ADDR_ALL_DAC 0x7 + +#define AD5624R_CMD_WRITE_INPUT_N 0x0 +#define AD5624R_CMD_UPDATE_DAC_N 0x1 +#define AD5624R_CMD_WRITE_INPUT_N_UPDATE_ALL 0x2 +#define AD5624R_CMD_WRITE_INPUT_N_UPDATE_N 0x3 +#define AD5624R_CMD_POWERDOWN_DAC 0x4 +#define AD5624R_CMD_RESET 0x5 +#define AD5624R_CMD_LDAC_SETUP 0x6 +#define AD5624R_CMD_INTERNAL_REFER_SETUP 0x7 + +#endif
drivers/staging/iio/dac/ad5624r_spi.c new file +313 -0
313 lines not on this page · raw message
drivers/staging/iio/dac/dac.h new file +6 -0
@@ -0,0 +1,6 @@ +/* +* dac.h - sysfs attributes associated with DACs +*/ + +#define IIO_DEV_ATTR_DAC (_num, _store, _addr) \ + IIO_DEVICE_ATTR(dac_##_num, S_IWUSR, NULL, _store, _addr)
Signature · 1 line
1.7.3.2
PATCH v2 23/36 staging: iio: dds: new driver for AD5930/2 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
This is the initial driver in the new Direct Digital Synthesis section.
--- drivers/staging/iio/Kconfig | 1 + drivers/staging/iio/Makefile | 1 + drivers/staging/iio/dds/Kconfig | 11 +++ drivers/staging/iio/dds/Makefile | 5 + drivers/staging/iio/dds/ad5930.c | 170 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 188 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/Kconfig create mode 100644 drivers/staging/iio/dds/Makefile create mode 100644 drivers/staging/iio/dds/ad5930.c
drivers/staging/iio/Kconfig +1 -0
@@ -44,6 +44,7 @@ source "drivers/staging/iio/accel/Kconfig" source "drivers/staging/iio/adc/Kconfig" source "drivers/staging/iio/addac/Kconfig" source "drivers/staging/iio/dac/Kconfig" +source "drivers/staging/iio/dds/Kconfig" source "drivers/staging/iio/gyro/Kconfig" source "drivers/staging/iio/imu/Kconfig" source "drivers/staging/iio/light/Kconfig"
drivers/staging/iio/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-y += accel/ obj-y += adc/ obj-y += addac/ obj-y += dac/ +obj-y += dds/ obj-y += gyro/ obj-y += imu/ obj-y += light/
drivers/staging/iio/dds/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +# +# Direct Digital Synthesis drivers +# +comment "Direct Digital Synthesis" + +config AD5930 + tristate "Analog Devices ad5930/5932 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad5930/ad5932, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for Direct Digital Synthesis drivers +# + +obj-$(CONFIG_AD5930) += ad5930.o
drivers/staging/iio/dds/ad5930.c new file +170 -0
170 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 24/36 staging: iio: dds: new driver for AD9832/3/4/5 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 7 + drivers/staging/iio/dds/Makefile | 1 + drivers/staging/iio/dds/ad9832.c | 266 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 274 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9832.c
drivers/staging/iio/dds/Kconfig +7 -0
@@ -9,3 +9,10 @@ config AD5930 help Say yes here to build support for Analog Devices DDS chip ad5930/ad5932, provides direct access via sysfs. + +config AD9832 + tristate "Analog Devices ad9832/3/4/5 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad9832/3/4/5, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile +1 -0
@@ -3,3 +3,4 @@ # obj-$(CONFIG_AD5930) += ad5930.o +obj-$(CONFIG_AD9832) += ad9832.o
drivers/staging/iio/dds/ad9832.c new file +266 -0
266 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 25/36 staging: iio: dds: new driver for AD9850/1 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 7 ++ drivers/staging/iio/dds/Makefile | 1 + drivers/staging/iio/dds/ad9850.c | 156 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 164 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9850.c
drivers/staging/iio/dds/Kconfig +7 -0
@@ -16,3 +16,10 @@ config AD9832 help Say yes here to build support for Analog Devices DDS chip ad9832/3/4/5, provides direct access via sysfs. + +config AD9850 + tristate "Analog Devices ad9850/1 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad9850/1, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile +1 -0
@@ -4,3 +4,4 @@ obj-$(CONFIG_AD5930) += ad5930.o obj-$(CONFIG_AD9832) += ad9832.o +obj-$(CONFIG_AD9850) += ad9850.o
drivers/staging/iio/dds/ad9850.c new file +156 -0
156 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 26/36 staging: iio: dds: new driver for AD9852/4 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 7 + drivers/staging/iio/dds/Makefile | 1 + drivers/staging/iio/dds/ad9852.c | 314 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 322 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9852.c
drivers/staging/iio/dds/Kconfig +7 -0
@@ -23,3 +23,10 @@ config AD9850 help Say yes here to build support for Analog Devices DDS chip ad9850/1, provides direct access via sysfs. + +config AD9852 + tristate "Analog Devices ad9852/4 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad9852/4, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile +1 -0
@@ -5,3 +5,4 @@ obj-$(CONFIG_AD5930) += ad5930.o obj-$(CONFIG_AD9832) += ad9832.o obj-$(CONFIG_AD9850) += ad9850.o +obj-$(CONFIG_AD9852) += ad9852.o
drivers/staging/iio/dds/ad9852.c new file +314 -0
314 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 27/36 staging: iio: dds: new driver for AD9910 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 7 + drivers/staging/iio/dds/Makefile | 1 + drivers/staging/iio/dds/ad9910.c | 454 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 462 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9910.c
drivers/staging/iio/dds/Kconfig +7 -0
@@ -30,3 +30,10 @@ config AD9852 help Say yes here to build support for Analog Devices DDS chip ad9852/4, provides direct access via sysfs. + +config AD9910 + tristate "Analog Devices ad9910 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad9910, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile +1 -0
@@ -6,3 +6,4 @@ obj-$(CONFIG_AD5930) += ad5930.o obj-$(CONFIG_AD9832) += ad9832.o obj-$(CONFIG_AD9850) += ad9850.o obj-$(CONFIG_AD9852) += ad9852.o +obj-$(CONFIG_AD9910) += ad9910.o
drivers/staging/iio/dds/ad9910.c new file +454 -0
454 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 28/36 staging: iio: dds: new driver for AD9951 devices
In reply to Mike FrysingerFrom: Cliff Cai <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 7 + drivers/staging/iio/dds/Makefile | 1 + drivers/staging/iio/dds/ad9951.c | 254 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 262 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9951.c
drivers/staging/iio/dds/Kconfig +7 -0
@@ -37,3 +37,10 @@ config AD9910 help Say yes here to build support for Analog Devices DDS chip ad9910, provides direct access via sysfs. + +config AD9951 + tristate "Analog Devices ad9951 driver" + depends on SPI + help + Say yes here to build support for Analog Devices DDS chip + ad9951, provides direct access via sysfs.
drivers/staging/iio/dds/Makefile +1 -0
@@ -7,3 +7,4 @@ obj-$(CONFIG_AD9832) += ad9832.o obj-$(CONFIG_AD9850) += ad9850.o obj-$(CONFIG_AD9852) += ad9852.o obj-$(CONFIG_AD9910) += ad9910.o +obj-$(CONFIG_AD9951) += ad9951.o
drivers/staging/iio/dds/ad9951.c new file +254 -0
254 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 29/36 staging: iio: meter: new driver for ADE7753/6 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
This also kicks off the new meter subsection.
--- drivers/staging/iio/Kconfig | 2 +- drivers/staging/iio/Makefile | 3 +- drivers/staging/iio/meter/Kconfig | 11 + drivers/staging/iio/meter/Makefile | 5 + drivers/staging/iio/meter/ade7753.c | 730 +++++++++++++++++++++++++++++++++++ drivers/staging/iio/meter/ade7753.h | 140 +++++++ drivers/staging/iio/meter/meter.h | 396 +++++++++++++++++++ 7 files changed, 1285 insertions(+), 2 deletions(-) create mode 100644 drivers/staging/iio/meter/Kconfig create mode 100644 drivers/staging/iio/meter/Makefile create mode 100644 drivers/staging/iio/meter/ade7753.c create mode 100644 drivers/staging/iio/meter/ade7753.h create mode 100644 drivers/staging/iio/meter/meter.h
drivers/staging/iio/Kconfig +1 -1
@@ -49,7 +49,7 @@ source "drivers/staging/iio/gyro/Kconfig" source "drivers/staging/iio/imu/Kconfig" source "drivers/staging/iio/light/Kconfig" source "drivers/staging/iio/magnetometer/Kconfig" - +source "drivers/staging/iio/meter/Kconfig" source "drivers/staging/iio/trigger/Kconfig" endif # IIO
drivers/staging/iio/Makefile +2 -1
@@ -17,5 +17,6 @@ obj-y += dds/ obj-y += gyro/ obj-y += imu/ obj-y += light/ -obj-y += trigger/ obj-y += magnetometer/ +obj-y += meter/ +obj-y += trigger/
drivers/staging/iio/meter/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +# +# IIO meter drivers configuration +# +comment "Active energy metering IC" + +config ADE7753 + tristate "Analog Devices ADE7753/6 Single-Phase Multifunction Metering IC Driver" + depends on SPI + help + Say yes here to build support for Analog Devices ADE7753 Single-Phase Multifunction + Metering IC with di/dt Sensor Interface.
drivers/staging/iio/meter/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for metering ic drivers +# + +obj-$(CONFIG_ADE7753) += ade7753.o
drivers/staging/iio/meter/ade7753.c new file +730 -0
730 lines not on this page · raw message
drivers/staging/iio/meter/ade7753.h new file +140 -0
140 lines not on this page · raw message
drivers/staging/iio/meter/meter.h new file +396 -0
396 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 30/36 staging: iio: meter: new driver for ADE7754 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/meter/Kconfig | 7 + drivers/staging/iio/meter/Makefile | 1 + drivers/staging/iio/meter/ade7754.c | 756 +++++++++++++++++++++++++++++++++++ drivers/staging/iio/meter/ade7754.h | 161 ++++++++ 4 files changed, 925 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/meter/ade7754.c create mode 100644 drivers/staging/iio/meter/ade7754.h
drivers/staging/iio/meter/Kconfig +7 -0
@@ -9,3 +9,10 @@ config ADE7753 help Say yes here to build support for Analog Devices ADE7753 Single-Phase Multifunction Metering IC with di/dt Sensor Interface. + +config ADE7754 + tristate "Analog Devices ADE7754 Polyphase Multifunction Energy Metering IC Driver" + depends on SPI + help + Say yes here to build support for Analog Devices ADE7754 Polyphase + Multifunction Energy Metering IC Driver.
drivers/staging/iio/meter/Makefile +1 -0
@@ -3,3 +3,4 @@ # obj-$(CONFIG_ADE7753) += ade7753.o +obj-$(CONFIG_ADE7754) += ade7754.o
drivers/staging/iio/meter/ade7754.c new file +756 -0
756 lines not on this page · raw message
drivers/staging/iio/meter/ade7754.h new file +161 -0
161 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 31/36 staging: iio: meter: new driver for ADE7758 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/meter/Kconfig | 9 + drivers/staging/iio/meter/Makefile | 4 + drivers/staging/iio/meter/ade7758.h | 171 ++++++ drivers/staging/iio/meter/ade7758_core.c | 866 +++++++++++++++++++++++++++ drivers/staging/iio/meter/ade7758_ring.c | 212 +++++++ drivers/staging/iio/meter/ade7758_trigger.c | 125 ++++ 6 files changed, 1387 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/meter/ade7758.h create mode 100644 drivers/staging/iio/meter/ade7758_core.c create mode 100644 drivers/staging/iio/meter/ade7758_ring.c create mode 100644 drivers/staging/iio/meter/ade7758_trigger.c
drivers/staging/iio/meter/Kconfig +9 -0
@@ -16,3 +16,12 @@ config ADE7754 help Say yes here to build support for Analog Devices ADE7754 Polyphase Multifunction Energy Metering IC Driver. + +config ADE7758 + tristate "Analog Devices ADE7758 Poly Phase Multifunction Energy Metering IC Driver" + depends on SPI + select IIO_TRIGGER if IIO_RING_BUFFER + select IIO_SW_RING if IIO_RING_BUFFER + help + Say yes here to build support for Analog Devices ADE7758 Polyphase + Multifunction Energy Metering IC with Per Phase Information Driver.
drivers/staging/iio/meter/Makefile +4 -0
@@ -4,3 +4,7 @@ obj-$(CONFIG_ADE7753) += ade7753.o obj-$(CONFIG_ADE7754) += ade7754.o + +ade7758-y := ade7758_core.o +ade7758-$(CONFIG_IIO_RING_BUFFER) += ade7758_ring.o ade7758_trigger.o +obj-$(CONFIG_ADE7758) += ade7758.o
drivers/staging/iio/meter/ade7758.h new file +171 -0
171 lines not on this page · raw message
drivers/staging/iio/meter/ade7758_core.c new file +866 -0
866 lines not on this page · raw message
drivers/staging/iio/meter/ade7758_ring.c new file +212 -0
212 lines not on this page · raw message
drivers/staging/iio/meter/ade7758_trigger.c new file +125 -0
125 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 32/36 staging: iio: meter: new driver for ADE7759 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/meter/Kconfig | 7 + drivers/staging/iio/meter/Makefile | 2 + drivers/staging/iio/meter/ade7759.c | 670 +++++++++++++++++++++++++++++++++++ drivers/staging/iio/meter/ade7759.h | 122 +++++++ 4 files changed, 801 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/meter/ade7759.c create mode 100644 drivers/staging/iio/meter/ade7759.h
drivers/staging/iio/meter/Kconfig +7 -0
@@ -25,3 +25,10 @@ config ADE7758 help Say yes here to build support for Analog Devices ADE7758 Polyphase Multifunction Energy Metering IC with Per Phase Information Driver. + +config ADE7759 + tristate "Analog Devices ADE7759 Active Energy Metering IC Driver" + depends on SPI + help + Say yes here to build support for Analog Devices ADE7758 Active Energy + Metering IC with di/dt Sensor Interface.
drivers/staging/iio/meter/Makefile +2 -0
@@ -8,3 +8,5 @@ obj-$(CONFIG_ADE7754) += ade7754.o ade7758-y := ade7758_core.o ade7758-$(CONFIG_IIO_RING_BUFFER) += ade7758_ring.o ade7758_trigger.o obj-$(CONFIG_ADE7758) += ade7758.o + +obj-$(CONFIG_ADE7759) += ade7759.o
drivers/staging/iio/meter/ade7759.c new file +670 -0
670 lines not on this page · raw message
drivers/staging/iio/meter/ade7759.h new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 33/36 staging: iio: meter: new driver for ADE7854/58/68/78 devices
In reply to Mike FrysingerFrom: Barry Song <[email protected]>
--- drivers/staging/iio/meter/Kconfig | 27 ++ drivers/staging/iio/meter/Makefile | 3 + drivers/staging/iio/meter/ade7854-i2c.c | 272 ++++++++++++ drivers/staging/iio/meter/ade7854-spi.c | 360 ++++++++++++++++ drivers/staging/iio/meter/ade7854.c | 680 +++++++++++++++++++++++++++++++ drivers/staging/iio/meter/ade7854.h | 245 +++++++++++ 6 files changed, 1587 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/meter/ade7854-i2c.c create mode 100644 drivers/staging/iio/meter/ade7854-spi.c create mode 100644 drivers/staging/iio/meter/ade7854.c create mode 100644 drivers/staging/iio/meter/ade7854.h
drivers/staging/iio/meter/Kconfig +27 -0
@@ -32,3 +32,30 @@ config ADE7759 help Say yes here to build support for Analog Devices ADE7758 Active Energy Metering IC with di/dt Sensor Interface. + +config ADE7854 + tristate "Analog Devices ADE7854/58/68/78 Polyphase Multifunction Energy Metering IC Driver" + depends on SPI || I2C + help + Say yes here to build support for Analog Devices ADE7854/58/68/78 Polyphase + Multifunction Energy Metering IC Driver. + +config ADE7854_I2C + tristate "support I2C bus connection" + depends on ADE7854 && I2C + default y + help + Say Y here if you have ADE7854/58/68/78 hooked to an I2C bus. + + To compile this driver as a module, choose M here: the + module will be called ade7854-i2c. + +config ADE7854_SPI + tristate "support SPI bus connection" + depends on ADE7854 && SPI + default y + help + Say Y here if you have ADE7854/58/68/78 hooked to a SPI bus. + + To compile this driver as a module, choose M here: the + module will be called ade7854-spi.
drivers/staging/iio/meter/Makefile +3 -0
@@ -10,3 +10,6 @@ ade7758-$(CONFIG_IIO_RING_BUFFER) += ade7758_ring.o ade7758_trigger.o obj-$(CONFIG_ADE7758) += ade7758.o obj-$(CONFIG_ADE7759) += ade7759.o +obj-$(CONFIG_ADE7854) += ade7854.o +obj-$(CONFIG_ADE7854_I2C) += ade7854-i2c.o +obj-$(CONFIG_ADE7854_SPI) += ade7854-spi.o
drivers/staging/iio/meter/ade7854-i2c.c new file +272 -0
272 lines not on this page · raw message
drivers/staging/iio/meter/ade7854-spi.c new file +360 -0
360 lines not on this page · raw message
drivers/staging/iio/meter/ade7854.c new file +680 -0
680 lines not on this page · raw message
drivers/staging/iio/meter/ade7854.h new file +245 -0
245 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 34/36 staging: iio: resolver: new driver for AD2S90 devices
In reply to Mike FrysingerFrom: Graf Yang <[email protected]>
This also kicks off the new resolver subsection.
--- drivers/staging/iio/Kconfig | 1 + drivers/staging/iio/Makefile | 1 + drivers/staging/iio/resolver/Kconfig | 11 +++ drivers/staging/iio/resolver/Makefile | 5 + drivers/staging/iio/resolver/ad2s90.c | 159 +++++++++++++++++++++++++++++++++ 5 files changed, 177 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/resolver/Kconfig create mode 100644 drivers/staging/iio/resolver/Makefile create mode 100644 drivers/staging/iio/resolver/ad2s90.c
drivers/staging/iio/Kconfig +1 -0
@@ -50,6 +50,7 @@ source "drivers/staging/iio/imu/Kconfig" source "drivers/staging/iio/light/Kconfig" source "drivers/staging/iio/magnetometer/Kconfig" source "drivers/staging/iio/meter/Kconfig" +source "drivers/staging/iio/resolver/Kconfig" source "drivers/staging/iio/trigger/Kconfig" endif # IIO
drivers/staging/iio/Makefile +1 -0
@@ -19,4 +19,5 @@ obj-y += imu/ obj-y += light/ obj-y += magnetometer/ obj-y += meter/ +obj-y += resolver/ obj-y += trigger/
drivers/staging/iio/resolver/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +# +# Resolver/Synchro drivers +# +comment "Resolver to digital converters" + +config AD2S90 + tristate "Analog Devices ad2s90 driver" + depends on SPI + help + Say yes here to build support for Analog Devices spi resolver + to digital converters, ad2s90, provides direct access via sysfs.
drivers/staging/iio/resolver/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for Resolver/Synchro drivers +# + +obj-$(CONFIG_AD2S90) += ad2s90.o
drivers/staging/iio/resolver/ad2s90.c new file +159 -0
159 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 35/36 staging: iio: resolver: new driver for AD2S1200/1205 devices
In reply to Mike FrysingerFrom: Graf Yang <[email protected]>
--- drivers/staging/iio/resolver/Kconfig | 8 + drivers/staging/iio/resolver/Makefile | 1 + drivers/staging/iio/resolver/ad2s120x.c | 310 +++++++++++++++++++++++++++++++ 3 files changed, 319 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/resolver/ad2s120x.c
drivers/staging/iio/resolver/Kconfig +8 -0
@@ -9,3 +9,11 @@ config AD2S90 help Say yes here to build support for Analog Devices spi resolver to digital converters, ad2s90, provides direct access via sysfs. + +config AD2S120X + tristate "Analog Devices ad2s120x driver" + depends on SPI + help + Say yes here to build support for Analog Devices spi resolver + to digital converters, ad2s1200 and ad2s1205, provides direct access + via sysfs.
drivers/staging/iio/resolver/Makefile +1 -0
@@ -3,3 +3,4 @@ # obj-$(CONFIG_AD2S90) += ad2s90.o +obj-$(CONFIG_AD2S120X) += ad2s120x.o
drivers/staging/iio/resolver/ad2s120x.c new file +310 -0
310 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 36/36 staging: iio: resolver: new driver for AD2S1210 devices
In reply to Mike FrysingerFrom: Graf Yang <[email protected]>
--- drivers/staging/iio/resolver/Kconfig | 35 ++ drivers/staging/iio/resolver/Makefile | 1 + drivers/staging/iio/resolver/ad2s1210.c | 872 +++++++++++++++++++++++++++++++ 3 files changed, 908 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/resolver/ad2s1210.c
drivers/staging/iio/resolver/Kconfig +35 -0
@@ -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
drivers/staging/iio/resolver/Makefile +1 -0
@@ -4,3 +4,4 @@ obj-$(CONFIG_AD2S90) += ad2s90.o obj-$(CONFIG_AD2S120X) += ad2s120x.o +obj-$(CONFIG_AD2S1210) += ad2s1210.o
drivers/staging/iio/resolver/ad2s1210.c new file +872 -0
872 lines not on this page · raw message
Signature · 1 line
1.7.3.2
Quoted 2 lines · Mike Frysinger
Hopefully there shouldn't be any roadblocks now before pushing to GregKH. I'll do so in a day or two if there aren't any issues.
ive bounced it over to him now
-mike
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Mike Frysinger
Hopefully there shouldn't be any roadblocks now before pushing to GregKH. I'll do so in a day or two if there aren't any issues.
ive bounced it over to him now
-mike
I'm guessing this lot *just* missed the merge window. Despite all Mike's hard work they were proposed for merging very late so we can't really complain!
Anyhow, this is not necessarily a bad thing as it will mean they sit in staging-next for a couple of months and we can do a lot of needed cleaning up before the next merge window. The trick is probably going to be to synchronize this chunk of the blackfin tree against staging-next so that we can apply any accepted/reviewed patches to both trees as we move forward.
I can set up an additional 'in between' tree if that is helpful? (kernel.org hosted) It would contain whatever we have sent on to Greg KH but based against mainline rather than linux-next (with no rebasing but with merges to move with the release candidates as they appear). Hence it would effectively be iio-next though formally that role will still be handled by Greg's staging-next tree.
Jonathan
Quoted 3 lines · Jonathan Cameron
Quoted 2 lines · Mike Frysinger
Quoted 1 line · Mike Frysinger
Hopefully there shouldn't be any roadblocks now before pushing to GregK=
H.
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
I'll do so in a day or two if there aren't any issues.
ive bounced it over to him now
I'm guessing this lot *just* missed the merge window. =C2=A0Despite all M=
ike's
Quoted 1 line
hard work they were proposed for merging very late so we can't really com=
plain!
Quoted 3 lines
Anyhow, this is not necessarily a bad thing as it will mean they sit in staging-next for a couple of months and we can do a lot of needed cleanin=
g up
Quoted 1 line
before the next merge window. =C2=A0The trick is probably going to be to =
synchronize
Quoted 1 line
this chunk of the blackfin tree against staging-next so that we can apply=
any
Quoted 3 lines
accepted/reviewed patches to both trees as we move forward.
I can set up an additional 'in between' tree if that is helpful? (kernel.=
org hosted)
Quoted 1 line
It would contain whatever we have sent on to Greg KH but based against ma=
inline
Quoted 1 line
rather than linux-next (with no rebasing but with merges to move with the=
release
Quoted 1 line
candidates as they appear). Hence it would effectively be iio-next though=
formally
Quoted 1 line
that role will still be handled by Greg's staging-next tree.
as long as the patches are in staging-next, i think things are fine. with the bulk of the code merged, what we have left should be a lot easier to sync/work on.
-mike
Quoted 4 lines · Mike Frysinger
Quoted 3 lines · Jonathan Cameron
Quoted 2 lines · Mike Frysinger
Quoted 1 line · Mike Frysinger
Hopefully there shouldn't be any roadblocks now before pushing to Greg=
KH.
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I'll do so in a day or two if there aren't any issues.
ive bounced it over to him now
I'm guessing this lot *just* missed the merge window. =C2=A0Despite all =
Mike's
Quoted 1 line
Quoted 1 line
hard work they were proposed for merging very late so we can't really co=
mplain!
Quoted 3 lines
Quoted 3 lines
Anyhow, this is not necessarily a bad thing as it will mean they sit in staging-next for a couple of months and we can do a lot of needed cleani=
ng up
Quoted 1 line
Quoted 1 line
before the next merge window. =C2=A0The trick is probably going to be to=
synchronize
Quoted 1 line
Quoted 1 line
this chunk of the blackfin tree against staging-next so that we can appl=
y any
Quoted 3 lines
Quoted 3 lines
accepted/reviewed patches to both trees as we move forward.
I can set up an additional 'in between' tree if that is helpful? (kernel=
.org hosted)
Quoted 1 line
Quoted 1 line
It would contain whatever we have sent on to Greg KH but based against m=
ainline
Quoted 1 line
Quoted 1 line
rather than linux-next (with no rebasing but with merges to move with th=
e release
Quoted 1 line
Quoted 1 line
candidates as they appear). Hence it would effectively be iio-next thoug=
h formally
Quoted 5 lines
Quoted 1 line
that role will still be handled by Greg's staging-next tree.
as long as the patches are in staging-next, i think things are fine. with the bulk of the code merged, what we have left should be a lot easier to sync/work on.
greg has pulled things into his staging-next tree, so hopefully we can get back to focusing on technical details and not API thrashing now :) -mike