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.
16 - Denis Ciocca <denis.ciocca@st.com>
17 - Linus Walleij <linus.walleij@linaro.org>
22 - description: STMicroelectronics Accelerometers
50 - const: st,h3lis331dl-accel
51 - description: Silan Accelerometers
54 - description: STMicroelectronics Gyroscopes
65 - description: STMicroelectronics Magnetometers
75 - description: STMicroelectronics Pressure Sensors
88 - description: Deprecated bindings
98 description: interrupt line(s) connected to the DRDY line(s) and/or the
99 Intertial interrupt lines INT1 and INT2 if these exist. This means up to
100 three interrupts, and the DRDY must be the first one if it exists on
101 the package. The trigger edge of the interrupts is sometimes software
102 configurable in the hardware so the operating system should parse this
103 flag and set up the trigger edge as indicated in the device tree.
111 description: the pin on the package that will be used to signal
112 "data ready" (valid values 1 or 2). This property is not configurable
114 $ref: /schemas/types.yaml#/definitions/uint32
118 $ref: /schemas/types.yaml#/definitions/flag
119 description: the interrupt/data ready line will be configured
120 as open drain, which is useful if several sensors share the same
121 interrupt line. (This binding is taken from pinctrl.)
124 description: an optional 3x3 mounting rotation matrix.
131 # These have no interrupts
136 st,drdy-int-pin: false
137 drive-open-drain: false
143 # These have only DRDY
146 - st,lis3lv02dl-accel
161 st,drdy-int-pin: false
167 additionalProperties: false
171 #include <dt-bindings/interrupt-controller/irq.h>
173 #address-cells = <1>;
177 compatible = "st,lis331dl-accel";
179 st,drdy-int-pin = <1>;
180 vdd-supply = <&ldo1>;
181 vddio-supply = <&ldo2>;
182 interrupt-parent = <&gpio>;
183 interrupts = <18 IRQ_TYPE_EDGE_RISING>, <19 IRQ_TYPE_EDGE_RISING>;
187 #address-cells = <1>;
191 l3g4200d: gyroscope@0 {
192 compatible = "st,l3g4200d-gyro";
193 st,drdy-int-pin = <2>;
195 vdd-supply = <&vcc_io>;
196 vddio-supply = <&vcc_io>;