xref: /linux/Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml (revision 4d6f93964dec1f19e6a361f3c0a40740bfdf1726)
1*4d6f9396SRobert Jones# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4d6f9396SRobert Jones%YAML 1.2
3*4d6f9396SRobert Jones---
4*4d6f9396SRobert Jones$id: http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#
5*4d6f9396SRobert Jones$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4d6f9396SRobert Jones
7*4d6f9396SRobert Jonestitle: Freescale FXOS8700 Inertial Measurement Unit
8*4d6f9396SRobert Jones
9*4d6f9396SRobert Jonesmaintainers:
10*4d6f9396SRobert Jones  - Robert Jones <rjones@gateworks.com>
11*4d6f9396SRobert Jones
12*4d6f9396SRobert Jonesdescription: |
13*4d6f9396SRobert Jones  Accelerometer and magnetometer combo device with an i2c and SPI interface.
14*4d6f9396SRobert Jones  https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ
15*4d6f9396SRobert Jones
16*4d6f9396SRobert Jonesproperties:
17*4d6f9396SRobert Jones  compatible:
18*4d6f9396SRobert Jones    enum:
19*4d6f9396SRobert Jones      - nxp,fxos8700
20*4d6f9396SRobert Jones
21*4d6f9396SRobert Jones  reg:
22*4d6f9396SRobert Jones    maxItems: 1
23*4d6f9396SRobert Jones
24*4d6f9396SRobert Jones  interrupts:
25*4d6f9396SRobert Jones    minItems: 1
26*4d6f9396SRobert Jones    maxItems: 2
27*4d6f9396SRobert Jones
28*4d6f9396SRobert Jones  interrupt-names:
29*4d6f9396SRobert Jones    minItems: 1
30*4d6f9396SRobert Jones    maxItems: 2
31*4d6f9396SRobert Jones    items:
32*4d6f9396SRobert Jones      enum:
33*4d6f9396SRobert Jones        - INT1
34*4d6f9396SRobert Jones        - INT2
35*4d6f9396SRobert Jones
36*4d6f9396SRobert Jones  drive-open-drain:
37*4d6f9396SRobert Jones    type: boolean
38*4d6f9396SRobert Jones
39*4d6f9396SRobert Jonesrequired:
40*4d6f9396SRobert Jones  - compatible
41*4d6f9396SRobert Jones  - reg
42*4d6f9396SRobert Jones
43*4d6f9396SRobert Jonesexamples:
44*4d6f9396SRobert Jones  - |
45*4d6f9396SRobert Jones    #include <dt-bindings/gpio/gpio.h>
46*4d6f9396SRobert Jones    #include <dt-bindings/interrupt-controller/irq.h>
47*4d6f9396SRobert Jones    i2c0 {
48*4d6f9396SRobert Jones        #address-cells = <1>;
49*4d6f9396SRobert Jones        #size-cells = <0>;
50*4d6f9396SRobert Jones
51*4d6f9396SRobert Jones        fxos8700@1e {
52*4d6f9396SRobert Jones          compatible = "nxp,fxos8700";
53*4d6f9396SRobert Jones          reg = <0x1e>;
54*4d6f9396SRobert Jones
55*4d6f9396SRobert Jones          interrupt-parent = <&gpio2>;
56*4d6f9396SRobert Jones          interrupts = <7 IRQ_TYPE_EDGE_RISING>;
57*4d6f9396SRobert Jones          interrupt-names = "INT1";
58*4d6f9396SRobert Jones        };
59*4d6f9396SRobert Jones    };
60*4d6f9396SRobert Jones  - |
61*4d6f9396SRobert Jones    #include <dt-bindings/gpio/gpio.h>
62*4d6f9396SRobert Jones    #include <dt-bindings/interrupt-controller/irq.h>
63*4d6f9396SRobert Jones    spi0 {
64*4d6f9396SRobert Jones        #address-cells = <1>;
65*4d6f9396SRobert Jones        #size-cells = <0>;
66*4d6f9396SRobert Jones
67*4d6f9396SRobert Jones        fxos8700@0 {
68*4d6f9396SRobert Jones          compatible = "nxp,fxos8700";
69*4d6f9396SRobert Jones          reg = <0>;
70*4d6f9396SRobert Jones
71*4d6f9396SRobert Jones          spi-max-frequency = <1000000>;
72*4d6f9396SRobert Jones          interrupt-parent = <&gpio1>;
73*4d6f9396SRobert Jones          interrupts = <7 IRQ_TYPE_EDGE_RISING>;
74*4d6f9396SRobert Jones          interrupt-names = "INT2";
75*4d6f9396SRobert Jones        };
76*4d6f9396SRobert Jones    };
77