Freescale FXOS8700 Inertial Measurement Unit
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"
Accelerometer and magnetometer combo device with an i2c and SPI interface. https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,fxos8700"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
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"
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>;
fxos8700@1e {
compatible = "nxp,fxos8700";
reg = <0x1e>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "INT1";
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
fxos8700@0 {
compatible = "nxp,fxos8700";
reg = <0>;
spi-max-frequency = <1000000>;
interrupt-parent = <&gpio1>;
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)