1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/st,st-sensors.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics MEMS sensors
9 description: The STMicroelectronics sensor devices are pretty straight-forward
10 I2C or SPI devices, all sharing the same device tree descriptions no matter
11 what type of sensor it is.
12 Note that whilst this covers many STMicro MEMs sensors, some more complex
13 IMUs need their own bindings.
14 The STMicroelectronics sensor devices are pretty straight-forward I2C or
15 SPI devices, all sharing the same device tree descriptions no matter what
25 - description: STMicroelectronics Accelerometers
49 - description: STMicroelectronics Gyroscopes
60 - description: STMicroelectronics Magnetometers
69 - description: STMicroelectronics Pressure Sensors
81 - description: Deprecated bindings
91 description: interrupt line(s) connected to the DRDY line(s) and/or the
92 Intertial interrupt lines INT1 and INT2 if these exist. This means up to
93 three interrupts, and the DRDY must be the first one if it exists on
94 the package. The trigger edge of the interrupts is sometimes software
95 configurable in the hardware so the operating system should parse this
96 flag and set up the trigger edge as indicated in the device tree.
104 description: the pin on the package that will be used to signal
105 "data ready" (valid values 1 or 2). This property is not configurable
107 $ref: /schemas/types.yaml#/definitions/uint32
111 $ref: /schemas/types.yaml#/definitions/flag
112 description: the interrupt/data ready line will be configured
113 as open drain, which is useful if several sensors share the same
114 interrupt line. (This binding is taken from pinctrl.)
117 description: an optional 3x3 mounting rotation matrix.
124 # These have no interrupts
129 st,drdy-int-pin: false
130 drive-open-drain: false
136 # These have only DRDY
139 - st,lis3lv02dl-accel
153 st,drdy-int-pin: false
159 additionalProperties: false
163 #include <dt-bindings/interrupt-controller/irq.h>
165 #address-cells = <1>;
169 compatible = "st,lis331dl-accel";
171 st,drdy-int-pin = <1>;
172 vdd-supply = <&ldo1>;
173 vddio-supply = <&ldo2>;
174 interrupt-parent = <&gpio>;
175 interrupts = <18 IRQ_TYPE_EDGE_RISING>, <19 IRQ_TYPE_EDGE_RISING>;
179 #address-cells = <1>;
183 l3g4200d: gyroscope@0 {
184 compatible = "st,l3g4200d-gyro";
185 st,drdy-int-pin = <2>;
187 vdd-supply = <&vcc_io>;
188 vddio-supply = <&vcc_io>;