zephyr/dts/bindings/sensor/st,lis2mdl-common.yaml
Masoud Shiroei ef2a590281 drivers: sensor: lis2mdl: Add single mode operation
Support single mode operation by enabling it and
making the driver to use the interrupt to findout
when the data is ready for fetch. The sample fetch
will be blocked for a specified maximum time untill
the interrupt happens.

* Make operation mode configurable in DTS file
* Make offset cancellation configurable in DTS file
* Use single common .yaml file for both i2c and spi
* Store above configurations in dev->config_info

Signed-off-by: Masoud Shiroei <masoud.shiroei@assaabloy.com>
2021-03-31 08:08:35 -04:00

27 lines
772 B
YAML

# Copyright (c) 2018 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
properties:
irq-gpios:
type: phandle-array
required: false
description: IRQ pin
This pin defaults to active high when produced by the sensor.
The property value should ensure the flags properly describe
the signal that is presented to the driver.
single-mode:
type: boolean
required: false
description: |
Set to config the sensor in single measurement mode. Leave
unset to configure the sensor in continious measurement mode.
cancel-offset:
type: boolean
required: false
description: |
Set to enable the offset cancellation. Otherwise it would be
disabled as default.