treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / imu / nxp,fxos8700.yaml
blob63bcb73ae309169c30ae4e5df470febff961d3ce
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#
7 title: Freescale FXOS8700 Inertial Measurement Unit
9 maintainers:
10   - Robert Jones <rjones@gateworks.com>
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
16 properties:
17   compatible:
18     enum:
19       - nxp,fxos8700
21   reg:
22     maxItems: 1
24   interrupts:
25     minItems: 1
26     maxItems: 2
28   interrupt-names:
29     minItems: 1
30     maxItems: 2
31     items:
32       enum:
33         - INT1
34         - INT2
36   drive-open-drain:
37     type: boolean
39 required:
40   - compatible
41   - reg
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>;
51         fxos8700@1e {
52           compatible = "nxp,fxos8700";
53           reg = <0x1e>;
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>;
67         fxos8700@0 {
68           compatible = "nxp,fxos8700";
69           reg = <0>;
71           spi-max-frequency = <1000000>;
72           interrupt-parent = <&gpio1>;
73           interrupts = <7 IRQ_TYPE_EDGE_RISING>;
74           interrupt-names = "INT2";
75         };
76     };