zephyr/dts/bindings/sensor/st,lps28dfw-common.yaml
Jonas Remmert a004cb4b75 dt-bindings: sensor: lps2xdf: make macros sensor agnostic
The possible settings for the lps22df and lps28dfw sensor are overlapping,
except the Full-Scale mode setting. Threrefore we can change the macros
from LPS22DF_DT_[..] to LPS2xDF_DT_[..].

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
2023-12-01 12:19:05 -06:00

33 lines
766 B
YAML

# Copyright (c) 2023 STMicroelectronics
# Copyright (c) 2023 PHYTEC Messtechnik GmbH
# SPDX-License-Identifier: Apache-2.0
description: |
STMicroelectronics LPS28DFW pressure and temperature sensor. This is an
extension of st,lps22df driver binding.
Example:
#include <zephyr/dt-bindings/sensor/lps2xdf.h>
lps28dfw@5d {
...
odr = <LPS2xDF_DT_ODR_10HZ>;
lpf = <LPS2xDF_DT_LP_FILTER_ODR_4>;
avg = <LPS2xDF_DT_AVG_128_SAMPLES>;
};
include: st,lps22df-common.yaml
properties:
fs:
type: int
default: 0
description: |
Specify the full-scale mode.
The default is the power-on reset value.
- 0 # LPS28DFW_DT_FS_MODE_1_1260
- 1 # LPS28DFW_DT_FS_MODE_2_4060
enum: [0, 1]