15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: NXP FXLS8962AF/FXLS8964AF Accelerometer driver 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Sean Nyekjaer <sean@geanix.com> 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel Vadotdescription: | 135956d97fSEmmanuel Vadot NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports 145956d97fSEmmanuel Vadot SPI and I2C interface. 155956d97fSEmmanuel Vadot https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf 165956d97fSEmmanuel Vadot https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf 175956d97fSEmmanuel Vadot 185956d97fSEmmanuel Vadotproperties: 195956d97fSEmmanuel Vadot compatible: 205956d97fSEmmanuel Vadot enum: 215956d97fSEmmanuel Vadot - nxp,fxls8962af 225956d97fSEmmanuel Vadot - nxp,fxls8964af 235956d97fSEmmanuel Vadot 245956d97fSEmmanuel Vadot reg: 255956d97fSEmmanuel Vadot maxItems: 1 265956d97fSEmmanuel Vadot 275956d97fSEmmanuel Vadot vdd-supply: 285956d97fSEmmanuel Vadot description: phandle to the regulator that provides power to the accelerometer 295956d97fSEmmanuel Vadot 305956d97fSEmmanuel Vadot interrupts: 315956d97fSEmmanuel Vadot maxItems: 1 325956d97fSEmmanuel Vadot 335956d97fSEmmanuel Vadot interrupt-names: 345956d97fSEmmanuel Vadot enum: 355956d97fSEmmanuel Vadot - INT1 365956d97fSEmmanuel Vadot - INT2 375956d97fSEmmanuel Vadot 385956d97fSEmmanuel Vadot drive-open-drain: 395956d97fSEmmanuel Vadot type: boolean 405956d97fSEmmanuel Vadot 415956d97fSEmmanuel Vadotrequired: 425956d97fSEmmanuel Vadot - compatible 435956d97fSEmmanuel Vadot - reg 445956d97fSEmmanuel Vadot 457ef62cebSEmmanuel VadotallOf: 467ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 477ef62cebSEmmanuel Vadot 487ef62cebSEmmanuel VadotunevaluatedProperties: false 495956d97fSEmmanuel Vadot 505956d97fSEmmanuel Vadotexamples: 515956d97fSEmmanuel Vadot - | 525956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 53*cb7aa33aSEmmanuel Vadot i2c { 545956d97fSEmmanuel Vadot #address-cells = <1>; 555956d97fSEmmanuel Vadot #size-cells = <0>; 565956d97fSEmmanuel Vadot 575956d97fSEmmanuel Vadot /* Example for a I2C device node */ 585956d97fSEmmanuel Vadot accelerometer@62 { 595956d97fSEmmanuel Vadot compatible = "nxp,fxls8962af"; 605956d97fSEmmanuel Vadot reg = <0x62>; 615956d97fSEmmanuel Vadot interrupt-parent = <&gpio0>; 625956d97fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 635956d97fSEmmanuel Vadot interrupt-names = "INT1"; 645956d97fSEmmanuel Vadot }; 655956d97fSEmmanuel Vadot }; 665956d97fSEmmanuel Vadot - | 675956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 68*cb7aa33aSEmmanuel Vadot spi { 695956d97fSEmmanuel Vadot #address-cells = <1>; 705956d97fSEmmanuel Vadot #size-cells = <0>; 715956d97fSEmmanuel Vadot 725956d97fSEmmanuel Vadot /* Example for a SPI device node */ 735956d97fSEmmanuel Vadot accelerometer@0 { 745956d97fSEmmanuel Vadot compatible = "nxp,fxls8962af"; 755956d97fSEmmanuel Vadot reg = <0>; 765956d97fSEmmanuel Vadot spi-max-frequency = <4000000>; 775956d97fSEmmanuel Vadot interrupt-parent = <&gpio0>; 785956d97fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 795956d97fSEmmanuel Vadot interrupt-names = "INT1"; 805956d97fSEmmanuel Vadot }; 815956d97fSEmmanuel Vadot }; 82