1# Copyright (c) 2023 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  drdy-pin:
17    type: int
18    default: 1
19    enum:
20      - 1 # drdy is generated from INT1
21      - 2 # drdy is generated from INT2
22    description: |
23      Select DRDY pin number (1 or 2).
24
25      This number represents which of the two interrupt pins
26      (INT1 or INT2) the drdy line is attached to. This property is not
27      mandatory and if not present it defaults to 1 which is the
28      configuration at power-up.
29
30  accel-range:
31    type: int
32    default: 0
33    description: |
34      Range in g. Default is power-up configuration.
35    enum:
36      - 0 # 2g  (0.061 mg/LSB)
37      - 1 # 16g (0.488 mg/LSB)
38      - 2 # 4g  (0.122 mg/LSB)
39      - 3 # 8g  (0.244 mg/LSB)
40
41  accel-odr:
42    type: int
43    default: 0x0
44    description: |
45      Specify the default accelerometer output data rate expressed in samples per second (Hz).
46      The values are taken in accordance to lsm6dso16is_xl_data_rate_t enumerative in hal/st
47      module.
48      Default is power-up configuration.
49    enum:
50      - 0x00  # Power-Down
51      - 0x01  # 12.5Hz High Performance
52      - 0x02  # 26Hz High Performance
53      - 0x03  # 52Hz High Performance
54      - 0x04  # 104Hz High Performance
55      - 0x05  # 208Hz High Performance
56      - 0x06  # 417Hz High Performance
57      - 0x07  # 833Hz High Performance
58      - 0x08  # 1667Hz High Performance
59      - 0x09  # 3333Hz High Performance
60      - 0x0a  # 6667Hz High Performance
61      - 0x11  # 12.5Hz Low Power
62      - 0x12  # 26Hz Low Power
63      - 0x13  # 52Hz Low Power
64      - 0x14  # 104Hz Low Power
65      - 0x15  # 208Hz Low Power
66      - 0x16  # 417Hz Low Power
67      - 0x17  # 833Hz Low Power
68      - 0x18  # 1667Hz Low Power
69      - 0x19  # 3333Hz Low Power
70      - 0x1a  # 6667Hz Low Power
71      - 0x1b  # 1Hz6 Low Power
72
73  gyro-range:
74    type: int
75    default: 0
76    description: |
77      Range in dps. Default is power-up configuration.
78    enum:
79      - 0 # 250 dps  (8.75 mdps/LSB)
80      - 1 # 125 dps  (4.375 mdps/LSB)
81      - 2 # 500 dps  (17.50 mdps/LSB)
82      - 4 # 1000 dps (35 mdps/LSB)
83      - 6 # 2000 dps (70 mdps/LSB)
84
85  gyro-odr:
86    type: int
87    default: 0x0
88    description: |
89      Specify the default gyro output data rate expressed in samples per second (Hz).
90      The values are taken in accordance to lsm6dso16is_gy_data_rate_t enumerative in hal/st
91      module.
92      Default is power-up configuration.
93    enum:
94      - 0x00  # Power-Down
95      - 0x01  # 12.5Hz High Performance
96      - 0x02  # 26Hz High Performance
97      - 0x03  # 52Hz High Performance
98      - 0x04  # 104Hz High Performance
99      - 0x05  # 208Hz High Performance
100      - 0x06  # 417Hz High Performance
101      - 0x07  # 833Hz High Performance
102      - 0x08  # 1667Hz High Performance
103      - 0x09  # 3333Hz High Performance
104      - 0x0a  # 6667Hz High Performance
105      - 0x11  # 12.5Hz Low Power
106      - 0x12  # 26Hz Low Power
107      - 0x13  # 52Hz Low Power
108      - 0x14  # 104Hz Low Power
109      - 0x15  # 208Hz Low Power
110      - 0x16  # 417Hz Low Power
111      - 0x17  # 833Hz Low Power
112      - 0x18  # 1667Hz Low Power
113      - 0x19  # 3333Hz Low Power
114      - 0x1a  # 6667Hz Low Power
115
116  drdy-pulsed:
117    type: boolean
118    description: |
119      Selects the pulsed mode for data-ready interrupt when enabled,
120      and the latched mode when disabled.
121