LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: accel: Add support for ADXL313 accelerometer
@ 2021-08-05  6:29 Lucas Stankus
  2021-08-05  6:29 ` [PATCH v2 1/2] dt-bindings: iio: accel: Add binding documentation for ADXL313 Lucas Stankus
  2021-08-05  6:29 ` [PATCH v2 2/2] iio: accel: Add driver support " Lucas Stankus
  0 siblings, 2 replies; 10+ messages in thread
From: Lucas Stankus @ 2021-08-05  6:29 UTC (permalink / raw)
  To: lars, Michael.Hennerich, jic23, robh+dt, Dragos.Bogdan, Darius.Berghe
  Cc: linux-iio, devicetree, linux-kernel

Add driver support and dt-bindings documentation for ADXL313 digital
accelerometer.

Changelog v1 -> v2:
- Add vs-supply, vdd-supply and interrupt-names fields in the dt doc
- Add default case for switch statements
- Use function pointer argument in core_probe for interface specific setup
- Check `spi->mode & SPI_3WIRE` to enable the device's 3wire mode
- Remove unnecessary 0s from id structs and commas after null terminators

Lucas Stankus (2):
  dt-bindings: iio: accel: Add binding documentation for ADXL313
  iio: accel: Add driver support for ADXL313

 .../bindings/iio/accel/adi,adxl313.yaml       |  90 +++++
 MAINTAINERS                                   |   9 +
 drivers/iio/accel/Kconfig                     |  29 ++
 drivers/iio/accel/Makefile                    |   3 +
 drivers/iio/accel/adxl313.h                   |  63 ++++
 drivers/iio/accel/adxl313_core.c              | 321 ++++++++++++++++++
 drivers/iio/accel/adxl313_i2c.c               |  65 ++++
 drivers/iio/accel/adxl313_spi.c               |  85 +++++
 8 files changed, 665 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml
 create mode 100644 drivers/iio/accel/adxl313.h
 create mode 100644 drivers/iio/accel/adxl313_core.c
 create mode 100644 drivers/iio/accel/adxl313_i2c.c
 create mode 100644 drivers/iio/accel/adxl313_spi.c

-- 
2.32.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-08 14:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05  6:29 [PATCH v2 0/2] iio: accel: Add support for ADXL313 accelerometer Lucas Stankus
2021-08-05  6:29 ` [PATCH v2 1/2] dt-bindings: iio: accel: Add binding documentation for ADXL313 Lucas Stankus
2021-08-06 17:07   ` Rob Herring
2021-08-06 18:10   ` Rob Herring
2021-08-07  0:33     ` Lucas Stankus
2021-08-08 14:45       ` Jonathan Cameron
2021-08-05  6:29 ` [PATCH v2 2/2] iio: accel: Add driver support " Lucas Stankus
2021-08-05  8:21   ` Alexandru Ardelean
     [not found]   ` <CAHp75Ve7avWpdnCioW6qdT21NqjK1TTW-nwFsz6x+0JLXsQH3Q@mail.gmail.com>
2021-08-07  0:22     ` Lucas Stankus
2021-08-08 14:51       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).