1# Copyright (c) 2021 STMicroelectronics 2# SPDX-License-Identifier: Apache-2.0 3 4include: sensor-device.yaml 5 6properties: 7 irq-gpios: 8 type: phandle-array 9 description: | 10 DRDY pin 11 12 This pin defaults to active high when produced by the sensor. 13 The property value should ensure the flags properly describe 14 the signal that is presented to the driver. 15 16 range: 17 type: int 18 default: 2 19 description: | 20 Range in g. Default is power-up configuration. 21 22 enum: 23 - 16 # 16g (0.488 mg/LSB) 24 - 8 # 8g (0.244 mg/LSB) 25 - 4 # 4g (0.122 mg/LSB) 26 - 2 # 2g (0.061 mg/LSB) 27 28 power-mode: 29 type: int 30 default: 0 31 description: | 32 Specify the sensor power mode. Default is power-down mode 33 34 enum: 35 - 0 # Power Down (PD) 36 - 1 # Low Power (LP) 37 - 2 # High Resolution (HR) 38 - 3 # High Frequency (HF) 39 40 odr: 41 type: int 42 default: 0 43 description: | 44 Specify the default output data rate expressed in samples per second (Hz). 45 Default is power-down mode 46 enum: 47 - 0 # Power-Down 48 - 1 # 1Hz (available in LP mode only) 49 - 2 # 12.5Hz (available in LP and HR mode) 50 - 3 # 25Hz (available in LP and HR mode) 51 - 4 # 50Hz (available in LP and HR mode) 52 - 5 # 100Hz (available in LP and HR mode) 53 - 6 # 200Hz (available in LP and HR mode) 54 - 7 # 400Hz (available in LP and HR mode) 55 - 8 # 800Hz (available in LP and HR mode) 56 - 9 # 1600Hz (available in HF mode only) 57 - 10 # 3200Hz (available in HF mode only) 58 - 11 # 6400Hz (available in HF mode only) 59