Path: blob/master/Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale FXOS8700 Inertial Measurement Unit78maintainers:9- Jonathan Cameron <jic23@kernel.org>1011description: |12Accelerometer and magnetometer combo device with an i2c and SPI interface.13https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ1415properties:16compatible:17enum:18- nxp,fxos87001920reg:21maxItems: 12223interrupts:24minItems: 125maxItems: 22627interrupt-names:28minItems: 129maxItems: 230items:31enum:32- INT133- INT23435drive-open-drain:36type: boolean3738required:39- compatible40- reg4142allOf:43- $ref: /schemas/spi/spi-peripheral-props.yaml#4445unevaluatedProperties: false4647examples:48- |49#include <dt-bindings/gpio/gpio.h>50#include <dt-bindings/interrupt-controller/irq.h>51i2c {52#address-cells = <1>;53#size-cells = <0>;5455fxos8700@1e {56compatible = "nxp,fxos8700";57reg = <0x1e>;5859interrupt-parent = <&gpio2>;60interrupts = <7 IRQ_TYPE_EDGE_RISING>;61interrupt-names = "INT1";62};63};64- |65#include <dt-bindings/gpio/gpio.h>66#include <dt-bindings/interrupt-controller/irq.h>67spi {68#address-cells = <1>;69#size-cells = <0>;7071fxos8700@0 {72compatible = "nxp,fxos8700";73reg = <0>;7475spi-max-frequency = <1000000>;76interrupt-parent = <&gpio1>;77interrupts = <7 IRQ_TYPE_EDGE_RISING>;78interrupt-names = "INT2";79};80};818283