Path: blob/master/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP FXLS8962AF/FXLS8964AF Accelerometer driver78maintainers:9- Sean Nyekjaer <sean@geanix.com>1011description: |12NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports13SPI and I2C interface.14https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf15https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf16https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf17https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf1819properties:20compatible:21oneOf:22- enum:23- nxp,fxls8962af24- nxp,fxls8964af25- items:26- enum:27- nxp,fxls8967af28- nxp,fxls8974cf29- const: nxp,fxls8962af3031reg:32maxItems: 13334vdd-supply:35description: phandle to the regulator that provides power to the accelerometer3637interrupts:38maxItems: 13940interrupt-names:41enum:42- INT143- INT24445drive-open-drain:46type: boolean4748wakeup-source:49$ref: /schemas/types.yaml#/definitions/flag50description:51Enable wake on accelerometer event5253required:54- compatible55- reg5657allOf:58- $ref: /schemas/spi/spi-peripheral-props.yaml#5960unevaluatedProperties: false6162examples:63- |64#include <dt-bindings/interrupt-controller/irq.h>65i2c {66#address-cells = <1>;67#size-cells = <0>;6869/* Example for a I2C device node */70accelerometer@62 {71compatible = "nxp,fxls8962af";72reg = <0x62>;73interrupt-parent = <&gpio0>;74interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;75interrupt-names = "INT1";76wakeup-source;77};78};79- |80#include <dt-bindings/interrupt-controller/irq.h>81spi {82#address-cells = <1>;83#size-cells = <0>;8485/* Example for a SPI device node */86accelerometer@0 {87compatible = "nxp,fxls8962af";88reg = <0>;89spi-max-frequency = <4000000>;90interrupt-parent = <&gpio0>;91interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;92interrupt-names = "INT1";93};94};959697