1# Copyright (c) 2021 STMicroelectronics 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 When setting the odr property in a .dts or .dtsi file you may include 6 lps22hh.h and use the macros defined there. 7 8 Example: 9 #include <zephyr/dt-bindings/sensor/lps22hh.h> 10 11 lps22hh: lps22hh@0 { 12 ... 13 14 odr = <LPS22HH_DT_ODR_200HZ>; 15 }; 16 17include: sensor-device.yaml 18 19properties: 20 drdy-gpios: 21 type: phandle-array 22 description: | 23 DRDY pin 24 25 This pin defaults to active high when produced by the sensor. 26 The property value should ensure the flags properly describe 27 the signal that is presented to the driver. 28 29 odr: 30 type: int 31 default: 0 32 description: | 33 Specify the default output data rate expressed in samples per second (Hz). 34 The default is the power-on reset value. 35 36 - 0 # LPS22HH_DT_ODR_POWER_DOWN 37 - 1 # LPS22HH_DT_ODR_1HZ 38 - 2 # LPS22HH_DT_ODR_10HZ 39 - 3 # LPS22HH_DT_ODR_25HZ 40 - 4 # LPS22HH_DT_ODR_50HZ 41 - 5 # LPS22HH_DT_ODR_75HZ 42 - 6 # LPS22HH_DT_ODR_100HZ 43 - 7 # LPS22HH_DT_ODR_200HZ 44 45 enum: [0, 1, 2, 3, 4, 5, 6, 7] 46