Path: blob/master/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/gyroscope/nxp,fxas21002c.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP FXAS21002C Gyroscope78maintainers:9- Rui Miguel Silva <rmfrfs@gmail.com>1011description: |123 axis digital gyroscope device with an I2C and SPI interface.13http://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C1415properties:16compatible:17const: nxp,fxas21002c1819reg:20maxItems: 12122vdd-supply:23description: Regulator that provides power to the sensor2425vddio-supply:26description: Regulator that provides power to the bus2728reset-gpios:29maxItems: 130description: GPIO connected to reset3132interrupts:33minItems: 134maxItems: 235description: Either interrupt may be triggered on rising or falling edges.3637interrupt-names:38minItems: 139maxItems: 240items:41enum:42- INT143- INT24445drive-open-drain:46type: boolean47description: the interrupt/data ready line will be configured as open drain,48which is useful if several sensors share the same interrupt49line.5051spi-max-frequency:52maximum: 20000005354required:55- compatible56- reg5758allOf:59- $ref: /schemas/spi/spi-peripheral-props.yaml#6061unevaluatedProperties: false6263examples:64- |65#include <dt-bindings/interrupt-controller/irq.h>6667i2c {68#address-cells = <1>;69#size-cells = <0>;7071gyroscope@20 {72compatible = "nxp,fxas21002c";73reg = <0x20>;7475vdd-supply = <®_peri_3p15v>;76vddio-supply = <®_peri_3p15v>;7778interrupt-parent = <&gpio1>;79interrupts = <7 IRQ_TYPE_EDGE_RISING>;80interrupt-names = "INT1";81};82};83spi {84#address-cells = <1>;85#size-cells = <0>;8687gyroscope@0 {88compatible = "nxp,fxas21002c";89reg = <0x0>;9091spi-max-frequency = <2000000>;9293interrupt-parent = <&gpio2>;94interrupts = <7 IRQ_TYPE_EDGE_RISING>;95interrupt-names = "INT2";96};97};9899100