0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/imu/nxp,fxos8700.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Freescale FXOS8700 Inertial Measurement Unit
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description: |
0013 Accelerometer and magnetometer combo device with an i2c and SPI interface.
0014 https://www.nxp.com/products/sensors/motion-sensors/6-axis/digital-motion-sensor-3d-accelerometer-2g-4g-8g-plus-3d-magnetometer:FXOS8700CQ
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - nxp,fxos8700
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 minItems: 1
0026 maxItems: 2
0027
0028 interrupt-names:
0029 minItems: 1
0030 maxItems: 2
0031 items:
0032 enum:
0033 - INT1
0034 - INT2
0035
0036 drive-open-drain:
0037 type: boolean
0038
0039 spi-max-frequency: true
0040
0041 required:
0042 - compatible
0043 - reg
0044
0045 additionalProperties: false
0046
0047 examples:
0048 - |
0049 #include <dt-bindings/gpio/gpio.h>
0050 #include <dt-bindings/interrupt-controller/irq.h>
0051 i2c0 {
0052 #address-cells = <1>;
0053 #size-cells = <0>;
0054
0055 fxos8700@1e {
0056 compatible = "nxp,fxos8700";
0057 reg = <0x1e>;
0058
0059 interrupt-parent = <&gpio2>;
0060 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
0061 interrupt-names = "INT1";
0062 };
0063 };
0064 - |
0065 #include <dt-bindings/gpio/gpio.h>
0066 #include <dt-bindings/interrupt-controller/irq.h>
0067 spi0 {
0068 #address-cells = <1>;
0069 #size-cells = <0>;
0070
0071 fxos8700@0 {
0072 compatible = "nxp,fxos8700";
0073 reg = <0>;
0074
0075 spi-max-frequency = <1000000>;
0076 interrupt-parent = <&gpio1>;
0077 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
0078 interrupt-names = "INT2";
0079 };
0080 };