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