xref: /linux/Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
14d6f9396SRobert Jones# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
24d6f9396SRobert Jones%YAML 1.2
34d6f9396SRobert Jones---
44d6f9396SRobert Jones$id: http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#
54d6f9396SRobert Jones$schema: http://devicetree.org/meta-schemas/core.yaml#
64d6f9396SRobert Jones
74d6f9396SRobert Jonestitle: Freescale FXOS8700 Inertial Measurement Unit
84d6f9396SRobert Jones
94d6f9396SRobert Jonesmaintainers:
103156c50fSKrzysztof Kozlowski  - Jonathan Cameron <jic23@kernel.org>
114d6f9396SRobert Jones
124d6f9396SRobert Jonesdescription: |
134d6f9396SRobert Jones  Accelerometer and magnetometer combo device with an i2c and SPI interface.
144d6f9396SRobert Jones  https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ
154d6f9396SRobert Jones
164d6f9396SRobert Jonesproperties:
174d6f9396SRobert Jones  compatible:
184d6f9396SRobert Jones    enum:
194d6f9396SRobert Jones      - nxp,fxos8700
204d6f9396SRobert Jones
214d6f9396SRobert Jones  reg:
224d6f9396SRobert Jones    maxItems: 1
234d6f9396SRobert Jones
244d6f9396SRobert Jones  interrupts:
254d6f9396SRobert Jones    minItems: 1
264d6f9396SRobert Jones    maxItems: 2
274d6f9396SRobert Jones
284d6f9396SRobert Jones  interrupt-names:
294d6f9396SRobert Jones    minItems: 1
304d6f9396SRobert Jones    maxItems: 2
314d6f9396SRobert Jones    items:
324d6f9396SRobert Jones      enum:
334d6f9396SRobert Jones        - INT1
344d6f9396SRobert Jones        - INT2
354d6f9396SRobert Jones
364d6f9396SRobert Jones  drive-open-drain:
374d6f9396SRobert Jones    type: boolean
384d6f9396SRobert Jones
394d6f9396SRobert Jonesrequired:
404d6f9396SRobert Jones  - compatible
414d6f9396SRobert Jones  - reg
424d6f9396SRobert Jones
438d98a8c6SKrzysztof KozlowskiallOf:
448d98a8c6SKrzysztof Kozlowski  - $ref: /schemas/spi/spi-peripheral-props.yaml#
458d98a8c6SKrzysztof Kozlowski
468d98a8c6SKrzysztof KozlowskiunevaluatedProperties: false
476fdc6e23SRob Herring
484d6f9396SRobert Jonesexamples:
494d6f9396SRobert Jones  - |
504d6f9396SRobert Jones    #include <dt-bindings/gpio/gpio.h>
514d6f9396SRobert Jones    #include <dt-bindings/interrupt-controller/irq.h>
52*46908557SKrzysztof Kozlowski    i2c {
534d6f9396SRobert Jones        #address-cells = <1>;
544d6f9396SRobert Jones        #size-cells = <0>;
554d6f9396SRobert Jones
564d6f9396SRobert Jones        fxos8700@1e {
574d6f9396SRobert Jones            compatible = "nxp,fxos8700";
584d6f9396SRobert Jones            reg = <0x1e>;
594d6f9396SRobert Jones
604d6f9396SRobert Jones            interrupt-parent = <&gpio2>;
614d6f9396SRobert Jones            interrupts = <7 IRQ_TYPE_EDGE_RISING>;
624d6f9396SRobert Jones            interrupt-names = "INT1";
634d6f9396SRobert Jones        };
644d6f9396SRobert Jones    };
654d6f9396SRobert Jones  - |
664d6f9396SRobert Jones    #include <dt-bindings/gpio/gpio.h>
674d6f9396SRobert Jones    #include <dt-bindings/interrupt-controller/irq.h>
68*46908557SKrzysztof Kozlowski    spi {
694d6f9396SRobert Jones        #address-cells = <1>;
704d6f9396SRobert Jones        #size-cells = <0>;
714d6f9396SRobert Jones
724d6f9396SRobert Jones        fxos8700@0 {
734d6f9396SRobert Jones            compatible = "nxp,fxos8700";
744d6f9396SRobert Jones            reg = <0>;
754d6f9396SRobert Jones
764d6f9396SRobert Jones            spi-max-frequency = <1000000>;
774d6f9396SRobert Jones            interrupt-parent = <&gpio1>;
784d6f9396SRobert Jones            interrupts = <7 IRQ_TYPE_EDGE_RISING>;
794d6f9396SRobert Jones            interrupt-names = "INT2";
804d6f9396SRobert Jones        };
814d6f9396SRobert Jones    };
82