From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Folkesson Subject: Re: [PATCH v6 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer Date: Fri, 10 Aug 2018 20:21:35 +0200 Message-ID: <20180810182135.GA717@gmail.com> References: <1533890783-13456-1-git-send-email-stefan.popa@analog.com> <1533890783-13456-2-git-send-email-stefan.popa@analog.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Return-path: Content-Disposition: inline In-Reply-To: <1533890783-13456-2-git-send-email-stefan.popa@analog.com> Sender: linux-kernel-owner@vger.kernel.org To: Stefan Popa Cc: jic23@kernel.org, broonie@kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, mark.rutland@arm.com, davem@davemloft.net, mchehab+samsung@kernel.org, gregkh@linuxfoundation.org, akpm@linux-foundation.org, robh+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Stefan, On Fri, Aug 10, 2018 at 11:46:18AM +0300, Stefan Popa wrote: > This patch adds basic support for Analog Devices ADXL372 SPI-Bus > Three-Axis Digital Accelerometer. >=20 > The device is probed and configured the with some initial default > values. With this basic driver, it is possible to read raw acceleration > data. >=20 > Datasheet: > http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL37= 2.pdf >=20 > Signed-off-by: Stefan Popa > --- > MAINTAINERS | 6 + > drivers/iio/accel/Kconfig | 11 + > drivers/iio/accel/Makefile | 1 + > drivers/iio/accel/adxl372.c | 525 ++++++++++++++++++++++++++++++++++++++= ++++++ > 4 files changed, 543 insertions(+) > create mode 100644 drivers/iio/accel/adxl372.c >=20 > diff --git a/MAINTAINERS b/MAINTAINERS > index 60b1028..2ba47bb 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -543,6 +543,12 @@ W: http://ez.analog.com/community/linux-device-drive= rs > S: Supported > F: drivers/input/misc/adxl34x.c > =20 > +ADXL372 THREE-AXIS DIGITAL ACCELEROMETER DRIVER > +M: Stefan Popa > +W: http://ez.analog.com/community/linux-device-drivers > +S: Supported > +F: drivers/iio/accel/adxl372.c > + > AF9013 MEDIA DRIVER > M: Antti Palosaari > L: linux-media@vger.kernel.org > diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig > index 62ae7e5..1b496ef 100644 > --- a/drivers/iio/accel/Kconfig > +++ b/drivers/iio/accel/Kconfig > @@ -60,6 +60,17 @@ config ADXL345_SPI > will be called adxl345_spi and you will also get adxl345_core > for the core module. > =20 > +config ADXL372 > + tristate "Analog Devices ADXL372 3-Axis Accelerometer Driver" > + depends on SPI > + select IIO_BUFFER > + select IIO_TRIGGERED_BUFFER > + help > + Say yes here to add support for the Analog Devices ADXL372 triaxial > + acceleration sensor. > + To compile this driver as a module, choose M here: the > + module will be called adxl372. > + > config BMA180 > tristate "Bosch BMA180/BMA250 3-Axis Accelerometer Driver" > depends on I2C > diff --git a/drivers/iio/accel/Makefile b/drivers/iio/accel/Makefile > index 636d4d1..5758ffc 100644 > --- a/drivers/iio/accel/Makefile > +++ b/drivers/iio/accel/Makefile > @@ -9,6 +9,7 @@ obj-$(CONFIG_ADIS16209) +=3D adis16209.o > obj-$(CONFIG_ADXL345) +=3D adxl345_core.o > obj-$(CONFIG_ADXL345_I2C) +=3D adxl345_i2c.o > obj-$(CONFIG_ADXL345_SPI) +=3D adxl345_spi.o > +obj-$(CONFIG_ADXL372) +=3D adxl372.o > obj-$(CONFIG_BMA180) +=3D bma180.o > obj-$(CONFIG_BMA220) +=3D bma220_spi.o > obj-$(CONFIG_BMC150_ACCEL) +=3D bmc150-accel-core.o > diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c > new file mode 100644 > index 0000000..db9ecd2 > --- /dev/null > +++ b/drivers/iio/accel/adxl372.c > @@ -0,0 +1,525 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* The SPDX identifier "GPL-2.0+" is "GPL v2 or later", and the MODULE_LICENSE "GPL v2" is "GPL v2 only" See include/linux/module.h :: * "GPL" [GNU Public License v2 or later] * "GPL v2" [GNU Public License v2] Please make them match :-) [snip] > +MODULE_LICENSE("GPL v2"); > --=20 > 2.7.4 >=20 Best regards Marcus Folkesson --wac7ysb48OaltWcw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEBVGi6LZstU1kwSxliIBOb1ldUjIFAltt16kACgkQiIBOb1ld UjLvdw//RuXizom2vss5WQp9bKoizuxPCG3xFJDXBQKgkIuRhCXEWfafC1eMe6Yp u6IpuO50LS98lU/qAL5xNRmjPIr761zvoMbB+EZFCxlmBzqw6mpntZNyX28JYM/D i6k8pA7Gg/TJOSF6pvbblugUYJQMZgRnao4trzqS4CRNntV5yyW007FmaniwcSBE Kx5NNZ1wjBEFWVirl1MFQM93JfrVn4ieSL1hqYL3lcCMU3DOeWMuKzcLFv/rNspL 3+5zkL3g0ALwrGGkC9uaeORb8rMMhRqGffxQq4Qtw7qeqwS3J3oH6ZuGOlhP2Bdj jyjkdCFjmmZi58OBYu8wRFFhdhZN7a0Xyt3PaOeHECUsJlnIArFCrENyGCFa10Vg mbzAuCk6CfFbf1W09IRLH91nlhrygJxNPqbWgEHxo04o+U8aXc5tUaYz8Ov6DQ0C tINWV06TEpKoj9AFG3qCc71FTJapkukXY8XMtgTFo+MhGgd6oDYXu735/Opf7DZj Ru6Eh3hZ6Hryy6wxJ48Ufjoy4SBMH/F+e2kf4z8C9xXOrRqXanyIXJyqjNAlOwGV kYBHeR8MCIfrqCtGQdePYFymymivCZDcAhFMC6CPjzqd07VlBCJHuQUB2lo0wu0r 8RkwRwIVd84BA5vNFaj1X56mY5PusDWjAFqKEs0VbHBNG9eqYME= =KjBl -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--