| # Copyright (c) 2022 Analog Devices Inc. |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| include: sensor-device.yaml |
| |
| description: | |
| ADXL372 3-axis SPI accelerometer |
| When setting the accelerometer DTS properties and want to use |
| streaming functionality, make sure to include adxl372.h and |
| use the macros defined there for fifo-mode properties. |
| |
| Example: |
| #include <zephyr/dt-bindings/sensor/adxl372.h> |
| |
| adxl372: adxl372@0 { |
| ... |
| fifo-mode = <ADXL372_FIFO_MODE_STREAMED>; |
| }; |
| |
| properties: |
| odr: |
| type: int |
| default: 0 |
| description: | |
| Accelerometer sampling frequency (ODR). Default is power on reset value. |
| 0 # 400Hz |
| 1 # 800Hz |
| 2 # 1600Hz |
| 3 # 3200Hz |
| 4 # 6400Hz |
| enum: |
| - 0 |
| - 1 |
| - 2 |
| - 3 |
| - 4 |
| |
| bw: |
| type: int |
| default: 12 |
| description: | |
| Low-Pass (Antialiasing) Filter corner frequency. Default is power on reset value. |
| 0 # 200Hz |
| 1 # 400Hz |
| 2 # 800Hz |
| 3 # 1600Hz |
| 4 # 3200Hz |
| 12 # Disabled |
| enum: |
| - 0 |
| - 1 |
| - 2 |
| - 3 |
| - 4 |
| - 12 |
| |
| hpf: |
| type: int |
| default: 4 |
| description: | |
| High-Pass Filter corner frequency. Default is power on reset value. |
| 0 # ODR/210 |
| 1 # ODR/411 |
| 2 # ODR/812 |
| 3 # ODR/1616 |
| 4 # Disabled |
| enum: |
| - 0 |
| - 1 |
| - 2 |
| - 3 |
| - 4 |
| |
| int1-gpios: |
| type: phandle-array |
| description: | |
| The INT1 signal defaults to active high as produced by the |
| sensor. The property value should ensure the flags properly |
| describe the signal that is presented to the driver. |
| |
| fifo-mode: |
| type: int |
| description: | |
| Accelerometer FIFO Mode. |
| 0 # ADXL372_FIFO_MODE_BYPASSED |
| 1 # ADXL372_FIFO_MODE_STREAMED |
| 2 # ADXL372_FIFO_MODE_TRIGGERED |
| 3 # ADXL372_FIFO_MODE_OLD_SAVED |
| enum: |
| - 0 |
| - 1 |
| - 2 |
| - 3 |
| |
| fifo-watermark: |
| type: int |
| description: | |
| Specify the FIFO watermark level in frame count. |
| Valid range: 0 - 512 |