1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/gyroscope/nxp,fxas21002c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP FXAS21002C Gyroscope
10 - Rui Miguel Silva <rmfrfs@gmail.com>
13 3 axis digital gyroscope device with an I2C and SPI interface.
14 http://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C
24 description: Regulator that provides power to the sensor
27 description: Regulator that provides power to the bus
31 description: GPIO connected to reset
36 description: Either interrupt may be triggered on rising or falling edges.
48 description: the interrupt/data ready line will be configured as open drain,
49 which is useful if several sensors share the same interrupt
60 - $ref: /schemas/spi/spi-peripheral-props.yaml#
62 unevaluatedProperties: false
66 #include <dt-bindings/interrupt-controller/irq.h>
73 compatible = "nxp,fxas21002c";
76 vdd-supply = <®_peri_3p15v>;
77 vddio-supply = <®_peri_3p15v>;
79 interrupt-parent = <&gpio1>;
80 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
81 interrupt-names = "INT1";
89 compatible = "nxp,fxas21002c";
92 spi-max-frequency = <2000000>;
94 interrupt-parent = <&gpio2>;
95 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
96 interrupt-names = "INT2";