Path: blob/master/Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml
29539 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/interrupt-controller/irq.h>50i2c {51#address-cells = <1>;52#size-cells = <0>;5354fxos8700@1e {55compatible = "nxp,fxos8700";56reg = <0x1e>;5758interrupt-parent = <&gpio2>;59interrupts = <7 IRQ_TYPE_EDGE_RISING>;60interrupt-names = "INT1";61};62};63- |64#include <dt-bindings/interrupt-controller/irq.h>65spi {66#address-cells = <1>;67#size-cells = <0>;6869fxos8700@0 {70compatible = "nxp,fxos8700";71reg = <0>;7273spi-max-frequency = <1000000>;74interrupt-parent = <&gpio1>;75interrupts = <7 IRQ_TYPE_EDGE_RISING>;76interrupt-names = "INT2";77};78};798081