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: 10*3156c50fSKrzysztof 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 394828556dSRob Herring spi-max-frequency: true 404828556dSRob Herring 414d6f9396SRobert Jonesrequired: 424d6f9396SRobert Jones - compatible 434d6f9396SRobert Jones - reg 444d6f9396SRobert Jones 454828556dSRob HerringadditionalProperties: false 466fdc6e23SRob Herring 474d6f9396SRobert Jonesexamples: 484d6f9396SRobert Jones - | 494d6f9396SRobert Jones #include <dt-bindings/gpio/gpio.h> 504d6f9396SRobert Jones #include <dt-bindings/interrupt-controller/irq.h> 514d6f9396SRobert Jones i2c0 { 524d6f9396SRobert Jones #address-cells = <1>; 534d6f9396SRobert Jones #size-cells = <0>; 544d6f9396SRobert Jones 554d6f9396SRobert Jones fxos8700@1e { 564d6f9396SRobert Jones compatible = "nxp,fxos8700"; 574d6f9396SRobert Jones reg = <0x1e>; 584d6f9396SRobert Jones 594d6f9396SRobert Jones interrupt-parent = <&gpio2>; 604d6f9396SRobert Jones interrupts = <7 IRQ_TYPE_EDGE_RISING>; 614d6f9396SRobert Jones interrupt-names = "INT1"; 624d6f9396SRobert Jones }; 634d6f9396SRobert Jones }; 644d6f9396SRobert Jones - | 654d6f9396SRobert Jones #include <dt-bindings/gpio/gpio.h> 664d6f9396SRobert Jones #include <dt-bindings/interrupt-controller/irq.h> 674d6f9396SRobert Jones spi0 { 684d6f9396SRobert Jones #address-cells = <1>; 694d6f9396SRobert Jones #size-cells = <0>; 704d6f9396SRobert Jones 714d6f9396SRobert Jones fxos8700@0 { 724d6f9396SRobert Jones compatible = "nxp,fxos8700"; 734d6f9396SRobert Jones reg = <0>; 744d6f9396SRobert Jones 754d6f9396SRobert Jones spi-max-frequency = <1000000>; 764d6f9396SRobert Jones interrupt-parent = <&gpio1>; 774d6f9396SRobert Jones interrupts = <7 IRQ_TYPE_EDGE_RISING>; 784d6f9396SRobert Jones interrupt-names = "INT2"; 794d6f9396SRobert Jones }; 804d6f9396SRobert Jones }; 81