[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241007-topic-input-upstream-als31300-v1-0-2c240ea5cb77@linaro.org>
Date: Mon, 07 Oct 2024 15:14:37 +0200
From: Neil Armstrong <neil.armstrong@...aro.org>
To: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org, Neil Armstrong <neil.armstrong@...aro.org>
Subject: [PATCH 0/3] iio: magnetometer: add support for the Allegro
MicroSystems ALS31300 3-D Linear Hall Effect Sensor
The Allegro MicroSystems ALS31300 is a 3-D Linear Hall Effect Sensor
mainly used in 3D sensing applications for head-on motion.
The device is configured over I2C, and as part of the Sensor
data the temperature core is also provided.
While the device provides an IRQ gpio, it depends on a configuration
programmed into the internal EEPROM, thus only the default mode
is supported and buffered input via trigger is also supported
to allow streaming values with the same sensing timestamp.
The device can be configured with different sensitivities in factory,
but the sensitivity value used to calculate value into the Gauss
unit is not available from registers, thus the sensitivity is
provided by the compatible/device-id string which is based
on the part number as described in the datasheet page 2.
The datasheet is available on the product website at [1].
[1] https://www.allegromicro.com/en/products/sense/linear-and-angular-position/linear-position-sensor-ics/als31300
Signed-off-by: Neil Armstrong <neil.armstrong@...aro.org>
---
Neil Armstrong (3):
dt-bindings: vendor-prefixes: Add Allegro MicroSystems, Inc
dt-bindings: iio: magnetometer: document the Allegro MicroSystems ALS31300 3-D Linear Hall Effect Sensor
iio: magnetometer: add Allegro MicroSystems ALS31300 3-D Linear Hall Effect driver
.../iio/magnetometer/allegro,als31300.yaml | 43 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/iio/magnetometer/Kconfig | 13 +
drivers/iio/magnetometer/Makefile | 1 +
drivers/iio/magnetometer/als31300.c | 459 +++++++++++++++++++++
5 files changed, 518 insertions(+)
---
base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
change-id: 20241002-topic-input-upstream-als31300-ca7404eb4ab0
Best regards,
--
Neil Armstrong <neil.armstrong@...aro.org>
Powered by blists - more mailing lists