NXP FXAS21002C Gyroscope
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/nxp,fxas21002c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rui Miguel Silva <rmfrfs@gmail.com>"
3 axis digital gyroscope device with an I2C and SPI interface. http://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,fxas21002c"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides power to the sensor
vddio-supply — not listed as required here #
Regulator that provides power to the bus
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO connected to reset
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Either interrupt may be triggered on rising or falling edges.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
drive-open-drain — not listed as required here #
Value type (type): "boolean"
the interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 2000000
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@20 {
compatible = "nxp,fxas21002c";
reg = <0x20>;
vdd-supply = <®_peri_3p15v>;
vddio-supply = <®_peri_3p15v>;
interrupt-parent = <&gpio1>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@0 {
compatible = "nxp,fxas21002c";
reg = <0x0>;
spi-max-frequency = <2000000>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)