Converts lis2ds12 range options (2g, 4g, 8g, 16g) from Kconfig to Device Tree. Signed-off-by: Armando Visconti <armando.visconti@st.com>
26 lines
676 B
YAML
26 lines
676 B
YAML
# Copyright (c) 2021 STMicroelectronics
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
properties:
|
|
irq-gpios:
|
|
type: phandle-array
|
|
required: false
|
|
description: |
|
|
DRDY 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.
|
|
|
|
range:
|
|
type: int
|
|
required: false
|
|
default: 2
|
|
description: |
|
|
Range in g. Default is power-up configuration.
|
|
|
|
enum:
|
|
- 16 # 16g (0.488 mg/LSB)
|
|
- 8 # 8g (0.244 mg/LSB)
|
|
- 4 # 4g (0.122 mg/LSB)
|
|
- 2 # 2g (0.061 mg/LSB)
|