1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5956d97fSEmmanuel Vadot%YAML 1.2 3*5956d97fSEmmanuel Vadot--- 4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml# 5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5956d97fSEmmanuel Vadot 7*5956d97fSEmmanuel Vadottitle: NXP FXLS8962AF/FXLS8964AF Accelerometer driver 8*5956d97fSEmmanuel Vadot 9*5956d97fSEmmanuel Vadotmaintainers: 10*5956d97fSEmmanuel Vadot - Sean Nyekjaer <sean@geanix.com> 11*5956d97fSEmmanuel Vadot 12*5956d97fSEmmanuel Vadotdescription: | 13*5956d97fSEmmanuel Vadot NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports 14*5956d97fSEmmanuel Vadot SPI and I2C interface. 15*5956d97fSEmmanuel Vadot https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf 16*5956d97fSEmmanuel Vadot https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf 17*5956d97fSEmmanuel Vadot 18*5956d97fSEmmanuel Vadotproperties: 19*5956d97fSEmmanuel Vadot compatible: 20*5956d97fSEmmanuel Vadot enum: 21*5956d97fSEmmanuel Vadot - nxp,fxls8962af 22*5956d97fSEmmanuel Vadot - nxp,fxls8964af 23*5956d97fSEmmanuel Vadot 24*5956d97fSEmmanuel Vadot reg: 25*5956d97fSEmmanuel Vadot maxItems: 1 26*5956d97fSEmmanuel Vadot 27*5956d97fSEmmanuel Vadot vdd-supply: 28*5956d97fSEmmanuel Vadot description: phandle to the regulator that provides power to the accelerometer 29*5956d97fSEmmanuel Vadot 30*5956d97fSEmmanuel Vadot spi-max-frequency: true 31*5956d97fSEmmanuel Vadot 32*5956d97fSEmmanuel Vadot interrupts: 33*5956d97fSEmmanuel Vadot maxItems: 1 34*5956d97fSEmmanuel Vadot 35*5956d97fSEmmanuel Vadot interrupt-names: 36*5956d97fSEmmanuel Vadot enum: 37*5956d97fSEmmanuel Vadot - INT1 38*5956d97fSEmmanuel Vadot - INT2 39*5956d97fSEmmanuel Vadot 40*5956d97fSEmmanuel Vadot drive-open-drain: 41*5956d97fSEmmanuel Vadot type: boolean 42*5956d97fSEmmanuel Vadot 43*5956d97fSEmmanuel Vadotrequired: 44*5956d97fSEmmanuel Vadot - compatible 45*5956d97fSEmmanuel Vadot - reg 46*5956d97fSEmmanuel Vadot 47*5956d97fSEmmanuel VadotadditionalProperties: false 48*5956d97fSEmmanuel Vadot 49*5956d97fSEmmanuel Vadotexamples: 50*5956d97fSEmmanuel Vadot - | 51*5956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 52*5956d97fSEmmanuel Vadot i2c0 { 53*5956d97fSEmmanuel Vadot #address-cells = <1>; 54*5956d97fSEmmanuel Vadot #size-cells = <0>; 55*5956d97fSEmmanuel Vadot 56*5956d97fSEmmanuel Vadot /* Example for a I2C device node */ 57*5956d97fSEmmanuel Vadot accelerometer@62 { 58*5956d97fSEmmanuel Vadot compatible = "nxp,fxls8962af"; 59*5956d97fSEmmanuel Vadot reg = <0x62>; 60*5956d97fSEmmanuel Vadot interrupt-parent = <&gpio0>; 61*5956d97fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 62*5956d97fSEmmanuel Vadot interrupt-names = "INT1"; 63*5956d97fSEmmanuel Vadot }; 64*5956d97fSEmmanuel Vadot }; 65*5956d97fSEmmanuel Vadot - | 66*5956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 67*5956d97fSEmmanuel Vadot spi0 { 68*5956d97fSEmmanuel Vadot #address-cells = <1>; 69*5956d97fSEmmanuel Vadot #size-cells = <0>; 70*5956d97fSEmmanuel Vadot 71*5956d97fSEmmanuel Vadot /* Example for a SPI device node */ 72*5956d97fSEmmanuel Vadot accelerometer@0 { 73*5956d97fSEmmanuel Vadot compatible = "nxp,fxls8962af"; 74*5956d97fSEmmanuel Vadot reg = <0>; 75*5956d97fSEmmanuel Vadot spi-max-frequency = <4000000>; 76*5956d97fSEmmanuel Vadot interrupt-parent = <&gpio0>; 77*5956d97fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 78*5956d97fSEmmanuel Vadot interrupt-names = "INT1"; 79*5956d97fSEmmanuel Vadot }; 80*5956d97fSEmmanuel Vadot }; 81