1# Copyright (c) 2021 STMicroelectronics
2# SPDX-License-Identifier: Apache-2.0
3
4properties:
5    drdy-gpios:
6      type: phandle-array
7      required: false
8      description: |
9        DRDY gpio pin
10
11        This pin defaults to active high when produced by the sensor.
12        The property value should ensure the flags properly describe
13        the signal that is presented to the driver.
14
15    int-pin:
16      type: int
17      required: false
18      default: 1
19      description: |
20        Select DRDY pin number (1 or 2).
21
22          Selection
23            1  drdy is generated from INT1
24            2  drdy is generated from INT2
25
26        This number represents which of the two interrupt pins
27        (INT1 or INT2) the drdy line is attached to. This property is not
28        mandatory and if not present it defaults to 1 which is the
29        configuration at power-up.
30      enum:
31        - 1
32        - 2
33
34    accel-odr:
35      type: int
36      required: false
37      default: 0
38      description: |
39        Specify the default accelerometer output data rate expressed in samples per second (Hz).
40        Default is power-up configuration.
41
42          Selection
43            0   Power-Down
44            1   12.5Hz
45            2   26Hz
46            3   52Hz
47            4   104Hz
48            5   208Hz
49            6   416Hz
50            7   833Hz
51            8   1660Hz
52            9   3330Hz
53            10  6660Hz
54      enum:
55        - 0
56        - 1
57        - 2
58        - 3
59        - 4
60        - 5
61        - 6
62        - 7
63        - 8
64        - 9
65        - 10
66
67    accel-range:
68      type: int
69      required: false
70      default: 2
71      description: |
72        Range in g. Default is power-up configuration.
73
74          Selection
75            16  16g (0.488 mg/LSB)
76             8   8g (0.244 mg/LSB)
77             4   4g (0.122 mg/LSB)
78             2   2g (0.061 mg/LSB)
79      enum:
80        - 16
81        -  8
82        -  4
83        -  2
84
85    gyro-odr:
86      type: int
87      required: false
88      default: 0
89      description: |
90        Specify the default gyro output data rate expressed in samples per second (Hz).
91        Default is power-up configuration.
92
93          Selection
94            0   Power-Down
95            1   12.5Hz
96            2   26Hz
97            3   52Hz
98            4   104Hz
99            5   208Hz
100            6   416Hz
101            7   833Hz
102            8   1660Hz
103            9   3330Hz
104            10  6660Hz
105      enum:
106        - 0
107        - 1
108        - 2
109        - 3
110        - 4
111        - 5
112        - 6
113        - 7
114        - 8
115        - 9
116        - 10
117
118    gyro-range:
119      type: int
120      required: false
121      default: 125
122      description: |
123        Range in dps. Default is power-up configuration.
124
125          Selection
126            125    +/- 125dps
127            250    +/- 250dps
128            500    +/- 500dps
129            1000   +/- 1000dps
130            2000   +/- 2000dps
131      enum:
132        - 125
133        - 250
134        - 500
135        - 1000
136        - 2000
137