Freescale MMA8451Q, MMA8452Q, MMA8453Q, MMA8652FC, MMA8653FC or FXLS8471Q triaxial accelerometer

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

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

Maintainers (maintainers): "Martin Kepplinger <martin.kepplinger@theobroma-systems.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,mma8451", "fsl,mma8452", "fsl,mma8453", "fsl,mma8652", "fsl,mma8653", "fsl,fxls8471"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

2 highly configurable interrupt lines exist.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Specify which interrupt line is in use.

Array item rules (items) #

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

vddio-supply — not listed as required here #

true — No constraints added by this property rule.

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    accel@1d {
        compatible = "fsl,mma8453";
        reg = <0x1d>;
        interrupt-parent = <&gpio1>;
        interrupts = <5 0>;
        interrupt-names = "INT2";
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page