NXP FXLS8962AF/FXLS8964AF Accelerometer driver

Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/nxp,fxls8962af.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sean Nyekjaer <sean@geanix.com>"

NXP FXLS8962AF/FXLS8964AF Accelerometer driver that supports
SPI and I2C interface.
  https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf
  https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf
  https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf
  https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nxp,fxls8962af", "nxp,fxls8964af"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,fxls8967af", "nxp,fxls8974cf"

Item 2

Exact value (const): "nxp,fxls8962af"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

phandle to the regulator that provides power to the accelerometer

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Allowed values (enum): "INT1", "INT2"

drive-open-drain — not listed as required here #

Value type (type): "boolean"

wakeup-source — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable wake on accelerometer event

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    /* Example for a I2C device node */
    accelerometer@62 {
        compatible = "nxp,fxls8962af";
        reg = <0x62>;
        interrupt-parent = <&gpio0>;
        interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "INT1";
        wakeup-source;
    };
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    /* Example for a SPI device node */
    accelerometer@0 {
        compatible = "nxp,fxls8962af";
        reg = <0>;
        spi-max-frequency = <4000000>;
        interrupt-parent = <&gpio0>;
        interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "INT1";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page